Block 278 of 297
Wave Lines Hero
Hero over a ribbon of fine, undulating parallel lines with a two-color gradient, drawn live on the GPU.
- Puck key
- WaveLinesHeroBlock
- Export
- waveLinesHeroBlock
- React component
- <WaveLinesHero />
- Files
- components/puck/wave-lines-hero-block.tsx
- components/puck/wave-lines-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 hero set over a ribbon of fine parallel lines that bend and fan as they travel, shaded from one color on the left to another on the right. The scrim runs bottom to top on phones and left to right on desktop, so copy always sits on the darkest part. Line density and three height options are editor settings.
- A university or college admissions landing page
- Research institute, lab or technology program home pages
- Annual conference or summit pages that need a clean, modern opener
Writing the content
- Keep Background color dark; all copy is white.
- Lines offers Airy, Balanced or Fine. Fine reads best on Tall or Full screen heights, where the ribbon has room.
- Choose Line color (left) and Line color (right) with clear contrast between them so the gradient is visible.
- Leave the Eyebrow or Secondary link text blank to hide either one.
Accessibility
- The line canvas is aria-hidden and the copy is plain server-rendered HTML.
- Reduced motion shows one settled frame; otherwise animation pauses off screen and in background tabs (WCAG 2.2.2).
- Both links have a 44px minimum height and a white focus outline; Heading level runs from H1 to H4.
Customizing the code
- Requires vgpu and wave-lines-hero.client.tsx. The ribbon's path is the spine line in fs_main (0.66 - 0.42 * uv.x), and hw = 0.07 sets line thickness.
- Adjust the scrim classes (from-black/70 via-black/30, and the lg: left-to-right version) if your colors need more or less darkening.
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
- Background colortext
- Line color (left)text
- Line color (right)text
- Linesradio
- Motionradio
- Heightselect