mirror of
https://github.com/fsolla/teqo.git
synced 2026-12-01 20:13:04 +00:00
Home ganha a seção Faça parte com os três modelos e a rota /cards concentra catálogo + compositor client-side (dialog desktop, bottom drawer mobile): nome no slot medido do mestre com Brexter 700 e foto full-bleed sob o overlay oficial (pan/zoom clampados), download PNG sem conta e sem enviar nome/foto. Núcleo puro em src/lib/card* com unit tests; e2e cobre home→deep-link, nome→PNG real, erro fail-closed, foto e drawer mobile. Sem migration/PII.
18 lines
679 B
TypeScript
18 lines
679 B
TypeScript
import localFont from 'next/font/local'
|
|
|
|
/**
|
|
* S13 — Brexter 700, the display face of the official card masters. Web use is
|
|
* licensed for the campaign (regular DEMO face is deliberately excluded). The
|
|
* font is only consumed by the card canvas, so the family string travels to the
|
|
* client and `ensureCardFont` awaits `document.fonts.load` before measuring.
|
|
*/
|
|
export const brexterBold = localFont({
|
|
src: './fonts/Brexter-Bold.ttf',
|
|
weight: '700',
|
|
style: 'normal',
|
|
display: 'swap',
|
|
variable: '--font-brexter',
|
|
// Canvas-only face: preloading it on every page would be waste (the studio
|
|
// loads it on demand via `document.fonts.load`).
|
|
preload: false,
|
|
})
|