Skip to content
Browse blocks

A navy and cream hero behind fluted glass. A warm lamp drifts behind the reeds and follows the pointer, a click ripples the glass, and the next departures sit on a glass board along the bottom.

Used forFerries, trains and travel bookingHotels, cabins and staysStudios, spas and classesCalm consumer brands

Install with the shadcn CLI

$ npx shadcn@latest add @hairline-pro/reed-hero

A premium block, included with All-Access (see what’s inside). Add the @hairline-pro registry once, with the token from your account settings. Set it up

Where it’s used

  • Ferries, trains and travel booking

    The board shows the next departures with times and seats, the first one boarding.

  • Hotels, cabins and stays

    Use the board for tonight’s rooms: name, check-in and check-out, nights left.

  • Studios, spas and classes

    Next sessions with times and places left, booked from the hero.

  • Calm consumer brands

    Any product that wants a quiet, premium first screen with something live on it.

What it handles for you

A glass-and-light hero usually means a looping video or a heavy 3D scene behind the text, and a booking widget bolted on top.

Instead of wiring upbackground videothree.js scenebooking card widget
  1. Fluted glass in one shader

    The sea is drawn at a third of the resolution, then every reed refracts it at full resolution with a highlight and a shadow on its edges.

  2. A lamp you move

    A warm light drifts on its own and eases toward the pointer, so moving the mouse paints streaks of light through the reeds.

  3. Ripples on click

    A click anywhere off the controls sends a ripple both ways through the glass.

  4. Live board

    Departures, rooms or sessions on a glass board: route, two times, a status, the first one marked live. It scrolls sideways on phones.

  5. A bar from the same glass

    A live clock for your place and the links in a fluted pill; on phones, a glass sheet.

  6. Light on the battery

    The sea drifts at half the frame rate unless something moves, and stops when the hero is off screen or the tab is hidden.

Overview

Travel and hospitality heroes usually put a stock photo behind a search bar. Reed hero builds a calm night sea in WebGL2 and lays fluted glass over it: every reed is a small lens that squeezes and flips the light behind it. On load the reeds sweep in from the left. A warm lamp drifts behind the glass and follows the pointer, smeared into streaks by the reeds, and a click sends a ripple through them. A light headline sits on the left; the next departures (or bookings, or sessions) sit on a glass board along the bottom, the first one live. The bar carries the brand, a live clock for your place, and the links in a fluted pill.

States

arrival
The reeds sweep in from the left over the sea while the headline lines rise out of their slots and the board fades up.
lamp
The warm lamp eases toward the pointer and its light streaks through the reeds; it drifts again when the pointer leaves.
ripple
A click off the controls sends a ripple both ways through the glass.
board
Clicking a departure selects it; the first one shows a live status.
phone
Under 860px the links fold into a glass sheet; the board scrolls sideways.
reduced motion
One still frame with the reeds in place; no lamp and no ripples.

Usage

usage.tsx
import { ReedHero } from "@/components/reed-hero";<ReedHero  brand="Ferrylight"  navLinks={[{ label: "Sailings", href: "/sailings", active: true }, { label: "Islands", href: "/islands" }]}  navAction={{ label: "Book", href: "/book" }}  clockPlace="Oban"  clockZone="Europe/London"  headline={["The crossing is", "half the holiday."]}  subheadline="Every sailing to the islands in one timetable."  primaryAction={{ label: "Find a sailing", href: "/find" }}  departures={[    { route: "Oban → Craignure", depart: "07:40", arrive: "08:26", status: "Boarding", live: true },    { route: "Oban → Colonsay", depart: "09:15", arrive: "11:35", status: "38 seats" },  ]}/>

Depends on lucide-react, installed for you by the CLI along with the keyframes it needs.

Your face and your sea

ReedHero reads type from --rh-display and --rh-sans and every colour from --rh-* variables, the sea and the lamp included.

example.tsx
import { Inter_Tight } from "next/font/google";import { ReedHero } from "@/components/reed-hero";const face = Inter_Tight({ subsets: ["latin"], weight: ["300", "400", "500"] });<ReedHero  style={{    "--rh-display": face.style.fontFamily,    "--rh-sans": face.style.fontFamily,    "--rh-deep": "#141b24",    "--rh-mid": "#2f3d4a",    "--rh-glow": "#ffd9a8",  } as React.CSSProperties}  brand="Saltbox"  headline={["Small rooms,", "big windows."]}  subheadline="Six rooms above the harbour, booked straight from here."  primaryAction={{ label: "See tonight", href: "/tonight" }}  boardTitle="Tonight"  departures={[{ route: "Room 3 · Sea view", depart: "Fri 14", arrive: "Sun 16", status: "2 left", live: true }]}/>

Props

brand / logo
string / ReactNode
Wordmark and mark in the bar.
navLinks
{ label; href; active? }[]
Links in the fluted pill; the active one gets a dot.
navAction
{ label; href?; onClick? }
The cream button at the end of the pill.
clockPlace / clockZone
string
A live clock in the bar: the place’s name and its IANA time zone.
eyebrow
string
One plain line above the headline.
headline
string[]
Two or three lines; each rises out of its slot on load.
subheadline
string
One sentence.
primaryAction / secondaryAction
{ label; href?; onClick? }
Cream pill and a quiet link.
boardTitle= "Next departures"
string
Label on the board.
departures
{ route; depart; arrive; status; live?; href? }[]
Up to four entries on the board.

Accessibility and motion

  • Colours: --rh-deep, --rh-mid, --rh-haze, --rh-glow (the sea and the lamp), --rh-ink, --rh-ink-2, --rh-ink-3, --rh-glass, --rh-glass-edge, --rh-cream, --rh-on-cream, --rh-live. They never inherit your shadcn theme.
  • The canvas is capped at about 2.4 million pixels and the sea is drawn at a third of that; it runs at half the frame rate when nothing moves and stops off screen.
  • Needs WebGL2; without it the hero shows the deep colour and everything else works.
  • The canvas is aria-hidden; the bar, actions and board are links and buttons.

Requirements

React 19, Tailwind CSS v4 and shadcn/ui theme variables (any style, light and dark). Icons from lucide-react.

Source

Part of All-Access

Reed hero is 801 lines of finished work.

  • components/reed-hero.tsx505 lines
  • components/reed-hero-gl.ts296 lines

Installs with npx shadcn add @hairline-pro/reed-hero, in your theme, light and dark.

$159once, for everything

The 57 paid templates alone are $2,223 one by one.

  • Reed hero: the source and the CLI install
  • Every premium block: 20 today, and each one we add
  • All 65 Next.js templates, with live demos
  • Commercial license for unlimited client sites
Get All-Access

Guest checkout · Instant CLI token + downloads · 5 more templates and it goes to $169. Full refund within 14 days, until your first download.

Already have All-Access? Sign in to see the source