Skip to content

Hero Chat

Centered dark hero: model badge, headline ending in a periwinkle→pink gradient, two CTAs, then a chat window mock-up (user pill, assistant answer with ‘Thought for 2 seconds’ row and source chips, composer) lit by the Nocturne glow.

nocturne/section/hero-chat
Open ↗

Source

import { ArrowRight, ArrowUp, ChevronDown, Paperclip, Sparkles } from "lucide-react";
import { cn } from "@/lib/utils";

export interface HeroChatProps {
  badge?: string;
  title?: string;
  highlight?: string;
  description?: string;
  primaryCta?: { label: string; href: string };
  secondaryCta?: { label: string; href: string };
  question?: string;
  answer?: string[];
  className?: string;
}

/** Centered dark hero: model badge, headline with a gradient ending, two CTAs, then a chat window mock-up lit by the Nocturne glow. */
export function HeroChat({
  badge = "New — Nova 3 with team memory",
  title = "Ask anything.",
  highlight = "Nova remembers the rest.",
  description = "One assistant for your whole team. Nova reads your docs, tickets and threads, keeps the context, and answers in seconds — with sources.",
  primaryCta = { label: "Start chatting", href: "#start" },
  secondaryCta = { label: "Watch the demo", href: "#demo" },
  question = "What did we decide about the onboarding redesign?",
  answer = [
    "In Thursday's product sync, the team agreed to ship the 3-step onboarding behind a flag on Oct 14.",
    "Maya owns the copy, Leo the analytics events. Open question: whether to keep the video intro — decision due Friday.",
  ],
  className,
}: HeroChatProps) {
  return (
    <section className={cn("relative isolate overflow-hidden da-section", className)}>
      <div aria-hidden className="absolute inset-x-0 bottom-0 -z-10 h-[70%] bg-(image:--nocturne-glow)" />
      <div className="da-container flex flex-col items-center text-center">
        <p className="da-stroke inline-flex items-center gap-2 rounded-da-pill bg-da-surface/70 px-3 py-1 text-xs font-medium text-da-muted-fg">
          <Sparkles aria-hidden className="size-3.5 text-da-primary" />
          {badge}
        </p>
        <h1 className="mt-6 max-w-3xl font-da-display text-4xl leading-[1.05] font-semibold tracking-da-display text-balance sm:text-6xl">
          {title}{" "}
          <span className="bg-gradient-to-r from-da-primary to-da-accent bg-clip-text text-transparent">{highlight}</span>
        </h1>
        <p className="mt-5 max-w-xl text-base text-pretty text-da-muted-fg sm:text-lg">{description}</p>
        <div className="mt-8 flex flex-wrap justify-center gap-3">
          <a
            href={primaryCta.href}
            className="da-focus da-transition inline-flex h-11 items-center gap-2 rounded-da-pill bg-da-primary px-6 text-sm font-semibold text-da-primary-fg shadow-[0_0_32px_-8px_var(--da-primary)] hover:brightness-110"
          >
            {primaryCta.label}
            <ArrowRight aria-hidden className="size-4" />
          </a>
          <a href={secondaryCta.href} className="da-focus da-transition da-stroke inline-flex h-11 items-center rounded-da-pill bg-da-surface px-6 text-sm font-medium hover:bg-da-surface-2">
            {secondaryCta.label}
          </a>
        </div>

        <div className="da-stroke mt-14 w-full max-w-2xl overflow-hidden rounded-da-lg bg-da-bg/80 text-left shadow-da-lg backdrop-blur-da">
          <div className="flex items-center gap-2 border-b border-da-border px-4 py-3">
            <span aria-hidden className="grid size-7 place-items-center rounded-full bg-da-primary font-da-display text-xs font-semibold text-da-primary-fg">N</span>
            <span className="text-sm font-semibold">Nova</span>
            <span className="rounded-da-pill bg-da-secondary px-2 py-0.5 font-da-mono text-[11px] text-da-muted-fg">nova-3 · team memory</span>
          </div>
          <div className="space-y-5 px-4 py-5 sm:px-6">
            <p className="ml-auto w-fit max-w-[85%] rounded-da-pill bg-da-secondary px-4 py-2 text-sm">{question}</p>
            <div className="flex gap-3">
              <span aria-hidden className="grid size-7 shrink-0 place-items-center rounded-full bg-da-primary font-da-display text-xs font-semibold text-da-primary-fg">N</span>
              <div className="min-w-0 space-y-2 text-sm leading-relaxed">
                <p className="flex items-center gap-1.5 text-xs text-da-muted-fg">
                  <Sparkles aria-hidden className="size-3.5" /> Thought for 2 seconds <ChevronDown aria-hidden className="size-3.5" />
                </p>
                {answer.map((line) => (
                  <p key={line}>{line}</p>
                ))}
                <p className="flex flex-wrap gap-1.5 pt-1">
                  {["Product sync — Oct 3", "ONB-214", "#design-crit"].map((s) => (
                    <span key={s} className="da-stroke rounded-da-pill px-2 py-0.5 font-da-mono text-[11px] text-da-muted-fg">
                      {s}
                    </span>
                  ))}
                </p>
              </div>
            </div>
          </div>
          <div className="px-3 pb-3">
            <div aria-hidden className="da-stroke flex items-center gap-2 rounded-da-lg bg-da-surface px-4 py-3 text-sm text-da-muted-fg">
              <Paperclip className="size-4" />
              <span className="flex-1">Ask a follow-up…</span>
              <span className="grid size-8 place-items-center rounded-full bg-da-fg text-da-bg">
                <ArrowUp className="size-4" />
              </span>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}

export default HeroChat;

modules/nocturne/section/hero-chat/index.tsx

Props

PropTypeDefaultDescription
badge / title / highlight / descriptionstring—Copy (highlight = gradient part).
primaryCta / secondaryCta{ label, href }—Actions.
questionstring—User message in the mock-up.
answerstring[]—Assistant paragraphs in the mock-up.

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

GlassHero

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.

GlassHero

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.

GlassHero

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.

GlassHero

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