Block 268 of 297
Aurora Hero
A hero over slow, GPU-rendered aurora curtains in your brand colors, with a matching CSS fallback.
- Puck key
- AuroraHeroBlock
- Export
- auroraHeroBlock
- React component
- <AuroraHero />
- Files
- components/puck/aurora-hero-block.tsx
- components/puck/aurora-hero.client.tsx
- Dependencies
- vgpu
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
A full-width hero with eyebrow, heading, body and two links set low over slow, shifting aurora ribbons drawn on the GPU in three colors you choose. A darkening gradient at the bottom keeps the white copy readable. Browsers without WebGPU get a static CSS gradient built from the same colors, so the hero still looks finished.
- A home page opening for a park, observatory or outdoor venue
- Event or night-program landing pages that want an atmospheric first screen
- A campaign page where the copy is short and the mood carries the message
Writing the content
- Keep the Sky color dark; the text is always white and the ribbons blend down into the sky behind the copy.
- Pick ribbon colors that differ in hue, not only brightness, or the bands merge.
- Leave the Eyebrow or Secondary link text blank to hide them; both buttons disappear if neither label is set.
- Height offers Medium, Tall or Full screen; Full screen uses the small-viewport unit so it fits phones with browser bars showing.
Accessibility
- The canvas is aria-hidden and decorative; all copy and links are server-rendered HTML.
- Visitors with reduced motion set see one still frame, and the animation stops when the hero scrolls off screen or the tab is hidden (WCAG 2.2.2).
- Heading level runs H1 to H4, and both links have a white focus ring and 44px minimum height.
Customizing the code
- Requires the vgpu package and the aurora-hero.client.tsx "use client" island. Ribbon width, position and rays are set in the WGSL loop in fs_main, and the from-black/50 overlay darkens the area under the copy.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtextarea
- Heading levelselect
- Bodytextarea
- Primary button texttext
- Primary button linktext
- Secondary link texttext
- Secondary linktext
- Sky colortext
- Ribbon color 1text
- Ribbon color 2text
- Ribbon color 3text
- Motionradio
- Heightselect