Webinar Waiting Room 4
Webinar waiting room as a route map from 'You’re registered' to 'We go live': prep stops the registrant ticks off,
Use it in a prompt
Use hero/webinar-waiting-room-4 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-4.tsx. - Import it and pass your copy and images (Props tab):
import { WebinarWaitingRoom4 } from "@/components/funneldna/hero/webinar-waiting-room-4"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/webinar-waiting-room-4/component.tsx 642 lines
// layout: route-map
// Webinar waiting room as a route map from 'You’re registered' to 'We go live': prep stops the registrant ticks off,
// one question they send before the start, and a real countdown at the end stop, so they invest and stay for the start.
import * as React from 'react'
import { AlertCircle, CalendarClock, Check, ListChecks, Loader2, Lock, Radio } from 'lucide-react'
import { FX_HOST, Spot, Texture } from '../fx/fx'
import topo from '../fx/textures/topo'
import book from '../fx/spots/book'
import phone from '../fx/spots/phone'
import calendar from '../fx/spots/calendar'
import community from '../fx/spots/community'
type UnitKey = 'days' | 'hours' | 'minutes' | 'seconds'
type UnitCopy = { one: string; other: string }
export type WebinarWaitingRoom4Copy = {
days: UnitCopy
hours: UnitCopy
minutes: UnitCopy
seconds: UnitCopy
/** Short unit labels under the digits in the phone sticky bar. */
short: Record<UnitKey, string>
/** Screen-reader timer label; {time} is replaced with the spoken time left. */
timerLabel: string
/** Screen-reader timer label once the countdown reaches zero. */
timerLive: string
/** Phone sticky bar line before the digits. */
barLabel: string
/** Phone sticky bar line once the countdown reaches zero. */
barLive: string
/** Progress chip; {done} and {total} are replaced with counts. */
progress: string
/** Progress chip once every stop is done. */
allSet: string
markDone: string
done: string
/** Accessible name of a prep toggle; {title} is replaced with the stop title. */
toggleLabel: string
/** Inline error when send is pressed with an empty question. */
error: string
/** Visible character count; {count} and {max} are replaced with numbers. */
count: string
/** Screen-reader character count; {count} and {max} are replaced with numbers. */
countAria: string
}
const DEFAULT_COPY: WebinarWaitingRoom4Copy = {
days: { one: 'Day', other: 'Days' },
hours: { one: 'Hour', other: 'Hours' },
minutes: { one: 'Minute', other: 'Minutes' },
seconds: { one: 'Second', other: 'Seconds' },
short: { days: 'days', hours: 'hrs', minutes: 'min', seconds: 'sec' },
timerLabel: '{time} until we go live',
timerLive: 'The countdown has reached zero. We’re live.',
barLabel: 'We go live in',
barLive: 'We’re live now',
progress: '{done} of {total} stops done',
allSet: 'All set. See you when we go live.',
markDone: 'Mark done',
done: 'Done',
toggleLabel: 'Mark “{title}” as done',
error: 'Type your question first, then press send.',
count: '{count}/{max}',
countAria: '{count} of {max} characters used',
}
export type WebinarWaitingRoom4Stop = {
title: string
detail?: React.ReactNode
/** A Spot illustration (an imported fx spot asset) shown beside the stop number on desktop. */
spot?: string
}
export type WebinarWaitingRoom4Props = {
/** ISO date-time of the real start; the only thing that drives the countdown. */
startsAt: string
/** Readable start, e.g. 'Thursday, December 10 · 1:00 PM Eastern'. */
startLabel?: React.ReactNode
/** Main headline; wrap the key phrase in <mark> for the marker stroke. */
headline?: React.ReactNode
lead?: React.ReactNode
registeredTitle?: string
registeredDetail?: React.ReactNode
/** Spot illustration (an imported fx spot asset) beside the first stop number; '' hides it. */
registeredSpot?: string
/** The prep stops between registering and the question; each can be ticked off. */
prepItems?: WebinarWaitingRoom4Stop[]
/** Indexes of prep items that start ticked. */
defaultDone?: number[]
questionTitle?: string
questionDetail?: React.ReactNode
/** Spot illustration (an imported fx spot asset) beside the question stop number; '' hides it. */
questionSpot?: string
/** Label of the question textarea. */
questionLabel?: string
questionPlaceholder?: string
/** Line under the send button. */
questionNote?: React.ReactNode
maxLength?: number
defaultQuestion?: string
sendLabel?: string
sendingLabel?: string
endTitle?: string
liveTitle?: string
endNote?: React.ReactNode
liveNote?: React.ReactNode
/** scene slot: the after-state photo in the end stop. */
sceneImage?: string
sceneAlt?: string
sceneCaption?: React.ReactNode
/** Join button shown at zero when href or onAction is set. */
liveActionLabel?: string
href?: string
onAction?: () => void
/** Receives the trimmed question after the loader shows; the builder wires what happens next. */
onSubmit?: (question: string) => void | Promise<void>
onStopToggle?: (index: number, done: boolean) => void
copy?: Partial<Omit<WebinarWaitingRoom4Copy, 'short'>> & { short?: Partial<Record<UnitKey, string>> }
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error'
className?: string
}
type Row = {
key: string
kind: 'registered' | 'prep' | 'question'
title: string
detail?: React.ReactNode
spot?: string
done: boolean
prepIndex?: number
}
const DEFAULT_PREP: WebinarWaitingRoom4Stop[] = [
{ title: 'Grab a notebook', detail: 'Paper and a pen beside you. You’ll want to write things down as we go.', spot: book },
{ title: 'Close your other tabs', detail: 'Inbox, chat and news can wait. Give the session your full screen.', spot: phone },
]
export function WebinarWaitingRoom4(props: WebinarWaitingRoom4Props) {
const {
startsAt,
startLabel,
headline = (
<>
You’re registered. Here’s your <mark>path to the start</mark>.
</>
),
lead = 'A few quick stops between now and the moment we go live. Take them now and you’ll walk in ready.',
registeredTitle = 'You’re registered',
registeredDetail = 'Your seat is saved. This page is your waiting room until we start.',
registeredSpot = calendar,
prepItems = DEFAULT_PREP,
defaultDone = [],
questionTitle = 'Write your one question',
questionDetail = 'Ask it now, while it’s on your mind, so you know exactly what to listen for.',
questionSpot = community,
questionLabel = 'What’s the one question you want answered?',
questionPlaceholder = 'e.g. How do I price my offer without scaring people off?',
questionNote = 'It goes to the host before we go live.',
maxLength = 280,
defaultQuestion = '',
sendLabel = 'Send My Question',
sendingLabel = 'Sending…',
endTitle = 'We go live',
liveTitle = 'We’re live now',
endNote = 'Keep this tab open so you’re here the moment we start.',
liveNote = 'The session has started. Come straight in.',
sceneImage,
sceneAlt = 'A desk ready for the session',
sceneCaption,
liveActionLabel = 'Join The Live Session',
href,
onAction,
onSubmit,
onStopToggle,
state = 'default',
className,
} = props
const copy: WebinarWaitingRoom4Copy = {
...DEFAULT_COPY,
...props.copy,
short: { ...DEFAULT_COPY.short, ...props.copy?.short },
}
const uid = React.useId()
const headId = uid + '-h'
const qId = uid + '-q'
const countId = uid + '-c'
const errId = uid + '-e'
const noteId = uid + '-n'
const target = Date.parse(startsAt)
const valid = Number.isFinite(target)
const now = useNow(target, valid)
const left = valid ? Math.max(0, target - now) : 0
const live = valid && left === 0
const parts = split(left)
const keys: UnitKey[] = parts.days > 0 ? ['days', 'hours', 'minutes', 'seconds'] : ['hours', 'minutes', 'seconds']
const spoken = keys.map((k) => parts[k] + ' ' + unitLabel(copy[k], parts[k]).toLowerCase()).join(', ')
const timerAria = live ? copy.timerLive : fill(copy.timerLabel, { time: spoken })
const isDisabled = state === 'disabled'
const [ticked, setTicked] = React.useState<boolean[]>(() => prepItems.map((_item, i) => defaultDone.includes(i)))
const [question, setQuestion] = React.useState(defaultQuestion.slice(0, maxLength))
const [error, setError] = React.useState(false)
const [sending, setSending] = React.useState(false)
const fieldRef = React.useRef<HTMLTextAreaElement>(null)
const timer = React.useRef<number | undefined>(undefined)
const mounted = React.useRef(true)
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
window.clearTimeout(timer.current)
}
}, [])
const empty = question.trim().length === 0
const showError = state === 'error' || error
const near = question.length >= maxLength - 20
const tickedCount = prepItems.reduce((n, _item, i) => n + (ticked[i] ? 1 : 0), 0)
const total = prepItems.length + 2
const doneCount = 1 + tickedCount + (empty ? 0 : 1)
const allSet = doneCount === total
const toggle = (i: number) => {
const next = !(ticked[i] ?? false)
setTicked((prev) => {
const list = prepItems.map((_item, j) => prev[j] ?? false)
list[i] = next
return list
})
onStopToggle?.(i, next)
}
const onSend = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault()
if (isDisabled || sending) return
const value = question.trim()
if (!value) {
setError(true)
fieldRef.current?.focus()
return
}
setError(false)
setSending(true)
window.clearTimeout(timer.current)
timer.current = window.setTimeout(() => {
Promise.resolve()
.then(() => onSubmit?.(value))
.catch(() => undefined)
.finally(() => {
if (mounted.current) setSending(false)
})
}, 450)
}
const rows: Row[] = [
{ key: 'registered', kind: 'registered', title: registeredTitle, detail: registeredDetail, spot: registeredSpot || undefined, done: true },
...prepItems.map<Row>((item, i) => ({
key: 'prep-' + i,
kind: 'prep',
title: item.title,
detail: item.detail,
spot: item.spot,
done: ticked[i] ?? false,
prepIndex: i,
})),
{ key: 'question', kind: 'question', title: questionTitle, detail: questionDetail, spot: questionSpot || undefined, done: !empty },
]
const forced = state === 'hover' ? ' is-hover' : state === 'active' ? ' is-pressed' : ''
const sendCls = 'cf-wwr4__btn' + forced
const describedBy = [showError ? errId : '', countId, questionNote ? noteId : ''].filter(Boolean).join(' ')
const form = (
<form className='cf-wwr4__ask' onSubmit={onSend} noValidate>
<label className='cf-wwr4__label' htmlFor={qId}>
{questionLabel}
</label>
<textarea
ref={fieldRef}
id={qId}
name='question'
className='cf-wwr4__field'
rows={4}
maxLength={maxLength}
value={question}
placeholder={questionPlaceholder}
disabled={isDisabled}
aria-invalid={showError ? true : undefined}
aria-describedby={describedBy}
onChange={(e) => {
setQuestion(e.target.value.slice(0, maxLength))
if (error && e.target.value.trim()) setError(false)
}}
/>
<div className='cf-wwr4__meta'>
{showError ? (
<p id={errId} className='cf-wwr4__err' role='alert'>
<AlertCircle size={18} strokeWidth={2.5} aria-hidden='true' />
{copy.error}
</p>
) : null}
<span id={countId} className={'cf-wwr4__count' + (near ? ' is-near' : '')}>
<span aria-hidden='true'>{fill(copy.count, { count: question.length, max: maxLength })}</span>
<span className='cf-wwr4__sr'>{fill(copy.countAria, { count: question.length, max: maxLength })}</span>
</span>
</div>
<div className='cf-wwr4__actions'>
<button
type='submit'
className={sendCls}
disabled={isDisabled}
aria-disabled={sending && !isDisabled ? true : undefined}
aria-busy={sending ? true : undefined}
>
{sending ? <Loader2 className='cf-wwr4__spin' size={20} strokeWidth={2.5} aria-hidden='true' /> : null}
<span>{sending ? sendingLabel : sendLabel}</span>
</button>
{questionNote ? (
<p id={noteId} className='cf-wwr4__note'>
<Lock size={16} strokeWidth={2.5} aria-hidden='true' />
{questionNote}
</p>
) : null}
</div>
</form>
)
const clock =
valid && !live ? (
<div
className='cf-wwr4__clock'
role='timer'
aria-live='off'
aria-label={timerAria}
style={{ ['--wwr4-units' as string]: keys.length } as React.CSSProperties}
>
{keys.map((k) => (
<div className='cf-wwr4__tile' key={k}>
<b aria-hidden='true'>{pad(parts[k])}</b>
<span aria-hidden='true'>{unitLabel(copy[k], parts[k])}</span>
</div>
))}
</div>
) : null
const join =
live && (href || onAction) ? (
href ? (
<a className={'cf-wwr4__btn cf-wwr4__btn--join' + forced} href={href} onClick={() => onAction?.()}>
{liveActionLabel}
</a>
) : (
<button type='button' className={'cf-wwr4__btn cf-wwr4__btn--join' + forced} disabled={isDisabled} onClick={() => onAction?.()}>
{liveActionLabel}
</button>
)
) : null
return (
<section className={['cf-wwr4', live ? 'is-live' : '', className].filter(Boolean).join(' ')} aria-labelledby={headId}>
<style>{CSS}</style>
<div className='cf-wwr4__fx' style={FX_STYLE} aria-hidden='true'>
<Texture src={topo} tone='ink' />
</div>
{valid ? (
<div className='cf-wwr4__bar' role='timer' aria-live='off' aria-label={timerAria}>
<span className='cf-wwr4__bar-label'>
<Radio size={18} strokeWidth={2.5} aria-hidden='true' />
{live ? copy.barLive : copy.barLabel}
</span>
{!live ? (
<span className='cf-wwr4__bar-time' aria-hidden='true'>
{keys.map((k) => (
<span key={k}>
<b>{pad(parts[k])}</b>
<small>{copy.short[k]}</small>
</span>
))}
</span>
) : null}
</div>
) : null}
<div className='cf-wwr4__wrap'>
<header className='cf-wwr4__head'>
<h1 id={headId} className='cf-wwr4__h1'>
{headline}
</h1>
{lead ? <p className='cf-wwr4__lead'>{lead}</p> : null}
<p className={'cf-wwr4__chip' + (allSet ? ' is-all' : '')} aria-live='polite'>
{allSet ? (
<Check size={16} strokeWidth={2.5} aria-hidden='true' />
) : (
<ListChecks size={16} strokeWidth={2.5} aria-hidden='true' />
)}
<span>{allSet ? copy.allSet : fill(copy.progress, { done: doneCount, total })}</span>
</p>
</header>
<ol className='cf-wwr4__route' role='list'>
{rows.map((row, i) => {
const cls = ['cf-wwr4__stop', i % 2 === 0 ? 'is-right' : 'is-left', row.done ? 'is-done' : ''].filter(Boolean).join(' ')
return (
<li key={row.key} className={cls} style={delay(i)}>
<span className='cf-wwr4__node' aria-hidden='true'>
{row.done ? <Check size={18} strokeWidth={3} /> : null}
</span>
<div className='cf-wwr4__mark' aria-hidden='true'>
<span className='cf-wwr4__num'>{pad(i + 1)}</span>
{row.spot ? (
<span className='cf-wwr4__spot'>
<Spot src={row.spot} size={72} />
</span>
) : null}
</div>
<div className='cf-wwr4__body'>
<h2 className='cf-wwr4__title'>{row.title}</h2>
{row.detail ? <p className='cf-wwr4__detail'>{row.detail}</p> : null}
{row.kind === 'prep' && row.prepIndex !== undefined ? (
<button
type='button'
className='cf-wwr4__tick'
aria-pressed={row.done}
aria-label={fill(copy.toggleLabel, { title: row.title })}
disabled={isDisabled}
onClick={() => toggle(row.prepIndex as number)}
>
<span className='cf-wwr4__box' aria-hidden='true'>
{row.done ? <Check size={16} strokeWidth={3} /> : null}
</span>
<span>{row.done ? copy.done : copy.markDone}</span>
</button>
) : null}
{row.kind === 'question' ? form : null}
</div>
</li>
)
})}
<li className='cf-wwr4__stop is-end' style={delay(rows.length)}>
<span className='cf-wwr4__node cf-wwr4__node--end' aria-hidden='true'>
<Radio size={20} strokeWidth={2.5} />
</span>
<div className={'cf-wwr4__dest' + (sceneImage ? '' : ' is-solo')}>
{sceneImage ? (
<figure className='cf-wwr4__photo'>
<img src={sceneImage} alt={sceneAlt} width={800} height={600} loading='lazy' decoding='async' />
{sceneCaption ? <figcaption>{sceneCaption}</figcaption> : null}
</figure>
) : null}
<div className='cf-wwr4__go'>
<h2 className='cf-wwr4__title'>{live ? liveTitle : endTitle}</h2>
{startLabel ? (
<p className='cf-wwr4__when'>
<CalendarClock size={20} strokeWidth={2.5} aria-hidden='true' />
{startLabel}
</p>
) : null}
{clock}
{join}
{(live ? liveNote : endNote) ? <p className='cf-wwr4__go-note'>{live ? liveNote : endNote}</p> : null}
</div>
</div>
</li>
</ol>
</div>
</section>
)
}
export default WebinarWaitingRoom4
function useNow(target: number, valid: boolean) {
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])
return now
}
function split(ms: number): Record<UnitKey, number> {
const s = Math.floor(ms / 1000)
return {
days: Math.floor(s / 86400),
hours: Math.floor((s % 86400) / 3600),
minutes: Math.floor((s % 3600) / 60),
seconds: s % 60,
}
}
function unitLabel(u: UnitCopy, n: number) {
return n === 1 ? u.one : u.other
}
function pad(n: number) {
return String(n).padStart(2, '0')
}
function fill(t: string, values: Record<string, string | number>) {
return Object.keys(values).reduce((s, k) => s.split('{' + k + '}').join(String(values[k])), t)
}
function delay(i: number) {
return { ['--wwr4-delay' as string]: Math.min(i * 0.07, 0.28) + 's' } as React.CSSProperties
}
const FX_STYLE: React.CSSProperties = { ...FX_HOST, position: 'absolute', top: 0, left: 0, right: 0, overflow: 'hidden', zIndex: 0 }
const SH = 'oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h'
const SH_SM = `0 1px 2px ${SH} / 0.25), 0 1px 3px ${SH} / 0.16)`
const SH_MD = `0 1px 2px ${SH} / 0.22), 0 4px 10px -2px ${SH} / 0.2)`
const SH_LG = `0 2px 4px ${SH} / 0.22), 0 12px 24px -8px ${SH} / 0.32)`
const BTN = 'var(--button-bg, var(--cta))'
const BTN2 = 'var(--button-bg-2, var(--cta-2))'
const CSS = `
.cf-wwr4{--wwr4-rail:56px;--wwr4-gap:56px;--wwr4-num:clamp(3rem,6vw,5.25rem);--wwr4-node-top:calc(var(--wwr4-num) / 2 - 16px);--wwr4-marker:color-mix(in oklch,var(--marker,#fae37c) 82%,transparent);position:relative;isolation:isolate;overflow-x:clip;background:var(--surface);color:var(--ink);font-family:var(--font-body)}
.cf-wwr4 *,.cf-wwr4 *::before,.cf-wwr4 *::after{box-sizing:border-box}
.cf-wwr4 :where(h1,h2,p,ol,li,figure,figcaption){margin:0;padding:0}
.cf-wwr4 ol{list-style:none}
.cf-wwr4__fx{pointer-events:none;height:min(100%,960px);-webkit-mask-image:linear-gradient(to bottom,var(--ink) 30%,transparent);mask-image:linear-gradient(to bottom,var(--ink) 30%,transparent)}
.cf-wwr4__wrap{position:relative;z-index:1;max-width:calc(1120px + 2 * clamp(16px,5vw,48px));margin:0 auto;padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-wwr4__head{max-width:46rem;margin:0 auto;text-align:center}
.cf-wwr4__h1{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;color:var(--ink);text-wrap:balance}
.cf-wwr4__h1 mark{color:inherit;background:linear-gradient(var(--wwr4-marker),var(--wwr4-marker)) 0 92% / 100% .5em no-repeat;padding:0 .06em;border-radius:.16em .4em .28em .22em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-wwr4__lead{max-width:60ch;margin:16px auto 0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-wwr4__chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;margin-top:24px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--surface));color:var(--ink);font-size:.875rem;font-weight:800;line-height:1.2}
.cf-wwr4__chip svg{flex:none}
.cf-wwr4__chip.is-all{background:var(--success-soft);color:var(--success)}
.cf-wwr4__route{position:relative;display:grid;gap:var(--wwr4-gap);margin-top:clamp(48px,6vw,72px)}
.cf-wwr4__stop{position:relative;display:grid;grid-template-columns:minmax(0,1fr) var(--wwr4-rail) minmax(0,1fr);align-items:start}
.cf-wwr4__stop::before,.cf-wwr4__stop::after{content:'';position:absolute;z-index:0;left:calc(50% - 2px);top:calc(var(--wwr4-node-top) + 16px);width:4px;height:calc(100% + var(--wwr4-gap));border-radius:4px}
.cf-wwr4__stop::before{background:oklch(from var(--ink) l c h / .12)}
.cf-wwr4__stop::after{background:var(--accent-fill,var(--accent));transform:scaleY(0);transform-origin:top;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.cf-wwr4__stop.is-done::after{transform:scaleY(1)}
.cf-wwr4__stop.is-end{display:block}
.cf-wwr4__stop.is-end::before,.cf-wwr4__stop.is-end::after{display:none}
.cf-wwr4__node{position:absolute;z-index:2;top:var(--wwr4-node-top);left:50%;width:32px;height:32px;margin-left:-16px;display:grid;place-items:center;border-radius:999px;background:var(--card);box-shadow:inset 0 0 0 2px oklch(from var(--ink) l c h / .22),var(--shadow-sm,${SH_SM})}
.cf-wwr4__node::after{content:'';width:10px;height:10px;border-radius:999px;background:var(--accent-fill,var(--accent))}
.is-done>.cf-wwr4__node{background:var(--success);color:var(--on-status,#fff);box-shadow:var(--shadow-sm,${SH_SM})}
.is-done>.cf-wwr4__node::after{display:none}
.cf-wwr4__node--end{top:calc(var(--wwr4-node-top) - 4px);width:40px;height:40px;margin-left:-20px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));box-shadow:var(--shadow-md,${SH_MD})}
.cf-wwr4__node--end::after{display:none}
.cf-wwr4__mark{grid-row:1;display:flex;align-items:center;gap:16px;min-width:0}
.cf-wwr4__num{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:var(--wwr4-num);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--accent)}
.cf-wwr4__spot{flex:none;display:block;line-height:0}
.cf-wwr4__body{grid-row:1;min-width:0;padding-top:calc(var(--wwr4-num) / 2 - 16px)}
.cf-wwr4__stop.is-right .cf-wwr4__mark{grid-column:1;justify-self:end;flex-direction:row-reverse;padding-right:32px}
.cf-wwr4__stop.is-right .cf-wwr4__body{grid-column:3;padding-left:32px}
.cf-wwr4__stop.is-left .cf-wwr4__mark{grid-column:3;justify-self:start;padding-left:32px}
.cf-wwr4__stop.is-left .cf-wwr4__body{grid-column:1;padding-right:32px}
.cf-wwr4__title{font-family:var(--font-display);font-weight:800;letter-spacing:-.01em;text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--ink);text-wrap:balance}
.cf-wwr4__detail{max-width:46ch;margin-top:8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-wwr4__tick{display:inline-flex;align-items:center;justify-content:flex-start;gap:12px;min-height:44px;margin-top:16px;padding:0 16px 0 12px;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,${SH_SM}));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:.9375rem;line-height:1.2;text-align:start;cursor:pointer;transition:background .16s ease,box-shadow .16s ease,transform .16s ease}
.cf-wwr4__box{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:var(--card);color:var(--on-status,#fff);box-shadow:inset 0 0 0 2px oklch(from var(--ink) l c h / .3);transition:background .16s ease,box-shadow .16s ease}
.cf-wwr4__tick:hover:not(:disabled){background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .04) c h)}
.cf-wwr4__tick:hover:not(:disabled) .cf-wwr4__box{box-shadow:inset 0 0 0 2px var(--success)}
.cf-wwr4__tick[aria-pressed='true'] .cf-wwr4__box{background:var(--success);box-shadow:none}
.cf-wwr4__tick:active:not(:disabled){transform:translateY(1px)}
.cf-wwr4__tick[aria-pressed='true']{background:var(--success-soft);color:var(--success);border-color:oklch(from var(--success) l c h / .35);box-shadow:none}
.cf-wwr4__tick[aria-pressed='true']:hover:not(:disabled){background:oklch(from var(--success-soft) calc(l - .03) c h)}
.cf-wwr4__tick:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-wwr4__tick:disabled{cursor:not-allowed;opacity:.6}
.cf-wwr4__ask{margin-top:16px;padding:clamp(20px,3vw,32px);background:var(--card);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md,${SH_MD}))}
.cf-wwr4__label{display:block;margin-bottom:12px;font-family:var(--font-display);font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:800;line-height:1.3;color:var(--label-ink,var(--ink));text-wrap:balance}
.cf-wwr4__field{display:block;width:100%;min-height:132px;resize:vertical;margin:0;padding:14px 16px;background:var(--field);color:var(--field-ink);border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));font-family:var(--font-body);font-size:1.0625rem;line-height:1.5;box-shadow:inset 0 1px 2px ${SH} / .08);transition:border-color .16s ease,box-shadow .16s ease}
.cf-wwr4__field::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
.cf-wwr4__field:focus-visible{outline:none;border-color:var(--field-focus,var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent)) l c h / .35)}
.cf-wwr4__field[aria-invalid='true']{border-color:var(--danger)}
.cf-wwr4__field[aria-invalid='true']:focus-visible{border-color:var(--danger);box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .3)}
.cf-wwr4__field:disabled{background:color-mix(in oklch,var(--ink) 4%,var(--field));cursor:not-allowed}
.cf-wwr4__meta{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px 16px;min-height:24px;margin-top:8px}
.cf-wwr4__err{flex:1 1 200px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--danger);text-wrap:pretty}
.cf-wwr4__err svg{display:inline-block;vertical-align:-.2em;margin-inline-end:.4em}
.cf-wwr4__count{margin-left:auto;font-size:.9375rem;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;color:var(--muted)}
.cf-wwr4__count.is-near{color:var(--warning)}
.cf-wwr4__sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cf-wwr4__actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-top:16px}
.cf-wwr4__note{flex:1 1 180px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-wwr4__note svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-wwr4__btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from ${BTN} calc(l + .04) c h),oklch(from ${BTN2} calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-decoration:none;white-space:nowrap;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from ${BTN} calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from ${BTN} calc(l - .16) c h),0 1px 2px ${SH} / .3),0 8px 16px -6px ${SH} / .4));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-wwr4__btn:not(:disabled):hover,.cf-wwr4__btn.is-hover:not(:disabled){background:linear-gradient(oklch(from ${BTN} calc(l - .01) c h),oklch(from ${BTN2} calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from ${BTN} calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from ${BTN} calc(l - .2) c h),0 1px 2px ${SH} / .32),0 10px 18px -6px ${SH} / .48))}
.cf-wwr4__btn:not(:disabled):active,.cf-wwr4__btn.is-pressed:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from ${BTN} calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from ${BTN} calc(l - .16) c h),0 1px 2px ${SH} / .3)}
.cf-wwr4__btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-wwr4__btn:disabled{background:color-mix(in oklch,var(--ink) 8%,var(--card));color:var(--muted);text-shadow:none;box-shadow:inset 0 0 0 1px oklch(from var(--ink) l c h / .14);cursor:not-allowed;transform:none}
.cf-wwr4__btn[aria-busy='true']{cursor:progress}
.cf-wwr4__btn--join{min-height:64px;margin-top:24px}
.cf-wwr4__spin{flex:none;animation:cf-wwr4-spin .8s linear infinite}
.cf-wwr4__dest{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(24px,3vw,40px);align-items:start;margin-top:calc(var(--wwr4-node-top) + 64px);padding:clamp(20px,3vw,32px);background:var(--card);border:1px solid color-mix(in oklch,var(--accent) 30%,var(--card));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--shadow-lg,${SH_LG})}
.cf-wwr4__dest.is-solo{grid-template-columns:minmax(0,1fr);max-width:40rem;margin-inline:auto}
.cf-wwr4__photo{margin:0}
.cf-wwr4__photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center;border-radius:12px}
.cf-wwr4__photo figcaption{margin-top:12px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-align:center;text-wrap:pretty}
.cf-wwr4__go{min-width:0}
.cf-wwr4__when{margin-top:12px;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;color:var(--ink);text-wrap:pretty}
.cf-wwr4__when svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em;color:var(--accent)}
.cf-wwr4__clock{display:grid;grid-template-columns:repeat(var(--wwr4-units,4),minmax(0,1fr));gap:12px;margin-top:24px}
.cf-wwr4__tile{display:grid;justify-items:center;gap:8px;min-width:0;padding:16px 8px 12px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-wwr4__tile b{font-family:var(--font-display);font-weight:800;font-size:clamp(2rem,3.2vw,2.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-wwr4__tile span{font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cf-wwr4__go-note{margin-top:16px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-wwr4__bar{display:none;position:sticky;top:0;z-index:5;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:8px clamp(16px,5vw,48px);background:var(--card);border-bottom:1px solid oklch(from var(--ink) l c h / .12);box-shadow:var(--shadow-sm,${SH_SM})}
.cf-wwr4__bar-label{display:inline-flex;align-items:center;gap:8px;font-size:.9375rem;font-weight:800;line-height:1.2;color:var(--ink);white-space:nowrap}
.cf-wwr4__bar-label svg{flex:none;color:var(--accent)}
.cf-wwr4__bar-time{display:flex;gap:8px}
.cf-wwr4__bar-time span{display:grid;justify-items:center;min-width:34px}
.cf-wwr4__bar-time b{font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-wwr4__bar-time small{margin-top:2px;font-size:.875rem;font-weight:800;line-height:1.2;color:var(--muted)}
@media (max-width:760px){
.cf-wwr4{--wwr4-rail:40px;--wwr4-gap:40px;--wwr4-num:2.5rem}
.cf-wwr4__bar{display:flex}
.cf-wwr4__wrap{padding-top:clamp(40px,10vw,56px)}
.cf-wwr4__stop{grid-template-columns:var(--wwr4-rail) minmax(0,1fr)}
.cf-wwr4__stop::before,.cf-wwr4__stop::after{left:calc(var(--wwr4-rail) / 2 - 2px)}
.cf-wwr4__node{left:calc(var(--wwr4-rail) / 2)}
.cf-wwr4__stop.is-right .cf-wwr4__mark,.cf-wwr4__stop.is-left .cf-wwr4__mark{grid-column:2;grid-row:1;justify-self:start;flex-direction:row;padding:0 0 0 16px}
.cf-wwr4__stop.is-right .cf-wwr4__body,.cf-wwr4__stop.is-left .cf-wwr4__body{grid-column:2;grid-row:2;padding:8px 0 0 16px}
.cf-wwr4__spot{display:none}
.cf-wwr4__dest{grid-template-columns:minmax(0,1fr);margin-top:calc(var(--wwr4-node-top) + 56px)}
.cf-wwr4__dest .cf-wwr4__clock{display:none}
.cf-wwr4__when{font-size:1.0625rem}
.cf-wwr4__photo img{aspect-ratio:16/10}
.cf-wwr4__btn{width:100%;white-space:normal}
}
@media (prefers-reduced-motion:no-preference){
.cf-wwr4__head{animation:cf-wwr4-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-wwr4__stop{animation:cf-wwr4-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--wwr4-delay,0s)}
.is-done>.cf-wwr4__node{animation:cf-wwr4-pop .3s cubic-bezier(.2,.7,.2,1) both}
}
@media (prefers-reduced-motion:reduce){
.cf-wwr4 *,.cf-wwr4 *::before,.cf-wwr4 *::after{transition:none!important;animation:none!important}
}
@keyframes cf-wwr4-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-wwr4-pop{from{transform:scale(.9)}to{transform:none}}
@keyframes cf-wwr4-spin{to{transform:rotate(360deg)}}
`
pieces/hero/webinar-waiting-room-4/specimen.tsx 57 lines
import __studioImage898629b4 from "../assets/f04ee48a5fcd5131.webp";
// Specimen: Clearwater Coaching’s live Money Map session waiting room (fictional sample content).
import * as React from 'react'
import { WebinarWaitingRoom4 } from '../webinar-waiting-room-4'
import { slot } from '../../slots'
import book from '../../fx/spots/book'
import phone from '../../fx/spots/phone'
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
const SAMPLE_QUESTION = 'How much should I pay myself each month while the practice grows?'
export default function WebinarWaitingRoom4Specimen({ state = 'default' }: { state?: SpecimenState }) {
const filled = state === 'hover' || state === 'active'
return (
<WebinarWaitingRoom4
key={state}
state={state}
startsAt='2026-12-10T18:00:00Z'
startLabel='Thursday, December 10 · 1:00 PM Eastern'
headline={
<>
You’re in. Here’s your <mark>path to the Money Map</mark>.
</>
}
lead='Three quick stops before Clearwater Coaching goes live. Take them now and you’ll walk in ready to map your money.'
registeredDetail='Your seat for the live Money Map session with Clearwater Coaching is saved. This page is your waiting room.'
prepItems={[
{
title: 'Grab a notebook',
detail: 'You’ll sketch your own Money Map as we go, so keep paper and a pen within reach.',
spot: book,
},
{
title: 'Close your other tabs',
detail: 'Inbox, chat and news can wait. Give the session your full screen from the first minute.',
spot: phone,
},
]}
defaultDone={[0]}
questionDetail='Ask it now, while it’s on your mind, so you know exactly what to listen for when we start.'
questionPlaceholder='e.g. How much should I pay myself each month while the practice grows?'
defaultQuestion={filled ? SAMPLE_QUESTION : ''}
questionNote='It goes to the Clearwater Coaching team before we go live.'
endNote='Keep this tab open so you’re here the moment we start.'
sceneImage={slot(
'scene',
__studioImage898629b4
)}
sceneAlt='A desk set up for the live session: open notebook, pen, laptop and coffee'
sceneCaption='Notebook open, tabs closed, question sent: ready for the start.'
onSubmit={() => undefined}
/>
)
}
| Name | Type | Details |
|---|---|---|
startsAt RequiredWebinarWaitingRoom4 |
string |
|
startLabel OptionalWebinarWaitingRoom4 |
React.ReactNode |
|
headline OptionalWebinarWaitingRoom4 |
React.ReactNode |
|
lead OptionalWebinarWaitingRoom4 |
React.ReactNode |
|
registeredTitle OptionalWebinarWaitingRoom4 |
string |
|
registeredDetail OptionalWebinarWaitingRoom4 |
React.ReactNode |
|
registeredSpot OptionalWebinarWaitingRoom4 |
string |
|
prepItems OptionalWebinarWaitingRoom4 |
WebinarWaitingRoom4Stop[] |
|
defaultDone OptionalWebinarWaitingRoom4 |
number[] |
|
questionTitle OptionalWebinarWaitingRoom4 |
string |
|
questionDetail OptionalWebinarWaitingRoom4 |
React.ReactNode |
|
questionSpot OptionalWebinarWaitingRoom4 |
string |
|
questionLabel OptionalWebinarWaitingRoom4 |
string |
|
questionPlaceholder OptionalWebinarWaitingRoom4 |
string |
|
questionNote OptionalWebinarWaitingRoom4 |
React.ReactNode |
|
maxLength OptionalWebinarWaitingRoom4 |
number |
|
defaultQuestion OptionalWebinarWaitingRoom4 |
string |
|
sendLabel OptionalWebinarWaitingRoom4 |
string |
|
sendingLabel OptionalWebinarWaitingRoom4 |
string |
|
endTitle OptionalWebinarWaitingRoom4 |
string |
|
liveTitle OptionalWebinarWaitingRoom4 |
string |
|
endNote OptionalWebinarWaitingRoom4 |
React.ReactNode |
|
liveNote OptionalWebinarWaitingRoom4 |
React.ReactNode |
|
sceneImage OptionalWebinarWaitingRoom4 |
string |
|
sceneAlt OptionalWebinarWaitingRoom4 |
string |
|
sceneCaption OptionalWebinarWaitingRoom4 |
React.ReactNode |
|
liveActionLabel OptionalWebinarWaitingRoom4 |
string |
|
href OptionalWebinarWaitingRoom4 |
string |
|
onAction OptionalWebinarWaitingRoom4 |
() => void |
|
onSubmit OptionalWebinarWaitingRoom4 |
(question: string) => void | Promise<void> |
|
onStopToggle OptionalWebinarWaitingRoom4 |
(index: number, done: boolean) => void |
|
copy OptionalWebinarWaitingRoom4 |
Partial<Omit<WebinarWaitingRoom4Copy, 'short'>> & { short?: Partial<Record<UnitKey, string>> } |
|
state OptionalWebinarWaitingRoom4 |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
|
className OptionalWebinarWaitingRoom4 |
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--field-border--field-focus--field-ink--field-radius- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
09bc3d4486616844.webp
image/webp · 23.2 KB
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
5602e47ebdb81810.webp
image/webp · 35.6 KB
-
a57ca5c86a05001f.webp
image/webp · 108 KB
-
bc3d360c88eeac0e.webp
image/webp · 23.9 KB
-
f04ee48a5fcd5131.webp
image/webp · 117 KB