Skip to content

docs: animate the landing page hero - #299

Merged
ChristopherPHolder merged 3 commits into
mainfrom
docs/hero-scene
Nov 3, 2026
Merged

ChristopherPHolder merged 3 commits into
mainfrom
docs/hero-scene

Conversation

@ChristopherPHolder

@ChristopherPHolder ChristopherPHolder commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

What

The landing page hero repeated the static logo in a card. It now shows the saucer flying over the three kinds of step a flow is made of: Navigation, Timespan and Snapshot. It pauses above each one while a beam lights the card and its ring fills, then swoops back and starts again.

  • HeroScene component: pure CSS keyframes, no JavaScript, so server and client markup match and the home route still prerenders. Every timeline shares one 14 s duration; each target is shifted with a negative delay so it lights exactly as the saucer arrives.
  • Step icons: Lighthouse's ring, clock and aperture redrawn as strokes, with a one-word note under each step (page load, interaction, page state).
  • Theming: colours, spacing, radii and shadows come from the design tokens and dark mode follows the theme variables. Under prefers-reduced-motion the saucer parks above the row with every step lit.
  • Layout: the hero's second column widens to 360px, 420px above 1100px. It stays hidden below 900px, where the header logo is enough.

Includes the commits from #298 (the SVG mark the scene reuses); merging this lands both.

Checked

  • Each stop and the swoop frame in light mode, the stops in dark mode, no console errors.
  • nx build docs prerenders the home route with the scene.

The 170px PNG mark blurred at hero size and on high-density screens, its
black outline vanished in dark mode, and on mobile the hero repeated the
logo right under the header.

- Rebuild the mark as vector art from the PNG: the outline is the line
  work's centre line refitted as even-width strokes, the portholes and
  antenna tip are true rings, and the dome fills are smoothed palette
  regions. 26 KB, 11 KB gzipped.
- Draw it with <svg><use> so the outline (stroke) and body (color)
  follow new --logo-ink / --logo-paper tokens, light and dark.
- Show the hero mark only on wide screens, aligned with the top of the
  hero copy.
The docs build needs Node >=22.19 (see engines). On 22.18 Angular's route
extraction crashes with "Cannot read properties of undefined (reading
'exports')", so let nvm pick up a current Node 22.
The hero repeated the static logo in a card. It now shows the saucer
flying over the three kinds of step a flow is made of: navigation,
timespan and snapshot. It pauses above each one while a beam lights the
card and its ring fills, then swoops back to start again.

- New HeroScene component, pure CSS keyframes so server and client
  markup match and the home route still prerenders. Every timeline
  shares one duration; each target is shifted with a negative delay so
  it lights exactly as the saucer arrives.
- Lighthouse's step icons (ring, clock, aperture) redrawn as strokes,
  with a one-word note under each step: page load, interaction, page
  state.
- Colours, spacing, radii and shadows come from the design tokens, dark
  mode follows the theme variables, and under prefers-reduced-motion the
  saucer parks above the row with every step lit.
- The hero's second column widens to 360px, 420px above 1100px. It stays
  hidden below 900px, where the header logo is enough.
@ChristopherPHolder
ChristopherPHolder changed the base branch from docs/crisp-logo to main November 3, 2026 21:59
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

❗❗❗ report generated by this PR ❗❗❗

☕ Order Coffee ☕

Date/Time: 2026-11-03 22:00

Step Name Gather Mode Performance Accessibility Best Practices Seo Agentic Browsing
🧭 Navigate to coffee cart navigation 84 93 100 83 50
☕ Select coffee timespan 17/17 - 8/8 - -
✔ Coffee selected snapshot Ø 1/1 16/18 4/4 3/5 1/3
🛒 Checkout order timespan 19/19 - 8/8 - -
🧾 Order checked out snapshot Ø 1/1 19/20 4/4 3/5 1/3
💌 Submit order timespan 18/18 - 8/8 - -
📧 Order submitted snapshot Ø 1/1 20/22 4/4 3/5 1/3
🧭 Navigate to github navigation 93 92 100 83 50

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

☕ Order Coffee ☕

Date/Time: 2026-11-03 22:01

Step Name Gather Mode Performance Accessibility Best Practices Seo Agentic Browsing
🧭 Navigate to coffee cart navigation 86 93 100 83 50
☕ Select coffee timespan 17/17 - 8/8 - -
✔ Coffee selected snapshot Ø 1/1 16/18 4/4 3/5 1/3
🛒 Checkout order timespan 19/19 - 8/8 - -
🧾 Order checked out snapshot Ø 1/1 19/20 4/4 3/5 1/3
💌 Submit order timespan 18/18 - 8/8 - -
📧 Order submitted snapshot Ø 1/1 20/22 4/4 3/5 1/3
🧭 Navigate to github navigation 97 92 100 83 50

@ChristopherPHolder
ChristopherPHolder merged commit 67796db into main Nov 3, 2026
4 checks passed
@ChristopherPHolder
ChristopherPHolder deleted the docs/hero-scene branch November 3, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant