Skip to content

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.

glass/section/hero-stack
Open ↗

Source

"use client";

import { ArrowRight, CheckCircle2, Clock, Video } from "lucide-react";
import { motion, useReducedMotion } from "motion/react";
import { cn } from "@/lib/utils";

export interface HeroStackProps {
  eyebrow?: string;
  title?: string;
  description?: string;
  primaryCta?: { label: string; href: string };
  secondaryCta?: { label: string; href: string };
  className?: string;
}

const GLASS = "da-stroke bg-da-surface backdrop-blur-da backdrop-saturate-150";

/** Split hero with a fanned 3D stack of three glass cards (recap, async video, tasks) that spreads apart on hover. */
export function HeroStack({
  eyebrow = "AI meeting notes",
  title = "Less meeting. More momentum.",
  description = "Halo turns every call into a recap, a 2-minute video for whoever missed it, and tasks in the tools your team already uses.",
  primaryCta = { label: "Start free", href: "#signup" },
  secondaryCta = { label: "Book a demo", href: "#demo" },
  className,
}: HeroStackProps) {
  const reduce = useReducedMotion();
  const cards = [
    { rotate: -8, x: -40, y: 30, z: 1 },
    { rotate: 5, x: 50, y: -10, z: 2 },
    { rotate: -1, x: 0, y: 0, z: 3 },
  ];

  return (
    <section className={cn("overflow-hidden py-20 text-da-fg sm:py-28", className)}>
      <div className="da-container grid items-center gap-16 lg:grid-cols-2">
        <div>
          <p className="text-sm font-semibold text-da-primary">{eyebrow}</p>
          <h1 className="mt-4 font-da-display text-[clamp(2.5rem,6vw,4.25rem)] leading-[1.03] font-semibold tracking-da-display text-balance">{title}</h1>
          <p className="mt-5 max-w-lg text-lg text-da-muted-fg">{description}</p>
          <div className="mt-8 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-da-fg px-6 font-semibold text-da-bg shadow-da-md hover:-translate-y-0.5"
            >
              {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 rounded-da-pill px-6 font-semibold shadow-da-sm hover:-translate-y-0.5",
                GLASS,
              )}
            >
              {secondaryCta.label}
            </a>
          </div>
        </div>

        <motion.div
          aria-hidden
          className="relative mx-auto h-[380px] w-full max-w-md [perspective:1200px]"
          initial="rest"
          whileHover={reduce ? undefined : "spread"}
          animate="rest"
        >
          {cards.map((c, i) => (
            <motion.div
              key={i}
              className={cn("absolute inset-x-6 top-10 rounded-da-lg p-5 shadow-da-lg", GLASS)}
              style={{ zIndex: c.z }}
              variants={{
                rest: { rotate: c.rotate, x: c.x * 0.6, y: c.y * 0.6, rotateX: 8 },
                spread: { rotate: c.rotate * 1.6, x: c.x * 1.4, y: c.y * 1.6, rotateX: 0 },
              }}
              transition={{ type: "spring", stiffness: 200, damping: 20 }}
            >
              {i === 0 && (
                <>
                  <p className="flex items-center gap-2 text-sm font-semibold">
                    <CheckCircle2 className="size-4 text-da-success" /> Tasks synced to Linear
                  </p>
                  <ul className="mt-3 space-y-2 text-sm text-da-muted-fg">
                    <li>☐ Draft offline mode RFC — Leo</li>
                    <li>☐ Ship pricing variant B — Sofia</li>
                    <li>☐ Open 2nd designer req — Amara</li>
                  </ul>
                </>
              )}
              {i === 1 && (
                <>
                  <p className="flex items-center gap-2 text-sm font-semibold">
                    <Video className="size-4 text-da-accent" /> Async update · 1:48
                  </p>
                  <div className="mt-3 aspect-video rounded-da-md bg-gradient-to-br from-da-primary/40 to-da-accent/40" />
                </>
              )}
              {i === 2 && (
                <>
                  <div className="flex items-center justify-between">
                    <p className="font-da-display text-lg font-semibold">Q4 roadmap sync</p>
                    <span className="inline-flex items-center gap-1 text-xs text-da-muted-fg">
                      <Clock className="size-3.5" /> 32 min
                    </span>
                  </div>
                  <p className="mt-3 text-xs font-semibold text-da-primary">AI recap</p>
                  <ul className="mt-2 space-y-1.5 text-sm">
                    <li>• Offline mode moves to November.</li>
                    <li>• Pricing variant B: +18% trial starts.</li>
                    <li>• Second designer approved.</li>
                  </ul>
                  <div className="mt-4 flex -space-x-2">
                    {["from-da-primary to-da-accent", "from-da-accent to-da-success", "from-da-danger to-da-primary", "from-da-warning to-da-danger"].map(
                      (t) => (
                        <span key={t} className={cn("size-7 rounded-full bg-gradient-to-br ring-2 ring-da-bg", t)} />
                      ),
                    )}
                  </div>
                </>
              )}
            </motion.div>
          ))}
        </motion.div>
      </div>
    </section>
  );
}

export default HeroStack;

modules/glass/section/hero-stack/index.tsx

Props

PropTypeDefaultDescription
eyebrow / title / descriptionstring—Copy.
primaryCta / secondaryCta{ label, href }—Actions.
classNamestring—Classes.

Other hero variants in Glass

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.

BrutalistHero

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.

BrutalistHero

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.

BrutalistHero

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.

BrutalistHero

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.

MinimalHero

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.

MinimalHero

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.

MinimalHero

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.

MinimalHero

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.

Mono CleanHero

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.

Mono CleanHero

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.

Mono CleanHero

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.

Mono CleanHero

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.

Neo CorporateHero

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).

Neo CorporateHero

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.

Neo CorporateHero

Hero Proof

Centered proof-first hero on a faint grid: announcement badge, headline, CTAs, a four-stat bordered strip and a customer wordmark row.

Neo CorporateHero

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.

Organic SoftHero

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.

Organic SoftHero

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.

Organic SoftHero

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.

Organic SoftHero

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.

Soft FlatHero

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).

Soft FlatHero

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.

Soft FlatHero

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.

Soft FlatHero