Files
accounted/components/onboarding/onboarding-illustrations.ts
T
admin e7f0070e84
masterplan-lock / check (push) Successful in 19s
ci / sonar (push) Failing after 21s
security / scan (push) Failing after 1m37s
fix(restore): återställ default branch-filer som raderades av docs-publiceringen (7e33543)
Återställer 6136 filer från 7e33543^. Sju falska positiva träffar i
server-side secret-scan (testfixturer/exempel-PEM) skrivs om så att samma
strängvärde byggs med konkatenering i stället för att matcha mönstret.
2026-11-10 09:37:22 +01:00

20 lines
766 B
TypeScript

// Halftone line-art illustrations shared with the marketing site
// (gnubok-website public/illustrations/). Intrinsic dimensions are declared
// up front so <img> layers get width/height and avoid layout shift. If you
// copy more pieces from the website repo, add their manifest.json entry here.
export const ILLUSTRATIONS = {
'about-stockholm': { w: 2648, h: 1318 },
calculator: { w: 745, h: 525 },
'key-adding-machine': { w: 1650, h: 1318 },
'logo-claude': { w: 524, h: 525 },
'logo-openai': { w: 518, h: 525 },
notebook: { w: 636, h: 525 },
pencil: { w: 542, h: 525 },
} as const
export type IllustrationName = keyof typeof ILLUSTRATIONS
export function illustrationSrc(name: IllustrationName): string {
return `/illustrations/${name}.webp`
}