Call Booked Hero 1
Call-booked hero: prints the booked date and time large, puts the advisor's face on screen and turns the wait
Use it in a prompt
Use hero/call-booked-hero 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/hero/call-booked-hero.tsx. - Import it and pass your copy and images (Props tab):
import { CallBookedHero } from "@/components/funneldna/hero/call-booked-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/call-booked-hero/component.tsx 650 lines
// layout: clipboard-checklist
// Call-booked hero: prints the booked date and time large, puts the advisor's face on screen and turns the wait
// into a short prep checklist with one next action, so prospects invest in the call and show up for it.
import React from "react";
import {
Calculator,
CalendarClock,
CalendarPlus,
Check,
Clock,
FileText,
ListChecks,
Mail,
Phone,
Play,
ShieldCheck,
UserCheck,
Video,
} from "lucide-react";
import { Backdrop, Divider, FX_HOST } from "../fx/fx";
import office from "../fx/backdrops/office";
export type CallBookedItem = {
/** Stable id: drives the ticked state and onProgressChange. */
id: string;
/** The homework, e.g. "Watch the 90-second hello". */
title: string;
detail?: string;
/** Label of the row's small action. */
actionLabel: string;
/** Picks the row icon; a "watch" item is also what the video poster plays. */
kind?: "watch" | "form" | "numbers" | "task";
href?: string;
/** Main line of the primary button while this is the next unticked item (default "Next: {title}"). */
nextLabel?: string;
/** Second line inside the primary button while this item is next. */
nextNote?: string;
};
export type CallBookedNote = {
text: string;
icon?: "user" | "mail" | "clock" | "shield" | "phone";
};
export type CallBookedCopy = {
/** Checkbox label; {title} is the item title. */
markDone: string;
/** Read after a ticked item's title by screen readers. */
doneSuffix: string;
/** Default button sub-line; {step} and {total}. */
nextNote: string;
/** Button sub-line once every item is ticked; {date}. */
doneNote: string;
doneNoteNoDate: string;
play: string;
/** Play button label; {advisor}. */
playAria: string;
playAriaNoName: string;
/** Poster alt text; {advisor}. */
posterAlt: string;
posterAltNoName: string;
/** Caption used when the caption names {advisor} but no advisor is supplied. */
captionNoName: string;
progressAria: string;
};
export type CallBookedHeroProps = {
headline?: string;
/** Repeats what they booked, by name. */
lead?: string;
/** Printed large, e.g. "Thursday, March 12". */
date?: string;
/** Printed large, e.g. "2:30 PM". */
time?: string;
/** Time zone after the time, e.g. "Eastern Time". */
zone?: string;
/** Machine-readable date-time for the time element. */
dateTime?: string;
/** Call length, e.g. "45 minutes". */
duration?: string;
meetVia?: "video" | "phone";
/** How you'll meet, e.g. "Zoom video call". */
meetLabel?: string;
meetHref?: string;
meetLinkLabel?: string;
/** Expectation lines: what arrives, when and from whom. */
notes?: CallBookedNote[];
/** Shown instead of the date and time when neither is supplied. */
whenMissing?: string;
advisorName?: string;
advisorRole?: string;
/** presenter slot: poster frame of the advisor talking to camera. */
posterImage?: string;
posterAlt?: string;
/** Supplied video length, e.g. "1:30". */
videoDuration?: string;
videoHref?: string;
onPlayVideo?: () => void;
/** Caption under the poster; {advisor} is replaced by advisorName. */
caption?: string;
/** scene slot: the full-bleed photo behind the block. */
sceneImage?: string;
sheetTitle?: string;
/** {done} and {total}. */
progressLabel?: string;
items?: CallBookedItem[];
/** Ids already ticked (the page restores saved progress through this). */
initialDone?: string[];
/** Called with the ticked ids after every change, so the page can save them. */
onProgressChange?: (doneIds: string[]) => void;
onItemAction?: (item: CallBookedItem) => void;
/** Primary button main line; {title}. */
nextTemplate?: string;
/** Primary button once every item is ticked (needs calendarHref or onAddToCalendar). */
doneLabel?: string;
rescheduleLabel?: string;
rescheduleHref?: string;
onReschedule?: () => void;
calendarLabel?: string;
calendarHref?: string;
onAddToCalendar?: () => void;
copy?: Partial<CallBookedCopy>;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
export function CallBookedHero(props: CallBookedHeroProps) {
const {
headline = "Your call is booked.",
lead = "",
date = "",
time = "",
zone = "",
dateTime,
duration = "",
meetVia = "video",
meetLabel = "",
meetHref,
meetLinkLabel = "Open the meeting link",
notes = [],
whenMissing = "Your confirmation email has the date and time.",
advisorName = "",
advisorRole = "",
posterImage = "",
posterAlt,
videoDuration = "",
videoHref,
onPlayVideo,
caption = "A short hello from {advisor} before your call",
sceneImage = "",
sheetTitle = "Three quick steps before your call",
progressLabel = "Prepared: {done} of {total}",
items = DEFAULT_ITEMS,
initialDone = [],
onProgressChange,
onItemAction,
nextTemplate = "Next: {title}",
doneLabel = "Add the call to my calendar",
rescheduleLabel = "Need another time? Reschedule",
rescheduleHref,
onReschedule,
calendarLabel = "Add to my calendar",
calendarHref,
onAddToCalendar,
copy,
state = "default",
className,
} = props;
const c: CallBookedCopy = { ...DEFAULT_COPY, ...copy };
const uid = React.useId();
const [done, setDone] = React.useState<string[]>(() =>
initialDone.filter((id) => items.some((it) => it.id === id)),
);
const isDone = (id: string) => done.includes(id);
const total = items.length;
const doneCount = items.filter((it) => isDone(it.id)).length;
const next = items.find((it) => !isDone(it.id));
const nextStep = next ? items.indexOf(next) + 1 : 0;
const disabled = state === "disabled";
const hasVideo = Boolean(posterImage);
const hasCalendar = Boolean(calendarHref || onAddToCalendar);
const watchItem = items.find((it) => it.kind === "watch");
const toggle = (id: string) => {
if (disabled) return;
const ids = isDone(id) ? done.filter((x) => x !== id) : [...done, id];
setDone(ids);
onProgressChange?.(ids);
};
let primary: { main: string; sub: string; href?: string; onClick?: () => void } | null = null;
if (next) {
const n = next;
primary = {
main: n.nextLabel ?? fill(nextTemplate, { title: n.title }),
sub: n.nextNote ?? fill(c.nextNote, { step: nextStep, total }),
href: n.href,
onClick: onItemAction ? () => onItemAction(n) : undefined,
};
} else if (hasCalendar) {
primary = {
main: doneLabel,
sub: date ? fill(c.doneNote, { date }) : c.doneNoteNoDate,
href: calendarHref,
onClick: onAddToCalendar,
};
}
const calendarIsPrimary = !next && hasCalendar;
const showReschedule = Boolean(rescheduleHref || onReschedule);
const showCalendarLink = hasCalendar && !calendarIsPrimary;
const playHref = videoHref ?? watchItem?.href;
const playClick = onPlayVideo ?? (watchItem && onItemAction ? () => onItemAction(watchItem) : undefined);
// The play pill only shows when it opens a real video (a link or a handler), never as a dead poster control.
const canPlay = Boolean(playHref || playClick);
const playAria =
(advisorName ? fill(c.playAria, { advisor: advisorName }) : c.playAriaNoName) +
(videoDuration ? ", " + videoDuration : "");
const captionText = advisorName
? fill(caption, { advisor: advisorName })
: caption.includes("{advisor}")
? c.captionNoName
: caption;
const posterAltText =
posterAlt ?? (advisorName ? fill(c.posterAlt, { advisor: advisorName }) : c.posterAltNoName);
const who = [advisorName, advisorRole].filter(Boolean).join(", ");
const MeetIcon = meetVia === "phone" ? Phone : Video;
const delay = (i: number): React.CSSProperties => ({ animationDelay: Math.min(i * 0.07, 0.28) + "s" });
const whenInner = (
<>
{date ? <span className="cbh-date">{date}</span> : null}
{time ? (
<span className="cbh-time">
{time}
{zone ? <span className="cbh-zone">{zone}</span> : null}
</span>
) : null}
</>
);
return (
<section
className={cx("cf-call-booked-hero", !hasVideo && "cbh--novideo", className)}
style={FX_HOST}
aria-labelledby={uid + "-h"}
>
<style>{CSS}</style>
<div className="cbh-layer" aria-hidden="true">
<Backdrop src={sceneImage || office} treatment="scrim-dark" side="right" position="center" />
</div>
<div className="cbh-wrap">
<header className="cbh-head cbh-anim" style={delay(0)}>
<h1 id={uid + "-h"} className="cbh-h1">
{headline}
</h1>
{lead ? <p className="cbh-lead">{lead}</p> : null}
{date || time ? (
dateTime ? (
<time className="cbh-when" dateTime={dateTime}>
{whenInner}
</time>
) : (
<div className="cbh-when">{whenInner}</div>
)
) : (
<p className="cbh-missing">{whenMissing}</p>
)}
{duration || meetLabel || meetHref ? (
<ul className="cbh-meta">
{duration ? (
<li>
<Clock className="cbh-ico" size={18} strokeWidth={2.5} aria-hidden="true" />
{duration}
</li>
) : null}
{meetLabel || meetHref ? (
<li>
<MeetIcon className="cbh-ico" size={18} strokeWidth={2.5} aria-hidden="true" />
{meetLabel}
{meetHref ? (
<>
{meetLabel ? " · " : ""}
<a className="cbh-qlink cbh-qlink--inline" href={meetHref}>
{meetLinkLabel}
</a>
</>
) : null}
</li>
) : null}
</ul>
) : null}
{notes.length ? (
<ul className="cbh-notes">
{notes.map((note, i) => {
const NoteIcon = NOTE_ICON[note.icon ?? "user"];
return (
<li key={i}>
<NoteIcon className="cbh-ico" size={16} strokeWidth={2.5} aria-hidden="true" />
{note.text}
</li>
);
})}
</ul>
) : null}
</header>
{hasVideo ? (
<div className="cbh-video cbh-anim" style={delay(1)}>
<figure className="cbh-figure">
<div className="cbh-poster">
<img src={posterImage} alt={posterAltText} decoding="async" />
{canPlay ? (
<Act className="cbh-play" href={playHref} onClick={playClick} ariaLabel={playAria}>
<span className="cbh-disc" aria-hidden="true">
<Play size={20} strokeWidth={2.5} fill="currentColor" />
</span>
<span className="cbh-playtxt" aria-hidden="true">
<span>{c.play}</span>
{videoDuration ? <span className="cbh-dur">{videoDuration}</span> : null}
</span>
</Act>
) : null}
</div>
<figcaption className="cbh-cap">
<span className="cbh-caption">{captionText}</span>
{who ? <span className="cbh-who">{who}</span> : null}
</figcaption>
</figure>
</div>
) : null}
{total ? (
<div className="cbh-sheet cbh-anim" style={delay(2)}>
<h2 id={uid + "-s"} className="cbh-h2">
{sheetTitle}
</h2>
<div className="cbh-prog">
<p className="cbh-progtext" aria-live="polite">
{fill(progressLabel, { done: doneCount, total })}
</p>
<div
className="cbh-segs"
role="progressbar"
aria-valuemin={0}
aria-valuemax={total}
aria-valuenow={doneCount}
aria-label={c.progressAria}
>
{items.map((it) => (
<span key={it.id} className={cx("cbh-seg", isDone(it.id) && "is-on")}>
<span className="cbh-fill" />
</span>
))}
</div>
</div>
<ol className="cbh-list" aria-labelledby={uid + "-s"}>
{items.map((it, i) => {
const Icon = KIND_ICON[it.kind ?? "task"];
const ticked = isDone(it.id);
const isNext = next?.id === it.id;
return (
<li key={it.id} className={cx("cbh-row", ticked && "is-done", isNext && "is-next")}>
<span className="cbh-tick">
<input
id={uid + "-i" + i}
type="checkbox"
className="cbh-input"
checked={ticked}
disabled={disabled}
onChange={() => toggle(it.id)}
aria-label={fill(c.markDone, { title: it.title })}
/>
<span className="cbh-box" aria-hidden="true">
<Check size={18} strokeWidth={3} />
</span>
</span>
<div className="cbh-txt">
<p className="cbh-title">
<span className="cbh-num" aria-hidden="true">
{i + 1}
</span>
{it.title}
{ticked ? <span className="cbh-sr">{c.doneSuffix}</span> : null}
</p>
{it.detail ? <p className="cbh-detail">{it.detail}</p> : null}
</div>
<Act
className="cbh-mini"
href={it.href}
onClick={onItemAction ? () => onItemAction(it) : undefined}
disabled={disabled}
>
<Icon size={16} strokeWidth={2.5} aria-hidden="true" />
{it.actionLabel}
</Act>
</li>
);
})}
</ol>
</div>
) : null}
{primary ? (
<div className="cbh-action cbh-anim" style={delay(3)}>
<Act
className={cx("cbh-cta", state === "hover" && "is-hover", state === "active" && "is-active")}
href={primary.href}
onClick={primary.onClick}
disabled={disabled}
>
<span className="cbh-cta-main">{primary.main}</span>
{primary.sub ? <span className="cbh-cta-sub">{primary.sub}</span> : null}
</Act>
</div>
) : null}
{showReschedule || showCalendarLink ? (
<ul className="cbh-links">
{showReschedule ? (
<li>
<Act className="cbh-qlink" href={rescheduleHref} onClick={onReschedule}>
<CalendarClock className="cbh-ico" size={16} strokeWidth={2.5} aria-hidden="true" />
{rescheduleLabel}
</Act>
</li>
) : null}
{showCalendarLink ? (
<li>
<Act className="cbh-qlink" href={calendarHref} onClick={onAddToCalendar}>
<CalendarPlus className="cbh-ico" size={16} strokeWidth={2.5} aria-hidden="true" />
{calendarLabel}
</Act>
</li>
) : null}
</ul>
) : null}
</div>
<div className="cbh-edge" aria-hidden="true">
<Divider shape="curve" tone="surface" height={56} />
</div>
</section>
);
}
export default CallBookedHero;
type ActProps = {
href?: string;
onClick?: () => void;
disabled?: boolean;
className: string;
ariaLabel?: string;
children: React.ReactNode;
};
// A link when there is a destination, otherwise a real button (disabled actions are always buttons).
function Act({ href, onClick, disabled, className, ariaLabel, children }: ActProps) {
// Every action carries cbh-btn, which reads the button role tokens; its own class refines the look.
if (href && !disabled) {
return (
<a className={"cbh-btn " + className} href={href} onClick={onClick} aria-label={ariaLabel}>
{children}
</a>
);
}
return (
<button
type="button"
className={"cbh-btn " + className}
onClick={onClick}
disabled={disabled}
aria-label={ariaLabel}
>
{children}
</button>
);
}
function fill(template: string, vars: Record<string, string | number>) {
return Object.keys(vars).reduce((s, k) => s.split("{" + k + "}").join(String(vars[k])), template);
}
function cx(...parts: (string | false | null | undefined)[]) {
return parts.filter(Boolean).join(" ");
}
const KIND_ICON = { watch: Play, form: FileText, numbers: Calculator, task: ListChecks };
const NOTE_ICON = { user: UserCheck, mail: Mail, clock: Clock, shield: ShieldCheck, phone: Phone };
const DEFAULT_ITEMS: CallBookedItem[] = [
{
id: "watch",
kind: "watch",
title: "Watch the short hello video",
detail: "Meet your advisor and see how the call will run.",
actionLabel: "Watch",
},
{
id: "form",
kind: "form",
title: "Fill in the short prep form",
detail: "A few questions so the call starts with your goals.",
actionLabel: "Open form",
},
{
id: "numbers",
kind: "numbers",
title: "Gather your key numbers",
detail: "Have the figures you want to talk through beside you.",
actionLabel: "See the list",
},
];
const DEFAULT_COPY: CallBookedCopy = {
markDone: "Mark “{title}” as done",
doneSuffix: " (done)",
nextNote: "Step {step} of {total} before your call",
doneNote: "You're ready for {date}",
doneNoteNoDate: "You're ready for your call",
play: "Play hello",
playAria: "Play the video message from {advisor}",
playAriaNoName: "Play the video message",
posterAlt: "{advisor} recording a video message to camera",
posterAltNoName: "Your advisor recording a video message to camera",
captionNoName: "A short hello before your call",
progressAria: "Call preparation progress",
};
const R = ".cf-call-booked-hero";
const CSS = `
${R}{--cbh-sh:var(--shadow, oklch(0.22 0.03 260));--cbh-cta:var(--button-bg, var(--cta, oklch(0.58 0.21 29)));--cbh-cta2:var(--button-bg-2, var(--cta-2, oklch(0.51 0.21 29)));position:relative;isolation:isolate;overflow:clip;background:var(--band, oklch(0.27 0.07 256));color:var(--band-ink, oklch(1 0 0));font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) calc(clamp(64px,8.5vw,120px) + 56px)}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} .cbh-btn{border-radius:var(--button-radius, var(--radius, 12px));font-weight:var(--button-weight, 800);touch-action:manipulation;-webkit-tap-highlight-color:transparent}
${R} .cbh-layer{position:absolute;inset:0;z-index:0}
${R} .cbh-edge{position:absolute;left:0;right:0;bottom:-1px;height:56px;z-index:1;pointer-events:none}
${R} .cbh-wrap{position:relative;z-index:2;max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-areas:"video head" "video sheet" "video action" "video links";column-gap:clamp(32px,5vw,72px);align-items:start}
${R}.cbh--novideo .cbh-wrap{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"head sheet" "head action" "head links"}
${R} .cbh-head{grid-area:head;min-width:0;margin-bottom:32px}
${R}.cbh--novideo .cbh-head{margin-bottom:0}
${R} .cbh-h1{margin:0 0 16px;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance}
${R} .cbh-lead{margin:0 0 24px;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty}
${R} .cbh-when{display:block;margin:0 0 16px}
${R} .cbh-date,${R} .cbh-time{display:block;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1.04;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;text-wrap:balance}
${R} .cbh-time{margin-top:8px}
${R} .cbh-zone{display:inline-block;margin-inline-start:12px;font-family:var(--font-body);font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;letter-spacing:0}
${R} .cbh-missing{margin:0 0 16px;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty}
${R} .cbh-meta{display:flex;flex-wrap:wrap;gap:8px 24px;margin:0;padding:0;list-style:none;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:600;line-height:1.5}
${R} .cbh-ico{display:inline-block;flex:none;vertical-align:-0.15em;margin-inline-end:.4em}
${R} .cbh-notes{display:grid;gap:8px;max-width:64ch;margin:16px 0 0;padding:0;list-style:none}
${R} .cbh-notes li{font-size:15px;font-weight:500;line-height:1.4;text-wrap:pretty}
${R} .cbh-video{grid-area:video;position:sticky;top:24px;min-width:0}
${R} .cbh-figure{margin:0}
${R} .cbh-poster{position:relative;aspect-ratio:4/5;border-radius:12px;overflow:hidden;background:oklch(from var(--band, oklch(0.27 0.07 256)) calc(l + .06) c h)}
${R} .cbh-poster img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 28%}
${R} .cbh-play{position:absolute;left:16px;bottom:16px;display:inline-flex;align-items:center;gap:12px;min-height:56px;padding:6px 20px 6px 6px;border:0;border-radius:999px;background:var(--card);color:var(--ink);font-family:var(--font-body);font-size:15px;font-weight:var(--button-weight, 800);line-height:1.2;text-decoration:none;cursor:pointer;box-shadow:var(--shadow-md, 0 1px 2px oklch(from var(--cbh-sh) l c h / .22), 0 4px 10px -2px oklch(from var(--cbh-sh) l c h / .2));transition:transform .16s ease, box-shadow .16s ease}
${R} .cbh-play:hover{transform:translateY(-1px);box-shadow:var(--shadow-lg, 0 2px 4px oklch(from var(--cbh-sh) l c h / .22), 0 12px 24px -8px oklch(from var(--cbh-sh) l c h / .32))}
${R} .cbh-play:active{transform:translateY(1px)}
${R} .cbh-play:focus-visible{outline:3px solid var(--accent-fill, var(--accent));outline-offset:3px}
${R} .cbh-disc{display:grid;place-items:center;width:44px;height:44px;border-radius:999px;background:var(--accent-fill, var(--accent));color:var(--accent-fill-ink, var(--card));transition:background .16s ease}
${R} .cbh-disc svg{margin-inline-start:2px}
${R} .cbh-play:hover .cbh-disc{background:oklch(from var(--accent-fill, var(--accent)) calc(l - .06) c h)}
${R} .cbh-playtxt{display:flex;flex-direction:column;align-items:flex-start;text-align:left}
${R} .cbh-dur{color:var(--muted);font-weight:600;font-variant-numeric:tabular-nums}
${R} .cbh-cap{margin-top:16px}
${R} .cbh-caption{display:block;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.4;text-wrap:pretty}
${R} .cbh-who{display:block;margin-top:4px;font-size:15px;font-weight:500;line-height:1.4;text-wrap:pretty}
${R} .cbh-sheet{grid-area:sheet;min-width:0;margin-bottom:24px;padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border, oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius, var(--radius, 14px));box-shadow:var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--cbh-sh) l c h / .22), 0 12px 24px -8px oklch(from var(--cbh-sh) l c h / .32)))}
${R} .cbh-h2{margin:0 0 16px;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--ink);text-wrap:balance}
${R} .cbh-prog{margin:0 0 12px}
${R} .cbh-progtext{margin:0 0 8px;font-size:15px;font-weight:800;line-height:1.4;color:var(--ink);font-variant-numeric:tabular-nums}
${R} .cbh-segs{display:flex;gap:6px}
${R} .cbh-seg{flex:1;height:8px;border-radius:999px;overflow:hidden;background:color-mix(in oklch, var(--ink) 10%, var(--card))}
${R} .cbh-fill{display:block;height:100%;background:var(--accent-fill, var(--accent));transform:scaleX(0);transform-origin:left center;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
${R} .cbh-seg.is-on .cbh-fill{transform:scaleX(1)}
${R} .cbh-list{display:grid;gap:0;margin:0;padding:0;list-style:none}
${R} .cbh-row{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;column-gap:12px;align-items:start;padding:12px;border-radius:10px;transition:background .16s ease}
${R} .cbh-row + .cbh-row::before{content:"";position:absolute;left:12px;right:12px;top:0;height:1px;background:oklch(from var(--ink) l c h / .1)}
${R} .cbh-row.is-next::before,${R} .cbh-row.is-next + .cbh-row::before{display:none}
${R} .cbh-row.is-next{background:color-mix(in oklch, var(--accent) 10%, var(--card))}
${R} .cbh-row:not(.is-next):hover{background:color-mix(in oklch, var(--ink) 4%, var(--card))}
${R} .cbh-row:hover::before,${R} .cbh-row:hover + .cbh-row::before{opacity:0}
${R} .cbh-tick{position:relative;display:grid;place-items:center;width:44px;height:44px}
${R} .cbh-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
${R} .cbh-input:disabled{cursor:not-allowed}
${R} .cbh-box{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:var(--card);color:transparent;box-shadow:inset 0 0 0 2px oklch(from var(--ink) l c h / .38);transition:background .16s ease, box-shadow .16s ease}
${R} .cbh-tick:hover .cbh-input:not(:checked):not(:disabled) + .cbh-box{box-shadow:inset 0 0 0 2px oklch(from var(--ink) l c h / .62)}
${R} .cbh-input:checked + .cbh-box{background:var(--success);color:var(--cbh-glyph, #fff);box-shadow:none}
${R} .cbh-input:focus-visible + .cbh-box{outline:3px solid oklch(from var(--field-focus, var(--accent)) l c h / .55);outline-offset:2px}
${R} .cbh-input:disabled + .cbh-box{opacity:.55}
${R} .cbh-row.is-done .cbh-box{animation:cbh-pop .3s cubic-bezier(.2,.7,.2,1) both}
${R} .cbh-txt{min-width:0;padding-top:8px}
${R} .cbh-title{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.35;color:var(--ink);text-wrap:pretty}
${R} .cbh-num{margin-inline-end:10px;font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--accent);font-variant-numeric:tabular-nums}
${R} .cbh-row.is-done .cbh-title,${R} .cbh-row.is-done .cbh-num{color:var(--muted)}
${R} .cbh-detail{margin:4px 0 0;font-size:15px;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
${R} .cbh-row.is-next .cbh-detail{color:var(--ink)}
${R} .cbh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
${R} .cbh-mini{grid-column:3;align-self:start;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--button-2-border, transparent);border-radius:var(--button-radius, var(--radius, 12px));background:var(--button-2-bg, var(--secondary));color:var(--button-2-ink, var(--secondary-ink));font-family:var(--button-font, var(--font-display));font-weight:var(--button-weight, 800);text-transform:var(--button-case, none);font-size:15px;line-height:1.15;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:var(--button-2-shadow, var(--shadow-sm));transition:transform .16s ease, background .16s ease, box-shadow .16s ease}
${R} .cbh-mini:hover{background:oklch(from var(--button-2-bg, var(--secondary)) calc(l - .04) c h)}
${R} .cbh-mini:active{transform:translateY(1px);box-shadow:none}
${R} .cbh-mini:focus-visible{outline:3px solid oklch(from var(--field-focus, var(--accent)) l c h / .55);outline-offset:2px}
${R} .cbh-mini:disabled{opacity:.55;cursor:not-allowed;transform:none}
${R} .cbh-action{grid-area:action;min-width:0;margin-bottom:8px}
${R} .cbh-cta{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:72px;padding:12px 28px;border:0;border-radius:var(--button-radius, var(--radius, 12px));background:linear-gradient(oklch(from var(--cbh-cta) calc(l + .04) c h), oklch(from var(--cbh-cta2) calc(l - .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);text-align:center;text-decoration:none;text-shadow:var(--button-text-shadow, none);cursor:pointer;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--cbh-cta) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--cbh-cta) calc(l - .16) c h), 0 1px 2px oklch(from var(--cbh-sh) l c h / .3), 0 8px 16px -6px oklch(from var(--cbh-sh) l c h / .45));transition:transform .16s ease, box-shadow .16s ease, background .16s ease}
${R} .cbh-cta:hover,${R} .cbh-cta.is-hover{background:linear-gradient(oklch(from var(--cbh-cta) calc(l - .01) c h), oklch(from var(--cbh-cta2) calc(l - .07) c h));box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--cbh-cta) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--cbh-cta) calc(l - .16) c h), 0 1px 2px oklch(from var(--cbh-sh) l c h / .32), 0 12px 20px -6px oklch(from var(--cbh-sh) l c h / .5))}
${R} .cbh-cta:active,${R} .cbh-cta.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--cbh-cta) calc(l - .03) c h), oklch(from var(--cbh-cta2) calc(l - .09) c h));box-shadow:inset 0 2px 4px oklch(from var(--cbh-cta2) calc(l - .2) c h / .45), inset 0 -2px 0 oklch(from var(--cbh-cta) calc(l - .16) c h), 0 1px 1px oklch(from var(--cbh-sh) l c h / .3)}
${R} .cbh-cta:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
${R} .cbh-cta:disabled{cursor:not-allowed;transform:none;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))}
${R} .cbh-cta-main{display:block;font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-wrap:balance}
${R} .cbh-cta-sub{display:block;margin-top:4px;font-family:var(--font-body);font-size:15px;font-weight:600;line-height:1.3;text-wrap:pretty}
${R} .cbh-links{grid-area:links;display:flex;flex-wrap:wrap;justify-content:center;gap:0 24px;margin:0;padding:0;list-style:none}
${R} .cbh-qlink{display:inline-block;padding:12px 0;border:0;background:none;color:var(--band-ink);font-family:var(--font-body);font-size:15px;font-weight:600;line-height:1.3;text-align:center;text-decoration:underline;text-decoration-color:oklch(from var(--band-ink) l c h / .45);text-underline-offset:.18em;cursor:pointer}
${R} .cbh-qlink:hover{text-decoration-color:var(--band-ink)}
${R} .cbh-qlink:focus-visible{outline:3px solid var(--band-ink);outline-offset:2px;border-radius:4px}
${R} .cbh-qlink--inline{display:inline;padding:0;font-size:inherit;font-weight:700}
${R} .cbh-anim{animation:cbh-rise .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes cbh-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cbh-pop{from{transform:scale(.9)}to{transform:scale(1)}}
@media (max-width:880px){
${R} .cbh-wrap,${R}.cbh--novideo .cbh-wrap{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "video" "action" "sheet" "links"}
${R}.cbh--novideo .cbh-head{margin-bottom:32px}
${R} .cbh-video{position:static;margin-bottom:24px}
${R} .cbh-poster{aspect-ratio:4/3}
${R} .cbh-poster img{object-position:50% 22%}
${R} .cbh-action{margin-bottom:32px}
}
@media (max-width:560px){
${R} .cbh-row{grid-template-columns:44px minmax(0,1fr)}
${R} .cbh-mini{grid-column:2;justify-self:start;margin-top:12px}
${R} .cbh-play{left:12px;bottom:12px}
}
@media (prefers-reduced-motion: reduce){
${R} .cbh-anim,${R} .cbh-row.is-done .cbh-box{animation:none}
${R} .cbh-fill,${R} .cbh-cta,${R} .cbh-play,${R} .cbh-mini,${R} .cbh-row,${R} .cbh-box,${R} .cbh-disc{transition:none}
${R} .cbh-play:hover,${R} .cbh-cta:active,${R} .cbh-cta.is-active,${R} .cbh-mini:active{transform:none}
}
`;
pieces/hero/call-booked-hero/specimen.tsx 84 lines
import __studioImageeba1ab15 from "../assets/52462476e79afaec.webp";
import __studioImageccefcc1a from "../assets/002fec0368203397.webp";
// Specimen: Harbor Wealth Partners' booked Retirement Income Review (fictional business, advisor and times).
import { CallBookedHero, type CallBookedItem } from "../call-booked-hero";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
type SpecimenState = "default" | "hover" | "active" | "disabled";
const items: CallBookedItem[] = [
{
id: "watch",
kind: "watch",
title: "Watch Dana's 90\u2011second hello",
href: "#hello-video",
detail: "See who you're meeting and how the review works.",
actionLabel: "Watch",
nextLabel: "Next: Watch Dana's hello",
nextNote: "90 seconds, right here on this page",
},
{
id: "form",
kind: "form",
title: "Fill in the 4-minute prep form",
detail: "Your income goal and the year you'd like to retire.",
actionLabel: "Open form",
href: "#prep-form",
nextLabel: "Next: Fill in the prep form",
nextNote: "Takes about 4 minutes",
},
{
id: "numbers",
kind: "numbers",
title: "Gather three numbers",
detail: "Account balances, expected Social Security, monthly spending.",
actionLabel: "See the list",
href: "#numbers-list",
nextLabel: "Next: Gather your 3 numbers",
nextNote: "Keep them beside you on the call",
},
];
export default function CallBookedHeroSpecimen({ state = "default" }: { state?: SpecimenState }) {
return (
<CallBookedHero
state={state}
headline="Your call is booked."
lead="Your Retirement Income Review with Dana Whitfield is on the calendar. Three quick steps and your 45 minutes go straight to your plan."
date="Thursday, March 12"
time="2:30 PM"
zone="Eastern Time"
dateTime="2027-03-12T14:30-05:00"
duration="45 minutes"
meetVia="video"
meetLabel="Zoom video call"
meetHref="#join-call"
meetLinkLabel="Your join link"
notes={[
{ icon: "user", text: "Dana reads your application before you talk, so you won't start from zero." },
{ icon: "mail", text: "A reminder with your link arrives from Harbor Wealth Partners 24 hours before." },
]}
advisorName="Dana Whitfield"
advisorRole="Senior Retirement Advisor, Harbor Wealth Partners"
posterImage={slot(
"presenter",
__studioImageeba1ab15,
)}
videoDuration="1:30"
caption="A 90-second hello from {advisor} before your call"
sceneImage={slot(
"scene",
__studioImageccefcc1a,
)}
sheetTitle="Walk in ready in three quick steps"
items={items}
doneLabel="Add the review to my calendar"
rescheduleLabel="Need another time? Reschedule"
rescheduleHref="#reschedule"
calendarLabel="Add to my calendar"
calendarHref="#save-to-calendar"
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalCallBookedHero |
string |
|
lead OptionalCallBookedHero |
string |
|
date OptionalCallBookedHero |
string |
|
time OptionalCallBookedHero |
string |
|
zone OptionalCallBookedHero |
string |
|
dateTime OptionalCallBookedHero |
string |
|
duration OptionalCallBookedHero |
string |
|
meetVia OptionalCallBookedHero |
"video" | "phone" |
|
meetLabel OptionalCallBookedHero |
string |
|
meetHref OptionalCallBookedHero |
string |
|
meetLinkLabel OptionalCallBookedHero |
string |
|
notes OptionalCallBookedHero |
CallBookedNote[] |
|
whenMissing OptionalCallBookedHero |
string |
|
advisorName OptionalCallBookedHero |
string |
|
advisorRole OptionalCallBookedHero |
string |
|
posterImage OptionalCallBookedHero |
string |
|
posterAlt OptionalCallBookedHero |
string |
|
videoDuration OptionalCallBookedHero |
string |
|
videoHref OptionalCallBookedHero |
string |
|
onPlayVideo OptionalCallBookedHero |
() => void |
|
caption OptionalCallBookedHero |
string |
|
sceneImage OptionalCallBookedHero |
string |
|
sheetTitle OptionalCallBookedHero |
string |
|
progressLabel OptionalCallBookedHero |
string |
|
items OptionalCallBookedHero |
CallBookedItem[] |
|
initialDone OptionalCallBookedHero |
string[] |
|
onProgressChange OptionalCallBookedHero |
(doneIds: string[]) => void |
|
onItemAction OptionalCallBookedHero |
(item: CallBookedItem) => void |
|
nextTemplate OptionalCallBookedHero |
string |
|
doneLabel OptionalCallBookedHero |
string |
|
rescheduleLabel OptionalCallBookedHero |
string |
|
rescheduleHref OptionalCallBookedHero |
string |
|
onReschedule OptionalCallBookedHero |
() => void |
|
calendarLabel OptionalCallBookedHero |
string |
|
calendarHref OptionalCallBookedHero |
string |
|
onAddToCalendar OptionalCallBookedHero |
() => void |
|
copy OptionalCallBookedHero |
Partial<CallBookedCopy> |
|
state OptionalCallBookedHero |
"default" | "hover" | "active" | "disabled" |
|
className OptionalCallBookedHero |
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-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- 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.
presenter- A photo of the host, coach or founder.
scene- A wide atmosphere photo behind or beside the copy.
-
002fec0368203397.webp
image/webp · 50.1 KB
-
52462476e79afaec.webp
image/webp · 49.4 KB
-
981ec216ca653287.webp
image/webp · 32.2 KB