Loads the light logo after the page load

Lazy loading saved its bytes during page load, but left the logo empty for a
moment when navigating to the homepage on a wide screen. Also adds the second
unit's code summary and the shared docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 01:56:13 +01:00
co-authored by Claude Opus 5.5
parent b965b8a227
commit b5fd83256d
14 changed files with 176 additions and 37 deletions
@@ -61,7 +61,7 @@ Text alternative: client.tsx starts Sentry and hydrates the prerendered page (pr
### components/NavigationBar/
- **Purpose**: Site header and navigation
- **Responsibilities**: Fixed header, transparent over the hero on desktop until scrolled; shrinks after scroll; logo links home; desktop links and full-screen mobile menu from `mainNav`
- **Responsibilities**: Fixed header, transparent over the hero on desktop until scrolled; shrinks after scroll; logo links home (the light logo is lazy off `/` until the page has loaded); desktop links and full-screen mobile menu from `mainNav`; without JavaScript a `<noscript>` link opens the menu through `:target` CSS (`components/NoScript/`, display fallbacks)
- **Menu state**: one `useReducer(navMenuReducer)` (`lib/navMenuState.ts`) holds the mobile menu, its group, the desktop submenu and the focus request, so the hamburger, the panels and the route listener cannot disagree; `routeChanged` closes everything (also on browser back)
- **Type**: Application
@@ -108,7 +108,7 @@ Text alternative: client.tsx starts Sentry and hydrates the prerendered page (pr
### hooks/
- **Purpose**: Shared behaviour
- **Responsibilities**: `useRouteFocus`, `useScrolledPast`, `useInView` (IntersectionObserver), `usePageLoaded` (after the load event), `useReveal` (reveal once, immediately with reduced motion), `useHydrated`, `useEmailAddress` (prerendering: the first render equals the prerendered HTML)
- **Responsibilities**: `useRouteFocus`, `useScrolledPast`, `useInView` (IntersectionObserver), `usePageLoaded` (after the load event), `useReveal` (visible in the first render; a layout effect hides an element wholly below the viewport, which fades in once; never with reduced motion), `useHydrated`, `useEmailAddress` (prerendering: the first render equals the prerendered HTML)
- **Type**: Application
### seo.ts, sitePages.ts, sitemap.ts