Webinar Registered Hero 1
Webinar registered hero: first screen of the thank-you page. Confirms the seat by name, prints the session in the visitor's own time, makes "add it to my calendar" the one next action, and counts down under the host.
Use it in a prompt
Use hero/webinar-registered-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/webinar-registered-hero.tsx. - Import it and pass your copy and images (Props tab):
import { WebinarRegisteredHero } from "@/components/funneldna/hero/webinar-registered-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/webinar-registered-hero/component.tsx 682 lines
// layout: classic-centred-stack
// Webinar registered hero: first screen of the thank-you page. Confirms the seat by name, prints the session in the visitor's own time, makes "add it to my calendar" the one next action, and counts down under the host.
import * as React from "react";
import { CalendarPlus, Check, Copy, Mail } from "lucide-react";
import { Backdrop, Divider, FX_HOST, Spot } from "../fx/fx";
import office from "../fx/backdrops/office";
export type CalendarProvider = "google" | "outlook" | "apple";
export type WebinarReason = {
title: string;
detail?: string;
/** Spot illustration asset, e.g. import calendar from "../fx/spots/calendar" */
spot?: string;
};
export type WebinarRegisteredHeroCopy = {
registeredFor: string;
buttonLabel: string;
/** "{provider}" is replaced with the chosen calendar's name */
addedLabel: string;
buttonNote: string;
changeNote: string;
menuLabel: string;
google: string;
outlook: string;
apple: string;
appleHint: string;
zoneToggleLabel: string;
yourTime: string;
hostTime: string;
startsIn: string;
days: string;
hours: string;
minutes: string;
/** "{days}", "{hours}" and "{minutes}" are replaced */
countdownLabel: string;
live: string;
joinLabel: string;
ended: string;
reasonsHeading: string;
fromIntro: string;
fromAsk: string;
copyLabel: string;
copiedLabel: string;
};
export type WebinarRegisteredHeroProps = {
/** Webinar title, repeated in the headline and the calendar entry */
title?: string;
/** Session start as an ISO date with offset, e.g. 2027-03-11T14:00:00-06:00 */
startsAt?: string;
durationMinutes?: number;
/** Host's IANA time zone; adds a "Host time" toggle when it differs from the visitor's */
hostTimeZone?: string;
/** Override the visitor's zone (defaults to the browser's) */
localTimeZone?: string;
locale?: string;
/** One-sentence lines under the headline; a one-word line is set bold for emphasis */
leadLines?: string[];
/** Join link shown when the session goes live (also the calendar location) */
joinHref?: string;
calendarTitle?: string;
calendarDetails?: string;
/** Replace any generated calendar link */
calendarLinks?: Partial<Record<CalendarProvider, string>>;
presenterImage?: string;
presenterAlt?: string;
hostName?: string;
hostRole?: string;
reasons?: WebinarReason[];
fromName?: string;
fromEmail?: string;
/** fx backdrop asset behind the band; the page's scene slot replaces it */
backdropImage?: string;
/** Freeze the clock (ISO date or ms) to preview the countdown or live state */
now?: string | number;
copy?: Partial<WebinarRegisteredHeroCopy>;
state?: "default" | "hover" | "active" | "disabled" | "success";
className?: string;
/** Called with the chosen calendar, or "join" when the join link is clicked */
onAction?: (action: CalendarProvider | "join") => void;
};
const DEFAULT_COPY: WebinarRegisteredHeroCopy = {
registeredFor: "You're registered for",
buttonLabel: "Add it to my calendar",
addedLabel: "Added to {provider}",
buttonNote: "Google, Outlook or Apple. One click.",
changeNote: "Use a different calendar? Tap the button to choose again.",
menuLabel: "Choose your calendar",
google: "Google Calendar",
outlook: "Outlook",
apple: "Apple Calendar",
appleHint: ".ics file",
zoneToggleLabel: "Show the session time in",
yourTime: "Your time",
hostTime: "Host time",
startsIn: "Starts in",
days: "Days",
hours: "Hours",
minutes: "Minutes",
countdownLabel: "Starts in {days} days, {hours} hours and {minutes} minutes",
live: "Starting now",
joinLabel: "Join the training now",
ended: "This session has ended.",
reasonsHeading: "Why be there live",
fromIntro: "Your reminders and join link come from",
fromAsk: "Add this address to your contacts so they land in your inbox, not spam.",
copyLabel: "Copy address",
copiedLabel: "Copied",
};
export function WebinarRegisteredHero(props: WebinarRegisteredHeroProps) {
const {
title = "your free training",
startsAt,
durationMinutes = 60,
hostTimeZone,
localTimeZone,
locale,
leadLines = [],
joinHref,
calendarTitle,
calendarDetails,
calendarLinks,
presenterImage,
presenterAlt,
hostName,
hostRole,
reasons = [],
fromName,
fromEmail,
backdropImage = office,
now,
state = "default",
className,
onAction,
} = props;
const copy: WebinarRegisteredHeroCopy = { ...DEFAULT_COPY, ...props.copy };
const menuId = "wrh-menu-" + React.useId().replace(/[^a-zA-Z0-9_-]/g, "");
const startMs = toMs(startsAt);
const endMs = startMs === null ? null : startMs + Math.max(1, durationMinutes) * 60000;
const frozenMs = toMs(now);
const [clock, setClock] = React.useState<number>(() => frozenMs ?? Date.now());
React.useEffect(() => {
if (frozenMs !== null) {
setClock(frozenMs);
return;
}
if (startMs === null) return;
setClock(Date.now());
const id = window.setInterval(() => setClock(Date.now()), 1000);
return () => window.clearInterval(id);
}, [frozenMs, startMs]);
const phase: "none" | "upcoming" | "live" | "ended" =
startMs === null || endMs === null ? "none" : clock < startMs ? "upcoming" : clock < endMs ? "live" : "ended";
const [zoneMode, setZoneMode] = React.useState<"local" | "host">("local");
const whenLocal = startMs === null ? null : formatWhen(startMs, localTimeZone, locale);
const whenHost = startMs === null || !hostTimeZone ? null : formatWhen(startMs, hostTimeZone, locale);
const zonesDiffer =
!!whenLocal &&
!!whenHost &&
(whenLocal.day !== whenHost.day || whenLocal.time !== whenHost.time || whenLocal.zone !== whenHost.zone);
const when = zoneMode === "host" && zonesDiffer ? whenHost : whenLocal;
const eventTitle = calendarTitle ?? title;
const links = React.useMemo(() => {
const built = startMs !== null && endMs !== null ? buildCalendarLinks(eventTitle, startMs, endMs, calendarDetails, joinHref) : {};
return { ...built, ...calendarLinks } as Partial<Record<CalendarProvider, string>>;
}, [eventTitle, startMs, endMs, calendarDetails, joinHref, calendarLinks]);
const providers = PROVIDERS.filter((id) => !!links[id]);
const fileName = slugify(eventTitle) || "webinar";
const [open, setOpen] = React.useState(false);
const [added, setAdded] = React.useState<CalendarProvider | null>(null);
const anchorRef = React.useRef<HTMLDivElement>(null);
const btnRef = React.useRef<HTMLButtonElement>(null);
const menuRef = React.useRef<HTMLDivElement>(null);
const disabled = state === "disabled" || providers.length === 0;
const menuOpen = !disabled && (open || state === "active");
const settled: CalendarProvider | null = added ?? (state === "success" ? providers[0] ?? null : null);
React.useEffect(() => {
if (!open) return;
menuRef.current?.querySelector<HTMLElement>('[role="menuitem"]')?.focus();
const onDown = (e: PointerEvent) => {
if (anchorRef.current && !anchorRef.current.contains(e.target as Node)) setOpen(false);
};
document.addEventListener("pointerdown", onDown);
return () => document.removeEventListener("pointerdown", onDown);
}, [open]);
const onMenuKey = (e: React.KeyboardEvent<HTMLDivElement>) => {
const items = Array.from(menuRef.current?.querySelectorAll<HTMLElement>('[role="menuitem"]') ?? []);
if (items.length === 0) return;
const i = items.indexOf(document.activeElement as HTMLElement);
if (e.key === "ArrowDown") {
e.preventDefault();
items[(i + 1) % items.length].focus();
} else if (e.key === "ArrowUp") {
e.preventDefault();
items[(i - 1 + items.length) % items.length].focus();
} else if (e.key === "Home") {
e.preventDefault();
items[0].focus();
} else if (e.key === "End") {
e.preventDefault();
items[items.length - 1].focus();
} else if (e.key === "Escape") {
e.preventDefault();
setOpen(false);
btnRef.current?.focus();
} else if (e.key === "Tab") {
setOpen(false);
}
};
const choose = (id: CalendarProvider) => {
setAdded(id);
setOpen(false);
onAction?.(id);
window.requestAnimationFrame(() => btnRef.current?.focus());
};
const [copied, setCopied] = React.useState(false);
const copyTimer = React.useRef<number | undefined>(undefined);
React.useEffect(() => () => window.clearTimeout(copyTimer.current), []);
const copyAddress = () => {
if (!fromEmail || typeof navigator === "undefined" || !navigator.clipboard) return;
navigator.clipboard.writeText(fromEmail).then(
() => {
setCopied(true);
window.clearTimeout(copyTimer.current);
copyTimer.current = window.setTimeout(() => setCopied(false), 2200);
},
() => undefined,
);
};
const remaining = startMs === null ? 0 : Math.max(0, startMs - clock);
const days = Math.floor(remaining / 86400000);
const hours = Math.floor((remaining % 86400000) / 3600000);
const minutes = Math.floor((remaining % 3600000) / 60000);
const showAction = (phase === "none" || phase === "upcoming") && (providers.length > 0 || state === "disabled");
const hasFigure = !!presenterImage || !!hostName;
const hasLower = reasons.length > 0 || !!fromEmail;
const d = (s: number) => ({ "--d": s + "s" } as React.CSSProperties);
return (
<section className={cx("cf-webinar-registered-hero", className)} data-state={state}>
<style>{CSS}</style>
<div className={cx("wrh-band", !hasLower && "is-flat")} style={FX_HOST}>
<Backdrop src={backdropImage} treatment="scrim-dark" />
{hasLower ? <Divider shape="wave" tone="surface" height={56} /> : null}
<div className="wrh-inner">
<h1 className="wrh-h1 rv" style={d(0)}>
<span className="wrh-pre">{copy.registeredFor}</span>{" "}
<span className="wrh-title">{title}</span>
</h1>
{leadLines.length > 0 ? (
<div className="wrh-lead rv" style={d(0.07)}>
{leadLines.map((line, i) => (
<p key={i} className={/\s/.test(line.trim()) ? undefined : "is-punch"}>
{line}
</p>
))}
</div>
) : null}
{when && startMs !== null ? (
<div className="wrh-when rv" style={d(0.14)}>
<p className="wrh-time">
<time dateTime={new Date(startMs).toISOString()}>
<span>{when.day}</span>{" "}
<span className="wrh-dot" aria-hidden="true">
·
</span>{" "}
<span>{[when.time, when.zone].filter(Boolean).join(" ")}</span>
</time>
</p>
{zonesDiffer ? (
<div className="wrh-tz" role="group" aria-label={copy.zoneToggleLabel}>
<button type="button" aria-pressed={zoneMode === "local"} onClick={() => setZoneMode("local")}>
{copy.yourTime}
</button>
<button type="button" aria-pressed={zoneMode === "host"} onClick={() => setZoneMode("host")}>
{copy.hostTime}
</button>
</div>
) : null}
</div>
) : null}
{showAction ? (
<div className="wrh-action rv" style={d(0.21)}>
<div className="wrh-anchor" ref={anchorRef}>
<button
ref={btnRef}
type="button"
className={cx("wrh-btn", settled && "is-settled", state === "hover" && "is-hover", menuOpen && "is-open")}
aria-haspopup="menu"
aria-expanded={menuOpen}
aria-controls={menuOpen ? menuId : undefined}
disabled={disabled}
onClick={() => setOpen((o) => !o)}
onKeyDown={(e) => {
if (e.key === "ArrowDown") {
e.preventDefault();
setOpen(true);
}
}}
>
<span className="wrh-btn-label">
{settled ? (
<span className="wrh-badge" aria-hidden="true">
<Check size={14} strokeWidth={3} />
</span>
) : (
<CalendarPlus className="wrh-ico" size={20} strokeWidth={2.5} aria-hidden="true" />
)}
{settled ? fillTemplate(copy.addedLabel, { provider: copy[settled] }) : copy.buttonLabel}
</span>
</button>
{menuOpen ? (
<div id={menuId} ref={menuRef} role="menu" aria-label={copy.menuLabel} className="wrh-menu" onKeyDown={onMenuKey}>
<p className="wrh-menu-title" role="presentation" aria-hidden="true">
{copy.menuLabel}
</p>
{providers.map((id) => (
<a
key={id}
role="menuitem"
className={cx("wrh-item", settled === id && "is-current")}
href={links[id]}
target={id === "apple" ? undefined : "_blank"}
rel={id === "apple" ? undefined : "noopener noreferrer"}
download={id === "apple" ? fileName + ".ics" : undefined}
onClick={() => choose(id)}
>
<ProviderMark id={id} />
<span className="wrh-item-name">
{copy[id]}
{settled === id ? <Check className="wrh-item-check" size={18} strokeWidth={2.5} aria-hidden="true" /> : null}
</span>
{id === "apple" && copy.appleHint ? <span className="wrh-item-hint">{copy.appleHint}</span> : null}
</a>
))}
</div>
) : null}
</div>
<p className="wrh-note" aria-live="polite">
{settled ? copy.changeNote : copy.buttonNote}
</p>
</div>
) : null}
{hasFigure ? (
<figure className="wrh-figure rv" style={d(0.28)}>
{presenterImage ? (
<img src={presenterImage} alt={presenterAlt ?? hostName ?? ""} width={1280} height={720} decoding="async" />
) : null}
{hostName ? (
<figcaption>
<span className="wrh-host">{hostName}</span>
{hostRole ? <span className="wrh-role">{hostRole}</span> : null}
</figcaption>
) : null}
</figure>
) : null}
{phase !== "none" ? (
<div className="wrh-count rv" style={d(0.28)}>
{phase === "upcoming" ? (
<>
<p className="wrh-count-label">{copy.startsIn}</p>
<div className="wrh-count-grid" role="timer" aria-label={fillTemplate(copy.countdownLabel, { days, hours, minutes })}>
{[
{ v: String(days), l: copy.days },
{ v: pad(hours), l: copy.hours },
{ v: pad(minutes), l: copy.minutes },
].map((c) => (
<div key={c.l} className="wrh-cell" aria-hidden="true">
<span className="wrh-num">{c.v}</span>
<span className="wrh-unit">{c.l}</span>
</div>
))}
</div>
</>
) : phase === "live" ? (
<>
<p className="wrh-live" role="status">
{copy.live}
</p>
{joinHref ? (
<a className="wrh-btn wrh-join" href={joinHref} onClick={() => onAction?.("join")}>
{copy.joinLabel}
</a>
) : null}
</>
) : (
<p className="wrh-ended">{copy.ended}</p>
)}
</div>
) : null}
</div>
</div>
{hasLower ? (
<div className="wrh-lower">
<div className="wrh-lower-inner">
{reasons.length > 0 ? (
<>
<h2 className="wrh-h2">{copy.reasonsHeading}</h2>
<ul className="wrh-reasons" style={{ "--wrh-n": Math.min(reasons.length, 4) } as React.CSSProperties}>
{reasons.map((r, i) => (
<li key={i} className="wrh-reason">
{r.spot ? <Spot src={r.spot} size={80} /> : null}
<h3>{r.title}</h3>
{r.detail ? <p>{r.detail}</p> : null}
</li>
))}
</ul>
</>
) : null}
{fromEmail ? (
<div className="wrh-from">
<p className="wrh-from-intro">
<Mail className="wrh-icon-inline" size={18} strokeWidth={2.5} aria-hidden="true" />
{copy.fromIntro}
{fromName ? (
<>
{" "}
<strong>{fromName}</strong>
</>
) : null}
</p>
<div className="wrh-addr-row">
<span className="wrh-addr">{fromEmail}</span>
<button type="button" className="wrh-copy" onClick={copyAddress} aria-live="polite">
<span className="wrh-copy-label">
{copied ? (
<Check className="wrh-ico" size={18} strokeWidth={2.5} aria-hidden="true" />
) : (
<Copy className="wrh-ico" size={18} strokeWidth={2.5} aria-hidden="true" />
)}
{copied ? copy.copiedLabel : copy.copyLabel}
</span>
</button>
</div>
<p className="wrh-from-ask">{copy.fromAsk}</p>
</div>
) : null}
</div>
</div>
) : null}
</section>
);
}
export default WebinarRegisteredHero;
const PROVIDERS: CalendarProvider[] = ["google", "outlook", "apple"];
function cx(...parts: Array<string | false | null | undefined>) {
return parts.filter(Boolean).join(" ");
}
function toMs(v?: string | number) {
if (v === undefined || v === "") return null;
const t = new Date(v).getTime();
return Number.isFinite(t) ? t : null;
}
function pad(n: number) {
return String(n).padStart(2, "0");
}
function fillTemplate(t: string, vars: Record<string, string | number>) {
return t.replace(/\{(\w+)\}/g, (m, k: string) => (k in vars ? String(vars[k]) : m));
}
function slugify(s: string) {
return s
.toLowerCase()
.replace(/[^a-z0-9]+/g, "-")
.replace(/^-+|-+$/g, "")
.slice(0, 60);
}
function formatWhen(ms: number, timeZone?: string, locale?: string) {
try {
const date = new Date(ms);
const day = new Intl.DateTimeFormat(locale, { weekday: "long", month: "long", day: "numeric", year: "numeric", timeZone }).format(date);
const parts = new Intl.DateTimeFormat(locale, { hour: "numeric", minute: "2-digit", timeZoneName: "short", timeZone }).formatToParts(date);
const zone = parts.find((p) => p.type === "timeZoneName")?.value ?? "";
const time = parts
.filter((p) => p.type !== "timeZoneName")
.map((p) => p.value)
.join("")
.trim();
return { day, time, zone };
} catch {
return null;
}
}
function utcStamp(ms: number) {
return new Date(ms).toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, "");
}
function icsText(s: string) {
return s.replace(/[\\;,]/g, (m) => "\\" + m).replace(/\r?\n/g, "\\n");
}
function buildCalendarLinks(title: string, start: number, end: number, details?: string, location?: string): Record<CalendarProvider, string> {
const google = new URLSearchParams({ action: "TEMPLATE", text: title, dates: utcStamp(start) + "/" + utcStamp(end) });
if (details) google.set("details", details);
if (location) google.set("location", location);
const outlook = new URLSearchParams({
path: "/calendar/action/compose",
rru: "addevent",
subject: title,
startdt: new Date(start).toISOString(),
enddt: new Date(end).toISOString(),
});
if (details) outlook.set("body", details);
if (location) outlook.set("location", location);
const ics = [
"BEGIN:VCALENDAR",
"VERSION:2.0",
"PRODID:-//ClickFunnels//Webinar//EN",
"CALSCALE:GREGORIAN",
"BEGIN:VEVENT",
"UID:" + utcStamp(start) + "-" + (slugify(title) || "webinar") + "@webinar",
"DTSTAMP:" + utcStamp(start),
"DTSTART:" + utcStamp(start),
"DTEND:" + utcStamp(end),
"SUMMARY:" + icsText(title),
];
if (details) ics.push("DESCRIPTION:" + icsText(details));
if (location) ics.push("LOCATION:" + icsText(location));
ics.push("END:VEVENT", "END:VCALENDAR");
return {
google: "https://calendar.google.com/calendar/render?" + google.toString(),
outlook: "https://outlook.live.com/calendar/0/deeplink/compose?" + outlook.toString(),
apple: "data:text/calendar;charset=utf-8," + encodeURIComponent(ics.join("\r\n")),
};
}
// private: official provider marks keep their official colours (theme-contract §3 exception)
function ProviderMark({ id }: { id: CalendarProvider }) {
if (id === "google") {
return (
<svg className="wrh-mark" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" data-official-mark="Google">
<path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" />
<path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" />
<path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" />
<path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.450 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" />
</svg>
);
}
if (id === "outlook") {
return (
<svg className="wrh-mark" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" data-official-mark="Microsoft Outlook">
<rect x="9" y="5" width="13" height="14" rx="1.5" fill="#28A8EA" />
<path d="M9 9.5l6.5 4.5L22 9.5" fill="none" stroke="#FFFFFF" strokeWidth="1.4" strokeLinejoin="round" />
<rect x="2" y="7" width="11" height="10" rx="1.6" fill="#0078D4" />
<ellipse cx="7.5" cy="12" rx="2.6" ry="3" fill="none" stroke="#FFFFFF" strokeWidth="1.7" />
</svg>
);
}
return (
<svg className="wrh-mark" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" data-official-mark="Apple" fill="currentColor">
<path d="M12.152 6.896c-.948 0-2.415-1.078-3.960-1.040-2.040.027-3.910 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.090 1.013 1.454 2.208 3.090 3.792 3.039 1.520-.065 2.090-.987 3.935-.987 1.831 0 2.350.987 3.960.948 1.637-.026 2.676-1.480 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.220-4.857-.026-3.040 2.480-4.494 2.597-4.559-1.429-2.090-3.623-2.324-4.390-2.376-2-.156-3.675 1.090-4.610 1.090zM15.530 3.830c.843-1.012 1.400-2.427 1.245-3.830-1.207.052-2.662.805-3.532 1.818-.780.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701" />
</svg>
);
}
const CSS = `
.cf-webinar-registered-hero{--wrh-shadow:var(--shadow,oklch(0.22 0.03 260));--wrh-btn:var(--button-bg,var(--cta));--wrh-btn-2:var(--button-bg-2,var(--cta-2));--wrh-soft-ink:color-mix(in oklch,var(--band-ink) 86%,var(--band));font-family:var(--font-body);color:var(--ink)}
.cf-webinar-registered-hero *,.cf-webinar-registered-hero *::before,.cf-webinar-registered-hero *::after{box-sizing:border-box}
.cf-webinar-registered-hero .wrh-band{background:var(--band);color:var(--band-ink);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) calc(clamp(64px,8.5vw,120px) + 56px)}
.cf-webinar-registered-hero .wrh-band.is-flat{padding-bottom:clamp(64px,8.5vw,120px)}
.cf-webinar-registered-hero .wrh-inner{position:relative;z-index:1;max-width:60rem;margin:0 auto;display:flex;flex-direction:column;align-items:center;text-align:center}
.cf-webinar-registered-hero .wrh-h1{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);color:var(--band-ink);text-wrap:balance}
.cf-webinar-registered-hero .wrh-pre{display:block;margin-bottom:12px;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:700;letter-spacing:0;color:var(--wrh-soft-ink)}
.cf-webinar-registered-hero .wrh-title{display:block;font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;text-wrap:balance}
.cf-webinar-registered-hero .wrh-lead{margin-top:16px;max-width:40rem}
.cf-webinar-registered-hero .wrh-lead p{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--wrh-soft-ink);text-wrap:pretty}
.cf-webinar-registered-hero .wrh-lead p+p{margin-top:4px}
.cf-webinar-registered-hero .wrh-lead .is-punch{font-family:var(--font-display);font-weight:var(--display-weight,800);color:var(--band-ink)}
.cf-webinar-registered-hero .wrh-when{margin-top:32px;display:flex;flex-direction:column;align-items:center;gap:12px}
.cf-webinar-registered-hero .wrh-time{margin:0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;font-variant-numeric:tabular-nums;color:var(--band-ink)}
.cf-webinar-registered-hero .wrh-time time>span{white-space:nowrap}
.cf-webinar-registered-hero .wrh-dot{color:var(--wrh-soft-ink)}
.cf-webinar-registered-hero .wrh-tz{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:oklch(from var(--band-ink) l c h / 0.12)}
.cf-webinar-registered-hero .wrh-tz button{min-height:40px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:var(--band-ink);font-family:var(--font-body);font-size:0.9375rem;line-height:1.2;font-weight:700;cursor:pointer;transition:background .16s ease,color .16s ease}
.cf-webinar-registered-hero .wrh-tz button:hover{background:oklch(from var(--band-ink) l c h / 0.14)}
.cf-webinar-registered-hero .wrh-tz button[aria-pressed=true]{background:var(--band-ink);color:var(--band)}
.cf-webinar-registered-hero .wrh-tz button:focus-visible{outline:2px solid var(--band-ink);outline-offset:2px}
.cf-webinar-registered-hero .wrh-action{margin-top:32px;width:100%;display:flex;flex-direction:column;align-items:center}
.cf-webinar-registered-hero .wrh-anchor{position:relative;width:min(100%,26rem)}
.cf-webinar-registered-hero .wrh-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:72px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));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;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--wrh-btn) calc(l + 0.04) c h),oklch(from var(--wrh-btn-2) calc(l - 0.02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wrh-btn) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--wrh-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--wrh-shadow) l c h / 0.35),0 8px 16px -6px oklch(from var(--wrh-shadow) l c h / 0.45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-webinar-registered-hero .wrh-btn svg{flex:none}
.cf-webinar-registered-hero .wrh-btn-label,.cf-webinar-registered-hero .wrh-copy-label{display:block;min-width:0;text-align:center;text-wrap:balance}
.cf-webinar-registered-hero .wrh-ico{display:inline-block;vertical-align:-0.2em;margin-inline-end:.5em}
.cf-webinar-registered-hero .wrh-btn:not(:disabled):hover,.cf-webinar-registered-hero .wrh-btn.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--wrh-btn) calc(l - 0.01) c h),oklch(from var(--wrh-btn-2) calc(l - 0.07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wrh-btn) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--wrh-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--wrh-shadow) l c h / 0.35),0 12px 20px -6px oklch(from var(--wrh-shadow) l c h / 0.5))}
.cf-webinar-registered-hero .wrh-btn:not(:disabled):active,.cf-webinar-registered-hero .wrh-btn.is-open:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--wrh-btn) calc(l - 0.22) c h / 0.45),inset 0 -2px 0 oklch(from var(--wrh-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--wrh-shadow) l c h / 0.3)}
.cf-webinar-registered-hero .wrh-btn:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-webinar-registered-hero .wrh-btn.is-settled{border:1px solid var(--button-2-border,transparent);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,0 1px 2px oklch(from var(--wrh-shadow) l c h / 0.25)))}
.cf-webinar-registered-hero .wrh-btn.is-settled:not(:disabled):hover,.cf-webinar-registered-hero .wrh-btn.is-settled.is-hover:not(:disabled){background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.04) c h);box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(from var(--wrh-shadow) l c h / 0.25)))}
.cf-webinar-registered-hero .wrh-btn.is-settled:not(:disabled):active,.cf-webinar-registered-hero .wrh-btn.is-settled.is-open:not(:disabled){background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.07) c h);box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(from var(--wrh-shadow) l c h / 0.25)))}
.cf-webinar-registered-hero .wrh-btn: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,0 1px 2px oklch(from var(--wrh-shadow) l c h / 0.25)))}
.cf-webinar-registered-hero .wrh-badge{display:inline-grid;place-items:center;vertical-align:-0.3em;margin-inline-end:.5em;width:24px;height:24px;border-radius:999px;background:var(--success);color:var(--success-ink,#fff)}
.cf-webinar-registered-hero .wrh-menu{position:absolute;top:calc(100% + 8px);left:50%;translate:-50% 0;z-index:10;width:min(22rem,calc(100vw - 32px));padding:8px;text-align:left;background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--wrh-shadow) l c h / 0.22),0 12px 24px -8px oklch(from var(--wrh-shadow) l c h / 0.32));animation:wrh-pop .16s cubic-bezier(.2,.7,.2,1) both}
.cf-webinar-registered-hero .wrh-menu-title{margin:0;padding:8px 12px;font-size:0.9375rem;line-height:1.4;font-weight:600;color:var(--muted)}
.cf-webinar-registered-hero .wrh-item{display:flex;align-items:center;gap:12px;min-height:56px;padding:0 12px;border-radius:10px;color:var(--ink);text-decoration:none;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.2;font-weight:700;transition:background .16s ease}
.cf-webinar-registered-hero .wrh-item:hover,.cf-webinar-registered-hero .wrh-item:focus-visible{background:color-mix(in oklch,var(--ink) 6%,var(--card))}
.cf-webinar-registered-hero .wrh-item:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / 0.5);outline-offset:-1px}
.cf-webinar-registered-hero .wrh-item:active{background:color-mix(in oklch,var(--ink) 10%,var(--card))}
.cf-webinar-registered-hero .wrh-item-name{min-width:0}
.cf-webinar-registered-hero .wrh-item-hint{margin-left:auto;font-size:0.9375rem;font-weight:500;color:var(--muted)}
.cf-webinar-registered-hero .wrh-item-check{display:inline-block;vertical-align:-0.2em;margin-inline-start:.5em;color:var(--success)}
.cf-webinar-registered-hero .wrh-mark{flex:none}
.cf-webinar-registered-hero .wrh-note{margin:12px 0 0;font-size:0.9375rem;line-height:1.4;font-weight:500;color:var(--wrh-soft-ink);text-wrap:pretty}
.cf-webinar-registered-hero .wrh-figure{margin:48px 0 0;width:100%;max-width:40rem}
.cf-webinar-registered-hero .wrh-figure img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:50% 35%;border-radius:12px}
.cf-webinar-registered-hero .wrh-figure figcaption{margin-top:12px;display:flex;flex-direction:column;gap:4px}
.cf-webinar-registered-hero .wrh-host{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;font-weight:800;color:var(--band-ink)}
.cf-webinar-registered-hero .wrh-role{font-size:0.9375rem;line-height:1.4;font-weight:500;color:var(--wrh-soft-ink)}
.cf-webinar-registered-hero .wrh-count{margin-top:24px;width:100%;max-width:40rem;display:flex;flex-direction:column;align-items:center;padding:clamp(20px,3vw,32px);border-radius:var(--card-radius,var(--radius,14px));background:oklch(from var(--band-ink) l c h / 0.08);border:1px solid oklch(from var(--band-ink) l c h / 0.16)}
.cf-webinar-registered-hero .wrh-count-label{margin:0 0 16px;font-size:0.9375rem;line-height:1.4;font-weight:700;color:var(--wrh-soft-ink)}
.cf-webinar-registered-hero .wrh-count-grid{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.cf-webinar-registered-hero .wrh-cell{display:flex;flex-direction:column;align-items:center;gap:12px;padding:0 8px}
.cf-webinar-registered-hero .wrh-cell+.wrh-cell{box-shadow:inset 1px 0 0 oklch(from var(--band-ink) l c h / 0.16)}
.cf-webinar-registered-hero .wrh-num{font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;font-weight:var(--display-weight,800);letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--band-ink)}
.cf-webinar-registered-hero .wrh-unit{font-size:0.9375rem;line-height:1.2;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--wrh-soft-ink)}
.cf-webinar-registered-hero .wrh-live{margin:0;font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;font-weight:var(--display-weight,800);letter-spacing:-0.03em;color:var(--band-ink);text-wrap:balance}
.cf-webinar-registered-hero .wrh-join{margin-top:24px;width:min(100%,24rem);min-height:64px}
.cf-webinar-registered-hero .wrh-ended{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--band-ink)}
.cf-webinar-registered-hero .wrh-lower{background:var(--surface);color:var(--ink);padding:clamp(40px,5vw,72px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-webinar-registered-hero .wrh-lower-inner{max-width:1120px;margin:0 auto;text-align:center}
.cf-webinar-registered-hero .wrh-h2{margin:0;font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);color:var(--ink);text-wrap:balance}
.cf-webinar-registered-hero .wrh-reasons{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:32px;grid-template-columns:minmax(0,1fr)}
.cf-webinar-registered-hero .wrh-reason{display:flex;flex-direction:column;align-items:center;gap:12px}
.cf-webinar-registered-hero .wrh-reason h3{margin:0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;color:var(--ink);text-wrap:balance}
.cf-webinar-registered-hero .wrh-reason p{margin:0;max-width:22rem;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-webinar-registered-hero .wrh-from{margin:48px auto 0;max-width:46rem;padding:clamp(20px,3vw,32px);border-radius:var(--card-radius,var(--radius,14px));background:color-mix(in oklch,var(--ink) 4%,var(--surface))}
.cf-webinar-registered-hero .wrh-lower-inner>.wrh-from:first-child{margin-top:0}
.cf-webinar-registered-hero .wrh-from-intro{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-webinar-registered-hero .wrh-icon-inline{display:inline-block;vertical-align:-0.15em;margin-inline-end:.5em;color:var(--accent)}
.cf-webinar-registered-hero .wrh-addr-row{margin-top:12px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px}
.cf-webinar-registered-hero .wrh-addr{min-width:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;font-weight:800;color:var(--ink);overflow-wrap:anywhere}
.cf-webinar-registered-hero .wrh-copy{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;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));box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(from var(--wrh-shadow) l c h / 0.25)));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:0.9375rem;line-height:1.2;cursor:pointer;transition:background .16s ease,transform .16s ease}
.cf-webinar-registered-hero .wrh-copy:hover{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.04) c h)}
.cf-webinar-registered-hero .wrh-copy:active{transform:translateY(1px);background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.07) c h)}
.cf-webinar-registered-hero .wrh-copy:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / 0.5);outline-offset:2px}
.cf-webinar-registered-hero .wrh-from-ask{margin:12px 0 0;font-size:0.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-webinar-registered-hero .rv{animation:wrh-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--d,0s)}
@keyframes wrh-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes wrh-pop{from{opacity:.82;transform:translateY(-4px) scale(.98)}}
@media (min-width:900px){.cf-webinar-registered-hero .wrh-reasons{grid-template-columns:repeat(var(--wrh-n,3),minmax(0,1fr))}}
@media (max-width:720px){
.cf-webinar-registered-hero .wrh-count{order:1;margin-top:32px}
.cf-webinar-registered-hero .wrh-figure{order:2;margin-top:24px}
.cf-webinar-registered-hero .wrh-dot{display:none}
.cf-webinar-registered-hero .wrh-time time>span{display:block}
.cf-webinar-registered-hero .wrh-anchor{width:100%}
.cf-webinar-registered-hero .wrh-figure img{aspect-ratio:4/3}
}
@media (prefers-reduced-motion:reduce){
.cf-webinar-registered-hero .rv,.cf-webinar-registered-hero .wrh-menu{animation:none}
.cf-webinar-registered-hero .wrh-btn,.cf-webinar-registered-hero .wrh-tz button,.cf-webinar-registered-hero .wrh-item,.cf-webinar-registered-hero .wrh-copy{transition:none}
}
`;
pieces/hero/webinar-registered-hero/specimen.tsx 60 lines
import __studioImage54797d4c from "../assets/2840817c2abfcc5e.webp";
import { WebinarRegisteredHero } from "../webinar-registered-hero";
import { slot } from "../../slots";
import calendarSpot from "../../fx/spots/calendar";
import phoneSpot from "../../fx/spots/phone";
import checklistSpot from "../../fx/spots/checklist";
export const states = ["default", "hover", "active", "disabled", "success"];
type SpecimenState = "default" | "hover" | "active" | "disabled" | "success";
export default function WebinarRegisteredHeroSpecimen({ state = "default" }: { state?: SpecimenState }) {
return (
<WebinarRegisteredHero
state={state}
title="Fill Your Calendar in the Slow Season"
leadLines={[
"Your seat is saved.",
"Done.",
"Now put the hour on your calendar before a service call takes it.",
]}
startsAt="2027-03-11T14:00:00-06:00"
durationMinutes={60}
hostTimeZone="America/Chicago"
joinHref="https://coastlinehvacgrowth.com/live"
calendarDetails="Free live training with Marcus Delaney of Coastline HVAC Growth. Join from this link at start time: https://coastlinehvacgrowth.com/live"
presenterImage={slot(
"presenter",
__studioImage54797d4c,
)}
presenterAlt="Marcus Delaney at his desk, speaking into a microphone"
hostName="Marcus Delaney"
hostRole="Founder, Coastline HVAC Growth"
reasons={[
{
title: "Build your slow-season plan with Marcus",
detail: "Bring your slowest month. Leave with a booking plan for it.",
spot: calendarSpot,
},
{
title: "Get your own question answered",
detail: "Marcus takes questions on air, so ask about your market.",
spot: phoneSpot,
},
{
title: "Write down the three call scripts",
detail: "He walks through each script line by line. Have a pen ready.",
spot: checklistSpot,
},
]}
fromName="Marcus at Coastline HVAC Growth"
fromEmail="hello@coastlinehvacgrowth.com"
copy={{
buttonLabel: "Yes! Add it to my calendar",
buttonNote: "Google, Outlook or Apple. Takes one click.",
reasonsHeading: "What you only get by showing up live",
}}
/>
);
}
| Name | Type | Details |
|---|---|---|
title OptionalWebinarRegisteredHero |
string |
|
startsAt OptionalWebinarRegisteredHero |
string |
|
durationMinutes OptionalWebinarRegisteredHero |
number |
|
hostTimeZone OptionalWebinarRegisteredHero |
string |
|
localTimeZone OptionalWebinarRegisteredHero |
string |
|
locale OptionalWebinarRegisteredHero |
string |
|
leadLines OptionalWebinarRegisteredHero |
string[] |
|
joinHref OptionalWebinarRegisteredHero |
string |
|
calendarTitle OptionalWebinarRegisteredHero |
string |
|
calendarDetails OptionalWebinarRegisteredHero |
string |
|
calendarLinks OptionalWebinarRegisteredHero |
Partial<Record<CalendarProvider, string>> |
|
presenterImage OptionalWebinarRegisteredHero |
string |
|
presenterAlt OptionalWebinarRegisteredHero |
string |
|
hostName OptionalWebinarRegisteredHero |
string |
|
hostRole OptionalWebinarRegisteredHero |
string |
|
reasons OptionalWebinarRegisteredHero |
WebinarReason[] |
|
fromName OptionalWebinarRegisteredHero |
string |
|
fromEmail OptionalWebinarRegisteredHero |
string |
|
backdropImage OptionalWebinarRegisteredHero |
string |
|
now OptionalWebinarRegisteredHero |
string | number |
|
copy OptionalWebinarRegisteredHero |
Partial<WebinarRegisteredHeroCopy> |
|
state OptionalWebinarRegisteredHero |
"default" | "hover" | "active" | "disabled" | "success" |
|
className OptionalWebinarRegisteredHero |
string |
|
onAction OptionalWebinarRegisteredHero |
(action: CalendarProvider | "join") => void |
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- 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.
-
09bc3d4486616844.webp
image/webp · 23.2 KB
-
2840817c2abfcc5e.webp
image/webp · 56.6 KB
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
981ec216ca653287.webp
image/webp · 32.2 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB