Templates
Full pages assembled from blocks. Open one full screen, then copy the composition and the blocks it uses.
Home Dashboard
CRM dashboard: revenue and pipeline KPIs, revenue trend, deals closing soon, pipeline by stage, tasks, rep leaderboard and activity.
"use client";
import {
ArrowRight,
ArrowRightLeft,
BarChart3,
Building2,
CalendarCheck,
ChartPie,
CircleDollarSign,
Download,
FileSignature,
Handshake,
LayoutDashboard,
LifeBuoy,
ListChecks,
Mail,
Phone,
Plug,
Plus,
Settings,
SquareKanban,
TrendingUp,
Trophy,
UserPlus,
Users,
} from "lucide-react";
import { AreaChart } from "@/components/charts/area-chart";
import { formatCompact, formatNumber } from "@/components/charts/chart-kit";
import { DonutChart } from "@/components/charts/donut-chart";
import { Sparkline } from "@/components/charts/sparkline";
import { Avatar, CompanyMark } from "@/components/ui/avatar";
import { Badge, type BadgeTone } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Card, CardBody, CardHeader, IconTile } from "@/components/ui/card";
import { Checkbox } from "@/components/ui/checkbox";
import { FilterButton } from "@/components/ui/filter";
import { NavItem } from "@/components/ui/nav-item";
import { Delta, Metric } from "@/components/ui/metric";
import { ProgressBar } from "@/components/ui/progress-bar";
import { SegmentedControl } from "@/components/ui/segmented-control";
import { Cell, Column, Row, Table, TableBody, TableContainer, TableHeader } from "@/components/ui/table";
import { crmDeals, crmMetrics, crmPipeline, crmReps, crmRevenue, crmTasks, type DealStage } from "@/lib/demo-data";
import { ActivityFeed } from "./activity-feed";
import { DataTable, type DataTableColumn, type DataTableView } from "./data-table";
import { MetricsStrip } from "./metrics-strip";
import { PageHeader } from "./page-header";
import { Sidebar, type SidebarSection } from "./sidebar";
import { Topbar } from "./topbar";
const usd = (n: number) => `$${formatCompact(n)}`;
/** Two decimals for headline totals, e.g. $1.61M. */
const usd2 = (n: number) => `$${formatNumber(n, { notation: "compact", maximumFractionDigits: 2 })}`;
const crmNav: SidebarSection[] = [
{
items: [
{ label: "Dashboard", icon: <LayoutDashboard /> },
{ label: "Contacts", icon: <Users />, count: "2,418" },
{ label: "Companies", icon: <Building2 />, count: 612 },
{ label: "Deals", icon: <Handshake />, count: 142 },
{ label: "Tasks", icon: <ListChecks />, badge: 3 },
],
},
{
label: "Sales",
items: [
{ label: "Pipeline", icon: <SquareKanban /> },
{ label: "Forecast", icon: <TrendingUp /> },
{ label: "Reports", icon: <BarChart3 /> },
],
},
{
label: "Workspace",
items: [{ label: "Integrations", icon: <Plug /> }],
},
];
const stageTone: Record<DealStage, BadgeTone> = { Proposal: "info", Negotiation: "warning", "Contract sent": "success" };
const activity = [
{ id: "1", icon: <Handshake />, title: "Ledgerly moved to Contract sent · $84K", meta: "18 min ago · Jordan Blake" },
{ id: "2", icon: <Phone />, title: "Call with Daniel Brooks (Verdant Cloud) — 32 min", meta: "1h ago · Marco Silva" },
{ id: "3", icon: <Mail />, title: "Proposal opened 4 times by Northpeak", meta: "2h ago · Email tracking" },
{ id: "4", icon: <CalendarCheck />, title: "Demo booked with Fathom Data for Thu, Nov 20", meta: "3h ago · Priya Raman" },
{ id: "5", icon: <FileSignature />, title: "Plinth signed the Growth plan · $18K ARR", meta: "Yesterday · Samuel Ortiz" },
];
const teamRevenue = crmReps.reduce((s, r) => s + r.revenue, 0);
/** Team attainment = total won ÷ total quota (each rep's quota derived from their attainment). */
const teamQuota = Math.round((teamRevenue / crmReps.reduce((s, r) => s + r.revenue / (r.quota / 100), 0)) * 100);
const topRep = crmReps[0]!;
const ytd = crmRevenue.reduce((s, m) => s + m.value, 0);
const ytdPrev = crmRevenue.reduce((s, m) => s + (m.previous ?? 0), 0);
type Deal = (typeof crmDeals)[number];
const dealViews: DataTableView<Deal>[] = [
{ id: "all", label: "All deals", filter: () => true },
{ id: "contract", label: "Contract sent", filter: (d) => d.stage === "Contract sent" },
{ id: "negotiation", label: "Negotiation", filter: (d) => d.stage === "Negotiation" },
{ id: "proposal", label: "Proposal", filter: (d) => d.stage === "Proposal" },
];
const dealColumns: DataTableColumn<Deal>[] = [
{
id: "deal",
label: "Deal",
isRowHeader: true,
sortValue: (d) => d.company,
cell: (d) => (
<span className="flex items-center gap-3">
<CompanyMark name={d.company} size="lg" color={d.brand} />
<span className="min-w-0 max-w-32">
<span className="block truncate font-medium text-fg">{d.company}</span>
<span className="block truncate text-sm text-fg-muted">{d.name}</span>
</span>
</span>
),
},
{
id: "stage",
label: "Stage",
cell: (d) => (
<Badge variant="dot" tone={stageTone[d.stage]}>
{d.stage}
</Badge>
),
},
{
id: "close",
label: "Close",
sortValue: (d) => Date.parse(`${d.close} 2026`),
cell: (d) => (
<span className="flex items-center gap-2 whitespace-nowrap">
<Avatar name={d.owner} size="xs" />
{d.close}
</span>
),
},
{
id: "probability",
label: "Win prob.",
sortValue: (d) => d.probability,
cell: (d) => (
<ProgressBar
value={d.probability}
label={`${d.company} win probability`}
labelPosition="right"
tone={d.probability >= 70 ? "success" : d.probability >= 50 ? "warning" : "neutral"}
className="w-20"
/>
),
},
{ id: "value", label: "Value", align: "right", sortValue: (d) => d.value, cell: (d) => <span className="font-medium tabular-nums">{usd(d.value)}</span> },
];
/**
* CRM Home Dashboard template, assembled only from Vantu blocks, components and
* charts. Same frame as the other workspace templates: full-width content, a
* main column and a 360px side rail.
*/
export function HomeDashboard() {
return (
<div className="flex h-dvh bg-app">
<Sidebar
active="Dashboard"
sections={crmNav}
footer={
<>
<NavItem label="Settings" icon={<Settings />} />
<NavItem label="Help & support" icon={<LifeBuoy />} />
</>
}
className="hidden lg:flex"
/>
<div className="flex min-w-0 flex-1 flex-col bg-surface">
<Topbar crumbs={["Dashboard"]} icon={<LayoutDashboard />} />
<main className="min-w-0 flex-1 overflow-y-auto">
<div className="flex flex-col gap-5 px-4 pb-8 pt-6 sm:px-8">
<PageHeader
title="Good morning, Edi"
description="Here’s how your pipeline is tracking this quarter."
actions={
<>
<FilterButton label="Period" value="This quarter" />
<Button leadingIcon={<Download />}>Export</Button>
<Button variant="primary" leadingIcon={<Plus />}>
New deal
</Button>
</>
}
/>
<MetricsStrip items={crmMetrics} trend="line" />
<div className="grid gap-5 xl:grid-cols-[minmax(0,1fr)_360px] [&>*]:min-w-0">
{/* Main column */}
<div className="flex flex-col gap-5">
<Card>
<CardHeader
icon={
<IconTile>
<CircleDollarSign />
</IconTile>
}
title="Revenue won"
description="Monthly, vs. the same month last year"
actions={
<SegmentedControl
aria-label="Range"
size="sm"
defaultValue="ytd"
options={[
{ id: "q", label: "QTD" },
{ id: "ytd", label: "YTD" },
{ id: "12m", label: "12M" },
]}
/>
}
/>
<CardBody className="p-4">
<Metric
size="md"
label="Year to date"
value={usd2(ytd)}
delta={<Delta value={Math.round(((ytd - ytdPrev) / ytdPrev) * 100)} />}
caption={`vs. ${usd2(ytdPrev)} last year`}
className="mb-4"
/>
<AreaChart data={crmRevenue} seriesLabel="This year" previousLabel="Last year" format={usd} />
</CardBody>
</Card>
<DataTable
rows={crmDeals}
columns={dealColumns}
views={dealViews}
searchText={(d) => `${d.company} ${d.name} ${d.owner}`}
searchPlaceholder="Search deals"
filters={<FilterButton label="Owner" value="All owners" />}
bulkActions={
<>
<Button size="sm" leadingIcon={<UserPlus />}>
Assign owner
</Button>
<Button size="sm" leadingIcon={<ArrowRightLeft />}>
Move stage
</Button>
<Button size="sm" leadingIcon={<Download />}>
Export
</Button>
</>
}
defaultSort={{ column: "close", direction: "ascending" }}
pageSize={6}
itemLabel="deals"
minWidth={600}
icon={
<IconTile tone="rose">
<Handshake />
</IconTile>
}
title="Deals closing soon"
description={`Next 30 days · ${usd(crmDeals.reduce((s, d) => s + d.value, 0))} in play`}
actions={
<Button size="sm" trailingIcon={<ArrowRight />}>
Pipeline
</Button>
}
/>
</div>
{/* Side rail */}
<div className="flex flex-col gap-5">
<Card>
<CardHeader
icon={
<IconTile tone="teal">
<ChartPie />
</IconTile>
}
title="Pipeline by stage"
description="Open deal value"
/>
<CardBody className="p-4">
<DonutChart data={crmPipeline} format={usd} legend="bottom" centerValue="$1.86M" centerLabel="Open pipeline" />
</CardBody>
</Card>
<Card>
<CardHeader
icon={
<IconTile tone="orange">
<ListChecks />
</IconTile>
}
title="My tasks"
description={`${crmTasks.filter((t) => !t.done).length} open · 1 overdue`}
actions={
<Button size="sm" leadingIcon={<Plus />}>
Add
</Button>
}
/>
<CardBody>
<ul className="divide-y divide-line-subtle">
{crmTasks.map((t) => (
<li key={t.id} className="flex items-start gap-3 px-4 py-3">
<Checkbox defaultSelected={t.done} aria-label={t.title} className="mt-0.5" />
<div className="min-w-0 flex-1">
<div className={t.done ? "text-fg-muted line-through" : "text-fg"}>{t.title}</div>
<div className="mt-1">
<Badge size="sm" tone={t.overdue ? "error" : t.due === "Today" ? "warning" : "neutral"}>
{t.overdue ? `Overdue · ${t.due}` : t.due}
</Badge>
</div>
</div>
</li>
))}
</ul>
</CardBody>
</Card>
<ActivityFeed items={activity} />
</div>
</div>
{/* Rep leaderboard */}
<Card>
<CardHeader
icon={
<IconTile>
<Trophy />
</IconTile>
}
title="Revenue by rep"
description="Won this quarter · ranked by revenue"
actions={
<SegmentedControl
aria-label="Team"
size="sm"
defaultValue="all"
options={[
{ id: "all", label: "All teams" },
{ id: "ent", label: "Enterprise" },
{ id: "mm", label: "Mid-market" },
]}
/>
}
/>
<CardBody>
{/* Summary tiles, divided by 1px rules like the Metrics Strip. */}
<div className="grid gap-px border-b border-line bg-line sm:grid-cols-3">
<Metric size="md" className="bg-surface p-4" label="Team revenue" value={usd2(teamRevenue)} delta={<Delta value={14} />} caption="vs. $423K last quarter" />
<Metric
size="md"
className="bg-surface p-4"
label="Team quota attainment"
value={`${teamQuota}%`}
delta={<Delta value={6}>+6 pts</Delta>}
caption={`${crmReps.filter((r) => r.quota >= 100).length} of ${crmReps.length} reps at or above quota`}
/>
<div className="flex items-center gap-3 bg-surface p-4">
<Avatar name={topRep.name} size="xl" status="online" />
<div className="min-w-0">
<div className="text-base text-fg-secondary">Top performer</div>
<div className="mt-1 truncate text-lg font-semibold text-fg">{topRep.name}</div>
<div className="mt-0.5 text-sm text-fg-muted">
{topRep.quota}% of quota · {usd(topRep.revenue)} won
</div>
</div>
</div>
</div>
<div className="p-3">
<TableContainer>
<Table aria-label="Revenue by rep" className="min-w-[760px]">
<TableHeader>
<Column className="w-12">#</Column>
<Column isRowHeader>Rep</Column>
<Column className="text-right">Deals won</Column>
<Column>Revenue won</Column>
<Column>Quota attainment</Column>
<Column>Trend</Column>
</TableHeader>
<TableBody items={crmReps}>
{(r) => {
const rank = crmReps.indexOf(r) + 1;
return (
<Row id={r.id}>
<Cell>
{rank <= 3 ? (
<Badge tone={rank === 1 ? "accent" : "neutral"} variant={rank === 1 ? "solid" : "soft"}>
{rank}
</Badge>
) : (
<span className="pl-2 text-fg-muted">{rank}</span>
)}
</Cell>
<Cell>
<span className="flex items-center gap-3">
<Avatar name={r.name} size="lg" />
<span className="min-w-0">
<span className="block truncate font-medium text-fg">{r.name}</span>
<span className="block truncate text-sm text-fg-muted">{r.team}</span>
</span>
</span>
</Cell>
<Cell className="text-right tabular-nums">{r.deals}</Cell>
<Cell>
<span className="flex items-center gap-3">
<span className="w-16 shrink-0 font-medium tabular-nums text-fg">{usd(r.revenue)}</span>
{/* Decorative: the figure is the text beside it. */}
<span aria-hidden className="w-40">
<ProgressBar value={r.revenue} max={topRep.revenue} tone={rank <= 3 ? "accent" : "neutral"} />
</span>
</span>
</Cell>
<Cell>
<span className="flex items-center gap-3">
<span aria-hidden className="w-28">
<ProgressBar value={Math.min(r.quota, 100)} tone={r.quota >= 100 ? "success" : r.quota >= 80 ? "warning" : "neutral"} />
</span>
<span className="w-11 text-right text-sm font-medium tabular-nums text-fg">{r.quota}%</span>
</span>
</Cell>
<Cell>
<Sparkline values={r.spark} label={`${r.name}, weekly revenue trend`} tone={r.spark.at(-1)! >= r.spark[0]! ? "accent" : "error"} area={false} className="w-20" />
</Cell>
</Row>
);
}}
</TableBody>
</Table>
</TableContainer>
</div>
</CardBody>
</Card>
</div>
</main>
</div>
</div>
);
}All Prospects
App shell, page header with import/add actions and the full data table with views, filters, bulk actions and pagination.
"use client";
import { Plus, Upload, Users } from "lucide-react";
import { Button } from "@/components/ui/button";
import { prospectRecords } from "@/lib/demo-data";
import { ProspectsDataTable } from "./prospects-data-table";
import { PageHeader } from "./page-header";
import { Sidebar } from "./sidebar";
import { Topbar } from "./topbar";
/** All Prospects template: app shell + page header + data table. */
export function ProspectsPage() {
return (
<div className="flex h-dvh bg-app">
<Sidebar active="Prospects" className="hidden lg:flex" />
<div className="flex min-w-0 flex-1 flex-col bg-surface">
<Topbar crumbs={["Prospects"]} icon={<Users />} />
<main className="min-w-0 flex-1 overflow-y-auto">
<div className="flex min-w-0 flex-col gap-6 px-4 py-6 sm:px-8">
<PageHeader
title="Prospects"
description="Discover, qualify, and manage your highest-value prospects."
actions={
<>
<Button leadingIcon={<Upload />}>Import</Button>
<Button variant="primary" leadingIcon={<Plus />}>
Add prospect
</Button>
</>
}
/>
<ProspectsDataTable rows={prospectRecords} />
</div>
</main>
</div>
</div>
);
}Team Dashboard
Greeting header, meetings-goal gauge, team availability, current campaign, notes and a schedule column with day picker.
"use client";
import { Calendar, CalendarCheck, CalendarDays, Check, ChevronDown, ChevronLeft, ChevronRight, Clock, Home, NotebookPen, Plus, Rocket, Search, Target, UsersRound, Video } from "lucide-react";
import { useState } from "react";
import { Avatar, AvatarGroup } from "@/components/ui/avatar";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { RadialChart } from "@/components/charts/radial-chart";
import { DescriptionList } from "@/components/ui/description-list";
import { IconButton } from "@/components/ui/icon-button";
import { Input } from "@/components/ui/input";
import { Kbd } from "@/components/ui/kbd";
import { Tab, TabList, TabPanel, Tabs } from "@/components/ui/tabs";
import { Tag } from "@/components/ui/tag";
import { cx } from "@/utils/cx";
import { AppShell } from "./app-shell";
import { WidgetCard } from "./widget-card";
const deals = [
{ date: "Sep 15", company: "Ledgerly", status: "Booked", tone: "success" as const },
{ date: "Sep 17", company: "Northpeak", status: "Pending", tone: "warning" as const },
{ date: "Sep 19", company: "Plinth", status: "Declined", tone: "error" as const },
];
const availability = [
{ group: "In a meeting", people: [{ name: "Marco Silva", note: "Demo · Ledgerly", status: "busy" as const, time: "25m" }] },
{
group: "Away",
people: [
{ name: "Leah Moss", note: "Back after lunch", status: "away" as const, time: "40m" },
{ name: "Priya Raman", note: "Customer visit", status: "away" as const, time: "1h" },
{ name: "Tom Hartley", note: "Focus time", status: "away" as const, time: "12m" },
],
},
];
const notes = [
{ title: "Prep pricing objections for Ledgerly", body: "Collect the three most common objections from last quarter’s calls.", tags: ["Today", "Prep"], date: "Sep 15", done: false },
{ title: "Review Northpeak mutual action plan", body: "Align legal review dates with their procurement calendar.", tags: ["Today", "Deal"], date: "Sep 14", done: true },
{ title: "Share sequence results with the team", body: "Post-event sequence is at 13.8% reply — write up what worked.", tags: ["Yesterday"], date: "Sep 13", done: true },
];
const days = [
{ d: "Fri", n: 12 },
{ d: "Sat", n: 13 },
{ d: "Sun", n: 14 },
{ d: "Mon", n: 15 },
{ d: "Tue", n: 16 },
];
const meetings = [
{ title: "Discovery with Sarah Chen", time: "9:00 – 9:45 AM", where: "Google Meet", people: ["Sarah Chen", "Jordan Blake", "Leah Moss"], tag: "Discovery", tone: "accent" as const },
{ title: "Pipeline review", time: "11:00 – 11:30 AM", where: "Zoom", people: ["Jordan Blake", "Marco Silva", "Priya Raman", "Tom Hartley"], tag: "Internal", tone: "neutral" as const },
{ title: "Negotiation · Northpeak", time: "2:00 – 3:00 PM", where: "Slack huddle", people: ["Marcus Reid", "Jordan Blake"], tag: "Closing", tone: "success" as const },
];
function MeetingCard({ m }: { m: (typeof meetings)[number] }) {
const [open, setOpen] = useState(true);
return (
<div className="rounded-md bg-subtle p-3.5 ring-1 ring-inset ring-line-subtle">
<button type="button" onClick={() => setOpen((o) => !o)} aria-expanded={open} className="flex w-full items-start gap-2 text-left outline-none focus-visible:shadow-focus">
<div className="min-w-0 flex-1">
<div className="truncate text-base font-medium text-fg">{m.title}</div>
<div className="mt-0.5 text-sm text-fg-secondary">{m.time}</div>
</div>
<span className="flex size-6 items-center justify-center rounded-full bg-surface shadow-button">
<ChevronDown className={cx("size-3.5 text-fg-muted transition-transform", open && "rotate-180")} />
</span>
</button>
{open && (
<>
<div className="mt-3">
<AvatarGroup names={m.people} size="sm" max={3} />
</div>
<div className="mt-3 flex items-center justify-between gap-2 text-sm text-fg-secondary">
<span className="inline-flex items-center gap-1.5">
<Video className="size-3.5" /> {m.where}
</span>
<Badge tone={m.tone} size="sm">
{m.tag}
</Badge>
</div>
</>
)}
</div>
);
}
/** Team workspace dashboard: goal gauge, availability, campaign details, notes and schedule. */
export function TeamDashboard() {
const [day, setDay] = useState(14);
const [done, setDone] = useState(notes.map((n) => n.done));
return (
<AppShell
active="Dashboard"
crumbs={["Dashboard"]}
icon={<Home />}
title="Welcome back, Edi"
description="Here’s your team’s day at a glance."
actions={
<>
<Button leadingIcon={<CalendarDays />} className="hidden sm:inline-flex">
Schedule
</Button>
<Button variant="primary" leadingIcon={<Plus />}>
New deal
</Button>
</>
}
>
<div className="grid gap-5 px-4 pb-8 pt-6 sm:px-8 xl:grid-cols-[minmax(0,1fr)_minmax(0,1fr)_360px] [&>*]:min-w-0">
<div className="flex flex-col gap-5">
<WidgetCard icon={<Target />} title="Meetings goal" action={<Button size="xs">See all</Button>}>
{/* Radial Chart from the charts library; target = pacing for Sep 14 (14/30 days × 20 ≈ 9). */}
<div className="pb-4 pt-1">
<RadialChart value={14} max={20} target={9} label="Booked" caption="of 20 meetings" className="max-w-52" />
</div>
<ul className="divide-y divide-line-subtle border-t border-line-subtle">
{deals.map((d) => (
<li key={d.company} className="flex items-center gap-2.5 py-3 text-base">
<CalendarCheck className="size-4 text-fg-muted" />
<span className="text-fg">{d.date}</span>
<span className="flex-1 truncate text-sm text-fg-muted">({d.company})</span>
<Badge tone={d.tone} size="sm">
{d.status}
</Badge>
</li>
))}
</ul>
</WidgetCard>
<WidgetCard icon={<UsersRound />} tone="teal" title="Team availability" action={<Button size="xs">See all</Button>} bodyClassName="p-0">
{availability.map((g) => (
<div key={g.group} className="border-b border-line-subtle px-4 py-3 last:border-0">
<div className="mb-2.5 text-sm text-fg-muted">{g.group}</div>
<ul className="flex flex-col gap-3">
{g.people.map((p) => (
<li key={p.name} className="flex items-center gap-3">
<Avatar name={p.name} size="lg" status={p.status} />
<div className="min-w-0 flex-1">
<div className="truncate text-base font-medium text-fg">{p.name}</div>
<div className="truncate text-sm text-fg-muted">{p.note}</div>
</div>
<Badge tone={p.status === "busy" ? "error" : "warning"} variant="outline" size="sm" icon={<Clock />}>
{p.time}
</Badge>
</li>
))}
</ul>
</div>
))}
</WidgetCard>
</div>
<div className="flex flex-col gap-5">
<WidgetCard icon={<Rocket />} tone="rose" title="Current campaign" action={<Button size="xs">See all</Button>}>
<div className="text-sm text-fg-muted">Campaign</div>
<div className="mt-1.5 flex flex-wrap items-center gap-2">
<span className="flex size-5 items-center justify-center rounded-[6px] bg-linear-to-b from-accent-light to-accent text-[10px] font-bold text-white">Q4</span>
<span className="text-base font-medium text-fg">Q4 Enterprise push</span>
<Badge tone="warning" size="sm" variant="soft">
In progress
</Badge>
</div>
<div className="mt-4 grid grid-cols-2 gap-4">
<div>
<div className="text-sm text-fg-muted">Owner</div>
<div className="mt-1.5 flex items-center gap-2 text-base text-fg">
<Avatar name="Leah Moss" size="sm" /> Leah M.
</div>
</div>
<div>
<div className="text-sm text-fg-muted">AI lead</div>
<div className="mt-1.5 flex items-center gap-2 text-base text-fg">
<Avatar name="Vantu AI" size="sm" color="violet" /> Vantu AI
</div>
</div>
</div>
<div className="mt-4 text-sm text-fg-muted">Team</div>
<div className="mt-1.5 flex items-center gap-2">
<AvatarGroup names={["Jordan Blake", "Marco Silva", "Priya Raman", "Tom Hartley", "Leah Moss", "Grace Kim"]} size="sm" max={4} />
<span className="text-sm text-fg-secondary">+2 people</span>
</div>
<DescriptionList
className="mt-4 border-t border-line-subtle pt-4"
items={[
{ label: "Timeline", value: <span className="inline-flex items-center gap-1.5"><Calendar className="size-3.5 text-fg-muted" /> Oct 1 – Dec 20</span> },
{ label: "Target", value: "40 meetings · $1.2M pipeline" },
{ label: "Brief", value: "Series B SaaS, 200–1,000 employees, US + UK." },
]}
/>
</WidgetCard>
<WidgetCard icon={<NotebookPen />} tone="orange" title="Notes" action={<Button size="xs" leadingIcon={<Plus />}>Add note</Button>} bodyClassName="p-0">
<ul className="divide-y divide-line-subtle">
{notes.map((n, i) => (
<li key={n.title} className="flex gap-3 px-4 py-3.5">
<button
type="button"
role="checkbox"
aria-checked={done[i]}
aria-label={`Mark “${n.title}” done`}
onClick={() => setDone((d) => d.map((v, j) => (j === i ? !v : v)))}
className={cx(
"mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full outline-none focus-visible:shadow-focus",
done[i] ? "bg-success text-white" : "border border-line-strong",
)}
>
{done[i] && <Check className="size-2.5" strokeWidth={3.5} />}
</button>
<div className="min-w-0 flex-1">
<div className={cx("truncate text-base font-medium", done[i] ? "text-fg-muted line-through decoration-fg-disabled" : "text-fg")}>{n.title}</div>
<p className="mt-0.5 truncate text-sm text-fg-muted">{n.body}</p>
<div className="mt-2 flex items-center gap-1.5">
{n.tags.map((t) => (
<Tag key={t} variant={done[i] ? "stroke" : "gray"}>
{t}
</Tag>
))}
<span className="ml-auto inline-flex items-center gap-1 text-sm text-fg-muted">
<Calendar className="size-3.5" /> {n.date}
</span>
</div>
</div>
</li>
))}
</ul>
</WidgetCard>
</div>
<WidgetCard icon={<CalendarDays />} tone="teal" title="Schedule" action={<Button size="xs">See all</Button>} className="xl:row-span-2">
<div className="flex items-center justify-between rounded-md bg-subtle px-2 py-1.5">
<IconButton variant="ghost" size="xs" aria-label="Previous month">
<ChevronLeft />
</IconButton>
<span className="text-base font-medium text-fg">September 2026</span>
<IconButton variant="ghost" size="xs" aria-label="Next month">
<ChevronRight />
</IconButton>
</div>
<div className="mt-3 grid grid-cols-5 gap-1.5" role="radiogroup" aria-label="Day">
{days.map((x) => (
<button
key={x.n}
type="button"
role="radio"
aria-checked={day === x.n}
onClick={() => setDay(x.n)}
className={cx(
"flex flex-col items-center rounded-md py-2 outline-none transition-colors focus-visible:shadow-focus",
day === x.n ? "bg-linear-to-b from-accent-light to-accent text-white shadow-button-primary" : "text-fg hover:bg-muted",
)}
>
<span className={cx("text-sm", day === x.n ? "text-white/80" : "text-fg-muted")}>{x.d}</span>
<span className="text-xl font-medium tabular">{String(x.n).padStart(2, "0")}</span>
</button>
))}
</div>
<Input aria-label="Search schedule" placeholder="Search…" icon={<Search />} trailing={<Kbd>⌘1</Kbd>} className="mt-4" />
<Tabs className="mt-2">
<TabList aria-label="Schedule type" className="gap-4">
<Tab id="meetings">Meetings</Tab>
<Tab id="events">Events</Tab>
<Tab id="holidays">Holidays</Tab>
</TabList>
<TabPanel id="meetings" className="flex flex-col gap-3">
{meetings.map((m) => (
<MeetingCard key={m.title} m={m} />
))}
</TabPanel>
<TabPanel id="events" className="py-6 text-center text-base text-fg-muted">
SaaStr Europa · Sep 18
</TabPanel>
<TabPanel id="holidays" className="py-6 text-center text-base text-fg-muted">
No holidays this week.
</TabPanel>
</Tabs>
</WidgetCard>
</div>
</AppShell>
);
}Calendar
Week view with status summary cards, filter tabs with counts and a time grid of positioned events.
"use client";
import { AlertTriangle, CalendarDays, ChevronDown, ChevronLeft, ChevronRight, CircleSlash, Clock, Filter, LayoutGrid, MapPin, Plus, Search, Settings2, Users, Video } from "lucide-react";
import { useState } from "react";
import { AvatarGroup } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
import { Counter } from "@/components/ui/counter";
import { IconButton } from "@/components/ui/icon-button";
import { Input } from "@/components/ui/input";
import { Kbd } from "@/components/ui/kbd";
import { LinkButton } from "@/components/ui/link-button";
import { Select, SelectItem } from "@/components/ui/select";
import { Tab, TabList, Tabs } from "@/components/ui/tabs";
import { cx } from "@/utils/cx";
import { AppShell } from "./app-shell";
type Kind = "meeting" | "event" | "internal";
interface CalEvent {
title: string;
day: number; // 0–4 (Mon–Fri)
start: number; // hours, e.g. 9.5
end: number;
kind: Kind;
status?: "conflict" | "cancelled";
people?: string[];
where?: string;
}
const events: CalEvent[] = [
{ title: "Pipeline standup", day: 0, start: 9, end: 9.5, kind: "internal" },
{ title: "Forecast review", day: 0, start: 9.5, end: 10, kind: "internal" },
{ title: "Workshop: Objection handling", day: 0, start: 11.5, end: 13, kind: "event", where: "Room 4B" },
{ title: "Discovery · Ledgerly", day: 1, start: 9, end: 9.5, kind: "meeting", people: ["Sarah Chen", "Jordan Blake"], where: "Meet" },
{ title: "SDR training: AI prospecting", day: 1, start: 10, end: 11, kind: "meeting", people: ["Leah Moss", "Grace Kim", "Tom Hartley", "Marco Silva"], where: "Zoom" },
{ title: "Quarterly business review", day: 1, start: 12, end: 12.5, kind: "meeting", status: "conflict" },
{ title: "Demo · Verdant Cloud", day: 1, start: 12.5, end: 13.25, kind: "meeting", people: ["Daniel Brooks", "Jordan Blake"], where: "Meet" },
{ title: "Sequence strategy", day: 2, start: 9.5, end: 10, kind: "internal" },
{ title: "Territory planning", day: 2, start: 11, end: 11.5, kind: "internal", status: "cancelled" },
{ title: "Negotiation · Northpeak", day: 2, start: 11.5, end: 13, kind: "meeting", people: ["Marcus Reid", "Priya Raman", "Jordan Blake"], where: "Zoom" },
{ title: "Customer feedback session", day: 3, start: 9, end: 10, kind: "meeting", people: ["Elena Vasquez", "Leah Moss", "Grace Kim"], where: "Meet" },
{ title: "Webinar: Outbound in 2027", day: 3, start: 11.5, end: 13, kind: "event", where: "vantu-ui.vercel.app/live" },
];
const kindStyle: Record<Kind, string> = {
meeting: "bg-accent-soft ring-accent-soft-border",
event: "bg-warning-soft ring-warning-border",
internal: "bg-muted ring-line",
};
const summary = [
{ title: "Weekly pipeline review", time: "3:00 PM – 4:30 PM", tone: "success", label: "Today", action: "Join meeting", Icon: Clock },
{ title: "Partner launch event", time: "9:00 AM – 12:00 PM", tone: "warning", label: "2 conflicts", action: "See conflict", Icon: AlertTriangle },
{ title: "Team offsite planning", time: "9:00 AM – 12:00 PM", tone: "error", label: "Cancelled", action: "Sep 16", Icon: CircleSlash },
{ title: "EMEA campaign kickoff", time: "2:30 PM – 4:00 PM", tone: "neutral", label: "3 days later", action: "Sep 21", Icon: Clock },
] as const;
const toneStrip = {
success: "bg-success-soft text-success-text",
warning: "bg-warning-soft text-warning-text",
error: "bg-error-soft text-error-text",
neutral: "bg-muted text-fg-secondary",
};
const START = 9;
const END = 14;
const HOUR = 72; // px per hour
const dayNames = ["14 Mon", "15 Tue", "16 Wed", "17 Thu", "18 Fri"];
function fmt(h: number) {
const hh = Math.floor(h);
const mm = Math.round((h - hh) * 60);
const ap = hh >= 12 ? "PM" : "AM";
return `${((hh + 11) % 12) + 1}:${String(mm).padStart(2, "0")} ${ap}`;
}
/** Week calendar: status summary cards, filter tabs and a time grid with positioned events. */
export function CalendarPage() {
const [filter, setFilter] = useState<string>("all");
const shown = events.filter((e) =>
filter === "all" ? true : filter === "meetings" ? e.kind === "meeting" : filter === "events" ? e.kind === "event" : filter === "conflict" ? e.status === "conflict" : e.status === "cancelled",
);
const count = (f: string) =>
events.filter((e) => (f === "meetings" ? e.kind === "meeting" : f === "events" ? e.kind === "event" : f === "conflict" ? e.status === "conflict" : e.status === "cancelled")).length;
return (
<AppShell
active="Calendar"
crumbs={["Calendar"]}
icon={<CalendarDays />}
title="September 14, 2026"
description="You have 4 meetings and 1 event today."
actions={
<>
<Button leadingIcon={<CalendarDays />} className="hidden sm:inline-flex">
Schedule
</Button>
<Button variant="primary" leadingIcon={<Plus />}>
New event
</Button>
</>
}
>
<div className="flex flex-col gap-5 px-4 pb-8 pt-6 sm:px-8">
<div className="flex flex-wrap items-center gap-2">
<Button size="sm">Today</Button>
<Select aria-label="Range" defaultSelectedKey="7" className="w-36">
<SelectItem id="7">Last 7 days</SelectItem>
<SelectItem id="30">Last 30 days</SelectItem>
</Select>
<Button size="sm" leadingIcon={<CalendarDays />}>
Sep 14 – Sep 18, 2026
</Button>
<div className="ml-auto flex items-center gap-2">
<Input aria-label="Search events" placeholder="Search…" icon={<Search />} trailing={<Kbd>⌘1</Kbd>} className="w-56" />
<Button size="sm" leadingIcon={<Filter />}>
Filter
</Button>
<IconButton aria-label="Calendar settings">
<Settings2 />
</IconButton>
</div>
</div>
<Tabs selectedKey={filter} onSelectionChange={(k) => setFilter(String(k))}>
<TabList aria-label="Event filter" className="overflow-x-auto">
<Tab id="all">
<LayoutGrid className="size-4" /> All scheduled
</Tab>
<Tab id="meetings">
<Video className="size-4" /> Meetings <Counter>{count("meetings")}</Counter>
</Tab>
<Tab id="events">
<CalendarDays className="size-4" /> Events <Counter>{count("events")}</Counter>
</Tab>
<Tab id="conflict">
<AlertTriangle className="size-4" /> Conflicted <Counter>{count("conflict")}</Counter>
</Tab>
<Tab id="cancelled">
<CircleSlash className="size-4" /> Cancelled <Counter>{count("cancelled")}</Counter>
</Tab>
</TabList>
</Tabs>
<div className="grid gap-3 sm:grid-cols-2 xl:grid-cols-4">
{summary.map((s) => (
<div key={s.title} className="rounded-lg border border-line bg-subtle p-1 shadow-card">
<div className="flex items-start gap-2 rounded-[12px] border border-line bg-surface p-3.5">
<div className="min-w-0 flex-1">
<div className="truncate text-base font-medium text-fg">{s.title}</div>
<div className="mt-0.5 text-sm text-fg-muted">{s.time}</div>
</div>
<span className="flex size-6 items-center justify-center rounded-full shadow-button">
<ChevronDown className="size-3.5 text-fg-muted" />
</span>
</div>
<div className={cx("mt-1 flex items-center gap-1.5 rounded-[10px] px-2.5 py-2 text-sm font-medium", toneStrip[s.tone])}>
<s.Icon className="size-3.5" /> {s.label}
{s.tone === "success" || s.tone === "warning" ? (
<LinkButton tone="black" size="sm" underline className="ml-auto">
{s.action}
</LinkButton>
) : (
<span className="ml-auto font-normal">{s.action}</span>
)}
</div>
</div>
))}
</div>
<div className="rounded-lg border border-line bg-subtle p-1 shadow-card">
<div className="relative overflow-x-auto rounded-[12px] border border-line bg-surface">
<div className="min-w-[880px]">
<div className="grid grid-cols-[72px_repeat(5,minmax(0,1fr))] border-b border-line bg-subtle text-sm">
<div className="flex items-center justify-center gap-1 border-r border-line py-2">
<IconButton variant="ghost" size="xs" aria-label="Previous week">
<ChevronLeft />
</IconButton>
<IconButton variant="ghost" size="xs" aria-label="Next week">
<ChevronRight />
</IconButton>
</div>
{dayNames.map((d, i) => (
<div key={d} className={cx("flex items-center justify-center border-r border-line py-2 font-medium last:border-0", i === 0 ? "text-accent-text" : "text-fg-muted")}>
{d.toUpperCase()}
</div>
))}
</div>
<div className="grid grid-cols-[72px_repeat(5,minmax(0,1fr))]" style={{ height: (END - START) * HOUR }}>
<div className="relative border-r border-line">
{Array.from({ length: END - START }, (_, i) => (
<span key={i} className="absolute right-3 text-sm text-fg-muted" style={{ top: i * HOUR + 6 }}>
{fmt(START + i).replace(":00", "")}
</span>
))}
</div>
{dayNames.map((d, di) => (
<div
key={d}
className={cx("relative border-r border-line last:border-0", di === 4 && "bg-[repeating-linear-gradient(135deg,var(--color-subtle)_0_6px,var(--color-surface)_6px_12px)]")}
style={{ backgroundImage: di === 4 ? undefined : `repeating-linear-gradient(to bottom, transparent 0 ${HOUR - 1}px, var(--color-line-subtle) ${HOUR - 1}px ${HOUR}px)` }}
>
{shown
.filter((e) => e.day === di)
.map((e) => {
// 30-minute slots are too short for two lines: title and start time share one.
const short = e.end - e.start <= 0.5;
return (
<article
key={e.title}
title={`${e.title} · ${fmt(e.start)} – ${fmt(e.end)}`}
className={cx(
"absolute inset-x-1.5 flex overflow-hidden rounded-[10px] px-2.5 ring-1 ring-inset",
short ? "items-center gap-1.5" : "flex-col py-1.5",
e.status === "cancelled" ? "bg-error-soft ring-error-border" : e.status === "conflict" ? "bg-warning-soft ring-warning-border" : kindStyle[e.kind],
)}
style={{ top: (e.start - START) * HOUR + 3, height: (e.end - e.start) * HOUR - 6 }}
>
<h3 className={cx("min-w-0 truncate text-sm font-medium text-fg", e.status === "cancelled" && "line-through decoration-fg-muted")}>{e.title}</h3>
<p className={cx("truncate text-xs text-fg-secondary", short && "shrink-0")}>
{short ? fmt(e.start) : `${fmt(e.start)} – ${fmt(e.end)}`}
</p>
{e.end - e.start >= 1 && (e.people || e.where) && (
<div className="mt-auto flex items-center justify-between gap-2 pt-1">
{e.people ? <AvatarGroup names={e.people} size="xs" max={3} /> : <span />}
{e.where && (
<span className="inline-flex min-w-0 items-center gap-1 truncate text-xs text-fg-secondary">
{e.kind === "event" ? <MapPin className="size-3 shrink-0" /> : <Users className="size-3 shrink-0" />}
{e.where}
</span>
)}
</div>
)}
</article>
);
})}
</div>
))}
</div>
</div>
</div>
</div>
</div>
</AppShell>
);
}Team Members
Members directory: segmented status filter, search, sortable selectable table with presence, documents and per-page pagination.
"use client";
import { ArrowDown, ArrowDownUp, ArrowUp, ChevronsUpDown, Download, Filter, MoreHorizontal, Search, UserPlus, Users } from "lucide-react";
import { useMemo, useState } from "react";
import { Cell, Column, Row, type Selection, type SortDescriptor, Table, TableBody, TableHeader } from "react-aria-components";
import { Avatar, type AvatarStatus, CompanyMark } from "@/components/ui/avatar";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Checkbox } from "@/components/ui/checkbox";
import { IconButton } from "@/components/ui/icon-button";
import { Input } from "@/components/ui/input";
import { Kbd } from "@/components/ui/kbd";
import { Menu, MenuItem, MenuSeparator, MenuTrigger } from "@/components/ui/menu";
import { Pagination } from "@/components/ui/pagination";
import { SegmentedControl } from "@/components/ui/segmented-control";
import { Select, SelectItem } from "@/components/ui/select";
import { cx } from "@/utils/cx";
import { AppShell } from "./app-shell";
interface Member {
id: string;
name: string;
email: string;
title: string;
since: string;
account: string;
accountNote: string;
brand: string;
file: string;
fileSize: string;
status: "Active" | "Away" | "Out of office";
}
const members: Member[] = [
{ id: "1", name: "Jordan Blake", email: "jordan@vantu.dev", title: "Account Executive", since: "Aug 2023", account: "Ledgerly", accountNote: "Series B expansion deal", brand: "#8a5a2b", file: "blake-jordan-plan.pdf", fileSize: "2.4 MB", status: "Active" },
{ id: "2", name: "Leah Moss", email: "leah@vantu.dev", title: "SDR Team Lead", since: "Jan 2024", account: "Northpeak", accountNote: "Procurement review", brand: "#0a84ff", file: "moss-leah-plan.pdf", fileSize: "1.8 MB", status: "Away" },
{ id: "3", name: "Marco Silva", email: "marco@vantu.dev", title: "Sales Engineer", since: "Mar 2022", account: "Verdant Cloud", accountNote: "Security questionnaire", brand: "#f2620f", file: "silva-marco-plan.pdf", fileSize: "3.1 MB", status: "Active" },
{ id: "4", name: "Priya Raman", email: "priya@vantu.dev", title: "Account Executive", since: "Jun 2024", account: "Fathom Data", accountNote: "Pilot to annual", brand: "#6d28d9", file: "raman-priya-plan.pdf", fileSize: "2.0 MB", status: "Out of office" },
{ id: "5", name: "Tom Hartley", email: "tom@vantu.dev", title: "SDR", since: "Feb 2025", account: "Brightlane", accountNote: "Outbound · UK", brand: "#2563eb", file: "hartley-tom-plan.pdf", fileSize: "1.2 MB", status: "Active" },
{ id: "6", name: "Grace Kim", email: "grace@vantu.dev", title: "Revenue Operations", since: "Sep 2021", account: "Relaywork", accountNote: "Territory carve-out", brand: "#f59e0b", file: "kim-grace-plan.pdf", fileSize: "2.9 MB", status: "Away" },
{ id: "7", name: "Wei Chen", email: "wei@vantu.dev", title: "Sales Manager", since: "Jul 2021", account: "Stackwise", accountNote: "Renewal + upsell", brand: "#4f46e5", file: "chen-wei-plan.pdf", fileSize: "2.6 MB", status: "Active" },
{ id: "8", name: "Hannah Liu", email: "hannah@vantu.dev", title: "Account Executive", since: "Nov 2023", account: "Oakline HR", accountNote: "Champion change", brand: "#f97316", file: "liu-hannah-plan.pdf", fileSize: "1.6 MB", status: "Out of office" },
{ id: "9", name: "Samuel Ortiz", email: "samuel@vantu.dev", title: "SDR", since: "Apr 2025", account: "Plinth", accountNote: "New logo · EMEA", brand: "#2563eb", file: "ortiz-samuel-plan.pdf", fileSize: "0.9 MB", status: "Active" },
];
const presence: Record<Member["status"], AvatarStatus> = { Active: "online", Away: "away", "Out of office": "offline" };
const statusBadge: Record<Member["status"], "success" | "warning" | "neutral"> = { Active: "success", Away: "warning", "Out of office": "neutral" };
const th = "h-10 px-3 text-left text-sm font-normal text-fg-muted outline-none first:rounded-l-[10px] last:rounded-r-[10px] data-focus-visible:shadow-[inset_0_0_0_2px_var(--color-accent)]";
function Sortable({ label, dir }: { label: string; dir?: "ascending" | "descending" }) {
const Icon = dir === "ascending" ? ArrowUp : dir === "descending" ? ArrowDown : ChevronsUpDown;
return (
<span className="inline-flex items-center gap-1">
{label} <Icon aria-hidden className={cx("size-3", dir ? "text-fg" : "text-fg-disabled")} />
</span>
);
}
/** Team members directory: segmented status filter, search, sortable table, per-page pagination. */
export function TeamMembers() {
const [status, setStatus] = useState("all");
const [query, setQuery] = useState("");
const [sort, setSort] = useState<SortDescriptor>({ column: "name", direction: "ascending" });
const [selected, setSelected] = useState<Selection>(new Set());
const [perPage, setPerPage] = useState(7);
const [page, setPage] = useState(1);
const rows = useMemo(() => {
const q = query.toLowerCase();
const list = members.filter(
(m) => (status === "all" || (status === "active" ? m.status === "Active" : m.status !== "Active")) && (!q || `${m.name} ${m.email} ${m.title}`.toLowerCase().includes(q)),
);
const dir = sort.direction === "ascending" ? 1 : -1;
const key = (sort.column as keyof Member) ?? "name";
return [...list].sort((a, b) => String(a[key]).localeCompare(String(b[key])) * dir);
}, [status, query, sort]);
const pageCount = Math.max(1, Math.ceil(rows.length / perPage));
const current = Math.min(page, pageCount);
const visible = rows.slice((current - 1) * perPage, current * perPage);
return (
<AppShell
active="Team"
crumbs={["Team", "Members"]}
icon={<Users />}
title="Team members"
description="Everyone on the team, their focus account and status."
actions={
<>
<Button leadingIcon={<Download />}>Export</Button>
<Button variant="primary" leadingIcon={<UserPlus />}>
Invite member
</Button>
</>
}
>
<div className="flex flex-col gap-5 px-4 pb-8 pt-6 sm:px-8">
{/* Toolbar, table and pagination share one layered card, like the Data Table block. */}
<div className="rounded-lg border border-line bg-subtle p-1 shadow-card">
<div className="flex flex-col gap-4 rounded-[12px] border border-line bg-surface p-4">
<div className="flex flex-wrap items-center gap-2">
<SegmentedControl
aria-label="Status"
value={status}
onChange={(v) => {
setStatus(v);
setPage(1);
}}
options={[
{ id: "all", label: "All" },
{ id: "active", label: "Active" },
{ id: "away", label: "Away" },
]}
className="w-full sm:w-72 [&>*]:flex-1"
/>
<div className="ml-auto flex flex-wrap gap-2">
<Input
aria-label="Search members"
placeholder="Search…"
icon={<Search />}
trailing={<Kbd>⌘1</Kbd>}
value={query}
onChange={(v) => {
setQuery(v);
setPage(1);
}}
className="w-56"
/>
<Button size="sm" leadingIcon={<Filter />}>
Filter
</Button>
<Button size="sm" leadingIcon={<ArrowDownUp />}>
Sort by
</Button>
</div>
</div>
<div className="relative overflow-x-auto">
<Table
aria-label="Team members"
selectionMode="multiple"
selectedKeys={selected}
onSelectionChange={setSelected}
sortDescriptor={sort}
onSortChange={setSort}
className="w-full min-w-[920px] border-separate border-spacing-0 text-base"
>
<TableHeader className="bg-subtle">
<Column className={cx(th, "w-10 pl-3")}>
<Checkbox slot="selection" />
</Column>
<Column id="name" isRowHeader allowsSorting className={th}>
{({ sortDirection }) => <Sortable label="Member" dir={sortDirection} />}
</Column>
<Column id="title" allowsSorting className={th}>
{({ sortDirection }) => <Sortable label="Title" dir={sortDirection} />}
</Column>
<Column id="account" allowsSorting className={th}>
{({ sortDirection }) => <Sortable label="Focus account" dir={sortDirection} />}
</Column>
<Column className={th}>Account plan</Column>
<Column id="status" allowsSorting className={th}>
{({ sortDirection }) => <Sortable label="Status" dir={sortDirection} />}
</Column>
<Column className={cx(th, "w-12")}>
<span className="sr-only">Actions</span>
</Column>
</TableHeader>
<TableBody items={visible} renderEmptyState={() => <div className="py-12 text-center text-fg-muted">No members match.</div>}>
{(m) => (
<Row id={m.id} className="outline-none data-hovered:bg-subtle data-selected:bg-accent-soft/60 data-focus-visible:shadow-[inset_0_0_0_2px_var(--color-accent)] [&>td]:border-b [&>td]:border-line-subtle">
<Cell className="py-3 pl-3 pr-3">
<Checkbox slot="selection" />
</Cell>
<Cell className="px-3 py-3">
<span className="flex items-center gap-3">
<Avatar name={m.name} size="lg" status={presence[m.status]} />
<span className="min-w-0">
<span className="block truncate font-medium text-fg">{m.name}</span>
<span className="block truncate text-sm text-fg-muted">{m.email}</span>
</span>
</span>
</Cell>
<Cell className="px-3 py-3">
<span className="block text-fg">{m.title}</span>
<span className="block text-sm text-fg-muted">Since {m.since}</span>
</Cell>
<Cell className="px-3 py-3">
<span className="flex items-center gap-2.5">
<CompanyMark name={m.account} size="lg" color={m.brand} />
<span className="min-w-0">
<span className="block truncate text-fg">{m.account}</span>
<span className="block max-w-44 truncate text-sm text-fg-muted">{m.accountNote}</span>
</span>
</span>
</Cell>
<Cell className="px-3 py-3">
<span className="flex items-center gap-2.5">
<span className="flex h-9 w-7 items-end justify-center rounded-[4px] border border-line bg-subtle pb-1">
<span className="rounded-[2px] bg-error px-0.5 text-[7px] font-bold leading-[10px] text-white">PDF</span>
</span>
<span className="min-w-0">
<span className="block max-w-40 truncate text-fg">{m.file}</span>
<span className="block text-sm text-fg-muted">{m.fileSize}</span>
</span>
</span>
</Cell>
<Cell className="px-3 py-3">
<Badge variant="dot" tone={statusBadge[m.status]}>
{m.status}
</Badge>
</Cell>
<Cell className="py-3 pr-3">
<MenuTrigger>
<IconButton variant="ghost" size="sm" aria-label={`Actions for ${m.name}`}>
<MoreHorizontal />
</IconButton>
<Menu>
<MenuItem>View profile</MenuItem>
<MenuItem>Reassign accounts</MenuItem>
<MenuSeparator />
<MenuItem danger>Remove from team</MenuItem>
</Menu>
</MenuTrigger>
</Cell>
</Row>
)}
</TableBody>
</Table>
</div>
<div className="flex flex-wrap items-center justify-between gap-3">
<span className="text-sm text-fg-secondary">
Page {current} of {pageCount}
</span>
<Pagination page={current} pageCount={pageCount} onPageChange={setPage} />
<Select
aria-label="Rows per page"
selectedKey={String(perPage)}
onSelectionChange={(k) => {
setPerPage(Number(k));
setPage(1);
}}
className="w-32"
>
<SelectItem id="5">5 / page</SelectItem>
<SelectItem id="7">7 / page</SelectItem>
<SelectItem id="10">10 / page</SelectItem>
</Select>
</div>
</div>
</div>
</div>
</AppShell>
);
}Settings
Top tabs, a left sub-menu card and a constrained form column — General, Profile and Notifications are wired up.
"use client";
import { Bell, ChevronRight, Globe2, Mail, Palette, Settings, ShieldCheck, SlidersHorizontal, Smartphone, User } from "lucide-react";
import { type ReactNode, useState } from "react";
import { Alert } from "@/components/ui/alert";
import { Avatar } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
import { ChoiceCard, ChoiceCardGroup } from "@/components/ui/choice-card";
import { Input } from "@/components/ui/input";
import { Select, SelectItem } from "@/components/ui/select";
import { SettingRow, SettingSection } from "@/components/ui/setting-row";
import { Switch } from "@/components/ui/switch";
import { Tab, TabList, TabPanel, Tabs } from "@/components/ui/tabs";
import { Textarea } from "@/components/ui/textarea";
import { cx } from "@/utils/cx";
import { AppShell } from "./app-shell";
function SubMenu({ items, value, onChange }: { items: { id: string; label: string; icon: ReactNode }[]; value: string; onChange: (id: string) => void }) {
return (
<nav aria-label="Section" className="h-fit rounded-lg border border-line bg-subtle p-1 shadow-card lg:w-64">
<div className="px-3 pb-2 pt-2.5 text-label text-[11px] text-fg-muted">Select menu</div>
<ul className="flex flex-col gap-0.5 rounded-[12px] border border-line bg-surface p-1.5">
{items.map((it) => (
<li key={it.id}>
<button
type="button"
aria-current={value === it.id ? "true" : undefined}
onClick={() => onChange(it.id)}
className={cx(
"flex h-9 w-full items-center gap-2.5 rounded-sm px-2.5 text-left text-base outline-none transition-colors focus-visible:shadow-focus [&_svg]:size-4",
value === it.id ? "bg-muted font-medium text-fg [&_svg]:text-accent" : "text-fg-secondary hover:bg-subtle hover:text-fg",
)}
>
{it.icon}
<span className="flex-1">{it.label}</span>
{value === it.id && <ChevronRight className="!size-3.5 !text-fg-muted" />}
</button>
</li>
))}
</ul>
</nav>
);
}
function FormActions() {
return (
<div className="grid grid-cols-2 gap-3 pt-2">
<Button>Discard</Button>
<Button variant="primary">Apply changes</Button>
</div>
);
}
function GeneralTab() {
const [section, setSection] = useState("regional");
return (
<div className="flex flex-col gap-8 lg:flex-row lg:gap-16">
<SubMenu
value={section}
onChange={setSection}
items={[
{ id: "regional", label: "Regional preferences", icon: <Globe2 /> },
{ id: "theme", label: "Appearance", icon: <Palette /> },
]}
/>
<div className="w-full max-w-md">
{section === "regional" ? (
<SettingSection title="Regional preferences" description="Select your preferences for your region.">
<Select label="Language" defaultSelectedKey="en-us">
<SelectItem id="en-us">🇺🇸 English (US)</SelectItem>
<SelectItem id="en-gb">🇬🇧 English (UK)</SelectItem>
<SelectItem id="id">🇮🇩 Bahasa Indonesia</SelectItem>
</Select>
<Select label="Timezone" defaultSelectedKey="pst">
<SelectItem id="pst">GMT-8:00 — Pacific Time (PT)</SelectItem>
<SelectItem id="est">GMT-5:00 — Eastern Time (ET)</SelectItem>
<SelectItem id="wib">GMT+7:00 — Western Indonesia (WIB)</SelectItem>
</Select>
<Select label="Time format" defaultSelectedKey="24">
<SelectItem id="24">24 hours</SelectItem>
<SelectItem id="12">12 hours</SelectItem>
</Select>
<Select label="Date format" defaultSelectedKey="dmy">
<SelectItem id="dmy">DD/MM/YY</SelectItem>
<SelectItem id="mdy">MM/DD/YY</SelectItem>
<SelectItem id="iso">YYYY-MM-DD</SelectItem>
</Select>
<FormActions />
</SettingSection>
) : (
<SettingSection title="Appearance" description="Choose how Vantu looks for you.">
<ChoiceCardGroup aria-label="Theme" defaultValue="light">
<ChoiceCard value="light" title="Light" description="The default Vantu theme." />
<ChoiceCard value="system" title="Match system" description="Follow your OS setting." />
<ChoiceCard value="dark" title="Dark" description="Coming soon." isDisabled />
</ChoiceCardGroup>
<SettingRow title="Compact tables" description="Show more rows by reducing row height." control={<Switch aria-label="Compact tables" />} />
<FormActions />
</SettingSection>
)}
</div>
</div>
);
}
function ProfileTab() {
return (
<div className="flex flex-col gap-8 lg:flex-row lg:gap-16">
<SubMenu value="info" onChange={() => {}} items={[{ id: "info", label: "Personal information", icon: <User /> }]} />
<div className="w-full max-w-md">
<SettingSection title="Personal information" description="Update your photo and personal details.">
<div className="flex items-center gap-4">
<Avatar name="Edi Sunardi" size="2xl" />
<div>
<div className="text-base font-medium text-fg">Upload image</div>
<div className="text-sm text-fg-muted">Min 400×400px, PNG or JPEG</div>
<Button size="xs" className="mt-2">
Upload
</Button>
</div>
</div>
<div className="grid gap-4 sm:grid-cols-2">
<Input label="First name" defaultValue="Edi" />
<Input label="Last name" defaultValue="Sunardi" />
</div>
<Input label="Email" type="email" defaultValue="edi@vantu.dev" icon={<Mail />} />
<Input label="Phone" defaultValue="+1 (415) 555-0199" icon={<Smartphone />} />
<Textarea label="Bio" defaultValue="AE covering Series B SaaS in North America." rows={3} />
<FormActions />
</SettingSection>
</div>
</div>
);
}
function NotificationsTab() {
const [section, setSection] = useState("preferences");
return (
<div className="flex flex-col gap-8 lg:flex-row lg:gap-16">
<SubMenu
value={section}
onChange={setSection}
items={[
{ id: "preferences", label: "Preferences", icon: <SlidersHorizontal /> },
{ id: "method", label: "Method", icon: <Bell /> },
]}
/>
<div className="w-full max-w-md">
{section === "preferences" ? (
<SettingSection title="Notification preferences" description="Choose what notifications you want to receive.">
<SettingRow layout="leading" title="Replies and meetings" description="When a prospect replies or books a meeting from a sequence." control={<Switch aria-label="Replies and meetings" defaultSelected />} />
<SettingRow layout="leading" title="AI matches" description="When a saved search finds new prospects above your score threshold." control={<Switch aria-label="AI matches" defaultSelected />} />
<SettingRow layout="leading" title="Product updates" description="New features, tips and occasional offers." control={<Switch aria-label="Product updates" />} />
<Alert tone="info" size="sm" title="Keep replies on so you never miss a hot lead." />
<FormActions />
</SettingSection>
) : (
<SettingSection title="Notification method" description="Where should we reach you?">
<SettingRow title="Email" description="edi@vantu.dev" control={<Switch aria-label="Email" defaultSelected />} />
<SettingRow title="Push" description="Desktop and mobile app." control={<Switch aria-label="Push" defaultSelected />} />
<SettingRow title="Slack" description="#sales-alerts" control={<Switch aria-label="Slack" />} />
<FormActions />
</SettingSection>
)}
</div>
</div>
);
}
function Placeholder({ title }: { title: string }) {
return (
<div className="flex flex-col items-center gap-2 rounded-lg border border-dashed border-line-strong px-6 py-16 text-center">
<ShieldCheck className="size-5 text-fg-muted" />
<div className="text-base font-medium text-fg">{title}</div>
<p className="max-w-sm text-sm text-fg-muted">Uses the same sub-menu + setting section pattern as the other tabs.</p>
</div>
);
}
/** Settings: top tabs, a left sub-menu card and a constrained form column. */
export function SettingsPage() {
return (
<AppShell active="Settings" crumbs={["Settings"]} icon={<Settings />} title="Settings" description="Manage your preferences and configure workspace options.">
<Tabs className="mt-4 px-4 sm:px-8">
<TabList aria-label="Settings sections" className="overflow-x-auto pt-2">
<Tab id="general">General</Tab>
<Tab id="profile">Profile</Tab>
<Tab id="workspace">Workspace</Tab>
<Tab id="notifications">Notifications</Tab>
<Tab id="privacy">Privacy & security</Tab>
<Tab id="integrations">Integrations</Tab>
</TabList>
<TabPanel id="general" className="py-8">
<GeneralTab />
</TabPanel>
<TabPanel id="profile" className="py-8">
<ProfileTab />
</TabPanel>
<TabPanel id="workspace" className="py-8">
<Placeholder title="Workspace settings" />
</TabPanel>
<TabPanel id="notifications" className="py-8">
<NotificationsTab />
</TabPanel>
<TabPanel id="privacy" className="py-8">
<Placeholder title="Privacy & security" />
</TabPanel>
<TabPanel id="integrations" className="py-8">
<Placeholder title="Integrations" />
</TabPanel>
</Tabs>
</AppShell>
);
}Sign In (split)
Form on the left with social sign-in; a rotating product showcase on the right.
"use client";
import { CalendarCheck, ChevronDown, Eye, EyeOff, Globe, Lock, Mail, Sparkles, Target, User } from "lucide-react";
import { useEffect, useState } from "react";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Card, CardBody, CardHeader, IconTile } from "@/components/ui/card";
import { Checkbox } from "@/components/ui/checkbox";
import { Gauge } from "@/components/ui/circular-progress";
import { BrandLockup, GoogleGlyph, MicrosoftGlyph } from "@/components/ui/integration-mark";
import { Input } from "@/components/ui/input";
import { LinkButton } from "@/components/ui/link-button";
import { ScoreMeter } from "@/components/ui/score-meter";
import { StepperDots } from "@/components/ui/step-indicator";
function LinkedInGlyph() {
return (
<span aria-hidden className="flex size-4 items-center justify-center rounded-[3px] bg-[#0a66c2] text-[9px] font-bold leading-none text-white">
in
</span>
);
}
const slides = [
{
title: "Hit your meetings goal",
text: "Track meetings booked against your monthly goal and see which deals are still pending.",
widget: (
<Card className="w-80 shadow-popover">
<CardHeader
icon={
<IconTile>
<Target />
</IconTile>
}
title="Meetings goal"
description="September"
actions={<Button size="2xs">See all</Button>}
/>
<CardBody>
<div className="flex justify-center py-4">
<Gauge value={14} max={20} caption="out of 20" width={170} />
</div>
<ul className="divide-y divide-line-subtle border-t border-line-subtle px-4">
{[
["Sep 15", "Ledgerly", "Booked", "success"],
["Sep 17", "Northpeak", "Pending", "warning"],
].map(([d, c, s, t]) => (
<li key={c} className="flex items-center gap-2 py-2.5 text-sm">
<CalendarCheck className="size-3.5 text-fg-muted" /> {d} <span className="flex-1 text-fg-muted">({c})</span>
<Badge size="sm" tone={t as "success" | "warning"}>
{s}
</Badge>
</li>
))}
</ul>
</CardBody>
</Card>
),
},
{
title: "Know who to call first",
text: "AI scores every prospect against your ideal customer profile and fresh buying signals.",
widget: (
<Card className="w-80 shadow-popover">
<CardHeader
icon={
<IconTile tone="teal">
<Sparkles />
</IconTile>
}
title="Top prospects"
description="Ranked by AI score"
/>
<CardBody className="p-1.5">
{[
["Sarah Chen", "VP Sales · Ledgerly", 92],
["Daniel Brooks", "CRO · Verdant Cloud", 90],
["Oliver Grant", "Head of Revenue · Parcelio", 74],
].map(([n, r, s]) => (
<div key={n as string} className="flex items-center gap-3 rounded-md px-2.5 py-2.5">
<div className="min-w-0 flex-1">
<div className="truncate text-base font-medium text-fg">{n}</div>
<div className="truncate text-sm text-fg-muted">{r}</div>
</div>
<ScoreMeter score={s as number} />
</div>
))}
</CardBody>
</Card>
),
},
];
export interface AuthSplitProps {
mode?: "sign-in" | "register";
}
/** Split auth screen: form on the left, a rotating product showcase on the right. */
export function AuthSplit({ mode = "sign-in" }: AuthSplitProps) {
const [slide, setSlide] = useState(0);
const [show, setShow] = useState(false);
useEffect(() => {
const t = setInterval(() => setSlide((s) => (s + 1) % slides.length), 5000);
return () => clearInterval(t);
}, []);
const register = mode === "register";
return (
<div className="grid min-h-dvh bg-surface lg:grid-cols-[minmax(0,1fr)_minmax(0,1.15fr)]">
<div className="flex flex-col px-6 py-6 sm:px-10">
<header className="flex items-center justify-between">
<BrandLockup size="sm" variant="mark" />
<div className="flex items-center gap-3 text-base text-fg-secondary">
<span className="hidden sm:inline">{register ? "Already have an account?" : "Don’t have an account?"}</span>
<Button size="xs">{register ? "Sign in" : "Register"}</Button>
</div>
</header>
<main className="mx-auto flex w-full max-w-[392px] flex-1 flex-col justify-center py-12">
<span className="mx-auto flex size-16 items-center justify-center rounded-full bg-linear-to-b from-subtle to-surface shadow-[0_0_0_1px_var(--color-line-subtle)]">
<span className="flex size-11 items-center justify-center rounded-full bg-surface text-fg-secondary shadow-button">
<User className="size-5" />
</span>
</span>
<h1 className="mt-5 text-center text-2xl font-semibold tracking-tight text-fg">{register ? "Create a new account" : "Sign in to your account"}</h1>
<p className="mt-1.5 text-center text-base text-fg-secondary">{register ? "Enter your details to register." : "Enter your details to sign in."}</p>
<div className="mt-7 grid grid-cols-3 gap-3">
<Button aria-label="Continue with Google" iconOnly className="w-full">
<GoogleGlyph />
</Button>
<Button aria-label="Continue with Microsoft" iconOnly className="w-full">
<MicrosoftGlyph />
</Button>
<Button aria-label="Continue with LinkedIn" iconOnly className="w-full">
<LinkedInGlyph />
</Button>
</div>
<div className="my-6 flex items-center gap-3 text-label text-[10px] text-fg-muted">
<span className="h-px flex-1 bg-line" /> or <span className="h-px flex-1 bg-line" />
</div>
<form className="flex flex-col gap-4" onSubmit={(e) => e.preventDefault()}>
{register && <Input label="Full name" placeholder="Jordan Blake" icon={<User />} isRequired />}
<Input label="Work email" type="email" placeholder="you@company.com" icon={<Mail />} isRequired />
<Input
label="Password"
type={show ? "text" : "password"}
placeholder="••••••••••"
icon={<Lock />}
isRequired
trailing={
<button type="button" aria-label={show ? "Hide password" : "Show password"} onClick={() => setShow((s) => !s)} className="text-fg-muted outline-none hover:text-fg focus-visible:shadow-focus [&_svg]:size-4">
{show ? <EyeOff /> : <Eye />}
</button>
}
/>
<div className="flex items-center justify-between">
<Checkbox>{register ? "I agree to the Terms" : "Keep me signed in"}</Checkbox>
{!register && (
<LinkButton tone="black" size="sm" underline>
Forgot password?
</LinkButton>
)}
</div>
<Button type="submit" variant="primary" className="mt-1 w-full">
{register ? "Get started" : "Sign in"}
</Button>
</form>
</main>
<footer className="flex items-center justify-between text-sm text-fg-muted">
<span>© 2026 Vantu</span>
<button type="button" className="inline-flex items-center gap-1.5 rounded-xs outline-none hover:text-fg focus-visible:shadow-focus">
<Globe className="size-3.5" /> ENG <ChevronDown className="size-3.5" />
</button>
</footer>
</div>
<aside aria-label="Product highlights" className="relative m-2 hidden flex-col items-center justify-center overflow-hidden rounded-[20px] bg-app lg:flex">
<div aria-hidden className="absolute inset-0 bg-[linear-gradient(to_right,var(--color-line-subtle)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-line-subtle)_1px,transparent_1px)] [background-size:56px_56px] [mask-image:radial-gradient(ellipse_at_center,black_30%,transparent_70%)]" />
<div className="relative flex h-80 items-center">{slides[slide]!.widget}</div>
<div className="relative mt-12 max-w-md px-6 text-center">
<h2 className="text-2xl font-semibold tracking-tight text-fg">{slides[slide]!.title}</h2>
<p className="mt-2 text-base text-fg-secondary">{slides[slide]!.text}</p>
</div>
<StepperDots className="relative mt-10" count={slides.length} current={slide} onChange={setSlide} />
</aside>
</div>
);
}Onboarding
Five-step flow with a header step indicator, choice cards and a summary.
"use client";
import { ArrowLeft, Briefcase, Building, Check, ChevronDown, Globe, Mail, PartyPopper, Rocket, Target, User, UserCog, Users, X } from "lucide-react";
import { type ReactNode, useState } from "react";
import { Button } from "@/components/ui/button";
import { ChoiceCard, ChoiceCardGroup } from "@/components/ui/choice-card";
import { BrandLockup } from "@/components/ui/integration-mark";
import { Input } from "@/components/ui/input";
import { Select, SelectItem } from "@/components/ui/select";
import { StepIndicator } from "@/components/ui/step-indicator";
const steps = [{ label: "Personal" }, { label: "Role" }, { label: "Team" }, { label: "Goal" }, { label: "Summary" }];
function StepHeader({ icon, title, text }: { icon: ReactNode; title: string; text: string }) {
return (
<div className="flex flex-col items-center text-center">
<span className="flex size-16 items-center justify-center rounded-full bg-linear-to-b from-subtle to-surface shadow-[0_0_0_1px_var(--color-line-subtle)]">
<span className="flex size-11 items-center justify-center rounded-full bg-surface text-fg-secondary shadow-button [&_svg]:size-5">{icon}</span>
</span>
<h1 className="mt-5 text-2xl font-semibold tracking-tight text-fg">{title}</h1>
<p className="mt-1.5 text-base text-fg-secondary">{text}</p>
</div>
);
}
/** Multi-step onboarding: header step indicator, centered step content with choice cards. */
export function Onboarding() {
const [step, setStep] = useState(1);
const [role, setRole] = useState("ae");
const [team, setTeam] = useState("6-20");
const [goal, setGoal] = useState("meetings");
const next = () => setStep((s) => Math.min(steps.length - 1, s + 1));
const back = () => setStep((s) => Math.max(0, s - 1));
const content: Record<number, ReactNode> = {
0: (
<>
<StepHeader icon={<User />} title="Personal information" text="Tell us a little about yourself." />
<div className="flex flex-col gap-4">
<div className="grid gap-4 sm:grid-cols-2">
<Input label="First name" defaultValue="Jordan" />
<Input label="Last name" defaultValue="Blake" />
</div>
<Input label="Work email" defaultValue="jordan@vantu.dev" icon={<Mail />} />
</div>
</>
),
1: (
<>
<StepHeader icon={<UserCog />} title="Role selection" text="Choose your role within Vantu." />
<ChoiceCardGroup aria-label="Role" value={role} onChange={setRole}>
<ChoiceCard value="ae" icon={<Briefcase />} title="I’m an Account Executive" description="Work deals, run sequences and book meetings." />
<ChoiceCard value="sdr" icon={<Target />} title="I’m an SDR / BDR" description="Prospect, qualify and hand over hot leads." />
<ChoiceCard value="leader" icon={<Users />} title="I lead a sales team" description="Set goals, review pipeline and coach reps." />
</ChoiceCardGroup>
</>
),
2: (
<>
<StepHeader icon={<Building />} title="Team size" text="How many people sell with you?" />
<ChoiceCardGroup aria-label="Team size" value={team} onChange={setTeam} columns={2}>
{["Just me", "2–5", "6–20", "20+"].map((t) => (
<ChoiceCard key={t} value={t.replace("–", "-")} title={t} description={t === "Just me" ? "Solo seller" : "people"} />
))}
</ChoiceCardGroup>
<Select label="Region" defaultSelectedKey="na">
<SelectItem id="na">North America</SelectItem>
<SelectItem id="emea">EMEA</SelectItem>
<SelectItem id="apac">APAC</SelectItem>
</Select>
</>
),
3: (
<>
<StepHeader icon={<Rocket />} title="Your main goal" text="We’ll tune your dashboard around it." />
<ChoiceCardGroup aria-label="Goal" value={goal} onChange={setGoal}>
<ChoiceCard value="meetings" icon={<Target />} title="Book more meetings" description="Prioritise reply rate and calendar slots." />
<ChoiceCard value="pipeline" icon={<Rocket />} title="Build pipeline" description="Find and enrich more qualified prospects." />
<ChoiceCard value="close" icon={<Check />} title="Close faster" description="Track deal stages and next steps." />
</ChoiceCardGroup>
</>
),
4: (
<>
<StepHeader icon={<PartyPopper />} title="You’re all set" text="Your workspace is ready. Here’s what we set up." />
<ul className="divide-y divide-line rounded-lg border border-line bg-subtle p-1 [&>li]:bg-surface [&>li:first-child]:rounded-t-[12px] [&>li:last-child]:rounded-b-[12px] [&>li]:border-x [&>li]:border-line [&>li:first-child]:border-t [&>li:last-child]:border-b">
{[
["Role", { ae: "Account Executive", sdr: "SDR / BDR", leader: "Sales leader" }[role]],
["Team size", team],
["Goal", { meetings: "Book more meetings", pipeline: "Build pipeline", close: "Close faster" }[goal]],
].map(([k, v]) => (
<li key={k} className="flex justify-between px-4 py-3 text-base">
<span className="text-fg-secondary">{k}</span>
<span className="font-medium text-fg">{v}</span>
</li>
))}
</ul>
</>
),
};
return (
<div className="flex min-h-dvh flex-col bg-surface">
<header className="flex h-[72px] items-center gap-6 border-b border-line px-6 sm:px-10">
<BrandLockup size="sm" variant="mark" />
<StepIndicator steps={steps} current={step} className="mx-auto hidden md:flex" />
<span className="mx-auto text-sm text-fg-secondary md:hidden">
Step {step + 1} of {steps.length}
</span>
<button type="button" aria-label="Close onboarding" className="inline-flex size-8 items-center justify-center rounded-sm text-fg-muted outline-none hover:bg-muted hover:text-fg focus-visible:shadow-focus">
<X className="size-4" />
</button>
</header>
<main className="relative flex-1 px-6 py-10 sm:px-10">
<div aria-hidden className="pointer-events-none absolute inset-x-0 top-0 h-80 bg-[linear-gradient(to_right,var(--color-line-subtle)_1px,transparent_1px)] [background-size:56px_56px] [mask-image:linear-gradient(to_bottom,black,transparent)]" />
{step > 0 && (
<Button size="xs" leadingIcon={<ArrowLeft />} onPress={back} className="relative">
Back
</Button>
)}
<div className="relative mx-auto flex w-full max-w-[440px] flex-col gap-6 pt-4">
{content[step]}
<Button variant="primary" className="w-full" onPress={next}>
{step === steps.length - 1 ? "Go to dashboard" : "Continue"}
</Button>
</div>
</main>
<footer className="flex items-center justify-between px-6 py-5 text-sm text-fg-muted sm:px-10">
<span>© 2026 Vantu</span>
<span className="inline-flex items-center gap-1.5">
<Globe className="size-3.5" /> ENG <ChevronDown className="size-3.5" />
</span>
</footer>
</div>
);
}