larpaso-website/admin/lib/fonts.js
Pascal Scholz 93178a24e3 Add login-protected admin editor for content and design
Adds a self-service editor at admin.larpaso.de so texts, images, links,
Impressum/Datenschutz, fonts, font sizes and colors can be changed without
a developer. All homepage/legal content moves into content/site.json and
a new content/theme.json drives every CSS color/font/size token; the
Astro pages read from these at build time.

The admin/ service (Node/Express) provides bcrypt+session login with
rate limiting, a schema-driven form UI (including a hex/RGB/alpha color
picker), image upload, and a publish action that runs the Astro build
and republishes into a volume shared with the nginx website container -
so edits go live without redeploying that container.

See DEPLOYMENT_ADMIN.md for the server-side setup steps.
2026-09-21 21:35:09 +02:00

25 lines
630 B
JavaScript

/**
* Curated font list for the "Design" tab's font pickers. Kept in sync by
* hand with src/lib/fonts.ts (duplicated because the Astro site is ESM/TS
* and this backend is CommonJS) — only the `name` values matter here, the
* astro site owns the fallback stacks and Google Fonts URL building.
*/
const FONT_NAMES = [
'Playfair Display',
'Lora',
'Merriweather',
'Libre Baskerville',
'DM Serif Display',
'Georgia (Systemschrift)',
'Inter',
'Roboto',
'Open Sans',
'Poppins',
'Montserrat',
'Nunito',
'Work Sans',
'Source Sans 3',
'System UI (Systemschrift)',
];
module.exports = { FONT_NAMES };