Webinar Waiting Room 1
Webinar waiting room: a live countdown to the real start, a segmented get-ready stepper and one CTA that becomes the door to the room at zero, so registrants stay for the start.
Use it in a prompt
Use hero/webinar-waiting-room 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.tsx. - Import it and pass your copy and images (Props tab):
import { WebinarWaitingRoom } from "@/components/funneldna/hero/webinar-waiting-room"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/webinar-waiting-room/component.tsx 473 lines
// layout: segmented-stepper
// Webinar waiting room: a live countdown to the real start, a segmented get-ready stepper and one CTA that becomes the door to the room at zero, so registrants stay for the start.
import * as React from 'react'
import { CalendarClock, Check, Monitor, Radio } from 'lucide-react'
import { FX_HOST, Glow } from '../fx/fx'
export type WaitingRoomStep = {
/** Short segment label; three must fit side by side on a phone. */
tab: string
title: string
/** Letter-voice opener, e.g. 'Hey friend,'. */
salutation?: string
paragraphs: string[]
/** Things to have ready, shown as quiet chips. */
ready?: string[]
/** Sign-off line before the action, e.g. 'See you inside,'. */
signOff?: string
/** Name under the sign-off; falls back to presenterName. */
signName?: string
/** Advance button label for this step. */
next: string
}
export type WaitingRoomAction = { label: string; sublabel?: string }
export type WaitingRoomUnits = { days: string; hours: string; minutes: string; seconds: string }
export type WebinarWaitingRoomProps = {
eventName?: string
headline?: string
headlineTail?: string
liveHeadline?: string
liveHeadlineTail?: string
lead?: string
liveLead?: string
/** ISO start time; the clock counts down to it and the CTA switches to the live action at zero. */
startsAt?: string
/** Readable start time, e.g. 'Thursday at 2:00 PM ET'. */
startLabel?: string
units?: WaitingRoomUnits
/** Screen-reader timer label; {time} becomes the spoken time left. */
timerLabel?: string
liveTimerLabel?: string
liveBadge?: string
action?: WaitingRoomAction
liveAction?: WaitingRoomAction
href?: string
liveHref?: string
/** Called with the phase the main button was clicked in. */
onAction?: (phase: 'waiting' | 'live') => void
tabNote?: string
liveNote?: string
presenterImage?: string
presenterAlt?: string
presenterName?: string
presenterRole?: string
stepperTitle?: string
/** {done} and {total} become numbers. */
progressLabel?: string
allReadyLabel?: string
/** Screen-reader word for a finished step. */
completedLabel?: string
backLabel?: string
steps?: WaitingRoomStep[]
onStepChange?: (index: number) => void
/** Called when the last step's button is pressed. */
onReady?: () => void
state?: 'default' | 'hover' | 'active' | 'disabled'
className?: string
}
export function WebinarWaitingRoom(props: WebinarWaitingRoomProps) {
const {
eventName = 'Live workshop',
headline = 'You’re in.',
headlineTail = 'We start in…',
liveHeadline = 'We’re live.',
liveHeadlineTail = 'Come on in.',
lead = 'Your seat is saved. Use the next few minutes to get ready so you get the most from the session.',
liveLead = 'The room is open and we’re starting. Join now so you don’t miss the opening.',
startsAt,
startLabel,
units = DEFAULT_UNITS,
timerLabel = '{time} until we start',
liveTimerLabel = 'The session has started',
liveBadge = 'Live now',
action = { label: 'Add it to my calendar', sublabel: 'Get a reminder before we go live' },
liveAction = { label: 'Enter the live room', sublabel: 'We’re starting now' },
href,
liveHref,
onAction,
tabNote = 'Keep this tab open. At zero, this button opens the live room.',
liveNote = 'Have your notes and a pen beside you.',
presenterImage,
presenterAlt = 'Your host',
presenterName,
presenterRole,
stepperTitle = 'Get ready while you wait',
progressLabel = '{done} of {total} ready',
allReadyLabel = 'All set. See you at the start.',
completedLabel = 'done',
backLabel = 'Back',
steps = DEFAULT_STEPS,
onStepChange,
onReady,
state = 'default',
className,
} = props
const uid = React.useId()
const clock = useCountdown(startsAt, units)
const live = clock.live
const [active, setActive] = React.useState(0)
const [done, setDone] = React.useState<number[]>([])
const disabled = state === 'disabled'
const forced = state === 'hover' ? ' is-hover' : state === 'active' ? ' is-pressed' : ''
const current = live ? liveAction : action
const index = Math.min(active, Math.max(steps.length - 1, 0))
const step = steps[index]
const doneCount = done.filter((i) => i < steps.length).length
const allReady = steps.length > 0 && doneCount >= steps.length
const spoken = clock.parts.map((p) => Number(p.value) + ' ' + p.label.toLowerCase()).join(', ')
const go = (i: number) => {
setActive(i)
onStepChange?.(i)
}
const advance = () => {
setDone((d) => (d.includes(index) ? d : [...d, index]))
if (index >= steps.length - 1) onReady?.()
else go(index + 1)
}
const signName = step ? step.signName ?? (step.signOff ? presenterName : undefined) : undefined
return (
<section
className={['cf-wwr', live ? 'is-live' : '', className].filter(Boolean).join(' ')}
style={FX_HOST}
aria-labelledby={uid + '-h'}
>
<style>{CSS}</style>
<Glow />
<div className='cf-wwr__wrap'>
<div className='cf-wwr__top'>
<div className='cf-wwr__main cf-wwr__rise'>
<p className='cf-wwr__chip'>
<span className={'cf-wwr__disc' + (live ? ' is-live' : '')} aria-hidden='true'>
{live ? <Radio size={14} strokeWidth={3} /> : <Check size={14} strokeWidth={3} />}
</span>
<span>{live ? liveBadge : eventName}</span>
</p>
<h1 id={uid + '-h'} className='cf-wwr__h1'>
<span>{live ? liveHeadline : headline}</span> <span>{live ? liveHeadlineTail : headlineTail}</span>
</h1>
<p className='cf-wwr__lead'>{live ? liveLead : lead}</p>
{clock.valid ? (
<div
className='cf-wwr__clock'
role='timer'
aria-live='off'
aria-label={live ? liveTimerLabel : fill(timerLabel, { time: spoken })}
style={{ '--n': clock.parts.length } as React.CSSProperties}
>
{clock.parts.map((p) => (
<div className='cf-wwr__tile' key={p.key}>
<span className='cf-wwr__num' aria-hidden='true'>
<span className='cf-wwr__digit' key={p.value}>{p.value}</span>
</span>
<span className='cf-wwr__unit' aria-hidden='true'>{p.label}</span>
</div>
))}
</div>
) : null}
{startLabel ? (
<p className='cf-wwr__when'>
<CalendarClock className='cf-wwr__inline' size={18} strokeWidth={2.5} aria-hidden='true' />
{startLabel}
</p>
) : null}
<div className='cf-wwr__act'>
<Cta
href={live ? liveHref : href}
disabled={disabled}
forced={forced}
onClick={() => onAction?.(live ? 'live' : 'waiting')}
>
<span className='cf-wwr__label'>{current.label}</span>
{current.sublabel ? <span className='cf-wwr__sub'>{current.sublabel}</span> : null}
</Cta>
<p className='cf-wwr__note'>
<Monitor className='cf-wwr__inline' size={16} strokeWidth={2.5} aria-hidden='true' />
{live ? liveNote : tabNote}
</p>
</div>
</div>
{presenterImage ? (
<figure className='cf-wwr__host cf-wwr__rise' style={{ animationDelay: '.07s' }}>
<div className='cf-wwr__frame'>
<img src={presenterImage} alt={presenterAlt} width={720} height={900} />
</div>
{presenterName || presenterRole ? (
<figcaption className='cf-wwr__cap'>
{presenterName ? <span className='cf-wwr__name'>{presenterName}</span> : null}
{presenterRole ? <span className='cf-wwr__role'>{presenterRole}</span> : null}
</figcaption>
) : null}
</figure>
) : null}
</div>
{step ? (
<div className='cf-wwr__card cf-wwr__rise' style={{ animationDelay: '.14s' }}>
<div className='cf-wwr__head'>
<h2 className='cf-wwr__h2'>{stepperTitle}</h2>
<p className='cf-wwr__progress' aria-live='polite'>
{allReady ? allReadyLabel : fill(progressLabel, { done: String(doneCount), total: String(steps.length) })}
</p>
</div>
<ol className='cf-wwr__segs' style={{ '--steps': steps.length } as React.CSSProperties}>
{steps.map((s, i) => {
const isDone = done.includes(i)
const isCurrent = i === index
return (
<li key={s.tab + i}>
<button
type='button'
className={'cf-wwr__seg' + (isCurrent ? ' is-current' : '') + (isDone ? ' is-done' : '')}
aria-current={isCurrent ? 'step' : undefined}
aria-controls={uid + '-panel'}
onClick={() => go(i)}
>
{isDone ? (
<span className='cf-wwr__tick' aria-hidden='true'><Check size={13} strokeWidth={3} /></span>
) : (
<span className='cf-wwr__segnum' aria-hidden='true'>{i + 1}</span>
)}
<span className='cf-wwr__seglabel'>{s.tab}</span>
{isDone ? <span className='cf-wwr__sr'>{completedLabel}</span> : null}
</button>
</li>
)
})}
</ol>
<div className='cf-wwr__panel' key={index} id={uid + '-panel'}>
<div className='cf-wwr__copy'>
<h3 className='cf-wwr__h3'>{step.title}</h3>
{step.salutation ? <p className='cf-wwr__salute'>{step.salutation}</p> : null}
{step.paragraphs.map((p, i) => (
<p className='cf-wwr__para' key={i}>{p}</p>
))}
{step.signOff || signName ? (
<div className='cf-wwr__sign'>
{presenterImage ? <img className='cf-wwr__thumb' src={presenterImage} alt='' width={48} height={48} /> : null}
<p>
{step.signOff ? <span className='cf-wwr__signoff'>{step.signOff}</span> : null}
{signName ? <span className='cf-wwr__signname'>{signName}</span> : null}
</p>
</div>
) : null}
{step.ready && step.ready.length ? (
<ul className='cf-wwr__chips'>
{step.ready.map((r) => (
<li key={r}>
<Check size={16} strokeWidth={2.5} aria-hidden='true' />
{r}
</li>
))}
</ul>
) : null}
</div>
<div className='cf-wwr__nav'>
{index > 0 ? (
<button type='button' className='cf-wwr__btn cf-wwr__btn--back' onClick={() => go(index - 1)} disabled={disabled}>
{backLabel}
</button>
) : null}
<button type='button' className={'cf-wwr__btn cf-wwr__btn--primary cf-wwr__btn--step' + forced} onClick={advance} disabled={disabled}>
{step.next}
</button>
</div>
</div>
</div>
) : null}
</div>
</section>
)
}
export default WebinarWaitingRoom
const DEFAULT_UNITS: WaitingRoomUnits = { days: 'Days', hours: 'Hours', minutes: 'Minutes', seconds: 'Seconds' }
const DEFAULT_STEPS: WaitingRoomStep[] = [
{
tab: 'Your goal',
title: 'Pick the one result you want from today',
paragraphs: ['Write it in a single line. We’ll keep coming back to it during the session.'],
ready: ['Pen and paper'],
next: 'Next step',
},
{
tab: 'Your space',
title: 'Set up so nothing pulls you away',
paragraphs: ['Close the other tabs, silence your phone and grab a drink before we start.'],
ready: ['Laptop or desktop', 'Headphones'],
next: 'Next step',
},
{
tab: 'Your seat',
title: 'A quick note before we start',
salutation: 'Hey friend,',
paragraphs: ['I’m glad you’re here. Keep this tab open and I’ll see you right at the start.'],
signOff: 'See you inside,',
next: 'I’m all set',
},
]
type ClockPart = { key: string; value: string; label: string }
function useCountdown(startsAt: string | undefined, units: WaitingRoomUnits) {
const target = React.useMemo(() => (startsAt ? Date.parse(startsAt) : NaN), [startsAt])
const valid = Number.isFinite(target)
const [now, setNow] = React.useState(() => Date.now())
React.useEffect(() => {
if (!valid) return undefined
setNow(Date.now())
if (Date.now() >= target) return undefined
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, Math.ceil((target - now) / 1000)) : 0
const d = Math.floor(left / 86400)
const h = Math.floor((left % 86400) / 3600)
const m = Math.floor((left % 3600) / 60)
const s = left % 60
const pad = (n: number) => String(n).padStart(2, '0')
const parts: ClockPart[] = [
...(d > 0 ? [{ key: 'd', value: pad(d), label: units.days }] : []),
{ key: 'h', value: pad(h), label: units.hours },
{ key: 'm', value: pad(m), label: units.minutes },
{ key: 's', value: pad(s), label: units.seconds },
]
return { valid, live: valid && left === 0, parts }
}
function fill(template: string, values: Record<string, string>) {
return Object.keys(values).reduce((out, key) => out.split('{' + key + '}').join(values[key]), template)
}
// Main CTA: the primary button classes are literal here so the button role tokens resolve to this element.
function Cta(p: { href?: string; disabled: boolean; forced: string; onClick: () => void; children: React.ReactNode }) {
if (p.href && !p.disabled) {
return (
<a className={'cf-wwr__btn cf-wwr__btn--primary cf-wwr__btn--main' + p.forced} href={p.href} onClick={p.onClick}>
{p.children}
</a>
)
}
return (
<button type='button' className={'cf-wwr__btn cf-wwr__btn--primary cf-wwr__btn--main' + p.forced} disabled={p.disabled} onClick={p.onClick}>
{p.children}
</button>
)
}
// Status badges keep a white glyph on the solid --success fill (theme-contract: status icon badges).
// The white glyph sits behind a component-scoped variable (--cf-wwr-glyph) so the only hex is a var() fallback.
// Stepper segments are quiet secondary-style controls: their resting border follows --button-2-border (transparent by default).
const CSS = `
.cf-wwr{position:relative;isolation:isolate;overflow:hidden;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)}
.cf-wwr *,.cf-wwr *::before,.cf-wwr *::after{box-sizing:border-box}
.cf-wwr :where(h1,h2,h3,p,ol,ul,figure){margin:0}
.cf-wwr :where(ol,ul){padding:0;list-style:none}
.cf-wwr img{display:block;max-width:100%}
.cf-wwr__wrap{position:relative;z-index:1;max-width:1120px;margin-inline:auto}
.cf-wwr__top{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,360px);gap:clamp(32px,5vw,72px);align-items:start}
.cf-wwr__main{min-width:0}
.cf-wwr__chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;max-width:100%;margin-bottom:16px;padding:4px 14px 4px 6px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .12);color:var(--band-ink);font-size:.875rem;font-weight:800;line-height:1.2}
.cf-wwr__disc{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;border-radius:999px;background:var(--success);color:var(--cf-wwr-glyph,#fff)}
.cf-wwr__disc.is-live{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-wwr__h1{font-family:var(--font-display);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance}
.cf-wwr__h1 span{display:block}
.cf-wwr__lead{margin-top:clamp(14px,1.6vw,24px);max-width:58ch;color:color-mix(in oklch,var(--band-ink) 84%,var(--band));font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty}
.cf-wwr__clock{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:12px;width:100%;max-width:min(100%,calc(var(--n,3) * 144px));margin-top:32px}
.cf-wwr__tile{position:relative;overflow:hidden;padding:18px 8px 14px;border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));background:var(--card);color:var(--ink);text-align:center;box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .22),0 4px 10px -2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .2))}
.cf-wwr__num{display:block;height:1.1em;overflow:hidden;font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1.1;font-weight:var(--display-weight,800);letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
.cf-wwr__digit{display:block;animation:cf-wwr-tick .3s cubic-bezier(.2,.7,.2,1) both}
.cf-wwr__unit{display:block;margin-top:12px;color:var(--muted);font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase}
.cf-wwr__when{margin-top:16px;color:var(--band-ink);font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.5;text-wrap:pretty}
.cf-wwr__inline{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-wwr__act{width:100%;max-width:27rem;margin-top:32px}
.cf-wwr__btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;cursor:pointer;text-align:center;text-decoration:none;font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);line-height:1.15;border-radius:var(--button-radius,var(--radius,12px));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-wwr__btn--primary{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .3),0 8px 16px -6px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .45))}
.cf-wwr__btn--primary:hover:not(:disabled),.cf-wwr__btn--primary.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .1) c h / .6),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .34),0 10px 18px -6px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .55))}
.cf-wwr__btn--primary:active:not(:disabled),.cf-wwr__btn--primary.is-pressed:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .3)}
.cf-wwr__btn:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .6);outline-offset:3px}
.cf-wwr__main .cf-wwr__btn:focus-visible{outline-color:var(--band-ink)}
.cf-wwr__btn:disabled{cursor:not-allowed;background:var(--button-2-bg,var(--secondary));color:color-mix(in oklch,var(--button-2-ink,var(--secondary-ink)) 80%,var(--button-2-bg,var(--secondary)));text-shadow:none;box-shadow:none;transform:none}
.cf-wwr__btn--main{display:flex;flex-direction:column;gap:4px;width:100%;min-height:72px;margin-inline:auto;padding:14px 28px}
.cf-wwr__label{font-size:clamp(1.125rem,1.55vw,1.375rem);text-wrap:balance}
.cf-wwr__sub{font-family:var(--font-body);font-size:.9375rem;font-weight:600;line-height:1.3;letter-spacing:0;text-transform:none;text-wrap:balance}
.cf-wwr__note{margin-top:12px;color:color-mix(in oklch,var(--band-ink) 84%,var(--band));font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-wwr__host{min-width:0}
.cf-wwr__frame{position:relative}
.cf-wwr__frame::before{content:'';position:absolute;inset:20px -16px -16px 20px;border-radius:12px;background:oklch(from var(--band-ink) l c h / .08)}
.cf-wwr__frame img{position:relative;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:50% 22%;border-radius:12px}
.cf-wwr__cap{display:grid;gap:4px;margin-top:28px}
.cf-wwr__name{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:var(--display-weight,800);letter-spacing:-0.01em;line-height:1.15}
.cf-wwr__role{color:color-mix(in oklch,var(--band-ink) 84%,var(--band));font-size:.9375rem;font-weight:600;line-height:1.4}
.cf-wwr__card{margin-top:clamp(48px,6vw,64px);padding:clamp(20px,3vw,32px);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));background:var(--card);color:var(--ink);box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .22),0 12px 24px -8px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .32)))}
.cf-wwr__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px}
.cf-wwr__h2{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:var(--display-weight,800);letter-spacing:-0.01em;line-height:1.15;text-transform:var(--display-case,none);text-wrap:balance}
.cf-wwr__progress{color:var(--muted);font-size:.9375rem;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums}
.cf-wwr__segs{display:grid;grid-template-columns:repeat(var(--steps,3),minmax(0,1fr));gap:4px;margin-top:16px;padding:4px;border-radius:12px;background:color-mix(in oklch,var(--ink) 5%,var(--card))}
.cf-wwr__seg{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px 16px;border:1px solid var(--button-2-border,transparent);border-radius:9px;background:transparent;color:color-mix(in oklch,var(--ink) 78%,var(--card));font-family:var(--font-body);font-size:1rem;font-weight:700;line-height:1.2;text-align:left;cursor:pointer;transition:background .16s ease,box-shadow .16s ease,color .16s ease}
.cf-wwr__seg:hover:not(.is-current){background:color-mix(in oklch,var(--ink) 9%,var(--card));color:var(--ink)}
.cf-wwr__seg.is-current{background:oklch(from var(--card) calc(l + .05) c h);border-color:oklch(from var(--ink) l c h / .12);color:var(--ink);font-weight:800;box-shadow:var(--shadow-sm,0 1px 1px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .18),0 1px 3px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .14))}
.cf-wwr__seg:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:2px}
.cf-wwr__segnum{font-family:var(--font-display);font-size:1.3125rem;font-weight:var(--display-weight,800);line-height:1;font-variant-numeric:tabular-nums;color:var(--muted)}
.cf-wwr__seg.is-current .cf-wwr__segnum{color:var(--ink)}
.cf-wwr__tick{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;border-radius:999px;background:var(--success);color:var(--cf-wwr-glyph,#fff)}
.cf-wwr__seglabel{min-width:0}
.cf-wwr__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cf-wwr__panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:24px 48px;margin-top:24px;animation:cf-wwr-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-wwr__copy{min-width:0;max-width:64ch}
.cf-wwr__h3{font-family:var(--font-display);font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:var(--display-weight,800);line-height:1.2;letter-spacing:-0.01em;text-wrap:balance}
.cf-wwr__salute{margin-top:12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.5}
.cf-wwr__para{margin-top:8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cf-wwr__sign{display:flex;align-items:center;gap:12px;margin-top:16px}
.cf-wwr__thumb{width:48px;height:48px;flex:none;border-radius:8px;object-fit:cover;object-position:50% 20%}
.cf-wwr__signoff{display:block;color:var(--muted);font-size:.9375rem;font-weight:600;line-height:1.4}
.cf-wwr__signname{display:block;font-family:var(--font-display);font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:var(--display-weight,800);line-height:1.2}
.cf-wwr__chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.cf-wwr__chips li{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--ink);font-size:.875rem;font-weight:800;line-height:1.2}
.cf-wwr__chips svg{flex:none;color:var(--success)}
.cf-wwr__nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px}
.cf-wwr__btn--step{min-height:56px;padding:0 28px;font-size:clamp(1.125rem,1.55vw,1.375rem);white-space:nowrap}
.cf-wwr__btn--back{min-height:56px;padding:0 24px;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));border:1px solid var(--button-2-border,transparent);box-shadow:var(--button-2-shadow,var(--shadow-sm));font-size:1.0625rem}
.cf-wwr__btn--back:hover:not(:disabled){background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .04) c h)}
.cf-wwr__btn--back:active:not(:disabled){transform:translateY(1px)}
.cf-wwr__rise{animation:cf-wwr-rise .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes cf-wwr-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-wwr-tick{from{opacity:.82;transform:translateY(-.18em)}to{opacity:1;transform:none}}
@media (max-width:880px){
.cf-wwr__top{grid-template-columns:minmax(0,1fr);gap:32px}
.cf-wwr__host{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:16px;padding:12px 16px 12px 12px;border-radius:14px;background:oklch(from var(--band-ink) l c h / .08)}
.cf-wwr__frame::before{display:none}
.cf-wwr__frame img{width:88px;height:88px;aspect-ratio:1}
.cf-wwr__cap{margin-top:0}
}
@media (max-width:640px){
.cf-wwr__clock{gap:8px}
.cf-wwr__tile{padding:14px 4px 12px}
.cf-wwr__unit{letter-spacing:0;text-transform:none;font-weight:700}
.cf-wwr__act{max-width:none}
.cf-wwr__seg{flex-direction:column;justify-content:center;gap:4px;padding:8px 6px;text-align:center;font-size:.9375rem}
.cf-wwr__segnum{display:none}
.cf-wwr__tick{width:20px;height:20px}
.cf-wwr__panel{grid-template-columns:minmax(0,1fr)}
.cf-wwr__nav{flex-wrap:nowrap}
.cf-wwr__btn--step{flex:1 1 auto;padding:0 20px}
.cf-wwr__btn--back{flex:none;padding:0 18px}
}
@media (prefers-reduced-motion:reduce){
.cf-wwr *,.cf-wwr *::before,.cf-wwr *::after{animation:none !important;transition:none !important}
}
`
pieces/hero/webinar-waiting-room/specimen.tsx 60 lines
import __studioImagea4922540 from "../assets/58776423e53d4382.webp";
import * as React from 'react'
import WebinarWaitingRoom from '../webinar-waiting-room'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled'] as const
type SpecimenState = (typeof states)[number]
const QUARTER_HOUR = 15 * 60 * 1000
export default function WebinarWaitingRoomSpecimen({ state = 'default' }: { state?: SpecimenState }) {
const [start] = React.useState(() => Math.ceil((Date.now() + 2 * 60 * 60 * 1000) / QUARTER_HOUR) * QUARTER_HOUR)
const time = new Intl.DateTimeFormat('en-US', { hour: 'numeric', minute: '2-digit', timeZoneName: 'short' }).format(new Date(start))
const event = defaults.sample.registration
const host = slot('presenter', __studioImagea4922540)
return (
<WebinarWaitingRoom
state={state}
eventName={event.name}
lead='Your seat for the Funnel Starter Workshop is saved. Use these minutes to get ready, and you’ll leave with your offer, page copy and next steps mapped.'
startsAt={new Date(start).toISOString()}
startLabel={'Today at ' + time + ' · Watch online'}
presenterImage={host}
presenterAlt='Jordan Hale, host of the Funnel Starter Workshop'
presenterName='Jordan Hale'
presenterRole='Your workshop host'
steps={[
{
tab: 'Your offer',
title: 'Know your offer in one sentence',
paragraphs: ['We start by mapping your offer. Jot down who it helps and what they walk away with. Rough is perfect.'],
ready: ['Pen and paper', 'A blank doc'],
next: 'Next: your page',
},
{
tab: 'Your page',
title: 'Bring one headline idea, messy is fine',
paragraphs: ['Then we write your page copy together. One rough headline gives you something real to sharpen live.'],
ready: ['Your offer sentence', 'One headline draft'],
next: 'Next: your seat',
},
{
tab: 'Your seat',
title: 'A quick note before we start',
salutation: 'Hey friend,',
paragraphs: [
'In a little while we’ll map your first funnel together: your offer, your page copy and your next steps.',
'Close the other tabs, grab a coffee and keep this one open. I’ll see you right at the start.',
],
signOff: 'See you inside,',
signName: 'Jordan',
next: 'I’m all set',
},
]}
/>
)
}
| Name | Type | Details |
|---|---|---|
eventName OptionalWebinarWaitingRoom |
string |
|
headline OptionalWebinarWaitingRoom |
string |
|
headlineTail OptionalWebinarWaitingRoom |
string |
|
liveHeadline OptionalWebinarWaitingRoom |
string |
|
liveHeadlineTail OptionalWebinarWaitingRoom |
string |
|
lead OptionalWebinarWaitingRoom |
string |
|
liveLead OptionalWebinarWaitingRoom |
string |
|
startsAt OptionalWebinarWaitingRoom |
string |
|
startLabel OptionalWebinarWaitingRoom |
string |
|
units OptionalWebinarWaitingRoom |
WaitingRoomUnits |
|
timerLabel OptionalWebinarWaitingRoom |
string |
|
liveTimerLabel OptionalWebinarWaitingRoom |
string |
|
liveBadge OptionalWebinarWaitingRoom |
string |
|
action OptionalWebinarWaitingRoom |
WaitingRoomAction |
|
liveAction OptionalWebinarWaitingRoom |
WaitingRoomAction |
|
href OptionalWebinarWaitingRoom |
string |
|
liveHref OptionalWebinarWaitingRoom |
string |
|
onAction OptionalWebinarWaitingRoom |
(phase: 'waiting' | 'live') => void |
|
tabNote OptionalWebinarWaitingRoom |
string |
|
liveNote OptionalWebinarWaitingRoom |
string |
|
presenterImage OptionalWebinarWaitingRoom |
string |
|
presenterAlt OptionalWebinarWaitingRoom |
string |
|
presenterName OptionalWebinarWaitingRoom |
string |
|
presenterRole OptionalWebinarWaitingRoom |
string |
|
stepperTitle OptionalWebinarWaitingRoom |
string |
|
progressLabel OptionalWebinarWaitingRoom |
string |
|
allReadyLabel OptionalWebinarWaitingRoom |
string |
|
completedLabel OptionalWebinarWaitingRoom |
string |
|
backLabel OptionalWebinarWaitingRoom |
string |
|
steps OptionalWebinarWaitingRoom |
WaitingRoomStep[] |
|
onStepChange OptionalWebinarWaitingRoom |
(index: number) => void |
|
onReady OptionalWebinarWaitingRoom |
() => void |
|
state OptionalWebinarWaitingRoom |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalWebinarWaitingRoom |
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.
-
58776423e53d4382.webp
image/webp · 85.1 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB