Commit graph

2 commits

Author SHA1 Message Date
Maaxxs
c17eee49cd Add login link to maintenance page, lock navbar to dark theme, link admin logo home
- MaintenanceNotice: the full-screen maintenance view now has a small
  "Anmelden"/"Log in" link fixed in the bottom-right corner, so a logged-out
  admin can reach /admin/login (and from there, maintenance-bypass access)
  without knowing the URL by heart.
- Navbar: wrapped in a permanently "dark" container so every dark: utility
  in it (background, borders, logo variant, icon colors, language-switcher
  dropdown) always applies regardless of the visitor's actual light/dark
  preference, per customer request. The real theme toggle still controls
  the rest of the site as before - only the navbar's own appearance is
  pinned. The portal-rendered mobile flyout menu is unaffected (it already
  had its own fixed light styling, independent of the toggle).
- AdminLayout: the dashboard's company logo (desktop sidebar and mobile top
  bar) is now a link to "/" instead of inert markup.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 00:25:09 +02:00
Maaxxs
17f331c35e Add global font selection with per-section override
Extracts the system-font list already used by RichTextEditor for mail
templates into a shared hifi-src/src/utils/fontOptions.js (frontend) and
App\Support\Fonts (backend), so it can drive two new pickers with a
consistent set of options.

Global: a new app_settings.site_font setting, exposed as an admin dropdown
in WebsiteSettings.jsx. tailwind.config.js now defines font-sans as
var(--site-font, ui-sans-serif, system-ui, sans-serif); Tailwind's
preflight already applies font-sans globally to <html>, so this alone
makes the chosen font cascade to virtually every text on the public site
without touching individual components. PublicLayout.jsx sets the CSS
variable from the fetched site settings.

Per-section override: a new home_sections.font_family column, editable
per homepage section in HomeSections.jsx ("Standard" = inherit the global
font). Home.jsx applies it as an inline style on each section's wrapper,
which naturally wins over the CSS-variable-driven global default when
set. Reveal.jsx gained an optional style prop (merged into its own
transform/opacity style) so the four flowing-text sections, which use it
directly as their wrapper, can receive the override too.

Verified locally: migration adds both columns without touching existing
rows, and both settings round-trip correctly through the database.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 00:12:01 +02:00