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-corporate/section/hero-dashboardSource
import { ArrowRight, ShieldCheck } from "lucide-react";
import { cn } from "@/lib/utils";
export interface HeroDashboardProps {
eyebrow?: string;
title?: string;
description?: string;
primaryCta?: { label: string; href: string };
secondaryCta?: { label: string; href: string };
trust?: string;
className?: string;
}
const INVOICES = [
{ id: "INV-2041", client: "Northwind Traders", amount: "$18,400.00", status: "Paid" },
{ id: "INV-2040", client: "Lumen Health", amount: "$6,250.00", status: "Due in 5 days" },
{ id: "INV-2039", client: "Parcel Logistics", amount: "$42,900.00", status: "Overdue" },
{ id: "INV-2038", client: "Quanta Labs", amount: "$3,120.00", status: "Paid" },
];
const STATUS: Record<string, string> = {
Paid: "bg-da-success/12 text-da-success",
Overdue: "bg-da-danger/10 text-da-danger",
};
/** 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). */
export function HeroDashboard({
eyebrow = "Accounts receivable, automated",
title = "Get paid 2× faster and close the books in days",
description = "Ledgerly sends branded invoices, chases late payments and reconciles every transfer automatically — so your finance team can focus on forecasting.",
primaryCta = { label: "Start free trial", href: "#signup" },
secondaryCta = { label: "Book a demo", href: "#demo" },
trust = "SOC 2 Type II · ISO 27001 · GDPR",
className,
}: HeroDashboardProps) {
const bars = [42, 55, 48, 62, 70, 66, 81, 77, 90, 86, 94, 100];
return (
<section className={cn("overflow-hidden bg-da-bg py-16 text-da-fg sm:py-24", className)}>
<div className="da-container grid items-center gap-14 lg:grid-cols-[1fr_1.15fr]">
<div>
<p className="text-xs font-semibold tracking-da-label text-da-primary uppercase">{eyebrow}</p>
<h1 className="mt-4 font-da-display text-[clamp(2.5rem,5.5vw,4rem)] leading-[1.05] font-extrabold tracking-da-display text-balance">{title}</h1>
<p className="mt-5 max-w-lg text-lg text-pretty 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-md bg-da-primary px-6 font-semibold text-da-primary-fg shadow-da-sm hover:bg-da-primary/90"
>
{primaryCta.label}
<ArrowRight aria-hidden className="da-transition size-4 group-hover:translate-x-0.5" />
</a>
<a
href={secondaryCta.href}
className="da-focus da-transition da-stroke inline-flex h-12 items-center rounded-da-md bg-da-surface px-6 font-semibold hover:border-da-border-strong"
>
{secondaryCta.label}
</a>
</div>
<p className="mt-6 inline-flex items-center gap-2 text-sm text-da-muted-fg">
<ShieldCheck aria-hidden className="size-4 text-da-success" /> {trust}
</p>
</div>
<figure aria-label="Ledgerly dashboard example" className="da-stroke relative rounded-da-lg bg-da-surface p-4 text-da-surface-fg shadow-da-lg sm:p-5">
<div className="grid gap-3 sm:grid-cols-3">
{[
{ l: "Outstanding", v: "$214,380", d: "−12% vs last month", good: true },
{ l: "Avg. days to pay", v: "18.4", d: "−9.2 days", good: true },
{ l: "Overdue", v: "$42,900", d: "1 invoice", good: false },
].map((k) => (
<div key={k.l} className="da-stroke rounded-da-md p-3">
<p className="text-xs text-da-muted-fg">{k.l}</p>
<p className="mt-1 font-da-mono text-lg font-medium tabular-nums">{k.v}</p>
<p className={cn("text-xs font-medium", k.good ? "text-da-success" : "text-da-danger")}>{k.d}</p>
</div>
))}
</div>
<div className="da-stroke mt-3 rounded-da-md p-3">
<div className="flex items-center justify-between">
<p className="text-sm font-semibold">Collected</p>
<p className="text-xs text-da-muted-fg">Last 12 months</p>
</div>
<div aria-hidden className="mt-3 flex h-24 items-end gap-1.5">
{bars.map((b, i) => (
<span
key={i}
className={cn("flex-1 rounded-t-[3px]", i === bars.length - 1 ? "bg-da-primary" : "bg-da-primary/25")}
style={{ height: `${b}%` }}
/>
))}
</div>
</div>
<table className="mt-3 w-full text-left text-sm">
<caption className="sr-only">Recent invoices</caption>
<thead className="text-xs text-da-muted-fg">
<tr className="border-b border-da-border">
<th scope="col" className="py-2 font-medium">
Invoice
</th>
<th scope="col" className="hidden py-2 font-medium sm:table-cell">
Client
</th>
<th scope="col" className="py-2 text-right font-medium">
Amount
</th>
<th scope="col" className="py-2 text-right font-medium">
Status
</th>
</tr>
</thead>
<tbody>
{INVOICES.map((r) => (
<tr key={r.id} className="border-b border-da-border last:border-0">
<td className="py-2 font-da-mono text-xs">{r.id}</td>
<td className="hidden py-2 sm:table-cell">{r.client}</td>
<td className="py-2 text-right font-da-mono text-xs tabular-nums">{r.amount}</td>
<td className="py-2 text-right">
<span
className={cn("rounded-da-pill px-2 py-0.5 text-xs font-medium whitespace-nowrap", STATUS[r.status] ?? "bg-da-accent text-da-accent-fg")}
>
{r.status}
</span>
</td>
</tr>
))}
</tbody>
</table>
</figure>
</div>
</section>
);
}
export default HeroDashboard;
modules/neo-corporate/section/hero-dashboard/index.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | — | Small label above the heading. |
| title | string | — | Heading. |
| description | string | — | Supporting text. |
| primaryCta | { label: string; href: string } | — | Primary Cta. |
| secondaryCta | { label: string; href: string } | — | Secondary Cta. |
| trust | string | — | Trust. |
| className | string | — | Extra classes on the root. |
Other hero variants in Neo Corporate
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 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 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 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 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.