Webinar Waiting Room 2
Pre-event waiting room: a live countdown to the real start, the host "speaking" a short letter,
Use it in a prompt
Use hero/webinar-waiting-room-2 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-waiting-room-2.tsx. - Import it and pass your copy and images (Props tab):
import { WebinarWaitingRoom2 } from "@/components/funneldna/hero/webinar-waiting-room-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/webinar-waiting-room-2/component.tsx 807 lines
// layout: presenter-cutout
// Pre-event waiting room: a live countdown to the real start, the host "speaking" a short letter,
// a tick-off prep list and one calendar action, so registrants stay on the page for the start.
import * as React from "react";
import { CalendarClock, CalendarPlus, Check, DoorOpen, Monitor } from "lucide-react";
import { FX_HOST, Spotlight } from "../fx/fx";
type Phase = "waiting" | "live";
type UnitCopy = { one: string; other: string };
export type WebinarWaitingRoom2Copy = {
days: UnitCopy;
hours: UnitCopy;
minutes: UnitCopy;
seconds: UnitCopy;
/** Screen-reader timer label; {time} is replaced with the remaining time. */
timerLabel: string;
/** Screen-reader timer label once the countdown reaches zero. */
timerLive: string;
/** Chip shown beside the live note at zero. */
liveChip: string;
/** Checklist progress; {done} and {total} are replaced with counts. */
readyCount: string;
/** Line shown when every item is ticked. */
readyDone: string;
};
const DEFAULT_COPY: WebinarWaitingRoom2Copy = {
days: { one: "Day", other: "Days" },
hours: { one: "Hour", other: "Hours" },
minutes: { one: "Minute", other: "Minutes" },
seconds: { one: "Second", other: "Seconds" },
timerLabel: "{time} until we start",
timerLive: "The countdown has reached zero. We’re starting.",
liveChip: "Starting now",
readyCount: "{done} of {total} ready",
readyDone: "All set. See you at the start.",
};
export type WebinarWaitingRoom2Props = {
/** ISO date-time of the real start; drives the countdown. */
startsAt: string;
/** Readable start, e.g. "Thursday, December 3 · 1:00 PM Eastern". */
startLabel?: string;
headline?: React.ReactNode;
/** Headline once the countdown reaches zero. */
liveHeadline?: React.ReactNode;
/** Line beside the chip once the countdown reaches zero. */
liveNote?: string;
/** presenter-cutout slot: the host on a transparent background. */
presenterImage?: string;
presenterAlt?: string;
presenterName?: string;
presenterRole?: string;
salutation?: string;
paragraphs?: React.ReactNode[];
readyTitle?: string;
/** What to have ready; each item can be ticked off. */
readyItems?: string[];
signOff?: string;
/** Action before the start (e.g. save to calendar). */
actionLabel?: string;
actionNote?: string;
/** Action once the countdown reaches zero (e.g. join the room). */
liveActionLabel?: string;
liveActionNote?: string;
href?: string;
liveHref?: string;
onAction?: (phase: Phase) => void;
/** Fires once when the countdown reaches zero. */
onLive?: () => void;
tabNote?: React.ReactNode;
copy?: Partial<WebinarWaitingRoom2Copy>;
disabled?: boolean;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
export function WebinarWaitingRoom2(props: WebinarWaitingRoom2Props) {
const {
startsAt,
startLabel,
headline = "You’re in. We start in…",
liveHeadline = "We’re starting. Come on in.",
liveNote = "The doors are open.",
presenterImage,
presenterAlt = "Your workshop host",
presenterName,
presenterRole,
salutation = "Dear friend,",
paragraphs = [
"Your seat is saved. When the clock hits zero, the button below opens the room.",
"Use the time until then to get the few things below within reach, so you can follow along from the first minute.",
],
readyTitle = "Have these within reach",
readyItems = [
"A notebook or a blank doc",
"Your laptop or desktop, plugged in",
"A quiet spot for the full session",
"The one question you want answered",
],
signOff = "See you inside,",
actionLabel = "Add It To My Calendar",
actionNote = "One tap and the start time sits in your calendar.",
liveActionLabel = "Join The Workshop Now",
liveActionNote = "The room is open. Come on in.",
href,
liveHref,
onAction,
onLive,
tabNote = "Keep this tab open. Your join button appears right here the moment we start.",
disabled,
state = "default",
className,
} = props;
const copy: WebinarWaitingRoom2Copy = { ...DEFAULT_COPY, ...props.copy };
const uid = React.useId();
const headId = `${uid}-head`;
const readyId = `${uid}-ready`;
const noteId = `${uid}-note`;
const target = Date.parse(startsAt);
const valid = Number.isFinite(target);
const [now, setNow] = React.useState(() => Date.now());
React.useEffect(() => {
if (!valid) return;
setNow(Date.now());
if (Date.now() >= target) return;
const id = window.setInterval(() => {
const t = Date.now();
setNow(t);
if (t >= target) window.clearInterval(id);
}, 1000);
return () => window.clearInterval(id);
}, [target, valid]);
const left = valid ? Math.max(0, target - now) : 0;
const live = valid && left === 0;
const phase: Phase = live ? "live" : "waiting";
const onLiveRef = React.useRef(onLive);
onLiveRef.current = onLive;
const fired = React.useRef(false);
React.useEffect(() => {
if (live && !fired.current) {
fired.current = true;
onLiveRef.current?.();
}
}, [live]);
const tiles = countdownTiles(left, copy);
const spoken = tiles.map((t) => `${t.value} ${unitLabel(t.unit, t.value).toLowerCase()}`).join(", ");
const timerLabel = live ? copy.timerLive : fill(copy.timerLabel, { time: spoken });
const [ticked, setTicked] = React.useState<Record<number, boolean>>({});
const total = readyItems.length;
const done = readyItems.reduce((n, _item, i) => n + (ticked[i] ? 1 : 0), 0);
const allDone = total > 0 && done === total;
const pct = total ? Math.round((done / total) * 100) : 0;
const hasStage = Boolean(presenterImage);
const isDisabled = Boolean(disabled) || state === "disabled";
const Icon = live ? DoorOpen : CalendarPlus;
const label = live ? liveActionLabel : actionLabel;
const note = live ? liveActionNote : actionNote;
const link = live ? liveHref ?? href : href;
const btnClass = ["wr-btn", state === "hover" && "is-hover", state === "active" && "is-active"]
.filter(Boolean)
.join(" ");
const btnInner = (
<>
<Icon size={20} strokeWidth={2.5} aria-hidden="true" />
<span>{label}</span>
</>
);
const rootClass = [
"cf-webinar-waiting-room-2",
hasStage ? "" : "is-solo",
live ? "is-live" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<section className={rootClass} style={FX_HOST} aria-labelledby={headId}>
<style>{CSS}</style>
<Spotlight />
<div className="wr-inner">
<header className="wr-head">
<h1 id={headId} className="wr-h1 wr-rise">
{live ? liveHeadline : headline}
</h1>
{valid && (
<div className="wr-clock wr-rise" style={{ "--d": ".07s" } as React.CSSProperties} role="timer" aria-live="off" aria-label={timerLabel}>
{tiles.map((t) => (
<div className="wr-tile" key={t.key} aria-hidden="true">
<span className="wr-numwrap">
<span className="wr-num" suppressHydrationWarning>
<span className="wr-digit" key={`${t.key}-${t.value}`}>
{String(t.value).padStart(2, "0")}
</span>
</span>
</span>
<span className="wr-unit">{unitLabel(t.unit, t.value)}</span>
</div>
))}
</div>
)}
{live ? (
<p className="wr-when wr-rise" style={{ "--d": ".14s" } as React.CSSProperties}>
<span className="wr-chip">
<span className="wr-dot" aria-hidden="true" />
{copy.liveChip}
</span>
{liveNote}
</p>
) : startLabel ? (
<p className="wr-when wr-rise" style={{ "--d": ".14s" } as React.CSSProperties}>
<CalendarClock size={20} strokeWidth={2.5} aria-hidden="true" />
{valid ? <time dateTime={startsAt}>{startLabel}</time> : startLabel}
</p>
) : null}
</header>
{hasStage && (
<div className="wr-stage">
<figure className="wr-figure wr-rise" style={{ "--d": ".07s" } as React.CSSProperties}>
<div className="wr-photo">
<img src={presenterImage} alt={presenterAlt} width={720} height={720} decoding="async" />
</div>
{(presenterName || presenterRole) && (
<figcaption className="wr-cap">
{presenterName && <span className="wr-name">{presenterName}</span>}
{presenterRole && <span className="wr-role">{presenterRole}</span>}
</figcaption>
)}
</figure>
</div>
)}
<article className="wr-card wr-rise" style={{ "--d": ".21s" } as React.CSSProperties}>
<p className="wr-salute">{salutation}</p>
{paragraphs.map((p, i) => (
<p className="wr-p" key={i}>
{p}
</p>
))}
{total > 0 && (
<div className="wr-ready" role="group" aria-labelledby={readyId}>
<div className="wr-ready-top">
<h2 id={readyId} className="wr-h3">
{readyTitle}
</h2>
<span className="wr-count" aria-live="polite">
{fill(copy.readyCount, { done, total })}
</span>
</div>
<div className="wr-meter" aria-hidden="true">
<span style={{ width: `${pct}%` }} />
</div>
<ul className="wr-list">
{readyItems.map((item, i) => {
const id = `${uid}-item-${i}`;
const on = Boolean(ticked[i]);
return (
<li key={i}>
<label className={on ? "wr-row is-on" : "wr-row"} htmlFor={id}>
<input
id={id}
className="wr-cb"
type="checkbox"
checked={on}
onChange={(e) => {
const checked = e.currentTarget.checked;
setTicked((prev) => ({ ...prev, [i]: checked }));
}}
/>
<span className="wr-box" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
<span className="wr-item">{item}</span>
</label>
</li>
);
})}
</ul>
{allDone && <p className="wr-done">{copy.readyDone}</p>}
</div>
)}
<div className="wr-sign">
<p className="wr-signoff">{signOff}</p>
{presenterName && <p className="wr-signature">{presenterName}</p>}
</div>
<div className="wr-action">
{link && !isDisabled ? (
<a className={btnClass} href={link} aria-describedby={note ? noteId : undefined} onClick={() => onAction?.(phase)}>
{btnInner}
</a>
) : (
<button
type="button"
className={btnClass}
disabled={isDisabled}
aria-describedby={note ? noteId : undefined}
onClick={() => onAction?.(phase)}
>
{btnInner}
</button>
)}
{note && (
<p className="wr-note" id={noteId}>
{note}
</p>
)}
</div>
{tabNote && !live && (
<p className="wr-tab">
<Monitor size={18} strokeWidth={2.5} aria-hidden="true" />
{tabNote}
</p>
)}
</article>
</div>
</section>
);
}
export default WebinarWaitingRoom2;
type Tile = { key: string; value: number; unit: UnitCopy };
function countdownTiles(ms: number, copy: WebinarWaitingRoom2Copy): Tile[] {
const totalSec = Math.max(0, Math.floor(ms / 1000));
const d = Math.floor(totalSec / 86400);
const h = Math.floor((totalSec % 86400) / 3600);
const m = Math.floor((totalSec % 3600) / 60);
const s = totalSec % 60;
const tiles: Tile[] = [];
if (d > 0) tiles.push({ key: "d", value: d, unit: copy.days });
tiles.push({ key: "h", value: h, unit: copy.hours });
tiles.push({ key: "m", value: m, unit: copy.minutes });
tiles.push({ key: "s", value: s, unit: copy.seconds });
return tiles;
}
function unitLabel(unit: UnitCopy, value: number) {
return value === 1 ? unit.one : unit.other;
}
function fill(template: string, vars: Record<string, string | number>) {
return template.replace(/\{(\w+)\}/g, (match, key: string) => (key in vars ? String(vars[key]) : match));
}
const CSS = `
.cf-webinar-waiting-room-2 {
--wr-soft: color-mix(in oklch, var(--band-ink) 80%, var(--band));
--wr-tile: color-mix(in oklch, var(--band-ink) 8%, var(--band));
--wr-tile-top: color-mix(in oklch, var(--band-ink) 12%, var(--band));
--wr-shade: var(--shadow, oklch(0.22 0.03 256));
--wr-line: oklch(from var(--ink) l c h / 0.12);
--signature-font: var(--signature-face, var(--font-display));
--signature-ink: var(--ink);
position: relative;
isolation: isolate;
overflow: clip;
background: var(--band);
color: var(--band-ink);
font-family: var(--font-body);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
& *, & *::before, & *::after { box-sizing: border-box; }
.wr-inner {
position: relative;
z-index: 1;
max-width: 1120px;
margin-inline: auto;
display: grid;
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
grid-template-areas: "stage head" "stage card";
column-gap: clamp(32px, 5vw, 72px);
row-gap: clamp(32px, 4vw, 48px);
align-items: start;
}
&.is-solo .wr-inner {
grid-template-columns: minmax(0, 46rem);
grid-template-areas: "head" "card";
justify-content: center;
}
.wr-head { grid-area: head; min-width: 0; }
.wr-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);
font-size: clamp(2.5rem, 5.4vw, 4.875rem);
line-height: 1.04;
text-wrap: balance;
color: var(--band-ink);
}
.wr-clock {
display: grid;
grid-auto-flow: column;
grid-auto-columns: minmax(0, 1fr);
gap: clamp(8px, 1.4vw, 16px);
margin-top: clamp(24px, 3vw, 32px);
}
.wr-tile {
padding: clamp(14px, 2vw, 22px) 6px clamp(12px, 1.6vw, 16px);
border-radius: var(--radius, 12px);
background: linear-gradient(var(--wr-tile-top) 50%, var(--wr-tile) 50%);
border: 1px solid oklch(from var(--band-ink) l c h / 0.16);
box-shadow:
inset 0 1px 0 oklch(from var(--band-ink) l c h / 0.1),
0 1px 2px oklch(from var(--wr-shade) calc(l - 0.08) c h / 0.4),
0 8px 16px -8px oklch(from var(--wr-shade) calc(l - 0.08) c h / 0.5);
text-align: center;
overflow: hidden;
}
.wr-numwrap { position: relative; display: block; overflow: hidden; }
.wr-num {
display: block;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(2.5rem, 5.4vw, 4.875rem);
line-height: 1;
letter-spacing: -0.03em;
font-variant-numeric: tabular-nums;
color: var(--band-ink);
}
&.is-live .wr-num { color: var(--wr-soft); }
.wr-digit {
display: inline-block;
animation: cf-wwr2-tick 0.3s cubic-bezier(.2, .7, .2, 1) both;
}
.wr-unit {
display: block;
margin-top: 8px;
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
letter-spacing: 0.02em;
color: var(--wr-soft);
}
.wr-when {
margin: clamp(16px, 2vw, 24px) 0 0;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
font-weight: 500;
line-height: 1.4;
text-wrap: balance;
color: var(--band-ink);
& svg { display: inline-block; vertical-align: -0.15em; margin-inline-end: 0.4em; }
}
.wr-chip {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 30px;
padding: 4px 12px;
margin-inline-end: 12px;
border-radius: 999px;
background: oklch(from var(--band-ink) l c h / 0.12);
color: var(--band-ink);
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
vertical-align: 0.1em;
}
.wr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fill, var(--accent)); }
.wr-stage { grid-area: stage; align-self: stretch; min-width: 0; }
.wr-figure { position: sticky; top: 32px; margin: 0; }
.wr-photo { aspect-ratio: 1 / 1; width: 100%; }
.wr-photo img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
object-position: 50% 100%;
filter:
drop-shadow(0 2px 3px oklch(from var(--wr-shade) calc(l - 0.08) c h / 0.45))
drop-shadow(0 14px 16px oklch(from var(--wr-shade) calc(l - 0.08) c h / 0.35));
}
.wr-cap { display: grid; gap: 4px; margin-top: 16px; text-align: center; }
.wr-name {
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
font-weight: 800;
line-height: 1.3;
color: var(--band-ink);
}
.wr-role { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: var(--wr-soft); text-wrap: pretty; }
.wr-card {
grid-area: card;
position: relative;
min-width: 0;
background: var(--card);
color: var(--ink);
border: 1px solid var(--card-border, var(--wr-line));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-lg,
0 2px 4px oklch(from var(--wr-shade) l c h / 0.22),
0 12px 24px -8px oklch(from var(--wr-shade) l c h / 0.32)));
padding: clamp(20px, 3vw, 32px);
}
.wr-card::before {
content: "";
position: absolute;
top: 56px;
left: -12px;
width: 24px;
height: 24px;
background: var(--card);
border-left: 1px solid var(--card-border, var(--wr-line));
border-bottom: 1px solid var(--card-border, var(--wr-line));
transform: rotate(45deg);
}
&.is-solo .wr-card::before { display: none; }
.wr-salute {
margin: 0 0 12px;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
font-weight: 700;
line-height: 1.4;
color: var(--ink);
}
.wr-p {
margin: 0 0 12px;
max-width: 64ch;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.55;
text-wrap: pretty;
color: var(--ink);
}
.wr-ready {
margin: 24px 0;
padding: clamp(16px, 2.4vw, 24px);
border-radius: 10px;
background: color-mix(in oklch, var(--ink) 4%, var(--card));
}
.wr-ready-top {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: 4px 16px;
}
.wr-h3 {
margin: 0;
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;
text-wrap: balance;
color: var(--ink);
}
.wr-count {
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
color: var(--muted);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.wr-meter {
margin-top: 12px;
height: 8px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink) 10%, var(--card));
overflow: hidden;
& span {
display: block;
height: 100%;
border-radius: inherit;
background: var(--accent-fill, var(--accent));
transition: width 0.3s cubic-bezier(.2, .7, .2, 1);
}
}
.wr-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.wr-row {
position: relative;
display: grid;
grid-template-columns: 28px minmax(0, 1fr);
gap: 12px;
align-items: start;
padding: 10px 12px;
border-radius: 8px;
cursor: pointer;
transition: background 0.16s ease;
}
.wr-row:hover { background: color-mix(in oklch, var(--ink) 7%, var(--card)); }
.wr-row:has(.wr-cb:focus-visible) {
outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / 0.5);
outline-offset: 1px;
}
.wr-cb {
position: absolute;
width: 1px;
height: 1px;
margin: 0;
opacity: 0;
clip-path: inset(50%);
pointer-events: none;
}
.wr-box {
width: 28px;
height: 28px;
display: grid;
place-items: center;
border-radius: 50%;
border: 2px solid color-mix(in oklch, var(--ink) 55%, var(--card));
background: var(--card);
color: transparent;
transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.wr-row.is-on .wr-box {
background: var(--success);
border-color: var(--success);
color: var(--badge-glyph, #fff);
}
.wr-row:active .wr-box { transform: scale(0.92); }
.wr-item {
padding-top: 2px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
font-weight: 600;
line-height: 1.4;
text-wrap: pretty;
color: var(--ink);
}
.wr-done {
margin: 12px 0 0;
font-size: 0.9375rem;
font-weight: 700;
line-height: 1.4;
color: var(--success);
}
.wr-sign { margin-top: 8px; }
.wr-signoff {
margin: 0;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
color: var(--ink);
}
.wr-signature {
margin: 4px 0 0;
font-family: var(--signature-font);
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(--signature-ink);
}
.wr-action { margin-top: 24px; }
.wr-btn {
appearance: none;
border: 0;
margin: 0;
cursor: pointer;
display: flex;
width: 100%;
min-height: 64px;
align-items: center;
justify-content: center;
gap: 10px;
padding: 12px 28px;
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-wrap: balance;
text-decoration: none;
color: var(--button-ink, var(--cta-ink));
text-shadow: var(--button-text-shadow, none);
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));
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(--wr-shade) calc(l - 0.08) c h / 0.45),
0 8px 16px -6px oklch(from var(--wr-shade) calc(l - 0.08) c h / 0.5));
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
& svg { flex: none; }
}
.wr-btn:hover:not(:disabled), .wr-btn.is-hover:not(:disabled) {
transform: translateY(-1px);
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));
box-shadow: var(--button-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(--wr-shade) calc(l - 0.08) c h / 0.5),
0 12px 20px -8px oklch(from var(--wr-shade) calc(l - 0.08) c h / 0.6));
}
.wr-btn:active:not(:disabled), .wr-btn.is-active:not(:disabled) {
transform: translateY(1px);
box-shadow: var(--button-shadow,
inset 0 2px 4px oklch(from var(--button-bg-2, var(--cta-2)) 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(--wr-shade) calc(l - 0.08) c h / 0.4));
}
.wr-btn:focus-visible {
outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / 0.6);
outline-offset: 3px;
}
.wr-btn:disabled {
cursor: not-allowed;
transform: none;
background: color-mix(in oklch, var(--ink) 10%, var(--card));
color: color-mix(in oklch, var(--ink) 66%, var(--card));
box-shadow: none;
text-shadow: none;
}
.wr-note {
margin: 12px 0 0;
text-align: center;
font-size: 0.9375rem;
font-weight: 500;
line-height: 1.4;
text-wrap: balance;
color: var(--muted);
}
.wr-tab {
margin: 24px auto 0;
max-width: 46ch;
text-align: center;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.45;
text-wrap: balance;
color: var(--ink);
& svg {
display: inline-block;
vertical-align: -0.15em;
margin-inline-end: 0.4em;
color: var(--accent);
}
}
.wr-rise {
animation: cf-wwr2-rise 0.45s cubic-bezier(.2, .7, .2, 1) both;
animation-delay: var(--d, 0s);
}
@media (max-width: 820px) {
.wr-inner {
grid-template-columns: minmax(0, 1fr);
grid-template-areas: "head" "stage" "card";
row-gap: 24px;
}
.wr-head { text-align: center; }
.wr-figure { position: static; width: min(240px, 64vw); margin-inline: auto; }
.wr-card::before {
top: -12px;
left: calc(50% - 12px);
border-bottom: 0;
border-top: 1px solid var(--card-border, var(--wr-line));
}
}
@media (max-width: 480px) {
.wr-tile { padding: 12px 4px 10px; }
.wr-unit { letter-spacing: 0; }
.wr-row { padding: 10px 8px; }
.wr-when { font-size: 1.0625rem; }
.wr-btn { padding: 12px 16px; gap: 8px; }
}
@media (max-width: 420px) {
.wr-btn svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.wr-rise, .wr-digit { animation: none; }
.wr-btn, .wr-row, .wr-box, .wr-meter span { transition: none; }
.wr-btn:hover:not(:disabled), .wr-btn.is-hover:not(:disabled),
.wr-btn:active:not(:disabled), .wr-btn.is-active:not(:disabled) { transform: none; }
.wr-row:active .wr-box { transform: none; }
}
}
@keyframes cf-wwr2-rise {
from { opacity: 0.82; transform: translateY(8px); }
to { opacity: 1; transform: none; }
}
@keyframes cf-wwr2-tick {
from { opacity: 0.5; transform: translateY(-10px); }
to { opacity: 1; transform: none; }
}
`;
pieces/hero/webinar-waiting-room-2/specimen.tsx 46 lines
import __studioImagec1d2e91d from "../assets/142f7c3bf62f3fc6.webp";
import WebinarWaitingRoom2 from "../webinar-waiting-room-2";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
type SpecimenState = "default" | "hover" | "active" | "disabled";
export default function WebinarWaitingRoom2Specimen({ state }: { state?: SpecimenState }) {
const workshop = defaults.sample.registration;
return (
<WebinarWaitingRoom2
state={state}
startsAt="2026-12-03T13:00:00-05:00"
startLabel="Thursday, December 3 · 1:00 PM Eastern"
headline="You’re in. We start in…"
liveHeadline="We’re starting. Come on in."
presenterImage={slot(
"presenter-cutout",
__studioImagec1d2e91d
)}
presenterAlt={`Jordan Avery, host of the ${workshop.name}`}
presenterName="Jordan Avery"
presenterRole={`Host, ${workshop.name}`}
salutation="Dear friend,"
paragraphs={[
`Your seat for the ${workshop.name} is saved. When the clock hits zero, the button below opens the room.`,
"We’ll map your offer, your page copy and your next steps together, so get these four things within reach before we start.",
]}
readyTitle="Have these four within reach"
readyItems={[
"Your offer, written in one sentence",
"A rough first headline for your page",
"A notebook or blank doc for your next steps",
"Your laptop, plugged in and charged",
]}
signOff="See you inside,"
actionLabel="Add It To My Calendar"
actionNote="One tap and the start time sits in your calendar."
liveActionLabel="Join The Workshop Now"
liveActionNote="The room is open. Come on in."
tabNote="Keep this tab open. Your join button appears right here the moment we start."
/>
);
}
| Name | Type | Details |
|---|---|---|
startsAt RequiredWebinarWaitingRoom2 |
string |
|
startLabel OptionalWebinarWaitingRoom2 |
string |
|
headline OptionalWebinarWaitingRoom2 |
React.ReactNode |
|
liveHeadline OptionalWebinarWaitingRoom2 |
React.ReactNode |
|
liveNote OptionalWebinarWaitingRoom2 |
string |
|
presenterImage OptionalWebinarWaitingRoom2 |
string |
|
presenterAlt OptionalWebinarWaitingRoom2 |
string |
|
presenterName OptionalWebinarWaitingRoom2 |
string |
|
presenterRole OptionalWebinarWaitingRoom2 |
string |
|
salutation OptionalWebinarWaitingRoom2 |
string |
|
paragraphs OptionalWebinarWaitingRoom2 |
React.ReactNode[] |
|
readyTitle OptionalWebinarWaitingRoom2 |
string |
|
readyItems OptionalWebinarWaitingRoom2 |
string[] |
|
signOff OptionalWebinarWaitingRoom2 |
string |
|
actionLabel OptionalWebinarWaitingRoom2 |
string |
|
actionNote OptionalWebinarWaitingRoom2 |
string |
|
liveActionLabel OptionalWebinarWaitingRoom2 |
string |
|
liveActionNote OptionalWebinarWaitingRoom2 |
string |
|
href OptionalWebinarWaitingRoom2 |
string |
|
liveHref OptionalWebinarWaitingRoom2 |
string |
|
onAction OptionalWebinarWaitingRoom2 |
(phase: Phase) => void |
|
onLive OptionalWebinarWaitingRoom2 |
() => void |
|
tabNote OptionalWebinarWaitingRoom2 |
React.ReactNode |
|
copy OptionalWebinarWaitingRoom2 |
Partial<WebinarWaitingRoom2Copy> |
|
disabled OptionalWebinarWaitingRoom2 |
boolean |
|
state OptionalWebinarWaitingRoom2 |
"default" | "hover" | "active" | "disabled" |
|
className OptionalWebinarWaitingRoom2 |
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.
--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-cutout- The presenter on a transparent background.
-
142f7c3bf62f3fc6.webp
image/webp · 143 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB