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.
minimal/section/hero-cliSource
"use client";
import { useState } from "react";
import { ArrowRight, Check, Copy } from "lucide-react";
import { cn } from "@/lib/utils";
export interface HeroCliProps {
badge?: string;
title?: string;
description?: string;
command?: string;
primaryCta?: { label: string; href: string };
/** Lines printed in the terminal preview. */
output?: { text: string; tone?: "muted" | "success" | "accent" }[];
className?: string;
}
const TONE = { muted: "text-da-muted-fg", success: "text-da-success", accent: "text-da-accent-fg" } as const;
/** Developer-first centered hero: install command with copy button and a terminal output preview. */
export function HeroCli({
badge = "Open source agent · v2.4",
title = "Incident response, configured as code",
description = "Define rotations, escalation policies and status pages in YAML. Review them in pull requests. Tracewise keeps production in sync.",
command = "npx tracewise init",
primaryCta = { label: "Read the quickstart", href: "#docs" },
output = [
{ text: "✓ Detected GitHub org acme-inc", tone: "success" },
{ text: "✓ Imported 4 rotations from PagerDuty", tone: "success" },
{ text: "✓ Wrote tracewise.yaml (12 services, 3 policies)", tone: "success" },
{ text: "→ Run `tracewise apply` to go live", tone: "accent" },
],
className,
}: HeroCliProps) {
const [copied, setCopied] = useState(false);
const copy = async () => {
try {
await navigator.clipboard.writeText(command);
setCopied(true);
window.setTimeout(() => setCopied(false), 1600);
} catch {
setCopied(false);
}
};
return (
<section className={cn("relative isolate overflow-hidden bg-da-bg py-20 text-da-fg sm:py-28", className)}>
<div
aria-hidden
className="absolute inset-0 -z-10 [background-image:radial-gradient(var(--da-border-strong)_1px,transparent_1px)] [background-size:20px_20px] [mask-image:radial-gradient(ellipse_50%_60%_at_50%_30%,black,transparent)]"
/>
<div className="da-container flex flex-col items-center text-center">
<p className="da-stroke rounded-da-pill bg-da-surface px-3 py-1 font-da-mono text-xs text-da-muted-fg">{badge}</p>
<h1 className="mt-6 max-w-3xl text-[clamp(2.25rem,5.5vw,4rem)] leading-[1.03] font-semibold tracking-da-display text-balance">{title}</h1>
<p className="mt-5 max-w-xl text-[17px] leading-relaxed text-pretty text-da-muted-fg">{description}</p>
<div className="mt-8 flex w-full max-w-md flex-col gap-3 sm:flex-row">
<div className="da-stroke flex h-11 min-w-0 sm:flex-1 items-center gap-2 rounded-da-md bg-da-surface pr-1 pl-3.5 font-da-mono text-sm text-da-surface-fg shadow-da-sm">
<span aria-hidden className="text-da-muted-fg">
$
</span>
<code className="min-w-0 flex-1 truncate text-left">{command}</code>
<button
type="button"
onClick={copy}
aria-label={copied ? "Copied" : "Copy command"}
className="da-focus da-transition grid size-9 place-items-center rounded-da-sm text-da-muted-fg hover:bg-da-muted hover:text-da-fg"
>
{copied ? <Check aria-hidden className="size-4 text-da-success" /> : <Copy aria-hidden className="size-4" />}
</button>
<span role="status" className="sr-only">
{copied ? "Command copied to clipboard" : ""}
</span>
</div>
<a
href={primaryCta.href}
className="da-focus da-transition group inline-flex h-11 items-center justify-center gap-1.5 rounded-da-md bg-da-fg px-4 text-sm font-medium text-da-bg hover:bg-da-fg/85"
>
{primaryCta.label}
<ArrowRight aria-hidden className="da-transition size-4 group-hover:translate-x-0.5" />
</a>
</div>
<div className="da-stroke mt-12 w-full max-w-2xl overflow-hidden rounded-da-lg bg-da-surface text-left shadow-da-lg">
<div className="flex items-center gap-2 border-b border-da-border px-4 py-2.5">
<span aria-hidden className="flex gap-1.5">
<span className="size-2.5 rounded-full bg-da-fg/15" />
<span className="size-2.5 rounded-full bg-da-fg/15" />
<span className="size-2.5 rounded-full bg-da-fg/15" />
</span>
<p className="mx-auto font-da-mono text-[11px] text-da-muted-fg">~/acme/infra</p>
</div>
<pre className="overflow-x-auto p-4 font-da-mono text-[13px] leading-6 text-da-surface-fg">
<span className="text-da-muted-fg">$ </span>
{command}
{"\n"}
{output.map((l, i) => (
<span key={i} className={cn("block", TONE[l.tone ?? "muted"])}>
{l.text}
</span>
))}
</pre>
</div>
</div>
</section>
);
}
export default HeroCli;
modules/minimal/section/hero-cli/index.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| badge / title / description | string | — | Copy. |
| command | string | "npx tracewise init" | Install command. |
| primaryCta | { label, href } | — | Button next to the command. |
| output | { text, tone? }[] | — | Terminal lines (tone: muted | success | accent). |
| className | string | — | Classes on the section. |
Other hero variants in Minimal
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 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 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 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 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.