Integration sections
Show what the product connects to: a grid of integration tiles beside the pitch, the product at the center of a hub, or a full list grouped by kind with a live search.
3 blocks below, each one file and one command. They wear whichever DressCode theme you install, in light and dark.
Grid beside the pitch
The pitch on the left and eight integration tiles on the right, each a kind of tool with an icon and one line on what it does.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/integrations-grid.jsoncomponents/dresscode/integrations-grid.tsx
// Integrations, grid beside the pitch: the heading and a line of copy on the left, eight integration
// tiles on the right. The tiles are kinds of tool (card payments, accounting, team chat) with an icon,
// not real brands; put your partners' names and logos in their place. From the Orbit landing template.
import { ArrowRight, Calculator, CalendarDays, CreditCard, Landmark, Mail, MessageSquare, Sheet, Webhook } from "lucide-react"
import { Button } from "@/components/ui/button"
const INTEGRATIONS = [
{ icon: CreditCard, name: "Card payments", body: "Cards and digital wallets" },
{ icon: Landmark, name: "Bank transfer", body: "Local transfers in 30 currencies" },
{ icon: Calculator, name: "Accounting", body: "Sync invoices and payments" },
{ icon: Sheet, name: "Spreadsheets", body: "Export or live-sync to a sheet" },
{ icon: Mail, name: "Email", body: "Send from your own address" },
{ icon: MessageSquare, name: "Team chat", body: "A ping when an invoice is paid" },
{ icon: CalendarDays, name: "Calendar", body: "Due dates on your calendar" },
{ icon: Webhook, name: "Webhooks and API", body: "Build anything on top of Orbit" },
]
export default function IntegrationsGrid() {
return (
<section aria-labelledby="integrations-grid-title" className="py-16 sm:py-24">
<div className="mx-auto grid w-full max-w-[1200px] gap-12 px-5 sm:px-8 lg:grid-cols-[1fr_1.5fr] lg:items-center">
<div className="max-w-[560px]">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Integrations</p>
<h2 id="integrations-grid-title" className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Works with the tools you already pay for
</h2>
<p className="mt-4 text-[17px] leading-relaxed text-muted-foreground">
Connect payments, accounting and your inbox in a couple of clicks. Everything else talks to Orbit through webhooks and a tidy API.
</p>
<Button variant="link" className="dc-flat mt-5 h-auto px-0 text-[15px] font-semibold text-foreground" nativeButton={false} render={<a href="#integrations" />}>
See every integration <ArrowRight className="size-4" aria-hidden="true" />
</Button>
</div>
<ul className="grid grid-cols-2 gap-3 sm:grid-cols-4">
{INTEGRATIONS.map(({ icon: Icon, name, body }) => (
<li key={name} className="dc-card p-4">
<span className="dc-icon size-9">
<Icon className="size-[18px]" aria-hidden="true" />
</span>
<p className="mt-3 text-[15px] font-semibold">{name}</p>
<p className="mt-0.5 text-[13px] leading-snug text-muted-foreground">{body}</p>
</li>
))}
</ul>
</div>
</section>
)
}Hub
The Orbit mark in the middle with eight integration tiles around it, joined by lines; on phones it becomes a plain grid.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/integrations-hub.jsoncomponents/dresscode/integrations-hub.tsx
// Integrations, hub: the Orbit mark in the middle with eight integration tiles around it, four a side,
// joined to it by dashed lines (an SVG stretched over the hub; the tiles sit at fixed heights so the
// lines meet them). The lines and the ring are decoration; the tiles are a real list. On phones the hub
// becomes a plain two-column grid. The tiles are kinds of tool, not real brands; put your partners' names
// and logos in their place. The dashes drift slowly, and stand still for people who turn motion off.
import { ArrowRight, Calculator, CalendarDays, CreditCard, Landmark, Mail, MessageSquare, Sheet, Webhook } from "lucide-react"
import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"
const LEFT = [
{ icon: CreditCard, name: "Card payments", body: "Cards and digital wallets" },
{ icon: Landmark, name: "Bank transfer", body: "Local transfers in 30 currencies" },
{ icon: Calculator, name: "Accounting", body: "Invoices and payments in sync" },
{ icon: Sheet, name: "Spreadsheets", body: "A live copy of every invoice" },
]
const RIGHT = [
{ icon: Mail, name: "Email", body: "Send from your own address" },
{ icon: MessageSquare, name: "Team chat", body: "A ping when an invoice is paid" },
{ icon: CalendarDays, name: "Calendar", body: "Due dates on your calendar" },
{ icon: Webhook, name: "Webhooks and API", body: "Build on top of Orbit" },
]
// The hub is 440px tall and the tiles 64px, spaced evenly: their centers, in % of the height.
const H = 440
const TILE = 64
const ROWS = [0, 1, 2, 3].map((k) => ((TILE / 2 + (k * (H - TILE)) / 3) / H) * 100)
// Columns: 32% | 36% | 32%. Left tiles end at 32%, right tiles start at 68%, the mark is at 50%.
const PATHS = [...ROWS.map((y) => `M50 50 C41 50 41 ${y} 32 ${y}`), ...ROWS.map((y) => `M50 50 C59 50 59 ${y} 68 ${y}`)]
const KEYFRAMES = `@keyframes dc-hub-flow { to { stroke-dashoffset: -18 } }`
type Item = (typeof LEFT)[number]
function Tile({ item, className }: { item: Item; className?: string }) {
const Icon = item.icon
return (
<li className={cn("dc-card flex h-16 items-center gap-3 px-3.5", className)}>
<span className="dc-icon size-9 shrink-0">
<Icon className="size-[18px]" aria-hidden="true" />
</span>
<span className="min-w-0">
<span className="block truncate text-[14px] font-semibold">{item.name}</span>
<span className="block truncate text-[12px] text-muted-foreground">{item.body}</span>
</span>
</li>
)
}
function Mark({ className }: { className?: string }) {
return (
<span className={cn("flex flex-col items-center gap-2", className)}>
<svg width="52" height="52" viewBox="0 0 22 22" aria-hidden="true">
<circle cx="11" cy="11" r="8.5" fill="none" stroke="currentColor" strokeWidth="2.6" />
<circle cx="16.5" cy="5.5" r="3" fill="var(--dc-accent)" />
</svg>
<span className="dc-h text-[17px] font-bold tracking-[-0.02em]">Orbit</span>
</span>
)
}
export default function IntegrationsHub() {
return (
<section aria-labelledby="integrations-hub-title" className="overflow-hidden py-16 sm:py-24">
<style href="dc-hub-flow" precedence="default">
{KEYFRAMES}
</style>
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="mx-auto max-w-[640px] text-center">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Integrations</p>
<h2 id="integrations-hub-title" className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Orbit in the middle of your money
</h2>
<p className="mt-4 text-[17px] leading-relaxed text-muted-foreground">
Payments come in, invoices go out to your books and your team hears about it. Each one connects in a couple of clicks.
</p>
</div>
{/* Phones: a plain grid. */}
<ul className="mt-12 grid grid-cols-2 gap-3 md:hidden">
{[...LEFT, ...RIGHT].map(({ icon: Icon, name, body }) => (
<li key={name} className="dc-card p-4">
<span className="dc-icon size-9">
<Icon className="size-[18px]" aria-hidden="true" />
</span>
<p className="mt-3 text-[15px] font-semibold">{name}</p>
<p className="mt-0.5 text-[13px] leading-snug text-muted-foreground">{body}</p>
</li>
))}
</ul>
{/* Tablets and up: the hub. */}
<div className="relative mx-auto mt-16 hidden h-[440px] max-w-[1080px] grid-cols-[32%_36%_32%] md:grid">
<svg
aria-hidden="true"
className="pointer-events-none absolute inset-0 size-full text-[color:color-mix(in_oklab,var(--dc-accent)_45%,var(--border))]"
viewBox="0 0 100 100"
preserveAspectRatio="none"
fill="none"
>
{PATHS.map((d) => (
<path
key={d}
d={d}
stroke="currentColor"
strokeWidth="1.5"
strokeDasharray="4 5"
vectorEffect="non-scaling-stroke"
className="animate-[dc-hub-flow_2.4s_linear_infinite] motion-reduce:animate-none"
/>
))}
</svg>
<ul className="relative flex flex-col justify-between">
{LEFT.map((item) => (
<Tile key={item.name} item={item} className="ml-auto w-full max-w-[270px]" />
))}
</ul>
<div className="relative grid place-items-center">
<span aria-hidden="true" className="absolute size-[230px] rounded-full border border-dashed border-border lg:size-[260px]" />
<span aria-hidden="true" className="absolute size-[170px] rounded-full bg-[color:color-mix(in_oklab,var(--dc-accent)_7%,transparent)] lg:size-[190px]" />
<div className="dc-card relative grid size-[136px] place-items-center">
<Mark />
</div>
</div>
<ul className="relative flex flex-col justify-between">
{RIGHT.map((item) => (
<Tile key={item.name} item={item} className="mr-auto w-full max-w-[270px]" />
))}
</ul>
</div>
<div className="mt-12 flex flex-col items-center gap-2 text-center sm:mt-16">
<p className="text-[15px] text-muted-foreground">And 40 more, with webhooks and an API for the rest.</p>
<Button variant="link" className="dc-flat h-auto px-0 text-[15px] font-semibold text-foreground" nativeButton={false} render={<a href="#integrations" />}>
Browse every integration <ArrowRight className="size-4" aria-hidden="true" />
</Button>
</div>
</div>
</section>
)
}Grouped list with search
Every integration grouped by kind, with a search field that filters them as you type and an empty state when nothing matches.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/integrations-list.jsoncomponents/dresscode/integrations-list.tsx
"use client"
// Integrations, grouped list with search: every integration, grouped by kind (payments, accounting,
// communication, developer), with a search field that filters them as you type. It matches names,
// descriptions and the group's name; groups with nothing left are hidden, the count is announced
// politely, and when nothing matches an empty state offers to clear the search. The integrations are
// kinds of tool, not real brands; put your partners' names and logos in their place.
import {
ArrowRight,
Banknote,
Bell,
Braces,
Calculator,
CalendarDays,
CreditCard,
FileInput,
Landmark,
Link2,
Mail,
MessageSquare,
Receipt,
Search,
SearchX,
ScanLine,
Sheet,
Webhook,
Workflow,
X,
type LucideIcon,
} from "lucide-react"
import { useId, useMemo, useRef, useState } from "react"
import { Button } from "@/components/ui/button"
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
import { cn } from "@/lib/utils"
type Integration = { icon: LucideIcon; name: string; body: string; status?: "Built in" | "New" }
const GROUPS: { name: string; blurb: string; items: Integration[] }[] = [
{
name: "Payments",
blurb: "How your clients pay you",
items: [
{ icon: CreditCard, name: "Card payments", body: "Cards and digital wallets on every invoice, with the fee shown first.", status: "Built in" },
{ icon: Landmark, name: "Bank transfer", body: "Local transfer details in 30 currencies, matched to the invoice when they land.", status: "Built in" },
{ icon: Link2, name: "Payment links", body: "A link you can send in a chat or a text, for jobs without an invoice." },
{ icon: Banknote, name: "Direct debit", body: "Collect retainers on the same day each month, with the client's say-so.", status: "New" },
],
},
{
name: "Accounting",
blurb: "Where the numbers go next",
items: [
{ icon: Calculator, name: "Accounting software", body: "Invoices, payments and fees sync to your books every hour." },
{ icon: Sheet, name: "Spreadsheets", body: "A live copy of every invoice in a sheet you already use." },
{ icon: Receipt, name: "Tax reports", body: "Sales tax and VAT by quarter, ready to file or to hand over.", status: "Built in" },
{ icon: ScanLine, name: "Expenses", body: "Receipts from your inbox, matched to the job so you can bill them back." },
],
},
{
name: "Communication",
blurb: "Who hears about it, and where",
items: [
{ icon: Mail, name: "Email", body: "Invoices and reminders go out from your own address." },
{ icon: MessageSquare, name: "Team chat", body: "A message in your channel when an invoice is paid or goes late." },
{ icon: CalendarDays, name: "Calendar", body: "Due dates and payment days on the calendar you check anyway." },
{ icon: Bell, name: "Text reminders", body: "A short text to the client on the due date, if they ask for one.", status: "New" },
],
},
{
name: "Developer",
blurb: "For everything else",
items: [
{ icon: Webhook, name: "Webhooks", body: "An event for every invoice, payment, reminder and refund." },
{ icon: Braces, name: "REST API", body: "Create, send and chase invoices from your own code." },
{ icon: Workflow, name: "Automation tools", body: "Connect Orbit to thousands of apps without writing code." },
{ icon: FileInput, name: "CSV import", body: "Bring clients and old invoices from any tool, numbering intact.", status: "Built in" },
],
},
]
const TOTAL = GROUPS.reduce((n, g) => n + g.items.length, 0)
export default function IntegrationsList() {
const id = useId()
const inputRef = useRef<HTMLInputElement>(null)
const [query, setQuery] = useState("")
const q = query.trim().toLowerCase()
const groups = useMemo(() => {
if (!q) return GROUPS
return GROUPS.map((g) => ({
...g,
items: g.name.toLowerCase().includes(q) ? g.items : g.items.filter((i) => `${i.name} ${i.body}`.toLowerCase().includes(q)),
})).filter((g) => g.items.length)
}, [q])
const shown = groups.reduce((n, g) => n + g.items.length, 0)
const clear = () => {
setQuery("")
inputRef.current?.focus()
}
return (
<section aria-labelledby={`${id}-title`} className="py-16 sm:py-24">
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="flex flex-col gap-8 lg:flex-row lg:items-end lg:justify-between">
<div className="max-w-[600px]">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Integrations</p>
<h2 id={`${id}-title`} className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Connect Orbit to the rest of your studio
</h2>
<p className="mt-4 text-[17px] leading-relaxed text-muted-foreground">
Grouped by what they do. Each one connects in a couple of clicks.
</p>
</div>
<div className="w-full lg:max-w-[360px]">
<Label htmlFor={`${id}-search`} className="text-[14px] font-semibold">
Search integrations
</Label>
<div className="relative mt-2">
<Search className="pointer-events-none absolute top-1/2 left-3.5 size-4 -translate-y-1/2 text-muted-foreground" aria-hidden="true" />
<Input
ref={inputRef}
id={`${id}-search`}
type="search"
autoComplete="off"
placeholder="Payments, email, webhooks…"
value={query}
onChange={(e) => setQuery(e.target.value)}
onKeyDown={(e) => {
if (e.key === "Escape" && query) {
e.preventDefault()
setQuery("")
}
}}
aria-describedby={`${id}-count`}
className="h-11 bg-card pr-11 pl-10 text-[15px] [&::-webkit-search-cancel-button]:appearance-none"
/>
{query ? (
<Button variant="ghost" size="icon-sm" className="dc-flat absolute top-1/2 right-2 -translate-y-1/2 text-muted-foreground" aria-label="Clear search" onClick={clear}>
<X aria-hidden="true" />
</Button>
) : null}
</div>
<p id={`${id}-count`} aria-live="polite" className="mt-2 text-[13px] text-muted-foreground">
{q ? (shown === 1 ? "1 integration matches" : `${shown} integrations match`) : `Showing all ${TOTAL} integrations`}
</p>
</div>
</div>
{groups.length ? (
<div className="mt-12 space-y-12 sm:mt-14">
{groups.map((g) => (
<div key={g.name} role="group" aria-labelledby={`${id}-${g.name}`} className="grid gap-5 lg:grid-cols-[220px_minmax(0,1fr)] lg:gap-10">
<div className="lg:border-t lg:border-border lg:pt-5">
<h3 id={`${id}-${g.name}`} className="dc-h text-[20px]">
{g.name} <span className="dc-num text-[15px] font-normal text-muted-foreground">{g.items.length}</span>
</h3>
<p className="mt-1 text-[14px] text-muted-foreground">{g.blurb}</p>
</div>
<ul className="grid gap-3 sm:grid-cols-2">
{g.items.map(({ icon: Icon, name, body, status }) => (
<li key={name} className="dc-card flex items-start gap-3.5 p-4">
<span className="dc-icon shrink-0">
<Icon className="size-[18px]" aria-hidden="true" />
</span>
<div className="min-w-0 flex-1">
<p className="flex flex-wrap items-center gap-2">
<span className="text-[15px] font-semibold">{name}</span>
{status ? <span className={cn("dc-pill", status === "New" ? "dc-pill-hl" : "dc-pill-muted")}>{status}</span> : null}
</p>
<p className="mt-1 text-[14px] leading-snug text-pretty text-muted-foreground">{body}</p>
</div>
</li>
))}
</ul>
</div>
))}
</div>
) : (
<div className="mt-12 flex flex-col items-center rounded-[var(--dc-radius-card)] border border-dashed border-input px-6 py-14 text-center sm:mt-14">
<span className="dc-icon size-11">
<SearchX className="size-5" aria-hidden="true" />
</span>
<p className="dc-h mt-4 text-[20px]">Nothing matches “{query.trim()}”</p>
<p className="mt-2 max-w-[420px] text-[15px] text-muted-foreground">
Try a kind of tool, like “payments” or “calendar”. If it is not here, the API probably covers it, or tell us what you need.
</p>
<div className="mt-6 flex flex-wrap justify-center gap-3">
<Button variant="outline" className="h-10 px-4 font-semibold" onClick={clear}>
Clear search
</Button>
{/* Point this at your own request form. */}
<Button variant="link" className="dc-flat h-10 px-2 font-semibold text-foreground" nativeButton={false} render={<a href="#request-integration" />}>
Ask for an integration <ArrowRight className="size-4" aria-hidden="true" />
</Button>
</div>
</div>
)}
</div>
</section>
)
}