Hero sections
The first screen of a landing page: one promise, the actions that follow it and a look at the product. Centered or split, with an email sign-up, an aurora background, the theme's colored band or a code sample.
6 blocks below, each one file and one command. They wear whichever DressCode theme you install, in light and dark.
Centered with product shot
A headline, two actions and three reassurances over a picture of the product, drawn in markup so it wears the theme.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/hero-centered.json// Hero, centered: a link to what is new, one promise, two actions and three reassurances, then the
// product itself. The product is drawn in markup, so it wears the theme; it is a picture, hidden from
// screen readers, and the copy around it says what it shows.
import { ArrowRight, Bell, ChartColumn, Check, FileText, LayoutDashboard, Plus, Search, Settings, Users, Wallet } from "lucide-react"
import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"
const NAV = [
{ icon: LayoutDashboard, label: "Overview", active: true },
{ icon: FileText, label: "Invoices", count: 12 },
{ icon: Users, label: "Clients" },
{ icon: Wallet, label: "Payments" },
{ icon: ChartColumn, label: "Reports" },
{ icon: Settings, label: "Settings" },
]
const STATS = [
{ label: "Revenue", value: "$48,210", note: "+12.4% on October" },
{ label: "Outstanding", value: "$9,860", note: "5 invoices" },
{ label: "Clients", value: "64", note: "+6 this month" },
{ label: "Days to get paid", value: "11", note: "3 days faster" },
]
const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov"]
const THIS_YEAR = [18, 22, 19, 26, 24, 30, 28, 33, 31, 38, 42]
const LAST_YEAR = [15, 16, 18, 17, 20, 21, 22, 21, 25, 24, 27]
const INVOICES = [
{ client: "Fernwood Studio", status: "Due", amount: "$4,200.00" },
{ client: "Kato & Lee", status: "Overdue", amount: "$1,860.00" },
{ client: "Northlight", status: "Paid", amount: "$7,450.00" },
{ client: "Juniper Labs", status: "Paid", amount: "$2,300.00" },
] as const
const PILL = { Paid: "dc-pill-hl", Due: "dc-pill-line", Overdue: "dc-pill-danger" } as const
function Logo({ className }: { className?: string }) {
return (
<span className={cn("inline-flex items-center gap-2 font-bold tracking-[-0.02em]", className)}>
<svg width="20" height="20" viewBox="0 0 22 22" aria-hidden="true">
<circle cx="11" cy="11" r="8.5" fill="none" stroke="currentColor" strokeWidth="3" />
<circle cx="16.5" cy="5.5" r="3" fill="var(--dc-accent)" />
</svg>
<span className="dc-h">Orbit</span>
</span>
)
}
function ProductShot({ className }: { className?: string }) {
return (
<div aria-hidden="true" className={cn("dc-card overflow-hidden text-left text-[13px]", className)}>
<div className="grid md:grid-cols-[200px_1fr]">
<aside className="hidden border-r border-border bg-[color:color-mix(in_oklab,var(--dc-ink)_2.5%,var(--card))] p-3 md:block">
<Logo className="px-2 pt-1 pb-4 text-[15px]" />
<ul className="space-y-0.5">
{NAV.map(({ icon: Icon, label, active, count }) => (
<li
key={label}
className={cn(
"flex h-8 items-center gap-2.5 rounded-[var(--radius)] px-2.5 text-muted-foreground",
active && "bg-[color:color-mix(in_oklab,var(--dc-accent)_12%,transparent)] font-semibold text-[color:var(--dc-accent)]",
)}
>
<Icon className="size-4" />
{label}
{count ? <span className="ml-auto text-xs">{count}</span> : null}
</li>
))}
</ul>
</aside>
<div className="min-w-0 p-4 sm:p-5">
<div className="flex items-center justify-between gap-3">
<p className="dc-h text-[18px]">Good morning, Ada</p>
<div className="flex items-center gap-2">
<span className="hidden h-8 w-48 items-center gap-2 rounded-[var(--radius)] border border-input px-2.5 text-muted-foreground lg:flex">
<Search className="size-3.5" /> Search invoices…
</span>
<span className="hidden size-8 place-items-center rounded-[var(--radius)] border border-input text-muted-foreground sm:grid">
<Bell className="size-3.5" />
</span>
<span className="inline-flex h-8 items-center gap-1.5 rounded-[var(--radius)] bg-primary px-3 font-semibold text-primary-foreground">
<Plus className="size-3.5" /> New invoice
</span>
</div>
</div>
<div className="mt-4 grid grid-cols-2 gap-2.5 lg:grid-cols-4">
{STATS.map((s, i) => (
<div
key={s.label}
className={cn(
"rounded-[calc(var(--radius)+2px)] border border-border p-3",
i === 0 && "border-transparent bg-[color:var(--dc-highlight)] text-[color:var(--dc-highlight-fg)]",
)}
>
<p className={cn("text-xs", i === 0 ? "opacity-80" : "text-muted-foreground")}>{s.label}</p>
<p className="dc-num mt-1 text-[20px] font-semibold tracking-tight">{s.value}</p>
<p className={cn("mt-0.5 text-[11px]", i === 0 ? "opacity-80" : "text-muted-foreground")}>{s.note}</p>
</div>
))}
</div>
<div className="mt-3 grid gap-2.5 lg:grid-cols-[1.15fr_1fr]">
<div className="rounded-[calc(var(--radius)+2px)] border border-border p-3">
<div className="flex items-center justify-between">
<p className="font-semibold">Cash in</p>
<p className="text-[11px] text-muted-foreground">2026 against 2025</p>
</div>
<div className="mt-3 flex items-end gap-[3%]">
{THIS_YEAR.map((v, i) => (
<div key={MONTHS[i]} className="flex h-24 flex-1 items-end justify-center gap-[12%]">
<span className="w-[38%] rounded-t-[3px] bg-[color:var(--chart-2)]" style={{ height: `${(LAST_YEAR[i] / 45) * 100}%` }} />
<span className="w-[38%] rounded-t-[3px] bg-[color:var(--chart-1)]" style={{ height: `${(v / 45) * 100}%` }} />
</div>
))}
</div>
</div>
<div className="hidden rounded-[calc(var(--radius)+2px)] border border-border sm:block">
<p className="px-3 pt-3 font-semibold">Recent invoices</p>
<ul className="mt-2">
{INVOICES.map((inv) => (
<li key={inv.client} className="flex items-center gap-2 border-t border-border px-3 py-2">
<span className="min-w-0 flex-1 truncate">{inv.client}</span>
<span className={cn("dc-pill", PILL[inv.status])}>{inv.status}</span>
<span className="dc-num w-[72px] text-right">{inv.amount}</span>
</li>
))}
</ul>
</div>
</div>
</div>
</div>
</div>
)
}
export default function HeroCentered() {
return (
<section aria-labelledby="hero-centered-title" className="overflow-hidden pt-16 pb-20 sm:pt-24 sm:pb-28">
<div className="mx-auto flex w-full max-w-[1200px] flex-col items-center px-5 text-center sm:px-8">
<a
href="#whats-new"
className="inline-flex items-center gap-2 rounded-full border border-border bg-[color:color-mix(in_oklab,var(--foreground)_5%,transparent)] py-1 pr-3 pl-1 text-[13px] font-medium outline-none transition-colors hover:border-input focus-visible:ring-3 focus-visible:ring-ring/50"
>
<span className="rounded-full bg-primary px-2 py-0.5 text-[12px] font-semibold text-primary-foreground">New</span>
Reminders in your own words
<ArrowRight className="size-3.5" aria-hidden="true" />
</a>
<h1 id="hero-centered-title" className="dc-h mt-6 max-w-[900px] text-[40px] leading-[1.04] sm:text-[60px] lg:text-[72px]">
Get paid on time, without the awkward emails.
</h1>
<p className="mt-6 max-w-[600px] text-[17px] leading-relaxed text-muted-foreground sm:text-[19px]">
Orbit sends the invoice, nudges the late ones and tells you what is left for the month.
</p>
<div className="mt-8 flex flex-wrap justify-center gap-3">
<Button size="lg" className="h-12 px-6 text-[16px] font-semibold" nativeButton={false} render={<a href="#start" />}>
Start free <ArrowRight className="size-4" aria-hidden="true" />
</Button>
<Button size="lg" variant="outline" className="h-12 px-6 text-[16px] font-semibold" nativeButton={false} render={<a href="#demo" />}>
Book a demo
</Button>
</div>
<ul className="mt-6 flex flex-wrap justify-center gap-x-6 gap-y-2 text-[14px] text-muted-foreground">
{["Free for your first three clients", "No card needed", "Cancel any time"].map((t) => (
<li key={t} className="inline-flex items-center gap-1.5">
<Check className="size-4 text-[color:var(--dc-accent)]" aria-hidden="true" />
{t}
</li>
))}
</ul>
</div>
<div className="mx-auto mt-14 w-full max-w-[1200px] px-5 sm:mt-20 sm:px-8">
<ProductShot />
</div>
</section>
)
}Split with product cards
Copy and actions on the left, the invoice, the payment and the reminder it sends stacked on the right.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/hero-split.json// Hero, split: the promise and the actions on the left; on the right, what the product does for you in
// three cards (the invoice it sends, the reminder it writes, the payment that comes in). The cards are a
// picture, hidden from screen readers; the copy says what they show. On phones they stack under the copy.
import { ArrowRight, BellRing, CircleCheck, Star } from "lucide-react"
import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"
const LINES = [
{ item: "Brand identity, phase 2", qty: "1", amount: "$3,200.00" },
{ item: "Website copy", qty: "8 h", amount: "$800.00" },
{ item: "Stock licences", qty: "4", amount: "$200.00" },
]
const PEOPLE = ["AL", "KM", "JS", "RT"]
function InvoiceCard({ className }: { className?: string }) {
return (
<div className={cn("dc-card p-5 text-left text-[13px] sm:p-6", className)}>
<div className="flex items-start justify-between gap-4">
<div>
<p className="text-muted-foreground">Invoice INV-1042</p>
<p className="dc-h mt-1 text-[20px]">Fernwood Studio</p>
</div>
<span className="dc-pill dc-pill-line">Due Nov 28</span>
</div>
<table className="mt-5 w-full">
<thead>
<tr className="text-left text-[12px] text-muted-foreground">
<th className="pb-2 font-medium">Item</th>
<th className="pb-2 text-right font-medium">Qty</th>
<th className="pb-2 text-right font-medium">Amount</th>
</tr>
</thead>
<tbody>
{LINES.map((l) => (
<tr key={l.item} className="border-t border-border">
<td className="py-2.5 pr-3">{l.item}</td>
<td className="dc-num py-2.5 text-right text-muted-foreground">{l.qty}</td>
<td className="dc-num py-2.5 pl-3 text-right">{l.amount}</td>
</tr>
))}
</tbody>
</table>
<div className="mt-2 flex items-center justify-between border-t border-border pt-4">
<span className="font-semibold">Total</span>
<span className="dc-num text-[22px] font-semibold tracking-tight">$4,200.00</span>
</div>
<span className="mt-4 flex h-10 items-center justify-center rounded-[var(--radius)] bg-primary font-semibold text-primary-foreground">Pay $4,200.00</span>
</div>
)
}
function Visual() {
// A cascade: the reminder overlaps the invoice's top padding, the payment its bottom padding, so
// neither covers what the invoice says.
return (
<div aria-hidden="true" className="mx-auto flex w-full max-w-[520px] flex-col gap-3 lg:mr-0 lg:gap-0">
<div className="dc-card relative z-10 flex items-start gap-3 p-4 text-left text-[13px] lg:-mb-5 lg:w-[310px]">
<span className="dc-icon size-8 shrink-0">
<BellRing className="size-4" />
</span>
<div className="min-w-0">
<p className="font-semibold">Reminder sent</p>
<p className="mt-0.5 leading-snug text-muted-foreground">“Hi Maya, a friendly nudge that INV-1042 is due on Friday.”</p>
</div>
</div>
<InvoiceCard className="lg:ml-12 lg:py-10" />
<div className="dc-card relative z-10 flex items-center gap-3 p-4 text-left text-[13px] lg:-mt-5 lg:ml-auto lg:w-[290px] lg:translate-x-4">
<span className="grid size-8 shrink-0 place-items-center rounded-full bg-[color:var(--dc-highlight)] text-[color:var(--dc-highlight-fg)]">
<CircleCheck className="size-4" />
</span>
<div className="min-w-0 flex-1">
<p className="font-semibold">Payment received</p>
<p className="text-muted-foreground">Northlight paid INV-1040</p>
</div>
<span className="dc-num font-semibold">$7,450</span>
</div>
</div>
)
}
export default function HeroSplit() {
return (
<section aria-labelledby="hero-split-title" className="overflow-hidden py-16 sm:py-24">
<div className="mx-auto grid w-full max-w-[1200px] items-center gap-12 px-5 sm:px-8 lg:grid-cols-[1fr_1.05fr] lg:gap-16">
<div className="max-w-[560px]">
<span className="dc-pill dc-pill-hl">Free for your first three clients</span>
<h1 id="hero-split-title" className="dc-h mt-5 text-[40px] leading-[1.05] sm:text-[56px]">
Invoices that chase themselves.
</h1>
<p className="mt-5 text-[17px] leading-relaxed text-muted-foreground sm:text-[19px]">
Send a clear invoice in a minute. Orbit reminds the client before and after the due date, in your words, and tells you the moment the money lands.
</p>
<div className="mt-8 flex flex-wrap gap-3">
<Button size="lg" className="h-12 px-6 text-[16px] font-semibold" nativeButton={false} render={<a href="#start" />}>
Start free <ArrowRight className="size-4" aria-hidden="true" />
</Button>
<Button size="lg" variant="outline" className="h-12 px-6 text-[16px] font-semibold" nativeButton={false} render={<a href="#tour" />}>
Take the tour
</Button>
</div>
<div className="mt-10 flex items-center gap-4">
<div className="flex -space-x-2" aria-hidden="true">
{PEOPLE.map((p) => (
<span key={p} className="grid size-9 place-items-center rounded-full bg-muted text-[11px] font-bold ring-2 ring-background">
{p}
</span>
))}
</div>
<div className="text-[14px]">
<p className="flex items-center gap-0.5 text-[color:var(--dc-accent)]" aria-label="Rated 4.9 out of 5">
{[0, 1, 2, 3, 4].map((i) => (
<Star key={i} className="size-3.5 fill-current" aria-hidden="true" />
))}
<span className="ml-1.5 font-semibold text-foreground">4.9</span>
</p>
<p className="text-muted-foreground">from 1,200 freelancers and studios</p>
</div>
</div>
</div>
<Visual />
</div>
</section>
)
}Email sign-up
A centered promise with the sign-up form in the hero itself, checked as you type, and a thank-you when it is sent.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/hero-signup.json"use client"
// Hero, email sign-up: the promise and the form in one place. The address is checked when the field
// loses focus and on submit; the error is tied to the field, and a sent form says what happens next.
// Wire onSubmit to your own sign-up endpoint.
import { ArrowRight, Check, MailCheck } from "lucide-react"
import { type FormEvent, useId, useState } from "react"
import { Button } from "@/components/ui/button"
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
const PEOPLE = ["MO", "JT", "SA", "LK", "DP"]
const valid = (v: string) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v.trim())
export default function HeroSignup() {
const id = useId()
const [email, setEmail] = useState("")
const [error, setError] = useState("")
const [sent, setSent] = useState("")
const check = () => {
const msg = !email.trim() ? "Enter your work email." : valid(email) ? "" : "That doesn't look like an email address."
setError(msg)
return !msg
}
const onSubmit = (e: FormEvent) => {
e.preventDefault()
if (check()) setSent(email.trim())
}
return (
<section aria-labelledby={`${id}-title`} className="py-20 sm:py-28">
<div className="mx-auto flex w-full max-w-[1200px] flex-col items-center px-5 text-center sm:px-8">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Invoicing for freelancers and small studios</p>
<h1 id={`${id}-title`} className="dc-h mt-4 max-w-[820px] text-[40px] leading-[1.05] sm:text-[60px]">
Spend Friday on the work, not on chasing payments.
</h1>
<p className="mt-5 max-w-[560px] text-[17px] leading-relaxed text-muted-foreground sm:text-[19px]">
Send your first invoice in a minute. Orbit follows up on the late ones for you.
</p>
<div className="mt-9 w-full max-w-[480px]">
{sent ? (
<div role="status" className="dc-card flex items-start gap-3 p-4 text-left">
<span className="dc-icon shrink-0">
<MailCheck className="size-[18px]" aria-hidden="true" />
</span>
<div className="min-w-0">
<p className="font-semibold">Check your inbox</p>
<p className="mt-0.5 text-[14px] text-muted-foreground">
We sent a sign-in link to <span className="font-medium wrap-anywhere text-foreground">{sent}</span>. It works for 30 minutes.
</p>
</div>
</div>
) : (
<form noValidate onSubmit={onSubmit} className="text-left">
<Label htmlFor={`${id}-email`} className="sr-only">
Work email
</Label>
<div className="flex flex-col gap-2 sm:flex-row">
<Input
id={`${id}-email`}
type="email"
autoComplete="email"
placeholder="you@studio.com"
value={email}
onChange={(e) => {
setEmail(e.target.value)
if (error && valid(e.target.value)) setError("")
}}
onBlur={() => email && check()}
aria-invalid={error ? true : undefined}
aria-describedby={error ? `${id}-error` : `${id}-hint`}
className="h-12 px-4 text-[16px] sm:flex-1"
/>
<Button type="submit" size="lg" className="h-12 px-6 text-[16px] font-semibold">
Start free <ArrowRight className="size-4" aria-hidden="true" />
</Button>
</div>
{error ? (
<p id={`${id}-error`} className="mt-2 text-[14px] text-destructive">
{error}
</p>
) : (
<p id={`${id}-hint`} className="mt-2 text-[13px] text-muted-foreground">
Free for your first three clients. No card needed.
</p>
)}
</form>
)}
</div>
<div className="mt-10 flex flex-col items-center gap-3 sm:flex-row">
<div className="flex -space-x-2" aria-hidden="true">
{PEOPLE.map((p) => (
<span key={p} className="grid size-8 place-items-center rounded-full bg-muted text-[11px] font-bold ring-2 ring-background">
{p}
</span>
))}
</div>
<p className="text-[14px] text-muted-foreground">
<span className="font-semibold text-foreground">4,000 freelancers</span> sent an invoice with Orbit last month
</p>
</div>
<ul className="mt-8 grid gap-x-8 gap-y-2 text-[14px] text-muted-foreground sm:grid-cols-3">
{["Reminders in your tone", "Cards and bank transfer", "Export for your accountant"].map((t) => (
<li key={t} className="inline-flex items-center justify-center gap-1.5">
<Check className="size-4 text-[color:var(--dc-accent)]" aria-hidden="true" />
{t}
</li>
))}
</ul>
</div>
</section>
)
}Aurora background
Slow, soft color drifting behind a large headline, made from the theme's own colors. It stands still for people who turn motion off.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/hero-aurora.json// Hero, aurora background: three soft glows in the theme's accent, highlight and primary colors drift
// slowly behind a large headline and fade into the page (in dark mode they add light, mix-blend-mode
// screen, instead of muddying the page). The motion is CSS only and stops for people who ask for reduced
// motion. The keyframes ship with the block (React hoists the <style> once).
import { ArrowRight, Sparkles } from "lucide-react"
import { Button } from "@/components/ui/button"
const KEYFRAMES = `
@keyframes dc-aurora-a { from { transform: translate3d(-8%, -6%, 0) scale(1) } to { transform: translate3d(12%, 10%, 0) scale(1.2) } }
@keyframes dc-aurora-b { from { transform: translate3d(10%, 4%, 0) scale(1.1) } to { transform: translate3d(-12%, -8%, 0) scale(0.9) } }
@keyframes dc-aurora-c { from { transform: translate3d(0, 8%, 0) scale(0.9) } to { transform: translate3d(6%, -10%, 0) scale(1.15) } }
`
const glow = (color: string, strength: number) => ({
background: `radial-gradient(closest-side, color-mix(in oklab, ${color} ${strength}%, transparent), transparent)`,
})
export default function HeroAurora() {
return (
<section aria-labelledby="hero-aurora-title" className="relative isolate overflow-hidden bg-background py-24 sm:py-32">
<style href="dc-aurora" precedence="default">
{KEYFRAMES}
</style>
<div aria-hidden="true" className="pointer-events-none absolute inset-x-0 top-0 -z-10 h-[620px] [mask-image:linear-gradient(to_bottom,black_45%,transparent)] dark:mix-blend-screen">
<div
className="absolute top-[-180px] left-[2%] size-[560px] animate-[dc-aurora-a_19s_ease-in-out_infinite_alternate] rounded-full blur-2xl motion-reduce:animate-none"
style={glow("var(--dc-accent)", 55)}
/>
<div
className="absolute top-[-120px] right-[0%] size-[520px] animate-[dc-aurora-b_23s_ease-in-out_infinite_alternate] rounded-full blur-2xl motion-reduce:animate-none"
style={glow("var(--dc-highlight)", 70)}
/>
<div
className="absolute top-[40px] left-[30%] size-[480px] animate-[dc-aurora-c_17s_ease-in-out_infinite_alternate] rounded-full blur-3xl motion-reduce:animate-none"
style={glow("var(--primary)", 35)}
/>
</div>
<div className="mx-auto flex w-full max-w-[1200px] flex-col items-center px-5 text-center sm:px-8">
<a
href="#whats-new"
className="inline-flex items-center gap-2 rounded-full border border-border bg-background/70 px-3 py-1 text-[13px] font-medium backdrop-blur outline-none transition-colors hover:border-input focus-visible:ring-3 focus-visible:ring-ring/50"
>
<Sparkles className="size-3.5 text-[color:var(--dc-accent)]" aria-hidden="true" />
Orbit 3.0: reports your accountant will like
<ArrowRight className="size-3.5" aria-hidden="true" />
</a>
<h1 id="hero-aurora-title" className="dc-h mt-7 max-w-[960px] text-[44px] leading-[1.02] sm:text-[68px] lg:text-[84px]">
The calm way to run the money side of your studio.
</h1>
<p className="mt-7 max-w-[620px] text-[17px] leading-relaxed text-muted-foreground sm:text-[19px]">
Invoices, reminders, payments and the numbers that follow them, in one quiet place.
</p>
<div className="mt-9 flex flex-wrap justify-center gap-3">
<Button size="lg" className="h-12 px-6 text-[16px] font-semibold" nativeButton={false} render={<a href="#start" />}>
Start free <ArrowRight className="size-4" aria-hidden="true" />
</Button>
<Button size="lg" variant="outline" className="h-12 bg-background/70 px-6 text-[16px] font-semibold backdrop-blur" nativeButton={false} render={<a href="#pricing" />}>
See pricing
</Button>
</div>
<p className="mt-6 text-[14px] text-muted-foreground">Free for your first three clients. No card needed.</p>
</div>
</section>
)
}On the colored band
The copy on the theme's band color, with the product overlapping the band's lower edge.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/hero-band.json// Hero on the colored band: the copy sits on the theme's band color (dc-band switches the text and the
// primary button to the band's own pair) and the product overlaps the band's lower edge. The product is
// drawn in markup and hidden from screen readers; the copy says what it shows.
import { ArrowRight, Filter, Plus, Search } from "lucide-react"
import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"
const ROWS = [
{ id: "INV-1042", client: "Fernwood Studio", sent: "Nov 14", due: "Nov 28", status: "Due", amount: "$4,200.00" },
{ id: "INV-1041", client: "Kato & Lee", sent: "Nov 6", due: "Nov 20", status: "Overdue", amount: "$1,860.00" },
{ id: "INV-1040", client: "Northlight", sent: "Nov 4", due: "Nov 18", status: "Paid", amount: "$7,450.00" },
{ id: "INV-1039", client: "Juniper Labs", sent: "Oct 29", due: "Nov 12", status: "Paid", amount: "$2,300.00" },
{ id: "INV-1038", client: "Ola Bakery", sent: "—", due: "—", status: "Draft", amount: "$640.00" },
] as const
const PILL = { Paid: "dc-pill-hl", Due: "dc-pill-line", Overdue: "dc-pill-danger", Draft: "dc-pill-muted" } as const
const TABS = ["All", "Due", "Overdue", "Paid", "Drafts"]
function InvoiceList() {
return (
<div aria-hidden="true" className="dc-card overflow-hidden text-left text-[13px]">
<div className="flex flex-wrap items-center justify-between gap-3 border-b border-border p-4 sm:px-5">
<div>
<p className="dc-h text-[18px]">Invoices</p>
<p className="text-muted-foreground">$16,450 outstanding across 12 invoices</p>
</div>
<div className="flex items-center gap-2">
<span className="hidden h-8 w-52 items-center gap-2 rounded-[var(--radius)] border border-input px-2.5 text-muted-foreground md:flex">
<Search className="size-3.5" /> Search
</span>
<span className="hidden h-8 items-center gap-1.5 rounded-[var(--radius)] border border-input px-2.5 sm:inline-flex">
<Filter className="size-3.5" /> Filter
</span>
<span className="inline-flex h-8 items-center gap-1.5 rounded-[var(--radius)] bg-primary px-3 font-semibold text-primary-foreground">
<Plus className="size-3.5" /> New invoice
</span>
</div>
</div>
<div className="flex gap-1 border-b border-border px-3 py-2 sm:px-4">
{TABS.map((t, i) => (
<span key={t} className={cn("rounded-[var(--radius)] px-2.5 py-1", i === 0 ? "bg-muted font-semibold" : "text-muted-foreground")}>
{t}
</span>
))}
</div>
<table className="w-full">
<thead>
<tr className="text-left text-[12px] text-muted-foreground">
<th className="px-4 py-2.5 font-medium sm:px-5">Invoice</th>
<th className="px-3 py-2.5 font-medium">Client</th>
<th className="hidden px-3 py-2.5 font-medium md:table-cell">Sent</th>
<th className="hidden px-3 py-2.5 font-medium sm:table-cell">Due</th>
<th className="px-3 py-2.5 font-medium">Status</th>
<th className="px-4 py-2.5 text-right font-medium sm:px-5">Amount</th>
</tr>
</thead>
<tbody>
{ROWS.map((r) => (
<tr key={r.id} className="border-t border-border">
<td className="dc-num px-4 py-3 text-muted-foreground sm:px-5">{r.id}</td>
<td className="px-3 py-3 font-medium">{r.client}</td>
<td className="hidden px-3 py-3 text-muted-foreground md:table-cell">{r.sent}</td>
<td className="hidden px-3 py-3 text-muted-foreground sm:table-cell">{r.due}</td>
<td className="px-3 py-3">
<span className={cn("dc-pill", PILL[r.status])}>{r.status}</span>
</td>
<td className="dc-num px-4 py-3 text-right sm:px-5">{r.amount}</td>
</tr>
))}
</tbody>
</table>
</div>
)
}
export default function HeroBand() {
return (
<section aria-labelledby="hero-band-title" className="pb-20 sm:pb-28">
<div className="dc-band pt-16 pb-48 sm:pt-24 sm:pb-64">
<div className="mx-auto flex w-full max-w-[1200px] flex-col items-center px-5 text-center sm:px-8">
<p className="text-sm font-semibold opacity-80">For freelancers, studios and small agencies</p>
<h1 id="hero-band-title" className="dc-h mt-4 max-w-[880px] text-[40px] leading-[1.04] sm:text-[60px] lg:text-[72px]">
Every invoice, every client, one calm list.
</h1>
<p className="mt-6 max-w-[580px] text-[17px] leading-relaxed text-muted-foreground sm:text-[19px]">
See what is paid, what is due and who needs a nudge, then let Orbit send it.
</p>
<div className="mt-8 flex flex-wrap justify-center gap-3">
<Button size="lg" className="h-12 px-6 text-[16px] font-semibold" nativeButton={false} render={<a href="#start" />}>
Start free <ArrowRight className="size-4" aria-hidden="true" />
</Button>
<Button
size="lg"
variant="outline"
className="h-12 border-[color:var(--dc-band-edge)] bg-transparent px-6 text-[16px] font-semibold text-[color:var(--dc-band-fg)] hover:bg-[color:color-mix(in_oklab,var(--dc-band-fg)_12%,transparent)] hover:text-[color:var(--dc-band-fg)] dark:bg-transparent"
nativeButton={false}
render={<a href="#demo" />}
>
Book a demo
</Button>
</div>
</div>
</div>
<div className="mx-auto -mt-36 w-full max-w-[1100px] px-5 sm:-mt-48 sm:px-8">
<InvoiceList />
</div>
</section>
)
}With a code sample
For an API or developer tool: the pitch on the left and a request in three languages, with a copy button, on the right.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/hero-developer.json"use client"
// Hero with a code sample, for an API or a developer tool: the pitch and the actions on the left; on the
// right, one request in three languages (tabs) with a copy button, and the response it gets back.
import { ArrowRight, Check, Copy } from "lucide-react"
import { Fragment, useState } from "react"
import { Button } from "@/components/ui/button"
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
const SAMPLES = {
node: {
label: "Node",
code: `import Orbit from '@orbit/node'
const orbit = new Orbit(process.env.ORBIT_KEY)
// Send an invoice; Orbit chases it for you.
const invoice = await orbit.invoices.create({
client: 'cli_fernwood',
lines: [{ item: 'Brand identity', amount: 3200 }],
due: '2026-11-28',
remind: 'friendly',
})`,
},
python: {
label: "Python",
code: `import os
from orbit import Orbit
orbit = Orbit(os.environ["ORBIT_KEY"])
# Send an invoice; Orbit chases it for you.
invoice = orbit.invoices.create(
client="cli_fernwood",
lines=[{"item": "Brand identity", "amount": 3200}],
due="2026-11-28",
remind="friendly",
)`,
},
curl: {
label: "cURL",
code: `# Send an invoice; Orbit chases it for you.
curl https://api.orbit.dev/v1/invoices \\
-H "Authorization: Bearer $ORBIT_KEY" \\
-d client="cli_fernwood" \\
-d "lines[0][item]"="Brand identity" \\
-d "lines[0][amount]"=3200 \\
-d due="2026-11-28" \\
-d remind="friendly"`,
},
} as const
type Lang = keyof typeof SAMPLES
const RESPONSE = `{ "id": "inv_1042", "status": "sent", "remind_at": "2026-11-25" }`
/** Strings in the accent color, comments muted; enough to read the sample at a glance. (The Node sample
* uses single quotes, so the registry's import scan doesn't take it for an import of this file.) */
function Highlight({ code }: { code: string }) {
return code.split("\n").map((line, i) => (
<Fragment key={i}>
{/^\s*(\/\/|#)/.test(line) ? (
<span className="text-muted-foreground">{line}</span>
) : (
line.split(/("[^"]*"|'[^']*')/).map((part, j) =>
/^["']/.test(part) ? (
<span key={j} className="text-[color:var(--dc-accent)]">
{part}
</span>
) : (
part
),
)
)}
{"\n"}
</Fragment>
))
}
function CopyButton({ text }: { text: string }) {
const [copied, setCopied] = useState(false)
return (
<Button
variant="ghost"
size="sm"
className="text-muted-foreground"
onClick={async () => {
await navigator.clipboard?.writeText(text)
setCopied(true)
setTimeout(() => setCopied(false), 1600)
}}
>
{copied ? <Check aria-hidden="true" /> : <Copy aria-hidden="true" />}
{copied ? "Copied" : "Copy"}
<span className="sr-only" aria-live="polite">
{copied ? "Code copied" : ""}
</span>
</Button>
)
}
export default function HeroDeveloper() {
const [lang, setLang] = useState<Lang>("node")
return (
<section aria-labelledby="hero-developer-title" className="py-16 sm:py-24">
<div className="mx-auto grid w-full max-w-[1200px] items-center gap-12 px-5 sm:px-8 lg:grid-cols-[1fr_1.1fr] lg:gap-14">
<div className="max-w-[540px]">
<span className="dc-pill dc-pill-line">Orbit API · v1</span>
<h1 id="hero-developer-title" className="dc-h mt-5 text-[40px] leading-[1.05] sm:text-[54px]">
Invoices from your own code.
</h1>
<p className="mt-5 text-[17px] leading-relaxed text-muted-foreground sm:text-[19px]">
Create, send and chase invoices with one request. Orbit handles the reminders, the payment page and the receipts.
</p>
<div className="mt-8 flex flex-wrap gap-3">
<Button size="lg" className="h-12 px-6 text-[16px] font-semibold" nativeButton={false} render={<a href="#keys" />}>
Get an API key <ArrowRight className="size-4" aria-hidden="true" />
</Button>
<Button size="lg" variant="outline" className="h-12 px-6 text-[16px] font-semibold" nativeButton={false} render={<a href="#docs" />}>
Read the docs
</Button>
</div>
<ul className="mt-9 grid gap-2.5 text-[15px]">
{["Safe to retry: every request takes an idempotency key", "A webhook for every payment, reminder and refund", "Libraries for Node, Python and Go"].map((t) => (
<li key={t} className="flex items-start gap-2.5">
<Check className="mt-0.5 size-4 shrink-0 text-[color:var(--dc-accent)]" aria-hidden="true" />
{t}
</li>
))}
</ul>
</div>
<div className="dc-card min-w-0 overflow-hidden">
<Tabs value={lang} onValueChange={(v) => setLang(v as Lang)}>
<div className="flex items-center justify-between gap-2 border-b border-border py-2 pr-2 pl-3">
<TabsList aria-label="Language">
{(Object.keys(SAMPLES) as Lang[]).map((k) => (
<TabsTrigger key={k} value={k}>
{SAMPLES[k].label}
</TabsTrigger>
))}
</TabsList>
<CopyButton text={SAMPLES[lang].code} />
</div>
{(Object.keys(SAMPLES) as Lang[]).map((k) => (
<TabsContent key={k} value={k}>
<pre className="overflow-x-auto p-5 font-mono text-[13px] leading-[1.7]">
<code>
<Highlight code={SAMPLES[k].code} />
</code>
</pre>
</TabsContent>
))}
</Tabs>
<div className="border-t border-border bg-muted/60 px-5 py-3.5">
<p className="text-[12px] font-medium text-muted-foreground">Response · 201 Created</p>
<pre className="mt-1 overflow-x-auto font-mono text-[13px]">
<code>{RESPONSE}</code>
</pre>
</div>
</div>
</div>
</section>
)
}