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.
glass/section/hero-meshSource
import { ArrowRight, CheckCircle2, Play, Sparkles } from "lucide-react";
import { cn } from "@/lib/utils";
export interface HeroMeshProps {
badge?: string;
title?: string;
highlight?: string;
description?: string;
primaryCta?: { label: string; href: string };
secondaryCta?: { label: string; href: string };
meeting?: {
title: string;
time: string;
participants: string[];
summary: string[];
actions: { text: string; owner: string }[];
};
className?: string;
}
const GLASS = "da-stroke bg-da-surface backdrop-blur-da backdrop-saturate-150";
const AVATAR_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"];
export function HeroMesh({
badge = "New · Halo Recaps for Zoom and Google Meet",
title = "Every meeting,",
highlight = "summarized before you leave the call.",
description = "Halo joins your calls, writes crisp notes, and turns decisions into tasks in Linear, Jira or Notion. Replace status meetings with 2-minute async video updates.",
primaryCta = { label: "Start free", href: "#signup" },
secondaryCta = { label: "Watch the 90s demo", href: "#demo" },
meeting = {
title: "Q4 roadmap sync",
time: "Today · 32 min",
participants: ["Amara Diallo", "Leo Park", "Sofia Rossi", "Noah Klein"],
summary: ["Mobile offline mode moves to November.", "Pricing page test wins: +18% trial starts.", "Hiring: second designer approved."],
actions: [
{ text: "Draft offline mode RFC", owner: "Leo" },
{ text: "Ship pricing variant B to 100%", owner: "Sofia" },
],
},
className,
}: HeroMeshProps) {
return (
<section className={cn("relative overflow-hidden pt-16 pb-24 text-da-fg sm:pt-24", className)}>
<div className="da-container grid items-center gap-16 lg:grid-cols-[1.05fr_1fr]">
<div>
<p className={cn("inline-flex items-center gap-2 rounded-da-pill px-3 py-1.5 text-[13px] font-medium shadow-da-sm", GLASS)}>
<Sparkles aria-hidden className="size-3.5 text-da-primary" />
{badge}
</p>
<h1 className="mt-6 font-da-display text-[clamp(2.5rem,5.5vw,4.25rem)] leading-[1.04] font-semibold tracking-da-display text-balance">
{title}{" "}
<span className="bg-gradient-to-r from-da-primary to-da-accent bg-clip-text text-transparent">{highlight}</span>
</h1>
<p className="mt-6 max-w-xl text-lg leading-relaxed text-da-muted-fg">{description}</p>
<div className="mt-9 flex flex-wrap gap-3">
<a
href={primaryCta.href}
className="da-focus da-transition group inline-flex h-12 items-center gap-2 rounded-da-pill bg-gradient-to-r from-da-primary to-da-accent px-6 font-semibold text-da-primary-fg shadow-da-md hover:-translate-y-0.5 hover:shadow-da-lg"
>
{primaryCta.label}
<ArrowRight aria-hidden className="da-transition size-4 group-hover:translate-x-0.5" />
</a>
<a
href={secondaryCta.href}
className={cn("da-focus da-transition inline-flex h-12 items-center gap-2.5 rounded-da-pill pr-6 pl-2 font-semibold shadow-da-sm hover:-translate-y-0.5", GLASS)}
>
<span className="grid size-8 place-items-center rounded-full bg-da-fg text-da-bg">
<Play aria-hidden className="size-3.5 translate-x-px fill-current" />
</span>
{secondaryCta.label}
</a>
</div>
</div>
{/* Product composition: layered glass cards */}
<div className="relative mx-auto w-full max-w-lg sm:mb-24 lg:mx-0">
<div aria-hidden className="absolute -inset-10 -z-10 rounded-full bg-gradient-to-tr from-da-primary/40 via-da-accent/25 to-transparent blur-3xl" />
<article className={cn("rounded-da-lg p-6 shadow-da-lg", GLASS)} aria-label={`Meeting recap: ${meeting.title}`}>
<div className="flex items-start justify-between gap-4">
<div>
<p className="font-da-mono text-xs text-da-muted-fg">{meeting.time}</p>
<h2 className="mt-1 font-da-display text-xl font-semibold tracking-da-display">{meeting.title}</h2>
</div>
<ul className="flex -space-x-2" aria-label="Participants">
{meeting.participants.map((p, i) => (
<li key={p} title={p} className={cn("grid size-8 place-items-center rounded-full bg-gradient-to-br text-[11px] font-semibold text-white ring-2 ring-da-bg", AVATAR_TONES[i % AVATAR_TONES.length])}>
<span aria-hidden>{p.split(" ").map((w) => w[0]).join("")}</span>
<span className="sr-only">{p}</span>
</li>
))}
</ul>
</div>
<div className="mt-5 rounded-da-md bg-da-surface-2 p-4">
<p className="flex items-center gap-1.5 text-xs font-semibold text-da-primary">
<Sparkles aria-hidden className="size-3.5" /> AI summary
</p>
<ul className="mt-2 space-y-1.5 text-sm">
{meeting.summary.map((s) => (
<li key={s} className="flex gap-2">
<span aria-hidden className="mt-2 size-1 shrink-0 rounded-full bg-da-fg/50" />
{s}
</li>
))}
</ul>
</div>
<ul className="mt-4 space-y-2 text-sm">
{meeting.actions.map((a) => (
<li key={a.text} className="flex items-center gap-2.5">
<CheckCircle2 aria-hidden className="size-4 shrink-0 text-da-success" />
<span className="flex-1">{a.text}</span>
<span className="rounded-da-pill bg-da-muted px-2 py-0.5 text-xs font-medium text-da-muted-fg">@{a.owner}</span>
</li>
))}
</ul>
</article>
{/* Floating async update card */}
<div aria-hidden className={cn("absolute -bottom-28 -left-10 hidden w-56 rounded-da-lg p-3 shadow-da-lg sm:block", GLASS, "glass-float")}>
<div className="relative aspect-video overflow-hidden rounded-da-md bg-gradient-to-br from-da-primary/80 via-da-accent/60 to-da-danger/50">
<span className="absolute inset-0 grid place-items-center">
<span className="grid size-9 place-items-center rounded-full bg-white/30 backdrop-blur">
<Play className="size-4 translate-x-px fill-white text-white" />
</span>
</span>
<span className="absolute right-2 bottom-2 rounded bg-black/40 px-1 font-da-mono text-[10px] text-white">1:48</span>
</div>
<p className="mt-2 text-xs font-semibold">Weekly update · Design</p>
<p className="text-[11px] text-da-muted-fg">Sofia · 3 reactions</p>
</div>
{/* Recording pill */}
<p aria-hidden className={cn("absolute -top-5 right-4 flex items-center gap-2 rounded-da-pill px-3 py-1.5 text-xs font-semibold shadow-da-md", GLASS, "glass-float [animation-delay:-3s]")}>
<span className="size-2 animate-pulse rounded-full bg-da-danger motion-reduce:animate-none" /> Recording · 12:04
</p>
</div>
</div>
<style href="glass-float" precedence="default">{`
@keyframes glass-float { 0%,100% { translate: 0 0 } 50% { translate: 0 -8px } }
.glass-float { animation: glass-float 6s ease-in-out infinite }
@media (prefers-reduced-motion: reduce) { .glass-float { animation: none } }
`}</style>
</section>
);
}
export default HeroMesh;
modules/glass/section/hero-mesh/index.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| badge | string | — | Announcement pill text. |
| title | string | "Every meeting," | First part of the h1. |
| highlight | string | — | Second part of the h1, rendered as gradient text. |
| description | string | — | Supporting paragraph. |
| primaryCta / secondaryCta | { label: string; href: string } | — | Gradient CTA and frosted play-button CTA. |
| meeting | { title, time, participants: string[], summary: string[], actions: { text, owner }[] } | — | Content of the main recap card. |
| className | string | — | Classes on the <section>. |
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 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 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.
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.