Hero Waitlist
Minimal waitlist hero with a central glow: badge, big headline, a glass pill email form with gradient submit (pending, success, error states) and a stack of gradient avatars with the waitlist count.
glass/section/hero-waitlistSource
"use client";
import { useId, useState, type FormEvent } from "react";
import { ArrowRight, Check } from "lucide-react";
import { cn } from "@/lib/utils";
export interface HeroWaitlistProps {
badge?: string;
title?: string;
description?: string;
placeholder?: string;
buttonLabel?: string;
onJoin?: (email: string) => void | Promise<void>;
joined?: number;
className?: string;
}
const GLASS = "da-stroke bg-da-surface backdrop-blur-da backdrop-saturate-150";
const TONES = [
"from-da-primary to-da-accent",
"from-da-accent to-da-success",
"from-da-danger to-da-primary",
"from-da-warning to-da-danger",
"from-da-success to-da-primary",
];
/** Minimal waitlist hero: big headline, pill email form with a gradient button, success state and a stack of avatars with the waitlist count. */
export function HeroWaitlist({
badge = "Private beta · Halo for Slack huddles",
title = "Your huddles, finally remembered.",
description = "Halo quietly joins Slack huddles and posts a 5-line recap in the channel when you hang up. Join the beta — we’re letting teams in every Monday.",
placeholder = "you@company.com",
buttonLabel = "Join the waitlist",
onJoin,
joined = 3214,
className,
}: HeroWaitlistProps) {
const id = useId();
const [state, setState] = useState<"idle" | "pending" | "done" | "error">("idle");
const submit = async (e: FormEvent<HTMLFormElement>) => {
e.preventDefault();
const email = String(new FormData(e.currentTarget).get("email"));
setState("pending");
try {
await onJoin?.(email);
setState("done");
} catch {
setState("error");
}
};
return (
<section className={cn("relative grid min-h-[640px] place-items-center overflow-hidden px-4 py-24 text-da-fg", className)}>
<div aria-hidden className="absolute top-1/2 left-1/2 -z-0 size-[520px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-da-primary/25 blur-[120px]" />
<div className="relative flex max-w-2xl flex-col items-center text-center">
<p className={cn("rounded-da-pill px-3 py-1.5 text-sm font-medium shadow-da-sm", GLASS)}>{badge}</p>
<h1 className="mt-6 font-da-display text-[clamp(2.5rem,7vw,4.5rem)] leading-[1.02] font-semibold tracking-da-display text-balance">{title}</h1>
<p className="mt-5 max-w-lg text-lg text-pretty text-da-muted-fg">{description}</p>
{state === "done" ? (
<p role="status" className={cn("mt-10 inline-flex items-center gap-2 rounded-da-pill px-5 py-3 font-semibold shadow-da-md", GLASS)}>
<span className="grid size-6 place-items-center rounded-full bg-da-success text-da-success-fg">
<Check aria-hidden className="size-4" />
</span>
You’re on the list — see you Monday.
</p>
) : (
<form onSubmit={submit} className={cn("mt-10 flex w-full max-w-md items-center gap-1 rounded-da-pill p-1.5 shadow-da-md", GLASS)}>
<label htmlFor={id} className="sr-only">
Work email
</label>
<input
id={id}
name="email"
type="email"
required
autoComplete="email"
placeholder={placeholder}
aria-invalid={state === "error"}
className="da-focus h-11 min-w-0 flex-1 rounded-da-pill bg-transparent px-4 text-[15px] outline-none placeholder:text-da-muted-fg"
/>
<button
type="submit"
disabled={state === "pending"}
className="da-focus da-transition group inline-flex h-11 shrink-0 items-center gap-1.5 rounded-da-pill bg-gradient-to-r from-da-primary to-da-accent px-5 text-sm font-semibold text-da-primary-fg shadow-da-sm hover:shadow-da-md disabled:opacity-70"
>
<span className="max-sm:sr-only">{state === "pending" ? "Joining…" : buttonLabel}</span>
<ArrowRight aria-hidden className="da-transition size-4 group-hover:translate-x-0.5" />
</button>
</form>
)}
{state === "error" && (
<p role="alert" className="mt-3 text-sm text-da-danger">
Something went wrong — please try again.
</p>
)}
<div className="mt-8 flex items-center gap-3">
<span aria-hidden className="flex -space-x-2">
{TONES.map((t, i) => (
<span key={i} className={cn("size-8 rounded-full bg-gradient-to-br ring-2 ring-da-bg", t)} />
))}
</span>
<p className="text-sm text-da-muted-fg">
<span className="font-semibold text-da-fg">{joined.toLocaleString("en-US")}</span> teams already waiting
</p>
</div>
</div>
</section>
);
}
export default HeroWaitlist;
modules/glass/section/hero-waitlist/index.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| badge / title / description / placeholder / buttonLabel | string | — | Texts. |
| onJoin | (email: string) => void | Promise<void> | — | Throw to show the error. |
| joined | number | 3214 | Count shown. |
| className | string | — | Classes. |
Other hero variants in Glass
Hero Centered
Centered hero over the mesh: frosted badge, headline with gradient-text ending, gradient + frosted CTAs, then a wide glass ‘live call’ window with four video tiles, live transcript and an AI capture chip.
Hero Mesh
Split hero over the glass mesh: frosted announcement pill, headline with gradient-text second half, gradient + frosted CTAs, and a layered composition of glass cards (AI meeting recap, floating video update, recording pill) gently bobbing.
Hero Stack
Split hero with a fanned 3D stack of three glass cards (AI recap, async video, synced tasks) tilted in perspective, spreading apart with a spring on hover.
Hero in other art directions
Hero Poster
Poster-style centered hero: gigantic stacked headline alternating solid and outlined words, colored feature stickers scattered around it, two pressable CTAs and a ruled wordmark strip of customer logos.
Hero Signup
Conversion hero with the signup form in the fold: headline with a blue highlighted phrase, boxed email capture with pending/success states, checkmark reassurance list and three staggered colored step cards.
Hero Stacked
Split hero with a huge stacked uppercase headline (one line boxed in yellow), two pressable CTAs, a stats strip and a changelog window mock with a rotated sticker.
Hero Terminal
Developer-first hero: full-width uppercase headline, copyable install command button, and an ink terminal window that replays a git merge → publish session line by line with a blinking yellow cursor.
Hero Cli
Developer-first centered hero on a dotted grid: version badge, headline, an install command field with copy-to-clipboard, a docs button and a terminal window showing the command output.
Hero Glow
Centered hero with announcement pill, gradient-ink headline, two CTAs, a single soft indigo glow over a masked hairline grid, and an HTML product window (incident list) fading out at the bottom.
Hero Metrics
Editorial left-aligned hero with an oversized tight headline, copy and CTAs on one baseline, a row of three hairline-separated mono metrics and a text wordmark strip of customers.
Hero Split
Two-column hero: eyebrow, headline, copy, checklist and two CTAs on the left; on the right a hairline card showing a live incident timeline with colored status dots and a resolved badge.
Hero Browser
Split hero: copy on the left, a large monochrome browser frame on the right showing a mock studio portfolio (nav, giant name, image grid with mono captions) and a signal-dot “Published” badge.
Hero Giant
Type-led hero: a mono label, an enormous tightly-tracked headline across the full width, then a 12-col row with copy + ink button on the left and mono key facts on the right, over a full-bleed gray image frame with caption.
Hero Grid
Visible-grid hero: hairline 12-column guides behind the content, headline + copy + ink CTA in the left columns, and a ruled index list of featured templates on the right whose rows invert on hover.
Hero Statement
Quiet manifesto hero: a single large statement set in the display face with generous line height and an orange signal dot after a key word, bottom-anchored mono footnotes and a scroll cue; nearly full-height.
Hero Band
Stripe-style hero on a deep blue gradient band with a slanted bottom edge: headline and CTAs on the left, a stacked pair of payment UI cards (invoice + payment success) on the right.
Hero Dashboard
Split hero: eyebrow, strong headline, copy, blue + bordered CTAs and a compliance line; on the right a finance dashboard mock (KPIs, bar chart, invoice table).
Hero Demo
Enterprise demo-request hero: copy + check bullets + quote on the left, a bordered lead form (name, work email, company, size, submit) with validation-ready fields and success state on the right.
Hero Proof
Centered proof-first hero on a faint grid: announcement badge, headline, CTAs, a four-stat bordered strip and a customer wordmark row.
Hero Arch
Split hero: eyebrow with sprout icon, large serif headline with an italic sage highlight, calm copy, pill CTAs; on the right a tall arch-topped illustration (sun + rolling hills) with a floating stat chip.
Hero Centered
Centered serif hero floating over two soft organic blobs (sage and clay), a hand-drawn underline under the italic highlight, pill CTAs and a row of three calm stats.
Hero Editorial
Magazine-style hero: oversized serif headline across the width with an italic line, a collage of three organic shapes (arch, circle with leaf, pebble) and a pull-quote column; scroll cue.
Hero Footprint
Product hero: copy + CTAs on the left, a soft rounded footprint card on the right with a donut chart of emissions by source, legend with percentages and a gentle “biggest lever” tip.
Hero Illustrated
Split hero: butter badge, rounded headline, pill CTAs and avatar-dot social proof on the left; a flat pastel kanban illustration made of shapes (columns, tinted cards, circles) with a floating “done” chip on the right.
Hero Planner
Centered hero with a big rounded headline and pill CTAs above a full-width weekly planner mock-up: five day columns with date numbers and pastel task chips (fewer columns on small screens).
Hero Signup
Sign-up hero on a large butter panel: headline with a peach marker-highlighted phrase, white pill email form with success state, check perks and a 5-star rating line.
Hero Tiles
Hero with a left headline block and ink CTA next to a 2×2 grid of pastel feature tiles (peach, mint, lavender, butter) with white icon squares, the right column offset downward.