Webinar Waiting Room 6
Webinar waiting room, the warm-up reel: a big poster-frame stage counts down to the real start and becomes the
Use it in a prompt
Use hero/webinar-waiting-room-6 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-6.tsx. - Import it and pass your copy and images (Props tab):
import { WebinarWaitingRoom6 } from "@/components/funneldna/hero/webinar-waiting-room-6"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/webinar-waiting-room-6/component.tsx 634 lines
// layout: photo-overlap-card
// Webinar waiting room, the warm-up reel: a big poster-frame stage counts down to the real start and becomes the
// join door at zero, while an overlapping card keeps registrants busy (tick-off prep, their own hello) so they stay.
import * as React from 'react'
import { AlertCircle, CalendarClock, Check, Mic, Radio, Send } from 'lucide-react'
import { Divider, FX_HOST, Mesh, Spotlight } from '../fx/fx'
type UnitKey = 'days' | 'hours' | 'minutes' | 'seconds'
type UnitCopy = { one: string; other: string }
/** waiting: counting down to the start · live: the start has passed and the join action shows on the stage. */
export type WebinarWaitingRoom6Phase = 'waiting' | 'live'
export type WebinarWaitingRoom6Copy = {
days: UnitCopy
hours: UnitCopy
minutes: UnitCopy
seconds: UnitCopy
/** Screen-reader timer label; {time} is replaced with the spoken time left. */
timerLabel: string
/** Announced once to screen readers when the countdown reaches zero while the visitor waits. */
announce: string
/** Prep progress chip; {done} and {total} are replaced with counts. */
progress: string
/** Line shown when every prep item is ticked. */
allReady: string
/** Name above the visitor's own messages. */
you: string
/** Inline error when send is pressed with an empty message. */
error: string
}
const DEFAULT_COPY: WebinarWaitingRoom6Copy = {
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',
announce: 'We’re live. The join button is on the stage now.',
progress: '{done} of {total} ready',
allReady: 'You’re ready. Stay right here.',
you: 'You',
error: 'Type a quick hello first, then press send.',
}
export type WebinarWaitingRoom6Props = {
/** ISO date-time of the real start; the only thing that drives the countdown and the switch to live. */
startsAt?: string
/** Readable start, e.g. 'Thursday, December 3 · 1:00 PM Eastern'; shown big when startsAt can’t be read. */
startLabel?: React.ReactNode
/** Forces a phase (e.g. the page knows the room is open); otherwise the countdown decides. */
phase?: WebinarWaitingRoom6Phase
/** Chip at the top of the stage before the start. */
eventName?: string
/** Host shown on the stage; only when supplied. */
hostName?: string
hostRole?: string
/** Word before the host name, e.g. 'with'. */
hostPrefix?: string
/** presenter slot: small round portrait beside the host name. */
hostImage?: string
hostImageAlt?: string
headline?: React.ReactNode
/** Headline once live. */
liveHeadline?: React.ReactNode
/** One-sentence lines beside the headline; the last one is set as the punch. */
punch?: React.ReactNode[]
/** Punch lines once live. */
livePunch?: React.ReactNode[]
/** scene slot: the poster frame of the stage. */
stageImage?: string
stageImageAlt?: string
/** Line above the digits. */
countdownLabel?: string
tabNote?: React.ReactNode
/** Stage chip once live. */
liveChip?: string
liveTitle?: React.ReactNode
liveLead?: React.ReactNode
/** Join button on the stage once live. */
actionLabel?: string
/** One line under the join button. */
actionNote?: React.ReactNode
href?: string
onAction?: () => void
/** Fires once when the countdown reaches zero (or phase becomes live). */
onLive?: () => void
prepTitle?: string
/** Things to get ready; each can be ticked off. Empty hides the list. */
prepItems?: React.ReactNode[]
/** Indexes of prep items that start ticked. */
defaultDone?: number[]
onItemToggle?: (index: number, done: boolean) => void
/** Shows the 'Say hi' box. */
showChat?: boolean
chatTitle?: string
chatLead?: React.ReactNode
messageLabel?: string
messagePlaceholder?: string
/** Accessible name of the send button. */
sendLabel?: string
chatNote?: React.ReactNode
/** The visitor’s own earlier messages, e.g. restored by the page. Never other attendees. */
defaultMessages?: string[]
maxLength?: number
/** Receives the visitor’s trimmed message; the message also stays visible on this page. */
onSubmit?: (message: string) => void
copy?: Partial<WebinarWaitingRoom6Copy>
disabled?: boolean
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error'
className?: string
}
const DEFAULT_PUNCH: React.ReactNode[] = [
'Your seat is saved.',
'When the clock hits zero, this stage turns into your door.',
'Stay.',
]
const DEFAULT_LIVE_PUNCH: React.ReactNode[] = [
'The clock hit zero.',
'Your seat is waiting on the stage.',
'Go.',
]
const DEFAULT_ITEMS: React.ReactNode[] = [
'A notebook or a blank doc',
'The one question you want answered',
'Your phone on silent, inbox closed',
]
export function WebinarWaitingRoom6(props: WebinarWaitingRoom6Props) {
const {
startsAt,
startLabel,
phase: phaseProp,
eventName = 'Live workshop',
hostName,
hostRole,
hostPrefix = 'with',
hostImage,
hostImageAlt = '',
headline = 'You’re in. The room opens right here.',
liveHeadline = 'The doors are open. Come on in.',
punch = DEFAULT_PUNCH,
livePunch = DEFAULT_LIVE_PUNCH,
stageImage,
stageImageAlt = '',
countdownLabel = 'We start in',
tabNote = 'Keep this tab open. Your join button appears right here at zero.',
liveChip = 'Live now',
liveTitle = 'We’re live.',
liveLead = 'The session is starting. Click below and take your seat.',
actionLabel = 'Join The Live Room',
actionNote = 'Your seat is saved. Come straight in.',
href,
onAction,
onLive,
prepTitle = 'While you wait, get these ready',
prepItems = DEFAULT_ITEMS,
defaultDone = [],
onItemToggle,
showChat = true,
chatTitle = 'Say hi before we start',
chatLead = 'Where are you joining from, and what do you want to fix first?',
messageLabel = 'Your message',
messagePlaceholder = 'Hi from Denver! I want more leads from my page.',
sendLabel = 'Send message',
chatNote = 'Short is perfect. One line does it.',
defaultMessages = [],
maxLength = 240,
onSubmit,
disabled,
state = 'default',
className,
} = props
const copy: WebinarWaitingRoom6Copy = { ...DEFAULT_COPY, ...props.copy }
const uid = React.useId()
const headId = uid + '-h'
const prepId = uid + '-p'
const chatId = uid + '-c'
const fieldId = uid + '-f'
const errId = uid + '-e'
const chatNoteId = uid + '-n'
const joinNoteId = uid + '-j'
const isDisabled = Boolean(disabled) || state === 'disabled'
const target = startsAt ? Date.parse(startsAt) : NaN
const valid = Number.isFinite(target)
const now = useNow(target, valid)
const left = valid ? Math.max(0, target - now) : 0
const live = phaseProp ? phaseProp === 'live' : valid && left === 0
const liveCb = React.useRef(onLive)
liveCb.current = onLive
const fired = React.useRef(false)
const prevLive = React.useRef(live)
const [announce, setAnnounce] = React.useState('')
React.useEffect(() => {
if (live && !fired.current) {
fired.current = true
liveCb.current?.()
}
if (live && !prevLive.current) setAnnounce(copy.announce)
prevLive.current = live
}, [live, copy.announce])
const parts = split(left)
const keys: UnitKey[] = parts.days > 0 ? ['days', 'hours', 'minutes', 'seconds'] : ['hours', 'minutes', 'seconds']
const spoken = keys.map((k) => parts[k] + ' ' + unit(copy[k], parts[k]).toLowerCase()).join(', ')
const [done, setDone] = React.useState<boolean[]>(() => prepItems.map((_item, i) => defaultDone.includes(i)))
const total = prepItems.length
const doneCount = prepItems.reduce<number>((n, _item, i) => n + (done[i] ? 1 : 0), 0)
const allReady = total > 0 && doneCount === total
const pct = total ? Math.round((doneCount / total) * 100) : 0
const toggle = (index: number, value: boolean) => {
setDone((d) => prepItems.map((_item, j) => (j === index ? value : Boolean(d[j]))))
onItemToggle?.(index, value)
}
const [messages, setMessages] = React.useState(() => defaultMessages.map((text, i) => ({ id: i, text })))
const nextId = React.useRef(defaultMessages.length)
const [draft, setDraft] = React.useState('')
const [err, setErr] = React.useState(false)
const inputRef = React.useRef<HTMLInputElement>(null)
const showErr = err || state === 'error'
const send = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault()
if (isDisabled) return
const text = draft.trim()
if (!text) {
setErr(true)
inputRef.current?.focus()
return
}
setErr(false)
const id = nextId.current++
setMessages((m) => [...m, { id, text }].slice(-4))
setDraft('')
onSubmit?.(text)
}
const hasPrep = total > 0
const hasCard = hasPrep || showChat
const lines = live ? livePunch : punch
const forced = state === 'hover' ? ' is-hover' : state === 'active' ? ' is-press' : ''
const joinClass = 'cf-wwr6__join' + forced
const describedBy = actionNote ? joinNoteId : undefined
const fieldDescribed = [showErr ? errId : '', chatNote ? chatNoteId : ''].filter(Boolean).join(' ') || undefined
const join = !actionLabel ? null : href && !isDisabled ? (
<a className={joinClass} href={href} onClick={() => onAction?.()} aria-describedby={describedBy}>
{actionLabel}
</a>
) : (
<button type='button' className={joinClass} disabled={isDisabled} onClick={() => onAction?.()} aria-describedby={describedBy}>
{actionLabel}
</button>
)
return (
<section
className={['cf-wwr6', live ? 'is-live' : '', className].filter(Boolean).join(' ')}
style={FX_HOST}
aria-labelledby={headId}
>
<style>{CSS}</style>
<Mesh variant='dark' />
<Divider shape='wave' tone='surface' height={56} />
<div className='cf-wwr6__wrap'>
<header className='cf-wwr6__head'>
<h1 id={headId} className='cf-wwr6__h1 cf-wwr6__rise'>
{live ? liveHeadline : headline}
</h1>
{lines.length > 0 && (
<div className='cf-wwr6__punch cf-wwr6__rise' style={{ animationDelay: '.07s' }}>
{lines.map((line, i) => (
<p key={i} className={lines.length > 1 && i === lines.length - 1 ? 'is-punch' : undefined}>
{line}
</p>
))}
</div>
)}
</header>
<div className={'cf-wwr6__scene' + (hasCard ? ' has-card' : '')}>
<div className='cf-wwr6__stage cf-wwr6__rise' style={{ animationDelay: '.07s' }}>
{stageImage ? (
<img className='cf-wwr6__img' src={stageImage} alt={stageImageAlt} width={1536} height={1024} />
) : (
<Spotlight />
)}
<div className='cf-wwr6__scrim' aria-hidden='true' />
{(eventName || hostName) && (
<div className='cf-wwr6__top'>
{(live ? liveChip : eventName) && (
<p className='cf-wwr6__chip'>
<Radio size={16} strokeWidth={2.5} aria-hidden='true' />
<span>{live ? liveChip : eventName}</span>
</p>
)}
{hostName && (
<p className='cf-wwr6__chip cf-wwr6__host'>
{hostImage ? (
<img src={hostImage} alt={hostImageAlt} width={56} height={56} />
) : (
<Mic size={16} strokeWidth={2.5} aria-hidden='true' />
)}
<span>
{hostPrefix ? hostPrefix + ' ' : ''}
<strong>{hostName}</strong>
{hostRole && <span className='cf-wwr6__role'>, {hostRole}</span>}
</span>
</p>
)}
</div>
)}
<div key={live ? 'live' : 'wait'} className='cf-wwr6__panel cf-wwr6__rise'>
{live ? (
<>
<h2 className='cf-wwr6__livehead'>{liveTitle}</h2>
{liveLead && <p className='cf-wwr6__livelead'>{liveLead}</p>}
{join}
{actionNote && (
<p id={joinNoteId} className='cf-wwr6__joinnote'>
{actionNote}
</p>
)}
</>
) : (
<>
{valid ? (
<>
{countdownLabel && <p className='cf-wwr6__label'>{countdownLabel}</p>}
<div
className={'cf-wwr6__clock' + (keys.length === 3 ? ' is-3' : '')}
role='timer'
aria-live='off'
aria-label={fill(copy.timerLabel, { time: spoken })}
>
{keys.map((k, i) => (
<React.Fragment key={k}>
{i > 0 && (
<span className='cf-wwr6__sep' aria-hidden='true'>
:
</span>
)}
<span className='cf-wwr6__unit' aria-hidden='true'>
<span className='cf-wwr6__num'>{pad(parts[k])}</span>
<span className='cf-wwr6__lab'>{unit(copy[k], parts[k])}</span>
</span>
</React.Fragment>
))}
</div>
{startLabel && (
<p className='cf-wwr6__when'>
<CalendarClock className='cf-wwr6__ic' size={18} strokeWidth={2.5} aria-hidden='true' />
{startLabel}
</p>
)}
</>
) : startLabel ? (
<p className='cf-wwr6__whenbig'>{startLabel}</p>
) : null}
{tabNote && <p className='cf-wwr6__tab'>{tabNote}</p>}
</>
)}
</div>
</div>
{hasCard && (
<div className='cf-wwr6__card cf-wwr6__rise' style={{ animationDelay: '.14s' }}>
{hasPrep && (
<section aria-labelledby={prepId}>
<div className='cf-wwr6__prephead'>
<h2 id={prepId} className='cf-wwr6__h2'>
{prepTitle}
</h2>
<span className='cf-wwr6__count' aria-live='polite'>
{fill(copy.progress, { done: String(doneCount), total: String(total) })}
</span>
</div>
<div className='cf-wwr6__bar' aria-hidden='true'>
<span style={{ width: pct + '%' }} />
</div>
<ul className='cf-wwr6__list'>
{prepItems.map((item, i) => (
<li key={i} className='cf-wwr6__item'>
<label className='cf-wwr6__tick'>
<input type='checkbox' checked={Boolean(done[i])} onChange={(e) => toggle(i, e.target.checked)} />
<span className='cf-wwr6__box' aria-hidden='true'>
<Check size={16} strokeWidth={3} />
</span>
<span>{item}</span>
</label>
</li>
))}
</ul>
{allReady && (
<p className='cf-wwr6__ready'>
<Check className='cf-wwr6__ic' size={16} strokeWidth={3} aria-hidden='true' />
{copy.allReady}
</p>
)}
</section>
)}
{hasPrep && showChat && <hr className='cf-wwr6__rule' />}
{showChat && (
<section aria-labelledby={chatId}>
<h2 id={chatId} className='cf-wwr6__h2'>
{chatTitle}
</h2>
{chatLead && <p className='cf-wwr6__chatlead'>{chatLead}</p>}
{messages.length > 0 && (
<ul className='cf-wwr6__msgs' aria-live='polite'>
{messages.map((m) => (
<li key={m.id} className='cf-wwr6__msg'>
<span className='cf-wwr6__who'>{copy.you}</span>
<span className='cf-wwr6__bubble'>{m.text}</span>
</li>
))}
</ul>
)}
<form className='cf-wwr6__form' onSubmit={send} noValidate>
<label htmlFor={fieldId} className='cf-wwr6__fl'>
{messageLabel}
</label>
<div className='cf-wwr6__row'>
<input
ref={inputRef}
id={fieldId}
className='cf-wwr6__input'
type='text'
name='message'
autoComplete='off'
placeholder={messagePlaceholder}
maxLength={maxLength}
value={draft}
disabled={isDisabled}
aria-invalid={showErr ? true : undefined}
aria-describedby={fieldDescribed}
onChange={(e) => {
setDraft(e.target.value)
if (err) setErr(false)
}}
/>
<button type='submit' className='cf-wwr6__send' disabled={isDisabled}>
<Send size={20} strokeWidth={2.5} aria-hidden='true' />
<span className='cf-wwr6__sendtxt'>{sendLabel}</span>
</button>
</div>
{showErr && (
<p id={errId} className='cf-wwr6__err' role='alert'>
<AlertCircle className='cf-wwr6__ic' size={16} strokeWidth={2.5} aria-hidden='true' />
{copy.error}
</p>
)}
{chatNote && (
<p id={chatNoteId} className='cf-wwr6__note'>
{chatNote}
</p>
)}
</form>
</section>
)}
</div>
)}
</div>
</div>
<p className='cf-wwr6__sr' aria-live='polite'>
{announce}
</p>
</section>
)
}
export default WebinarWaitingRoom6
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.ceil(ms / 1000)
return {
days: Math.floor(s / 86400),
hours: Math.floor((s % 86400) / 3600),
minutes: Math.floor((s % 3600) / 60),
seconds: s % 60,
}
}
function pad(n: number) {
return n < 10 ? '0' + n : String(n)
}
function unit(c: UnitCopy, n: number) {
return n === 1 ? c.one : c.other
}
function fill(template: string, values: Record<string, string>) {
return Object.keys(values).reduce((s, k) => s.split('{' + k + '}').join(values[k]), template)
}
const CSS = `
.cf-wwr6{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) calc(clamp(64px,8.5vw,120px) + 56px)}
.cf-wwr6 *,.cf-wwr6 *::before,.cf-wwr6 *::after{box-sizing:border-box}
.cf-wwr6__wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-wwr6__head{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:start;margin:0 0 clamp(32px,4vw,48px)}
.cf-wwr6__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)}
.cf-wwr6__punch{padding-top:clamp(0px,.8vw,12px)}
.cf-wwr6__punch p{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty;color:var(--band-ink)}
.cf-wwr6__punch p+p{margin-top:8px}
.cf-wwr6__punch p.is-punch{margin-top:16px;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em}
.cf-wwr6__scene{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
.cf-wwr6__scene.has-card{grid-template-columns:minmax(0,1fr) 72px minmax(0,384px)}
.cf-wwr6__stage{position:relative;isolation:isolate;overflow:hidden;grid-column:1/-1;grid-row:1;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;gap:24px;min-height:clamp(440px,42vw,600px);padding:clamp(20px,3vw,32px);border:1px solid oklch(from var(--band-ink) l c h / .14);border-radius:var(--radius,12px);background:oklch(from var(--band) calc(l - .05) c h);color:var(--band-ink);box-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-wwr6__scene.has-card .cf-wwr6__stage{grid-column:1/3;padding-right:calc(clamp(20px,3vw,32px) + 72px)}
.cf-wwr6__img{position:absolute;inset:0;z-index:-2;display:block;width:100%;height:100%;object-fit:cover;object-position:center 40%}
.cf-wwr6__scrim{position:absolute;inset:0;z-index:-1;background:linear-gradient(to top,oklch(from var(--band) calc(l - .04) c h / .94) 0%,oklch(from var(--band) l c h / .88) 40%,oklch(from var(--band) l c h / .4) 72%,oklch(from var(--band) l c h / .5) 100%)}
.cf-wwr6__top{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.cf-wwr6__chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;max-width:100%;margin:0;padding:4px 12px;border-radius:999px;border:1px solid oklch(from var(--band-ink) l c h / .18);background:oklch(from var(--band) l c h / .84);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:var(--band-ink);font-size:.875rem;font-weight:800;line-height:1.2}
.cf-wwr6__chip svg{flex:none}
.cf-wwr6__chip span{min-width:0}
.cf-wwr6__chip img{flex:none;display:block;width:28px;height:28px;margin-left:-8px;border-radius:999px;object-fit:cover}
.cf-wwr6__host{font-weight:600}
.cf-wwr6__host strong{font-weight:800}
.cf-wwr6__panel{position:relative;z-index:1}
.cf-wwr6__label{margin:0 0 12px;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:700;line-height:1.4;color:var(--band-ink)}
.cf-wwr6__clock{display:flex;align-items:flex-start;gap:clamp(8px,1.4vw,16px);font-variant-numeric:tabular-nums;color:var(--band-ink)}
.cf-wwr6__unit{display:flex;flex-direction:column;align-items:flex-start}
.cf-wwr6__num,.cf-wwr6__sep{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.75rem,5.6vw,5rem);line-height:1;letter-spacing:-0.03em}
.cf-wwr6__sep{color:oklch(from var(--band-ink) l c h / .45)}
.cf-wwr6__lab{margin-top:12px;font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.02em}
.cf-wwr6__when{margin:16px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:600;line-height:1.5;text-wrap:pretty;color:var(--band-ink)}
.cf-wwr6__whenbig{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--band-ink)}
.cf-wwr6__tab{margin:8px 0 0;max-width:60ch;font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty;color:var(--band-ink)}
.cf-wwr6__ic{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-wwr6__livehead{margin:0 0 12px;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--band-ink)}
.cf-wwr6__livelead{margin:0 0 24px;max-width:52ch;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty;color:var(--band-ink)}
.cf-wwr6__joinnote{margin:12px 0 0;font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty;color:var(--band-ink)}
.cf-wwr6__join{--wb:var(--button-bg,var(--cta));--wb2:var(--button-bg-2,var(--cta-2));--wsh:var(--shadow,oklch(.22 .03 260));display:inline-flex;align-items:center;justify-content:center;min-height:72px;max-width:100%;padding:0 32px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--wb) calc(l + .04) c h),oklch(from var(--wb2) 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-wrap:balance;text-decoration:none;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wb) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--wb) calc(l - .16) c h),0 1px 2px oklch(from var(--wsh) l c h / .35),0 8px 16px -6px oklch(from var(--wsh) l c h / .5));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-wwr6__join:hover,.cf-wwr6__join.is-hover{transform:translateY(-1px);background:linear-gradient(oklch(from var(--wb) calc(l - .01) c h),oklch(from var(--wb2) calc(l - .07) c h));box-shadow:inset 0 1px 0 oklch(from var(--wb) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--wb) calc(l - .2) c h),0 1px 2px oklch(from var(--wsh) l c h / .4),0 10px 20px -6px oklch(from var(--wsh) l c h / .6)}
.cf-wwr6__join:active,.cf-wwr6__join.is-press{transform:translateY(1px);background:linear-gradient(oklch(from var(--wb) calc(l - .05) c h),oklch(from var(--wb2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--wb) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--wb) calc(l - .16) c h),0 1px 2px oklch(from var(--wsh) l c h / .35)}
.cf-wwr6__join:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-wwr6__join:disabled{cursor:not-allowed;transform:none;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm))}
.cf-wwr6__card{position:relative;z-index:2;grid-column:2/4;grid-row:1;margin:48px 0;padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--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-wwr6__card section{margin:0}
.cf-wwr6__h2{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance;color:var(--ink)}
.cf-wwr6__prephead{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px}
.cf-wwr6__prephead .cf-wwr6__h2{flex:1 1 14rem;min-width:0}
.cf-wwr6__count{flex:none;display:inline-flex;align-items:center;min-height:28px;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;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-wwr6__bar{height:6px;margin:16px 0 4px;border-radius:999px;overflow:hidden;background:color-mix(in oklch,var(--ink) 8%,var(--card))}
.cf-wwr6__bar span{display:block;height:100%;border-radius:inherit;background:var(--success);transition:width .3s cubic-bezier(.2,.7,.2,1)}
.cf-wwr6__list{list-style:none;margin:0;padding:0}
.cf-wwr6__item{margin:0}
.cf-wwr6__item+.cf-wwr6__item{border-top:1px solid oklch(from var(--ink) l c h / .1)}
.cf-wwr6__tick{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;align-items:start;padding:12px 0;cursor:pointer;color:var(--ink);font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:600;line-height:1.5;text-wrap:pretty}
.cf-wwr6__tick input{position:absolute;top:12px;left:0;width:28px;height:28px;margin:0;opacity:0;cursor:pointer}
.cf-wwr6__box{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;border:2px solid oklch(from var(--ink) l c h / .32);background:var(--card);color:transparent;transition:background .16s ease,border-color .16s ease}
.cf-wwr6__tick:hover .cf-wwr6__box{border-color:oklch(from var(--ink) l c h / .56)}
.cf-wwr6__tick input:checked+.cf-wwr6__box{background:var(--success);border-color:var(--success);color:var(--cf-wwr6-glyph,#fff)}
.cf-wwr6__tick input:checked+.cf-wwr6__box svg{animation:cf-wwr6-pop .3s cubic-bezier(.2,.7,.2,1) both}
.cf-wwr6__tick input:focus-visible+.cf-wwr6__box{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .5);outline-offset:2px}
.cf-wwr6__ready{margin:12px 0 0;color:var(--success);font-size:.9375rem;font-weight:700;line-height:1.4}
.cf-wwr6__rule{height:1px;margin:24px 0;border:0;background:oklch(from var(--ink) l c h / .12)}
.cf-wwr6__chatlead{margin:8px 0 0;color:var(--muted);font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-wwr6__msgs{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.cf-wwr6__msg{display:flex;flex-direction:column;align-items:flex-end;gap:4px;max-width:88%;margin:0 0 0 auto}
.cf-wwr6__who{color:var(--muted);font-size:.875rem;font-weight:700;line-height:1.2}
.cf-wwr6__bubble{display:block;padding:12px 16px;border-radius:14px 14px 4px 14px;background:color-mix(in oklch,var(--ink) 5%,var(--card));color:var(--ink);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.45;overflow-wrap:anywhere;text-wrap:pretty}
.cf-wwr6__form{margin:16px 0 0}
.cf-wwr6__fl{display:block;margin:0 0 8px;color:var(--label-ink,var(--ink));font-size:1rem;font-weight:700;line-height:1.3}
.cf-wwr6__row{display:flex;gap:8px}
.cf-wwr6__input{flex:1 1 auto;min-width:0;height:56px;margin:0;padding:0 16px;font:inherit;font-size:17px;color:var(--field-ink);background:var(--field);border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));transition:border-color .16s ease,box-shadow .16s ease}
.cf-wwr6__input::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
.cf-wwr6__input:focus{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-wwr6__input[aria-invalid=true]{border-color:var(--danger)}
.cf-wwr6__input[aria-invalid=true]:focus{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .3)}
.cf-wwr6__input:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--field-ink) 5%,var(--field))}
.cf-wwr6__send{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:56px;height:56px;margin:0;padding:0;font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);font-size:1.0625rem;line-height:1.15;text-transform:var(--button-case,none);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));cursor:pointer;transition:background .16s ease,transform .16s ease,box-shadow .16s ease}
.cf-wwr6__send:hover{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .04) c h)}
.cf-wwr6__send:active{transform:translateY(1px);box-shadow:none;background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .07) c h)}
.cf-wwr6__send:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .5);outline-offset:2px}
.cf-wwr6__send:disabled{cursor:not-allowed;opacity:.6;transform:none;background:var(--button-2-bg,var(--secondary))}
.cf-wwr6__sendtxt{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-wwr6__err{margin:8px 0 0;color:var(--danger);font-size:.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-wwr6__note{margin:8px 0 0;color:var(--muted);font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-wwr6__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-wwr6__rise{animation:cf-wwr6-rise .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes cf-wwr6-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cf-wwr6-pop{from{transform:scale(.9)}}
@media (max-width:960px){
.cf-wwr6__head{grid-template-columns:minmax(0,1fr);gap:16px}
.cf-wwr6__punch{padding-top:0}
.cf-wwr6__scene.has-card{grid-template-columns:minmax(0,1fr)}
.cf-wwr6__scene.has-card .cf-wwr6__stage{grid-column:1;padding-right:clamp(20px,3vw,32px);padding-bottom:calc(clamp(20px,3vw,32px) + 64px)}
.cf-wwr6__card{grid-column:1;grid-row:2;margin:-64px clamp(10px,3vw,40px) 0}
}
@media (max-width:560px){
.cf-wwr6__stage{min-height:480px}
.cf-wwr6__row{flex-wrap:wrap}
.cf-wwr6__input{flex:1 1 100%}
.cf-wwr6__send{width:100%}
.cf-wwr6__sendtxt{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
.cf-wwr6__scrim{background:linear-gradient(to top,oklch(from var(--band) l c h / .96) 0%,oklch(from var(--band) l c h / .92) 62%,oklch(from var(--band) l c h / .5) 86%,oklch(from var(--band) l c h / .58) 100%)}
.cf-wwr6__clock{justify-content:space-between;gap:8px}
.cf-wwr6__sep{display:none}
.cf-wwr6__num{font-size:min(13vw,3.5rem)}
.cf-wwr6__clock.is-3 .cf-wwr6__num{font-size:min(16vw,4.25rem)}
.cf-wwr6__role{display:none}
.cf-wwr6__join{width:100%;padding:0 20px}
}
@media (prefers-reduced-motion:reduce){
.cf-wwr6__rise,.cf-wwr6__tick input:checked+.cf-wwr6__box svg{animation:none}
.cf-wwr6__join,.cf-wwr6__send,.cf-wwr6__box,.cf-wwr6__input,.cf-wwr6__bar span{transition:none}
.cf-wwr6__join:hover,.cf-wwr6__join.is-hover,.cf-wwr6__join:active,.cf-wwr6__join.is-press,.cf-wwr6__send:active{transform:none}
}
`
pieces/hero/webinar-waiting-room-6/specimen.tsx 60 lines
import __studioImage59539b0e from "../assets/d38a214bdbf339db.webp";
import __studioImage06a8a483 from "../assets/850b041addca74b1.webp";
// Specimen: the Main Street Ads live workshop waiting room, counting down to a start 38 minutes out.
import * as React from 'react'
import { WebinarWaitingRoom6 } from '../webinar-waiting-room-6'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export default function WebinarWaitingRoom6Specimen({ state = 'default' }: { state?: SpecimenState }) {
const [start] = React.useState(() => new Date(Date.now() + (38 * 60 + 20) * 1000))
const time = start.toLocaleTimeString([], { hour: 'numeric', minute: '2-digit' })
const live = state === 'hover' || state === 'active' || state === 'disabled'
return (
<WebinarWaitingRoom6
state={state}
startsAt={start.toISOString()}
startLabel={`Today at ${time}, your time`}
phase={live ? 'live' : undefined}
eventName='The Local Ad Fix · Live'
hostName='Rosa Delgado'
hostRole='Founder, Main Street Ads'
hostImage={slot(
'presenter',
__studioImage59539b0e,
)}
headline='You’re in. The Local Ad Fix starts right here.'
liveHeadline='We’re live. Pull up a chair.'
punch={[
'Your seat is saved.',
'In the first ten minutes, Rosa shows the one ad setting that quietly wastes most local budgets.',
'Stay.',
]}
livePunch={['The clock hit zero.', 'Rosa is on the stage and the door is open.', 'Go.']}
stageImage={slot(
'scene',
__studioImage06a8a483,
)}
stageImageAlt='The Local Ad Fix studio set, ready for the live workshop'
liveLead='Rosa is opening with the one ad setting that wastes most local budgets. Come in now and catch it from the start.'
actionLabel='Join The Live Workshop'
actionNote='Free live workshop · Your seat is saved'
prepTitle='While you wait, get these ready'
prepItems={[
'Your ads account open in a second tab',
'Last month’s ad spend and calls, on paper',
'The one service you want more calls for',
]}
defaultDone={[0]}
chatTitle='Say hi before we start'
chatLead='Where’s your shop, and what do you want more of: calls, bookings or walk-ins?'
messagePlaceholder='Hi from Dayton! I run HVAC.'
defaultMessages={state === 'default' ? ['Hi from Asheville! Bakery owner, want more weekend orders.'] : []}
onAction={() => {}}
onSubmit={() => {}}
/>
)
}
| Name | Type | Details |
|---|---|---|
startsAt OptionalWebinarWaitingRoom6 |
string |
|
startLabel OptionalWebinarWaitingRoom6 |
React.ReactNode |
|
phase OptionalWebinarWaitingRoom6 |
WebinarWaitingRoom6Phase |
|
eventName OptionalWebinarWaitingRoom6 |
string |
|
hostName OptionalWebinarWaitingRoom6 |
string |
|
hostRole OptionalWebinarWaitingRoom6 |
string |
|
hostPrefix OptionalWebinarWaitingRoom6 |
string |
|
hostImage OptionalWebinarWaitingRoom6 |
string |
|
hostImageAlt OptionalWebinarWaitingRoom6 |
string |
|
headline OptionalWebinarWaitingRoom6 |
React.ReactNode |
|
liveHeadline OptionalWebinarWaitingRoom6 |
React.ReactNode |
|
punch OptionalWebinarWaitingRoom6 |
React.ReactNode[] |
|
livePunch OptionalWebinarWaitingRoom6 |
React.ReactNode[] |
|
stageImage OptionalWebinarWaitingRoom6 |
string |
|
stageImageAlt OptionalWebinarWaitingRoom6 |
string |
|
countdownLabel OptionalWebinarWaitingRoom6 |
string |
|
tabNote OptionalWebinarWaitingRoom6 |
React.ReactNode |
|
liveChip OptionalWebinarWaitingRoom6 |
string |
|
liveTitle OptionalWebinarWaitingRoom6 |
React.ReactNode |
|
liveLead OptionalWebinarWaitingRoom6 |
React.ReactNode |
|
actionLabel OptionalWebinarWaitingRoom6 |
string |
|
actionNote OptionalWebinarWaitingRoom6 |
React.ReactNode |
|
href OptionalWebinarWaitingRoom6 |
string |
|
onAction OptionalWebinarWaitingRoom6 |
() => void |
|
onLive OptionalWebinarWaitingRoom6 |
() => void |
|
prepTitle OptionalWebinarWaitingRoom6 |
string |
|
prepItems OptionalWebinarWaitingRoom6 |
React.ReactNode[] |
|
defaultDone OptionalWebinarWaitingRoom6 |
number[] |
|
onItemToggle OptionalWebinarWaitingRoom6 |
(index: number, done: boolean) => void |
|
showChat OptionalWebinarWaitingRoom6 |
boolean |
|
chatTitle OptionalWebinarWaitingRoom6 |
string |
|
chatLead OptionalWebinarWaitingRoom6 |
React.ReactNode |
|
messageLabel OptionalWebinarWaitingRoom6 |
string |
|
messagePlaceholder OptionalWebinarWaitingRoom6 |
string |
|
sendLabel OptionalWebinarWaitingRoom6 |
string |
|
chatNote OptionalWebinarWaitingRoom6 |
React.ReactNode |
|
defaultMessages OptionalWebinarWaitingRoom6 |
string[] |
|
maxLength OptionalWebinarWaitingRoom6 |
number |
|
onSubmit OptionalWebinarWaitingRoom6 |
(message: string) => void |
|
copy OptionalWebinarWaitingRoom6 |
Partial<WebinarWaitingRoom6Copy> |
|
disabled OptionalWebinarWaitingRoom6 |
boolean |
|
state OptionalWebinarWaitingRoom6 |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
|
className OptionalWebinarWaitingRoom6 |
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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter- A photo of the host, coach or founder.
scene- A wide atmosphere photo behind or beside the copy.
-
850b041addca74b1.webp
image/webp · 58.4 KB
-
d38a214bdbf339db.webp
image/webp · 39 KB