Integrations Hub 1
Integrations hub: every tool the buyer already uses wired into one centre tile, so “will it work with my setup?” is answered before the click.
Use it in a prompt
Use content/integrations-hub from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/content/integrations-hub.tsx. - Import it and pass your copy and images (Props tab):
import { IntegrationsHub } from "@/components/funneldna/content/integrations-hub"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/integrations-hub/component.tsx 767 lines
// layout: hello-strip
// Integrations hub: every tool the buyer already uses wired into one centre tile, so “will it work with my setup?” is answered before the click.
import * as React from 'react';
import { Bell, CalendarDays, ClipboardList, CreditCard, Dumbbell, FileText, Globe, Mail, MessageSquareText, MessagesSquare, Phone, Plug, Receipt, ShieldCheck, Star, TrendingUp, Users, Video } from 'lucide-react';
import type { LucideIcon } from 'lucide-react';
import { FX_HOST, Texture } from '../fx/fx';
import weave from '../fx/textures/weave';
export type IntegrationIcon =
| 'calendar'
| 'video'
| 'message'
| 'mail'
| 'card'
| 'file'
| 'shield'
| 'dumbbell'
| 'chat'
| 'bell'
| 'globe'
| 'star'
| 'users'
| 'form'
| 'chart'
| 'phone'
| 'receipt'
| 'plug';
export type IntegrationItem = {
name: string;
detail: string; // one line: what this connection does for the buyer
icon?: IntegrationIcon; // inline lucide glyph used when no logo image is supplied
image?: string; // supplied logo image (item-n slot), shown instead of the icon
href?: string; // optional page for this integration; defaults to its row in the list
};
export type IntegrationsHubProps = {
headline?: string;
highlight?: string; // phrase inside the headline set in the accent colour
lead?: string;
linkLabel?: string;
linkHref?: string; // defaults to the integration list below the hub
ctaLabel?: string;
ctaNote?: string; // one short reassurance line under the button
ctaHref?: string;
onAction?: () => void;
brandName?: string; // shown in the centre tile when no logo is supplied
brandLogo?: string; // logo slot image for the centre tile
brandLogoAlt?: string; // template: {brand}
stageCaption?: string; // one short line under the hub
items?: IntegrationItem[]; // the fan shows the first 12, the phone ring the first 6, the list all
diagramLabel?: string; // accessible name of the hub; templates: {brand}, {count}
listLabel?: string; // accessible name of the list
id?: string; // base for anchor ids
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
export function IntegrationsHub({
headline = 'Every tool you use, in sync with every booking',
highlight = 'in sync with every booking',
lead = 'Connects to the calendar, payments and messaging you already use. One booking updates every system on its own.',
linkLabel = 'Browse every integration',
linkHref,
ctaLabel = 'Send me the setup checklist',
ctaNote,
ctaHref,
onAction,
brandName = 'Hub',
brandLogo,
brandLogoAlt = '{brand} logo',
stageCaption = 'One booking. Every tool updated on its own.',
items = DEFAULT_ITEMS,
diagramLabel = '{brand} connects to {count} tools',
listLabel = 'All integrations',
id = 'integrations-hub',
state = 'default',
className,
}: IntegrationsHubProps) {
const listId = `${id}-list`;
const rest = state === 'hover' ? 0 : null;
const [active, setActive] = React.useState<number | null>(rest);
const [replay, setReplay] = React.useState(0);
const [live, setLive] = React.useState(false);
const stageRef = React.useRef<HTMLDivElement>(null);
React.useEffect(() => {
setActive(state === 'hover' ? 0 : null);
}, [state]);
React.useEffect(() => {
const el = stageRef.current;
if (!el || typeof IntersectionObserver === 'undefined') {
setLive(true);
return;
}
const io = new IntersectionObserver(
(entries) => {
if (entries.some((e) => e.isIntersecting)) {
setLive(true);
io.disconnect();
}
},
{ threshold: 0.3 },
);
io.observe(el);
return () => io.disconnect();
}, []);
const enter = (i: number) => {
setActive(i);
setReplay((r) => r + 1);
};
const leave = (i: number) => setActive((cur) => (cur === i ? rest : cur));
const hrefFor = (i: number) => items[i]?.href ?? `#${id}-item-${i}`;
const fanItems = items.slice(0, 12);
const ringItems = items.slice(0, 6);
const [before, mark, after] = splitPhrase(headline, highlight);
const vars = { brand: brandName, count: String(items.length) };
const disabled = state === 'disabled';
const btnClass = [
'cf-integrations-hub__btn',
state === 'hover' ? 'is-hover' : '',
state === 'active' ? 'is-active' : '',
]
.filter(Boolean)
.join(' ');
const hub = {
active,
live,
replay,
enter,
leave,
hrefFor,
brandName,
brandLogo,
brandLogoAlt: fill(brandLogoAlt, vars),
};
return (
<section id={id} className={['cf-integrations-hub', className].filter(Boolean).join(' ')} aria-labelledby={`${id}-title`}>
<div className='cf-integrations-hub__top' style={FX_HOST}>
<Texture src={weave} tone='ink' />
<div className='cf-integrations-hub__wrap cf-integrations-hub__head'>
<div className='cf-integrations-hub__copy'>
<h2 id={`${id}-title`} className='cf-integrations-hub__title'>
{before}
{mark ? <span className='cf-integrations-hub__em'>{mark}</span> : null}
{after}
</h2>
{lead ? <p className='cf-integrations-hub__lead'>{lead}</p> : null}
{linkLabel ? (
<a className='cf-integrations-hub__link' href={linkHref ?? `#${listId}`}>
{linkLabel}
</a>
) : null}
</div>
{ctaLabel ? (
<div className='cf-integrations-hub__act'>
{ctaHref && !disabled ? (
<a className={btnClass} href={ctaHref} onClick={() => onAction?.()}>
{ctaLabel}
</a>
) : (
<button type='button' className={btnClass} disabled={disabled} onClick={() => onAction?.()}>
{ctaLabel}
</button>
)}
{ctaNote ? <p className='cf-integrations-hub__note'>{ctaNote}</p> : null}
</div>
) : null}
</div>
</div>
<div className='cf-integrations-hub__stagewrap' ref={stageRef}>
<div className='cf-integrations-hub__wrap'>
<div className='cf-integrations-hub__stage' role='group' aria-label={fill(diagramLabel, vars)}>
<HubStage kind='fan' items={fanItems} nodes={fanLayout(fanItems.length)} w={1000} h={440} cx={500} cy={220} orbits={[110, 180]} {...hub} />
<HubStage kind='ring' items={ringItems} nodes={ringLayout(ringItems.length)} w={360} h={360} cx={180} cy={180} orbits={[72, 126]} {...hub} />
{stageCaption ? <p className='cf-integrations-hub__caption'>{stageCaption}</p> : null}
</div>
</div>
</div>
<div className='cf-integrations-hub__bottom'>
<div className='cf-integrations-hub__wrap'>
<ul id={listId} className='cf-integrations-hub__list' aria-label={listLabel}>
{items.map((item, i) => (
<li
key={`${item.name}-${i}`}
id={`${id}-item-${i}`}
className={`cf-integrations-hub__row${active === i ? ' is-on' : ''}`}
onMouseEnter={() => enter(i)}
onMouseLeave={() => leave(i)}
>
<span className='cf-integrations-hub__rowicon'>
<Glyph item={item} size={20} />
</span>
<div>
<h3 className='cf-integrations-hub__name'>
{item.href ? (
<a href={item.href} onFocus={() => enter(i)} onBlur={() => leave(i)}>
{item.name}
</a>
) : (
item.name
)}
</h3>
<p className='cf-integrations-hub__detail'>{item.detail}</p>
</div>
</li>
))}
</ul>
</div>
</div>
<style>{CSS}</style>
</section>
);
}
export default IntegrationsHub;
type HubNode = { x: number; y: number; side: 'left' | 'right'; d: string };
type HubStageProps = {
kind: 'fan' | 'ring';
items: IntegrationItem[];
nodes: HubNode[];
w: number;
h: number;
cx: number;
cy: number;
orbits: number[];
active: number | null;
live: boolean;
replay: number;
enter: (i: number) => void;
leave: (i: number) => void;
hrefFor: (i: number) => string;
brandName: string;
brandLogo?: string;
brandLogoAlt: string;
};
function HubStage({ kind, items, nodes, w, h, cx, cy, orbits, active, live, replay, enter, leave, hrefFor, brandName, brandLogo, brandLogoAlt }: HubStageProps) {
const on = active !== null && active < nodes.length;
return (
<div
className={`cf-integrations-hub__hub cf-integrations-hub__hub--${kind}${on ? ' has-active' : ''}`}
style={{ aspectRatio: `${w} / ${h}` }}
>
<svg className='cf-integrations-hub__svg' viewBox={`0 0 ${w} ${h}`} preserveAspectRatio='none' aria-hidden='true'>
{orbits.map((r) => (
<circle key={r} cx={cx} cy={cy} r={r} className='cf-integrations-hub__orbit' />
))}
{nodes.map((n, i) => (
<path key={`l${i}`} d={n.d} className={`cf-integrations-hub__line${active === i ? ' is-on' : ''}`} />
))}
{nodes.map((n, i) => (
<path
key={`p${i}`}
d={n.d}
pathLength={100}
className={`cf-integrations-hub__pulse${live ? ' is-go' : ''}`}
style={{ animationDelay: `${Math.min(i * 0.09, 0.9)}s` }}
/>
))}
{on && active !== null ? (
<path key={`r${replay}`} d={nodes[active].d} pathLength={100} className='cf-integrations-hub__pulse is-go' />
) : null}
</svg>
<div className={`cf-integrations-hub__core${brandLogo ? ' has-logo' : ''}`}>
{brandLogo ? <img src={brandLogo} alt={brandLogoAlt} /> : <span>{brandName}</span>}
</div>
{nodes.map((n, i) => (
<a
key={`t${i}`}
href={hrefFor(i)}
className={`cf-integrations-hub__tile cf-integrations-hub__tile--${n.side}${active === i ? ' is-on' : ''}`}
style={{ left: `${(n.x / w) * 100}%`, top: `${(n.y / h) * 100}%` }}
onMouseEnter={() => enter(i)}
onMouseLeave={() => leave(i)}
onFocus={() => enter(i)}
onBlur={() => leave(i)}
>
<span className='cf-integrations-hub__tilebox'>
<Glyph item={items[i]} size={24} />
</span>
<span className='cf-integrations-hub__label'>{items[i].name}</span>
</a>
))}
</div>
);
}
function Glyph({ item, size }: { item: IntegrationItem; size: number }) {
if (item.image) {
return <img src={item.image} alt='' width={size} height={size} loading='lazy' decoding='async' />;
}
const Icon = ICONS[item.icon ?? 'plug'] ?? Plug;
return <Icon size={size} strokeWidth={2.5} aria-hidden='true' />;
}
const ICONS: Record<IntegrationIcon, LucideIcon> = {
calendar: CalendarDays,
video: Video,
message: MessageSquareText,
mail: Mail,
card: CreditCard,
file: FileText,
shield: ShieldCheck,
dumbbell: Dumbbell,
chat: MessagesSquare,
bell: Bell,
globe: Globe,
star: Star,
users: Users,
form: ClipboardList,
chart: TrendingUp,
phone: Phone,
receipt: Receipt,
plug: Plug,
};
const DEFAULT_ITEMS: IntegrationItem[] = [
{ name: 'Calendar', detail: 'Checks every calendar for clashes before a slot is offered.', icon: 'calendar' },
{ name: 'Video calls', detail: 'Gives each booking its own private meeting link.', icon: 'video' },
{ name: 'Text reminders', detail: 'Texts a reminder the day before, so fewer slots go empty.', icon: 'message' },
{ name: 'Email', detail: 'Sends the confirmation with the time, place and next step.', icon: 'mail' },
{ name: 'Payments', detail: 'Takes the fee or a deposit the moment the slot is booked.', icon: 'card' },
{ name: 'CRM', detail: 'Adds every new booking to the right contact record.', icon: 'users' },
{ name: 'Team chat', detail: 'Tells your team the moment a new booking lands.', icon: 'chat' },
{ name: 'Website', detail: 'Puts your booking button on the site you already have.', icon: 'globe' },
{ name: 'Intake forms', detail: 'Collects the details you need before the first visit.', icon: 'form' },
{ name: 'Analytics', detail: 'Shows which pages and ads bring in bookings.', icon: 'chart' },
];
function round(v: number) {
return Math.round(v * 10) / 10;
}
function fanLayout(n: number): HubNode[] {
const leftCount = Math.ceil(n / 2);
return Array.from({ length: n }, (_, i) => {
const left = i < leftCount;
const k = left ? i : i - leftCount;
const count = left ? leftCount : n - leftCount;
const gap = count > 1 ? Math.min(84, 340 / (count - 1)) : 0;
const y = 220 + (k - (count - 1) / 2) * gap;
const x = left ? 190 : 810;
const sy = round(220 + (y - 220) * 0.12);
const c1 = left ? 360 : 640;
const c2 = left ? 330 : 670;
return { x, y, side: left ? 'left' : 'right', d: `M500 ${sy} C${c1} ${sy} ${c2} ${round(y)} ${x} ${round(y)}` };
});
}
function ringLayout(n: number): HubNode[] {
return Array.from({ length: n }, (_, i) => {
const a = ((-90 + (360 / Math.max(n, 1)) * i) * Math.PI) / 180;
const x = 180 + 126 * Math.cos(a);
const y = 180 + 126 * Math.sin(a);
const b = a + 0.5;
const qx = 180 + 70 * Math.cos(b);
const qy = 180 + 70 * Math.sin(b);
return { x, y, side: x < 179 ? 'left' : 'right', d: `M180 180 Q${round(qx)} ${round(qy)} ${round(x)} ${round(y)}` };
});
}
function splitPhrase(text: string, phrase?: string): [string, string, string] {
if (!phrase) return [text, '', ''];
const at = text.indexOf(phrase);
if (at < 0) return [text, '', ''];
return [text.slice(0, at), phrase, text.slice(at + phrase.length)];
}
function fill(template: string, vars: Record<string, string>) {
return Object.keys(vars).reduce((s, key) => s.split(`{${key}}`).join(vars[key]), template);
}
const CSS = `
.cf-integrations-hub {
--ih-overlap: clamp(140px, 18vw, 240px);
--ih-gutter: clamp(16px, 5vw, 48px);
position: relative;
background: var(--surface);
color: var(--ink);
font-family: var(--font-body);
}
.cf-integrations-hub *, .cf-integrations-hub *::before, .cf-integrations-hub *::after { box-sizing: border-box; }
.cf-integrations-hub__wrap {
position: relative;
z-index: 1;
width: min(1120px, 100% - 2 * var(--ih-gutter));
margin-inline: auto;
}
.cf-integrations-hub__top {
padding-top: clamp(56px, 8vw, 112px);
padding-bottom: calc(var(--ih-overlap) + clamp(32px, 4vw, 48px));
border-bottom: 1px solid oklch(from var(--ink) l c h / 0.08);
}
.cf-integrations-hub__head { display: grid; gap: 28px; }
.cf-integrations-hub__copy { max-width: 46rem; }
.cf-integrations-hub__title {
margin: 0;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
letter-spacing: var(--display-tracking, -0.025em);
font-size: clamp(2rem, 3.6vw, 3.25rem);
line-height: 1.06;
color: var(--ink);
text-wrap: balance;
}
.cf-integrations-hub__em { color: var(--accent); }
.cf-integrations-hub__lead {
margin: 16px 0 0;
max-width: 60ch;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 500;
color: var(--ink);
text-wrap: pretty;
}
.cf-integrations-hub__link {
display: inline-block;
margin-top: 16px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
font-weight: 700;
color: var(--link, var(--accent));
text-decoration: underline;
text-decoration-thickness: 2px;
text-decoration-color: oklch(from var(--link, var(--accent)) l c h / 0.45);
text-underline-offset: 0.18em;
border-radius: 4px;
transition: color 0.16s ease, text-decoration-color 0.16s ease;
}
.cf-integrations-hub__link:hover {
color: oklch(from var(--link, var(--accent)) calc(l - 0.08) c h);
text-decoration-color: currentColor;
}
.cf-integrations-hub__link:focus-visible,
.cf-integrations-hub__name a:focus-visible {
outline: 3px solid var(--field-focus, var(--accent));
outline-offset: 3px;
}
.cf-integrations-hub__act {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 12px;
width: 100%;
max-width: 420px;
}
.cf-integrations-hub__note {
margin: 0;
font-size: 0.9375rem;
line-height: 1.4;
font-weight: 600;
color: var(--ink);
text-align: center;
text-wrap: pretty;
}
@media (min-width: 900px) {
.cf-integrations-hub__head {
grid-template-columns: minmax(0, 1fr) auto;
align-items: end;
column-gap: clamp(32px, 5vw, 72px);
}
.cf-integrations-hub__act { width: auto; max-width: none; align-items: center; }
}
.cf-integrations-hub__btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 64px;
padding: 12px 28px;
border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l + 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.02) c h));
color: var(--button-ink, var(--cta-ink));
font-family: var(--button-font, var(--font-display));
font-weight: var(--button-weight, 800);
text-transform: var(--button-case, none);
font-size: clamp(1.125rem, 1.55vw, 1.375rem);
line-height: 1.15;
text-align: center;
text-decoration: none;
text-wrap: balance;
text-shadow: var(--button-text-shadow, none);
cursor: pointer;
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.3), 0 8px 16px -6px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.45));
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.cf-integrations-hub__btn:hover,
.cf-integrations-hub__btn.is-hover {
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - 0.01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.07) c h));
transform: translateY(-1px);
box-shadow: inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.12) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.32), 0 12px 20px -8px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.5);
}
.cf-integrations-hub__btn:active,
.cf-integrations-hub__btn.is-active {
transform: translateY(1px);
box-shadow: inset 0 2px 4px oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.5), inset 0 -2px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.3);
}
.cf-integrations-hub__btn:focus-visible {
outline: 3px solid var(--field-focus, var(--accent));
outline-offset: 3px;
}
@media (max-width: 480px) {
.cf-integrations-hub__btn { padding-inline: 18px; font-size: 1.125rem; }
}
.cf-integrations-hub__btn:disabled {
background: var(--button-2-bg, var(--secondary));
color: var(--button-2-ink, var(--secondary-ink));
text-shadow: none;
box-shadow: var(--button-2-shadow, var(--shadow-sm));
cursor: not-allowed;
transform: none;
}
.cf-integrations-hub__stagewrap {
position: relative;
z-index: 2;
margin-top: calc(-1 * var(--ih-overlap));
}
.cf-integrations-hub__stage {
position: relative;
padding: clamp(16px, 3vw, 40px);
border-radius: calc(var(--radius, 12px) + 8px);
background: var(--band);
color: var(--band-ink);
border: 1px solid oklch(from var(--band-ink) l c h / 0.1);
box-shadow: inset 0 1px 0 oklch(from var(--band-ink) l c h / 0.08), var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32));
}
.cf-integrations-hub__caption {
margin: 16px 0 0;
text-align: center;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
color: color-mix(in oklch, var(--band-ink) 88%, var(--band));
text-wrap: balance;
}
.cf-integrations-hub__hub {
position: relative;
width: 100%;
container-type: inline-size;
}
.cf-integrations-hub__hub--fan { max-width: 960px; margin-inline: auto; }
.cf-integrations-hub__hub--ring { display: none; max-width: 400px; margin-inline: auto; }
@media (max-width: 640px) {
.cf-integrations-hub__hub--fan { display: none; }
.cf-integrations-hub__hub--ring { display: block; }
}
.cf-integrations-hub__svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
}
.cf-integrations-hub__orbit {
fill: none;
stroke: oklch(from var(--band-ink) l c h / 0.07);
stroke-width: 1;
}
.cf-integrations-hub__line {
fill: none;
stroke: oklch(from var(--band-ink) l c h / 0.28);
stroke-width: 1.25;
stroke-linecap: round;
transition: stroke 0.16s ease, stroke-width 0.16s ease;
}
.cf-integrations-hub__hub.has-active .cf-integrations-hub__line { stroke: oklch(from var(--band-ink) l c h / 0.12); }
.cf-integrations-hub__hub.has-active .cf-integrations-hub__line.is-on {
stroke: oklch(from var(--band-ink) l c h / 0.92);
stroke-width: 2;
}
.cf-integrations-hub__pulse {
fill: none;
stroke: color-mix(in oklch, var(--accent-fill, var(--accent)) 50%, var(--band-ink));
stroke-width: 3;
stroke-linecap: round;
stroke-dasharray: 10 200;
stroke-dashoffset: 10;
opacity: 0;
}
.cf-integrations-hub__pulse.is-go { animation: cf-integrations-hub-pulse 1.5s cubic-bezier(0.45, 0.05, 0.35, 1) both; }
@keyframes cf-integrations-hub-pulse {
0% { stroke-dashoffset: 10; opacity: 0; }
12% { opacity: 1; }
85% { opacity: 1; }
100% { stroke-dashoffset: -100; opacity: 0; }
}
.cf-integrations-hub__core {
position: absolute;
left: 50%;
top: 50%;
z-index: 2;
transform: translate(-50%, -50%);
width: clamp(84px, 13cqw, 128px);
aspect-ratio: 1;
display: grid;
place-items: center;
padding: 8px;
border-radius: calc(var(--radius, 12px) + 10px);
background: linear-gradient(oklch(from var(--accent-fill, var(--accent)) calc(l + 0.03) c h), oklch(from var(--accent-fill, var(--accent)) calc(l - 0.04) c h));
color: var(--accent-fill-ink, var(--card));
box-shadow: inset 0 1px 0 oklch(from var(--accent-fill, var(--accent)) calc(l + 0.16) c h / 0.7), inset 0 -3px 0 oklch(from var(--accent-fill, var(--accent)) calc(l - 0.14) c h), var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32));
}
.cf-integrations-hub__core span {
max-width: 100%;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
letter-spacing: var(--display-tracking, -0.025em);
font-size: clamp(0.875rem, 2.1cqw, 1.375rem);
line-height: 1.05;
text-align: center;
text-wrap: balance;
overflow-wrap: break-word;
}
.cf-integrations-hub__core.has-logo { background: var(--card); padding: 18%; }
.cf-integrations-hub__core img { width: 100%; height: 100%; object-fit: contain; }
.cf-integrations-hub__hub--ring .cf-integrations-hub__core { width: 30cqw; }
.cf-integrations-hub__hub--ring .cf-integrations-hub__core span { font-size: clamp(0.9375rem, 5cqw, 1.25rem); }
.cf-integrations-hub__tile {
position: absolute;
z-index: 1;
display: block;
width: clamp(40px, 5.6cqw, 60px);
aspect-ratio: 1;
transform: translate(-50%, -50%);
border-radius: var(--radius, 12px);
background: transparent;
color: var(--band-ink);
text-decoration: none;
cursor: pointer;
}
.cf-integrations-hub__tilebox {
display: grid;
place-items: center;
width: 100%;
height: 100%;
border-radius: inherit;
background: var(--card);
color: var(--accent);
border: 1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12));
box-shadow: inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / 0.6), var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2));
transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.cf-integrations-hub__hub--ring .cf-integrations-hub__tile { width: 15cqw; }
.cf-integrations-hub__tile svg { width: 44%; height: 44%; }
.cf-integrations-hub__tile img { width: 60%; height: 60%; object-fit: contain; }
.cf-integrations-hub__tile:hover .cf-integrations-hub__tilebox,
.cf-integrations-hub__tile.is-on .cf-integrations-hub__tilebox {
transform: scale(1.08);
border-color: var(--accent);
box-shadow: inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / 0.6), var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32));
}
.cf-integrations-hub__tile:active .cf-integrations-hub__tilebox { transform: scale(1.02); }
.cf-integrations-hub__tile:focus-visible {
outline: 2px solid var(--band-ink);
outline-offset: 4px;
}
.cf-integrations-hub__label {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
white-space: nowrap;
}
@container (min-width: 880px) {
.cf-integrations-hub__hub--fan .cf-integrations-hub__label {
width: auto;
height: auto;
overflow: visible;
clip: auto;
clip-path: none;
top: 50%;
transform: translateY(-50%);
font-family: var(--font-body);
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.2;
white-space: nowrap;
color: color-mix(in oklch, var(--band-ink) 90%, var(--band));
transition: color 0.16s ease;
}
.cf-integrations-hub__hub--fan .cf-integrations-hub__tile--left .cf-integrations-hub__label { right: calc(100% + 14px); }
.cf-integrations-hub__hub--fan .cf-integrations-hub__tile--right .cf-integrations-hub__label { left: calc(100% + 14px); }
.cf-integrations-hub__hub--fan .cf-integrations-hub__tile.is-on .cf-integrations-hub__label { color: var(--band-ink); }
}
.cf-integrations-hub__bottom {
padding-top: clamp(32px, 4vw, 48px);
padding-bottom: clamp(64px, 8.5vw, 120px);
}
.cf-integrations-hub__list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 4px clamp(16px, 2.5vw, 32px);
}
@media (max-width: 960px) { .cf-integrations-hub__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cf-integrations-hub__list { grid-template-columns: minmax(0, 1fr); } }
.cf-integrations-hub__row {
display: grid;
grid-template-columns: 20px minmax(0, 1fr);
column-gap: 12px;
align-items: start;
padding: 16px;
border-radius: 10px;
scroll-margin-top: 24px;
transition: background-color 0.16s ease;
}
.cf-integrations-hub__row.is-on { background: color-mix(in oklch, var(--accent) 10%, var(--card)); }
.cf-integrations-hub__rowicon {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 1.4rem;
color: var(--accent);
}
.cf-integrations-hub__rowicon img { width: 20px; height: 20px; object-fit: contain; }
.cf-integrations-hub__name {
margin: 0;
font-family: var(--font-display);
font-size: 1.125rem;
font-weight: 800;
line-height: 1.25;
letter-spacing: -0.01em;
color: var(--ink);
}
.cf-integrations-hub__name a {
color: inherit;
text-decoration: underline;
text-decoration-color: oklch(from var(--ink) l c h / 0.3);
text-underline-offset: 0.18em;
border-radius: 4px;
}
.cf-integrations-hub__name a:hover {
color: var(--link, var(--accent));
text-decoration-color: currentColor;
}
.cf-integrations-hub__detail {
margin: 4px 0 0;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.45;
color: var(--muted);
text-wrap: pretty;
}
.cf-integrations-hub__row.is-on .cf-integrations-hub__detail { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
.cf-integrations-hub__pulse, .cf-integrations-hub__pulse.is-go { display: none; animation: none; }
.cf-integrations-hub__tilebox, .cf-integrations-hub__btn, .cf-integrations-hub__row, .cf-integrations-hub__line, .cf-integrations-hub__link { transition: none; }
.cf-integrations-hub__tile:hover .cf-integrations-hub__tilebox,
.cf-integrations-hub__tile:active .cf-integrations-hub__tilebox,
.cf-integrations-hub__tile.is-on .cf-integrations-hub__tilebox { transform: none; }
.cf-integrations-hub__btn:hover, .cf-integrations-hub__btn.is-hover, .cf-integrations-hub__btn:active, .cf-integrations-hub__btn.is-active { transform: none; }
}
`;
pieces/content/integrations-hub/specimen.tsx 43 lines
// Clinicly: booking and reminders for physiotherapy clinics, shown as the hub every clinic tool plugs into.
import IntegrationsHub from '../integrations-hub';
import type { IntegrationItem, IntegrationsHubProps } from '../integrations-hub';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
const items: IntegrationItem[] = [
{ name: 'Practice calendar', detail: 'Blocks double bookings across every therapist’s diary.', icon: 'calendar' },
{ name: 'Video visits', detail: 'Gives each telehealth session its own private room link.', icon: 'video' },
{ name: 'Text reminders', detail: 'Texts patients the day before, so fewer slots sit empty.', icon: 'message' },
{ name: 'Booking emails', detail: 'Sends the time, the address and what to wear.', icon: 'mail' },
{ name: 'Card payments', detail: 'Takes a deposit or the full fee when the slot is booked.', icon: 'card' },
{ name: 'Patient records', detail: 'Opens the patient’s notes the moment they check in.', icon: 'file' },
{ name: 'Insurance claims', detail: 'Attaches each visit to the right claim, ready to send.', icon: 'shield' },
{ name: 'Exercise plans', detail: 'Sends the home exercise plan after every session.', icon: 'dumbbell' },
{ name: 'Front desk chat', detail: 'Tells reception the moment a new patient books.', icon: 'chat' },
{ name: 'Waitlist', detail: 'Offers a cancelled slot to the next patient in line.', icon: 'bell' },
{ name: 'Clinic website', detail: 'Puts a Book now button on the site you already have.', icon: 'globe' },
{ name: 'Patient reviews', detail: 'Asks patients for a review after their final visit.', icon: 'star' },
];
export default function IntegrationsHubDemo({ state }: { state?: IntegrationsHubProps['state'] }) {
return (
<IntegrationsHub
state={state}
id='clinicly-integrations'
brandName='Clinicly'
brandLogo={slot('logo', '')}
brandLogoAlt='{brand} logo'
headline='Every tool your clinic runs on, in sync with every booking'
highlight='in sync with every booking'
lead='Clinicly connects to the calendar, payments and patient records you already use. A patient books once, and every system updates on its own.'
linkLabel='Browse all 12 integrations'
ctaLabel='Send me the setup checklist'
ctaNote='Free PDF · Shows what to connect first'
stageCaption='One booking. Twelve clinic systems updated in the background.'
diagramLabel='{brand} connects to {count} clinic tools'
listLabel='Clinicly integrations'
items={items}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalIntegrationsHub |
string |
Default 'Every tool you use, in sync with every booking'
|
highlight OptionalIntegrationsHub |
string |
Default 'in sync with every booking'
|
lead OptionalIntegrationsHub |
string |
Default 'Connects to the calendar, payments and messaging you already use. One booking updates every system on its own.'
|
linkLabel OptionalIntegrationsHub |
string |
Default 'Browse every integration'
|
linkHref OptionalIntegrationsHub |
string |
|
ctaLabel OptionalIntegrationsHub |
string |
Default 'Send me the setup checklist'
|
ctaNote OptionalIntegrationsHub |
string |
|
ctaHref OptionalIntegrationsHub |
string |
|
onAction OptionalIntegrationsHub |
() => void |
|
brandName OptionalIntegrationsHub |
string |
Default 'Hub'
|
brandLogo OptionalIntegrationsHub |
string |
|
brandLogoAlt OptionalIntegrationsHub |
string |
Default '{brand} logo'
|
stageCaption OptionalIntegrationsHub |
string |
Default 'One booking. Every tool updated on its own.'
|
items OptionalIntegrationsHub |
IntegrationItem[] |
Default DEFAULT_ITEMS
|
diagramLabel OptionalIntegrationsHub |
string |
Default '{brand} connects to {count} tools'
|
listLabel OptionalIntegrationsHub |
string |
Default 'All integrations'
|
id OptionalIntegrationsHub |
string |
Default 'integrations-hub'
|
state OptionalIntegrationsHub |
'default' | 'hover' | 'active' | 'disabled' |
Default 'default'
|
className OptionalIntegrationsHub |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink--button-2-shadow- Secondary button.
--card-border- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
logo- The brand’s logo mark.
-
4137412454b17370.webp
image/webp · 94.8 KB