From 6a68a7832ac83da21363e4167a19866296fa0850 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 17 Aug 2026 19:36:03 +0000 Subject: [PATCH] Brand shrink to fit, added new fonts. --- AGENTS.md | 4 +- docs/design-principles.md | 7 +- frontend/src/SiteEditor.vue | 4 + frontend/src/assets/fonts/cause-OFL.txt | 93 +++++++++++++++++ frontend/src/assets/fonts/cause.woff2 | Bin 0 -> 43256 bytes frontend/src/assets/fonts/exo2-OFL.txt | 93 +++++++++++++++++ frontend/src/assets/fonts/exo2-italic.woff2 | Bin 0 -> 43048 bytes frontend/src/assets/fonts/exo2.woff2 | Bin 0 -> 40896 bytes frontend/src/assets/fonts/fonts.css | 4 + .../assets/fonts/unifrakturmaguntia-OFL.txt | 94 ++++++++++++++++++ .../src/assets/fonts/unifrakturmaguntia.woff2 | Bin 0 -> 26512 bytes frontend/src/assets/pagerite.css | 16 ++- frontend/src/pagerite.js | 26 +++++ 13 files changed, 332 insertions(+), 9 deletions(-) create mode 100644 frontend/src/assets/fonts/cause-OFL.txt create mode 100644 frontend/src/assets/fonts/cause.woff2 create mode 100644 frontend/src/assets/fonts/exo2-OFL.txt create mode 100644 frontend/src/assets/fonts/exo2-italic.woff2 create mode 100644 frontend/src/assets/fonts/exo2.woff2 create mode 100644 frontend/src/assets/fonts/unifrakturmaguntia-OFL.txt create mode 100644 frontend/src/assets/fonts/unifrakturmaguntia.woff2 diff --git a/AGENTS.md b/AGENTS.md index 8f07c74..9a2c1fc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -95,6 +95,8 @@ not for the public pages. See `docs/design-principles.md` for the design. - `frontend/src/` — the Vue editor and public-page entries. - `main.js` — Vue editor app entry, mounts PageEditor/SiteEditor. - `pagerite.js` — public page entry; runs fetch-navigation, scroll-reveal, + brand shrink-to-fit (the themed size is the maximum; JS reduces the + font-size so a long brand or narrow viewport still fits one line), code copy buttons, and the auth check: it fetches `/auth/api/validate?perm=pagerite:admin` and only then injects the 🖊️ edit pens (asset URLs from the `pagerite:editor-src`/`-css` meta tags); @@ -115,7 +117,7 @@ not for the public pages. See `docs/design-principles.md` for the design. an orange racing-tab nav clipped with a bezier `shape()`), `pygments.css`, and `fonts/` (self-hosted Source Sans 3/Source Serif 4/Fraunces/Literata/Cormorant/Playfair - Display/Inter/Montserrat/Fira Code + Display/Inter/Montserrat/Fira Code/Cause/Exo 2/UnifrakturMaguntia variable woff2). The `::view-transition*` block at the end of `pagerite.css` (from termotohtori.fi) is fragile — do not tweak. - Vite builds ES-module `.js` outputs; the backend renders `