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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user