Webinar Waiting Room 5
Webinar waiting room, stay-to-the-end split: the dark stage answers ‘when?’ with a live countdown, a your-time /
Use it in a prompt
Use hero/webinar-waiting-room-5 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-5.tsx. - Import it and pass your copy and images (Props tab):
import { WebinarWaitingRoom5 } from "@/components/funneldna/hero/webinar-waiting-room-5"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/webinar-waiting-room-5/component.tsx 621 lines
// layout: interview-qa
// Webinar waiting room, stay-to-the-end split: the dark stage answers ‘when?’ with a live countdown, a your-time /
// host-time toggle and the calendar action; the light side answers ‘why stay?’ with the end-of-session bonus.
import * as React from 'react'
import { CalendarPlus, Check, Clock, MapPin, Mic, Monitor, Radio } from 'lucide-react'
import { FX_HOST, Glow, Pattern, Spot } from '../fx/fx'
import checklist from '../fx/spots/checklist'
type UnitCopy = { one: string; other: string }
type UnitKey = 'days' | 'hours' | 'minutes' | 'seconds'
/** local: the visitor’s device zone · host: the zone the host runs the session in. */
export type WebinarWaitingRoom5TimeMode = 'local' | 'host'
export type WebinarWaitingRoom5Copy = {
days: UnitCopy
hours: UnitCopy
minutes: UnitCopy
seconds: UnitCopy
/** Screen-reader timer label; {time} is replaced with the spoken time left. */
timerLabel: string
/** Chip shown once the countdown reaches zero. */
liveChip: string
/** The honest line that replaces the countdown at zero. */
liveLine: string
/** Announced once to screen readers at zero. */
liveAnnounce: string
/** Screen-reader legend for the time toggle. */
toggleLegend: string
yourTime: string
hostTime: string
/** Caption under the local start time; {zone} is the device zone’s city. */
localCaption: string
/** Caption under the host start time; {zone} is hostZoneLabel or the zone’s city. */
hostCaption: string
}
const DEFAULT_COPY: WebinarWaitingRoom5Copy = {
days: { one: 'Day', other: 'Days' },
hours: { one: 'Hour', other: 'Hours' },
minutes: { one: 'Minute', other: 'Minutes' },
seconds: { one: 'Second', other: 'Seconds' },
timerLabel: '{time} until we go live',
liveChip: 'Live now',
liveLine: 'We’re starting now.',
liveAnnounce: 'The countdown has reached zero. The session is starting now.',
toggleLegend: 'Show the start time in',
yourTime: 'Your time',
hostTime: 'Host’s time',
localCaption: 'Your time · {zone}, from your device',
hostCaption: 'Host’s time · {zone}',
}
export type WebinarWaitingRoom5Bonus = {
name: string
/** What it is, in one or two sentences. */
detail?: string
/** item-1 slot: the bonus on a transparent background. */
image?: string
imageAlt?: string
/** Supplied value only, e.g. '$49 value'; shown struck. */
value?: string
/** What it costs the visitor who stays, e.g. 'Free when you stay'. */
nowLabel?: string
/** When it is shared, e.g. 'Shared live in the final minutes'. */
when?: string
}
export type WebinarWaitingRoom5Props = {
/** ISO date-time of the real start; the only thing that drives the countdown. */
startsAt: string
/** IANA zone the host runs the session in, e.g. 'America/Chicago'; turns on the time toggle. */
hostTimeZone?: string
/** How the host zone is named in its caption; defaults to the zone’s city. */
hostZoneLabel?: string
/** Shown instead of the countdown when startsAt cannot be read. */
startLabel?: string
/** Locale for dates and times; defaults to the visitor’s. */
locale?: string
seatLabel?: string
sessionTitle?: React.ReactNode
sessionLead?: React.ReactNode
whenQuestion?: string
calendarQuestion?: string
calendarAnswer?: React.ReactNode
actionLabel?: string
actionNote?: string
/** Question above the live button once the countdown ends. */
liveQuestion?: string
liveAnswer?: React.ReactNode
/** Button once the countdown ends; without it no button shows at zero. */
liveActionLabel?: string
liveActionNote?: string
href?: string
liveHref?: string
/** Called with the action clicked: the calendar action before zero, the live action after. */
onAction?: (kind: 'calendar' | 'live') => void
onTimeZoneChange?: (mode: WebinarWaitingRoom5TimeMode) => void
/** Fires once when the countdown reaches zero. */
onLive?: () => void
stayHeadline?: React.ReactNode
/** Phrase set after the headline in the accent colour. */
stayHighlight?: React.ReactNode
stayLead?: React.ReactNode
endQuestion?: string
/** What happens at the end; hidden when empty. */
endAnswer?: React.ReactNode
bonusQuestion?: string
/** The end-of-session bonus; only shown when supplied. */
bonus?: WebinarWaitingRoom5Bonus
leaveQuestion?: string
/** Shown instead of the bonus when no bonus is supplied. */
leaveWith?: React.ReactNode[]
tabNote?: React.ReactNode
copy?: Partial<WebinarWaitingRoom5Copy>
disabled?: boolean
state?: 'default' | 'hover' | 'active' | 'disabled'
className?: string
}
const DEFAULT_LEAVE: React.ReactNode[] = [
'The full walkthrough, start to finish',
'Answers to the questions you bring',
'A clear next step you can take the same day',
]
export function WebinarWaitingRoom5(props: WebinarWaitingRoom5Props) {
const {
startsAt,
hostTimeZone,
hostZoneLabel,
startLabel,
locale,
seatLabel = 'Your seat is saved',
sessionTitle = 'Your live session',
sessionLead = 'Keep this page handy. Everything you need for the start is right here.',
whenQuestion = 'When do we go live?',
calendarQuestion = 'How do I make sure I’m there?',
calendarAnswer = 'Put the start in your calendar now, so it finds you.',
actionLabel = 'Send it to my calendar',
actionNote = 'Saves the start time to your calendar in one tap.',
liveQuestion = 'Where do I watch?',
liveAnswer,
liveActionLabel,
liveActionNote,
href,
liveHref,
onAction,
onTimeZoneChange,
onLive,
stayHeadline = 'Stay to the very end.',
stayHighlight = 'The best part comes last.',
stayLead = 'The last few minutes are where the session comes together. Leave early and you miss the part you came for.',
endQuestion = 'What happens in the last few minutes?',
endAnswer,
bonusQuestion = 'What do I get for staying?',
bonus,
leaveQuestion = 'What will I leave with?',
leaveWith = DEFAULT_LEAVE,
tabNote = 'Keep this tab open. The countdown updates on its own.',
disabled,
state = 'default',
className,
} = props
const copy: WebinarWaitingRoom5Copy = { ...DEFAULT_COPY, ...props.copy }
const uid = React.useId()
const headId = uid + '-h'
const noteId = uid + '-n'
const radioName = uid + '-tz'
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 liveCb = React.useRef(onLive)
liveCb.current = onLive
const fired = React.useRef(false)
React.useEffect(() => {
if (live && !fired.current) {
fired.current = true
liveCb.current?.()
}
}, [live])
const [localTz, setLocalTz] = React.useState<string | undefined>(undefined)
React.useEffect(() => {
try {
setLocalTz(Intl.DateTimeFormat().resolvedOptions().timeZone)
} catch {
setLocalTz(undefined)
}
}, [])
const hasHost = validZone(hostTimeZone)
const [mode, setMode] = React.useState<WebinarWaitingRoom5TimeMode>('local')
const shown: WebinarWaitingRoom5TimeMode = hasHost ? mode : 'local'
const read = valid ? readout(target, shown === 'host' ? hostTimeZone : localTz, locale) : null
const caption =
shown === 'host'
? fill(copy.hostCaption, { zone: hostZoneLabel || cityOf(hostTimeZone) || (read ? read.zone : '') })
: fill(copy.localCaption, { zone: cityOf(localTz) || (read ? read.zone : '') })
const parts = split(left)
const tiles: { key: UnitKey; value: number }[] = [
{ key: 'days', value: parts.days },
{ key: 'hours', value: parts.hours },
{ key: 'minutes', value: parts.minutes },
{ key: 'seconds', value: parts.seconds },
]
const spoken = tiles.map((t) => t.value + ' ' + unitLabel(copy[t.key], t.value).toLowerCase()).join(', ')
const isDisabled = Boolean(disabled) || state === 'disabled'
const kind: 'calendar' | 'live' = live ? 'live' : 'calendar'
const label = live ? liveActionLabel : actionLabel
const note = live ? liveActionNote : actionNote
const answer = live ? liveAnswer : calendarAnswer
const link = live ? liveHref ?? href : href
const ActionIcon = live ? Radio : CalendarPlus
const btnCls = ['cf-wwr5__btn', state === 'hover' ? 'is-hover' : '', state === 'active' ? 'is-active' : '']
.filter(Boolean)
.join(' ')
const btnInner = (
<span className='cf-wwr5__btnlabel'>
<ActionIcon className='cf-wwr5__btnico' size={20} strokeWidth={2.5} aria-hidden='true' />
{label}
</span>
)
return (
<section
className={['cf-wwr5', live ? 'is-live' : '', className].filter(Boolean).join(' ')}
aria-labelledby={headId}
>
<style>{CSS}</style>
<div className='cf-wwr5__stage' style={FX_HOST}>
<div className='cf-wwr5__fx' aria-hidden='true'>
<Pattern name='grid' fade='corner' />
</div>
<Glow />
<div className='cf-wwr5__inner'>
<p className='cf-wwr5__seat cf-wwr5__rise'>
<span className='cf-wwr5__badge' aria-hidden='true'>
<Check size={14} strokeWidth={3} />
</span>
<span>{seatLabel}</span>
</p>
<h1 id={headId} className='cf-wwr5__title cf-wwr5__rise d1'>
{sessionTitle}
</h1>
{sessionLead ? <p className='cf-wwr5__lead cf-wwr5__rise d1'>{sessionLead}</p> : null}
<div className='cf-wwr5__qa cf-wwr5__rise d2'>
<h2 className='cf-wwr5__q'>{whenQuestion}</h2>
{valid && !live ? (
<div className='cf-wwr5__clock' role='timer' aria-live='off' aria-label={fill(copy.timerLabel, { time: spoken })}>
{tiles.map((t) => (
<div className='cf-wwr5__tile' key={t.key} aria-hidden='true'>
<span className='cf-wwr5__num' suppressHydrationWarning>
{String(t.value).padStart(2, '0')}
</span>
<span className='cf-wwr5__unit'>{unitLabel(copy[t.key], t.value)}</span>
</div>
))}
</div>
) : null}
{live ? (
<div className='cf-wwr5__live'>
<span className='cf-wwr5__livechip'>
<Radio size={16} strokeWidth={2.5} aria-hidden='true' />
{copy.liveChip}
</span>
<p className='cf-wwr5__liveline'>{copy.liveLine}</p>
</div>
) : null}
{read ? (
<div className='cf-wwr5__when'>
{hasHost ? (
<fieldset className='cf-wwr5__seg'>
<legend className='cf-wwr5__sr'>{copy.toggleLegend}</legend>
{(['local', 'host'] as const).map((m) => (
<label className='cf-wwr5__opt' key={m}>
<input
type='radio'
name={radioName}
value={m}
checked={mode === m}
onChange={() => {
setMode(m)
onTimeZoneChange?.(m)
}}
/>
<span>
{m === 'local' ? (
<MapPin size={16} strokeWidth={2.5} aria-hidden='true' />
) : (
<Mic size={16} strokeWidth={2.5} aria-hidden='true' />
)}
{m === 'local' ? copy.yourTime : copy.hostTime}
</span>
</label>
))}
</fieldset>
) : null}
<div className='cf-wwr5__read' aria-live='polite'>
<p className='cf-wwr5__date' suppressHydrationWarning>
{read.date}
</p>
<p className='cf-wwr5__time' suppressHydrationWarning>
{read.time} <span className='cf-wwr5__zone'>{read.zone}</span>
</p>
<p className='cf-wwr5__cap' suppressHydrationWarning>
{caption}
</p>
</div>
</div>
) : startLabel ? (
<p className='cf-wwr5__time'>{startLabel}</p>
) : null}
</div>
{label ? (
<div className='cf-wwr5__qa cf-wwr5__rise d3'>
<h2 className='cf-wwr5__q'>{live ? liveQuestion : calendarQuestion}</h2>
{answer ? <p className='cf-wwr5__ans'>{answer}</p> : null}
<div className='cf-wwr5__cta'>
{link && !isDisabled ? (
<a
className={btnCls}
href={link}
onClick={() => onAction?.(kind)}
aria-describedby={note ? noteId : undefined}
>
{btnInner}
</a>
) : (
<button
type='button'
className={btnCls}
disabled={isDisabled}
onClick={() => onAction?.(kind)}
aria-describedby={note ? noteId : undefined}
>
{btnInner}
</button>
)}
{note ? (
<p id={noteId} className='cf-wwr5__note'>
{note}
</p>
) : null}
</div>
</div>
) : null}
<p className='cf-wwr5__sr' role='status'>
{live ? copy.liveAnnounce : ''}
</p>
</div>
</div>
<div className='cf-wwr5__room'>
<div className='cf-wwr5__inner'>
<h2 className='cf-wwr5__stay cf-wwr5__rise d1'>
{stayHeadline}
{stayHighlight ? (
<>
{' '}
<span className='cf-wwr5__em'>{stayHighlight}</span>
</>
) : null}
</h2>
{stayLead ? <p className='cf-wwr5__stay-lead cf-wwr5__rise d2'>{stayLead}</p> : null}
{endAnswer ? (
<div className='cf-wwr5__qa cf-wwr5__rise d2'>
<h3 className='cf-wwr5__rq'>{endQuestion}</h3>
<p className='cf-wwr5__ans'>{endAnswer}</p>
</div>
) : null}
{bonus ? (
<div className='cf-wwr5__qa cf-wwr5__rise d3'>
<h3 className='cf-wwr5__rq'>{bonusQuestion}</h3>
<div className={'cf-wwr5__card cf-wwr5__bonus' + (bonus.image ? '' : ' is-plain')}>
{bonus.image ? (
<img
className='cf-wwr5__bimg'
src={bonus.image}
alt={bonus.imageAlt ?? bonus.name}
width={336}
height={336}
loading='lazy'
decoding='async'
/>
) : null}
<div className='cf-wwr5__bbody'>
<p className='cf-wwr5__bname'>{bonus.name}</p>
{bonus.detail ? <p className='cf-wwr5__bdetail'>{bonus.detail}</p> : null}
{bonus.value || bonus.nowLabel ? (
<p className='cf-wwr5__bprice'>
{bonus.value ? <s className='cf-wwr5__was'>{bonus.value}</s> : null}
{bonus.nowLabel ? <strong className='cf-wwr5__now'>{bonus.nowLabel}</strong> : null}
</p>
) : null}
{bonus.when ? (
<p className='cf-wwr5__bwhen'>
<Clock className='cf-wwr5__ico' size={16} strokeWidth={2.5} aria-hidden='true' />
{bonus.when}
</p>
) : null}
</div>
</div>
</div>
) : leaveWith.length ? (
<div className='cf-wwr5__qa cf-wwr5__rise d3'>
<div className='cf-wwr5__leavehead'>
<h3 className='cf-wwr5__rq'>{leaveQuestion}</h3>
<span className='cf-wwr5__spot' aria-hidden='true'>
<Spot src={checklist} size={72} />
</span>
</div>
<ul className='cf-wwr5__card cf-wwr5__leave'>
{leaveWith.map((item, i) => (
<li key={i}>
<span className='cf-wwr5__tick' aria-hidden='true'>
<Check size={14} strokeWidth={3} />
</span>
<span>{item}</span>
</li>
))}
</ul>
</div>
) : null}
{tabNote ? (
<p className='cf-wwr5__tab cf-wwr5__rise d4'>
<Monitor className='cf-wwr5__ico' size={16} strokeWidth={2.5} aria-hidden='true' />
{tabNote}
</p>
) : null}
</div>
</div>
</section>
)
}
export default WebinarWaitingRoom5
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) {
const total = Math.floor(ms / 1000)
return {
days: Math.floor(total / 86400),
hours: Math.floor((total % 86400) / 3600),
minutes: Math.floor((total % 3600) / 60),
seconds: total % 60,
}
}
function unitLabel(unit: UnitCopy, value: number) {
return value === 1 ? unit.one : unit.other
}
function fill(template: string, values: Record<string, string>) {
return Object.keys(values).reduce((s, k) => s.split('{' + k + '}').join(values[k]), template)
}
function cityOf(zone?: string) {
if (!zone) return ''
const last = zone.split('/').pop() ?? zone
return last.split('_').join(' ')
}
function validZone(zone?: string) {
if (!zone) return false
try {
return Boolean(new Intl.DateTimeFormat('en-US', { timeZone: zone }))
} catch {
return false
}
}
function readout(ms: number, timeZone: string | undefined, locale: string | undefined) {
try {
const d = new Date(ms)
const date = new Intl.DateTimeFormat(locale, { weekday: 'long', month: 'long', day: 'numeric', timeZone }).format(d)
const time = new Intl.DateTimeFormat(locale, { hour: 'numeric', minute: '2-digit', timeZone }).format(d)
const zonePart = new Intl.DateTimeFormat(locale, { hour: 'numeric', timeZoneName: 'short', timeZone })
.formatToParts(d)
.find((p) => p.type === 'timeZoneName')
return { date, time, zone: zonePart ? zonePart.value : '' }
} catch {
return null
}
}
const CSS = `
.cf-wwr5{--wwr5-gutter:clamp(16px,5vw,48px);--wwr5-seam:clamp(32px,4.5vw,72px);--wwr5-pt:clamp(56px,8vw,112px);--wwr5-pb:clamp(64px,8.5vw,120px);--wwr5-ease:cubic-bezier(.2,.7,.2,1);--wwr5-shadow:var(--shadow,oklch(.22 .03 256));--wwr5-subhead:var(--subhead-ink,var(--accent));--wwr5-on-band:color-mix(in oklab,var(--band-ink) 84%,var(--band));display:grid;grid-template-columns:minmax(0,1fr);background:var(--surface);color:var(--ink);font-family:var(--font-body);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;overflow-x:clip}
.cf-wwr5 *,.cf-wwr5 *::before,.cf-wwr5 *::after{box-sizing:border-box}
.cf-wwr5 :where(h1,h2,h3,p,ul,li,fieldset,legend){margin:0;padding:0}
.cf-wwr5 :where(ul){list-style:none}
.cf-wwr5 :where(fieldset){border:0;min-width:0}
.cf-wwr5__stage,.cf-wwr5__room{display:grid;min-width:0;padding:var(--wwr5-pt) var(--wwr5-gutter) var(--wwr5-pb)}
.cf-wwr5__stage{position:relative;isolation:isolate;overflow:hidden;background:var(--band);color:var(--band-ink)}
.cf-wwr5__room{background:var(--surface);color:var(--ink)}
.cf-wwr5__fx{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.6;-webkit-mask-image:radial-gradient(130% 75% at 100% 0,black 0,transparent 62%);mask-image:radial-gradient(130% 75% at 100% 0,black 0,transparent 62%)}
.cf-wwr5__inner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:stretch;width:100%;max-width:520px;min-width:0;justify-self:center;container-type:inline-size}
@media (min-width:900px){
.cf-wwr5{grid-template-columns:1fr 1fr}
.cf-wwr5__stage{padding-inline-end:var(--wwr5-seam)}
.cf-wwr5__room{padding-inline-start:var(--wwr5-seam)}
.cf-wwr5__stage .cf-wwr5__inner{justify-self:end}
.cf-wwr5__room .cf-wwr5__inner{justify-self:start}
}
.cf-wwr5__seat{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:4px 14px 4px 5px;margin-bottom:16px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .12);font-size:.875rem;font-weight:800;line-height:1.2}
.cf-wwr5__badge,.cf-wwr5__tick{display:inline-grid;place-items:center;flex:none;border-radius:999px;background:var(--success);color:var(--success-glyph,#fff)}
.cf-wwr5__badge{width:22px;height:22px}
.cf-wwr5__title,.cf-wwr5__stay,.cf-wwr5__liveline{font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance}
.cf-wwr5__title{margin-bottom:16px}
.cf-wwr5__lead{margin-bottom:40px;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--wwr5-on-band);text-wrap:pretty}
.cf-wwr5__qa + .cf-wwr5__qa{margin-top:40px}
.cf-wwr5__q,.cf-wwr5__rq{margin-bottom:16px;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:800;letter-spacing:-0.01em;text-wrap:balance}
.cf-wwr5__rq{color:var(--wwr5-subhead)}
.cf-wwr5__ans{margin-bottom:20px;color:var(--wwr5-on-band);text-wrap:pretty}
.cf-wwr5__room .cf-wwr5__ans{margin-bottom:0;color:var(--ink)}
.cf-wwr5__clock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cf-wwr5__tile{display:grid;justify-items:center;gap:8px;min-width:0;padding:16px 4px 12px;border-radius:var(--radius,12px);background:oklch(from var(--band-ink) l c h / .08);box-shadow:inset 0 1px 0 oklch(from var(--band-ink) l c h / .14),inset 0 0 0 1px oklch(from var(--band-ink) l c h / .08)}
.cf-wwr5__num{font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;font-weight:800;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
.cf-wwr5__unit{font-size:.875rem;line-height:1.2;font-weight:800;color:var(--wwr5-on-band);white-space:nowrap}
.cf-wwr5__live{display:grid;justify-items:start;gap:12px;padding:20px 24px;border-radius:var(--radius,12px);background:oklch(from var(--band-ink) l c h / .08)}
.cf-wwr5__livechip{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:4px 12px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));font-size:.875rem;font-weight:800;line-height:1.2;animation:cf-wwr5-pop .3s var(--wwr5-ease) both}
.cf-wwr5__when{display:grid;gap:16px;margin-top:24px}
.cf-wwr5__seg{display:inline-grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;justify-self:start;border-radius:calc(var(--radius,12px) + 4px);background:oklch(from var(--band-ink) l c h / .1);box-shadow:inset 0 1px 2px oklch(from var(--wwr5-shadow) l c h / .3)}
.cf-wwr5__opt{position:relative;display:block;min-width:0;cursor:pointer}
.cf-wwr5__opt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.cf-wwr5__opt span{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:var(--radius,12px);color:var(--band-ink);font-size:.9375rem;font-weight:800;line-height:1.2;white-space:nowrap;transition:background .16s ease,color .16s ease,box-shadow .16s ease}
.cf-wwr5__opt:hover input:not(:checked) + span{background:oklch(from var(--band-ink) l c h / .1)}
.cf-wwr5__opt input:checked + span{background:var(--band-ink);color:var(--band);box-shadow:var(--shadow-sm,0 1px 2px oklch(from var(--wwr5-shadow) l c h / .3))}
.cf-wwr5__opt input:focus-visible + span{outline:3px solid var(--band-ink);outline-offset:2px}
.cf-wwr5__read{display:grid;gap:4px}
.cf-wwr5__date{font-weight:600;color:var(--wwr5-on-band)}
.cf-wwr5__time{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:800;letter-spacing:-0.01em;font-variant-numeric:tabular-nums;text-wrap:balance}
.cf-wwr5__zone{color:var(--wwr5-on-band)}
.cf-wwr5__cap,.cf-wwr5__note{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--wwr5-on-band);text-wrap:pretty}
.cf-wwr5__cta{display:grid;justify-items:stretch;gap:12px}
.cf-wwr5__btn{--wwr5-bevel: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);display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:64px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(180deg,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));font-family:var(--button-font,var(--font-display));font-size:clamp(1.125rem,1.55vw,1.375rem);font-weight:var(--button-weight,800);line-height:1.15;text-transform:var(--button-case,none);text-align:center;text-decoration:none;text-wrap:balance;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,var(--wwr5-bevel),0 1px 2px oklch(from var(--wwr5-shadow) l c h / .45),0 8px 16px -6px oklch(from var(--wwr5-shadow) l c h / .55));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-wwr5__btn{width:100%;padding-block:14px}
.cf-wwr5__btnlabel{display:block;min-width:0;text-align:center;text-wrap:balance}
.cf-wwr5__btnico{display:inline-block;vertical-align:-0.17em;margin-inline-end:.45em}
.cf-wwr5__btn:hover,.cf-wwr5__btn.is-hover{transform:translateY(-1px);background:linear-gradient(180deg,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,var(--wwr5-bevel),0 1px 2px oklch(from var(--wwr5-shadow) l c h / .5),0 12px 20px -8px oklch(from var(--wwr5-shadow) l c h / .65))}
.cf-wwr5__btn:active,.cf-wwr5__btn.is-active{transform:translateY(1px);background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) calc(l - .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .08) c h));box-shadow:inset 0 2px 5px oklch(from var(--button-bg,var(--cta)) calc(l - .24) 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(--wwr5-shadow) l c h / .4)}
.cf-wwr5__btn:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-wwr5__btn:disabled{transform:none;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(from var(--wwr5-shadow) l c h / .25)));cursor:not-allowed}
.cf-wwr5__stay{margin-bottom:16px}
.cf-wwr5__em{color:var(--accent)}
.cf-wwr5__stay-lead{margin-bottom:40px;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-wwr5__card{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-md,0 1px 2px oklch(from var(--wwr5-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--wwr5-shadow) l c h / .2)));padding:clamp(20px,3vw,32px)}
.cf-wwr5__bonus{display:grid;grid-template-columns:168px minmax(0,1fr);gap:24px;align-items:start;border-color:oklch(from var(--accent) l c h / .38);box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--wwr5-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--wwr5-shadow) l c h / .32)))}
.cf-wwr5__bonus.is-plain{grid-template-columns:minmax(0,1fr)}
.cf-wwr5__bimg{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center;border-radius:12px;filter:drop-shadow(0 1px 2px oklch(from var(--wwr5-shadow) l c h / .25))}
.cf-wwr5__bbody{display:grid;gap:12px;min-width:0}
.cf-wwr5__bname{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:800;letter-spacing:-0.01em;text-wrap:balance}
.cf-wwr5__bdetail{color:var(--muted);text-wrap:pretty}
.cf-wwr5__bprice{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.cf-wwr5__was{font-weight:700;color:var(--muted);text-decoration:line-through;text-decoration-color:var(--danger);text-decoration-thickness:2px}
.cf-wwr5__now{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:800;color:var(--success);text-wrap:balance}
.cf-wwr5__bwhen,.cf-wwr5__tab{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-wwr5__ico{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-wwr5__leavehead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.cf-wwr5__spot{flex:none;margin-top:-16px}
.cf-wwr5__leave{display:grid;gap:16px}
.cf-wwr5__leave li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;font-weight:600;text-wrap:pretty}
.cf-wwr5__tick{width:24px;height:24px;margin-top:1px}
.cf-wwr5__tab{margin-top:32px}
@container (max-width:460px){
.cf-wwr5__bonus{grid-template-columns:minmax(0,1fr)}
.cf-wwr5__bimg{width:min(100%,200px)}
}
@container (max-width:380px){
.cf-wwr5__btn{padding-inline:20px;font-size:1.125rem}
}
@media (max-width:899px){
.cf-wwr5__seg{display:grid;justify-self:stretch;width:100%}
.cf-wwr5__cta{justify-items:stretch}
.cf-wwr5__btn{width:100%}
}
.cf-wwr5__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-wwr5__rise{animation:cf-wwr5-rise .45s var(--wwr5-ease) both}
.cf-wwr5__rise.d1{animation-delay:.07s}
.cf-wwr5__rise.d2{animation-delay:.14s}
.cf-wwr5__rise.d3{animation-delay:.21s}
.cf-wwr5__rise.d4{animation-delay:.28s}
@keyframes cf-wwr5-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-wwr5-pop{from{transform:scale(.9)}to{transform:none}}
@media (prefers-reduced-motion:reduce){
.cf-wwr5 .cf-wwr5__rise,.cf-wwr5 .cf-wwr5__livechip{animation:none}
.cf-wwr5 .cf-wwr5__btn,.cf-wwr5 .cf-wwr5__opt span{transition:none}
.cf-wwr5 .cf-wwr5__btn:hover,.cf-wwr5 .cf-wwr5__btn.is-hover,.cf-wwr5 .cf-wwr5__btn:active,.cf-wwr5 .cf-wwr5__btn.is-active{transform:none}
}
`
pieces/hero/webinar-waiting-room-5/specimen.tsx 50 lines
import __studioImage9247cc22 from "../assets/8c59ba1f731b7369.webp";
// Specimen: the waiting room for Relay Desk’s live demo, with the end-of-session bonus supplied.
import { WebinarWaitingRoom5 } from '../webinar-waiting-room-5'
import { slot } from '../../slots'
// A real-looking start a little over two days out, rounded to the quarter hour, fixed once per load.
const STARTS_AT = (() => {
const quarter = 15 * 60 * 1000
const target = Date.now() + ((2 * 24 + 3) * 60 + 25) * 60 * 1000
return new Date(Math.ceil(target / quarter) * quarter).toISOString()
})()
export const states = ['default', 'hover', 'active', 'disabled']
export default function WebinarWaitingRoom5Specimen({ state = 'default' }: { state?: 'default' | 'hover' | 'active' | 'disabled' }) {
return (
<WebinarWaitingRoom5
state={state}
startsAt={STARTS_AT}
hostTimeZone='America/Chicago'
hostZoneLabel='Central Time, the Relay Desk studio'
seatLabel='Your seat is saved'
sessionTitle='Inbox Zero for Support Teams'
sessionLead='A live Relay Desk demo: watch a backed-up support inbox go to zero, one step at a time.'
whenQuestion='When do we go live?'
calendarQuestion='How do I make sure I’m there?'
calendarAnswer='Put the demo in your calendar now, so the start finds you.'
actionLabel='Send it to my calendar'
actionNote='Adds the live demo to your calendar in one tap.'
liveQuestion='Where do I watch?'
liveActionLabel='Take me to the live demo'
stayHeadline='Stay to the very end.'
stayHighlight='That’s when the playbook drops.'
stayLead='The demo builds the whole triage setup live. The last few minutes hand it to you, ready to copy.'
endQuestion='What happens in the last few minutes?'
endAnswer='We switch on the full workflow in a real Relay Desk inbox, take your questions, and walk through setting up the same thing for your team.'
bonusQuestion='What do I get for staying?'
bonus={{
name: 'The Relay Desk Triage Playbook',
detail: 'The saved views, tags and reply macros behind the demo, laid out so you can copy them into your own help desk.',
image: slot('item-1', __studioImage9247cc22),
imageAlt: 'The Relay Desk Triage Playbook, a spiral-bound printed guide with tab dividers',
value: '$49 value',
nowLabel: 'Free when you stay',
when: 'Shared live in the final minutes of the demo',
}}
tabNote='Keep this tab open. The countdown updates on its own.'
/>
)
}
| Name | Type | Details |
|---|---|---|
startsAt RequiredWebinarWaitingRoom5 |
string |
|
hostTimeZone OptionalWebinarWaitingRoom5 |
string |
|
hostZoneLabel OptionalWebinarWaitingRoom5 |
string |
|
startLabel OptionalWebinarWaitingRoom5 |
string |
|
locale OptionalWebinarWaitingRoom5 |
string |
|
seatLabel OptionalWebinarWaitingRoom5 |
string |
|
sessionTitle OptionalWebinarWaitingRoom5 |
React.ReactNode |
|
sessionLead OptionalWebinarWaitingRoom5 |
React.ReactNode |
|
whenQuestion OptionalWebinarWaitingRoom5 |
string |
|
calendarQuestion OptionalWebinarWaitingRoom5 |
string |
|
calendarAnswer OptionalWebinarWaitingRoom5 |
React.ReactNode |
|
actionLabel OptionalWebinarWaitingRoom5 |
string |
|
actionNote OptionalWebinarWaitingRoom5 |
string |
|
liveQuestion OptionalWebinarWaitingRoom5 |
string |
|
liveAnswer OptionalWebinarWaitingRoom5 |
React.ReactNode |
|
liveActionLabel OptionalWebinarWaitingRoom5 |
string |
|
liveActionNote OptionalWebinarWaitingRoom5 |
string |
|
href OptionalWebinarWaitingRoom5 |
string |
|
liveHref OptionalWebinarWaitingRoom5 |
string |
|
onAction OptionalWebinarWaitingRoom5 |
(kind: 'calendar' | 'live') => void |
|
onTimeZoneChange OptionalWebinarWaitingRoom5 |
(mode: WebinarWaitingRoom5TimeMode) => void |
|
onLive OptionalWebinarWaitingRoom5 |
() => void |
|
stayHeadline OptionalWebinarWaitingRoom5 |
React.ReactNode |
|
stayHighlight OptionalWebinarWaitingRoom5 |
React.ReactNode |
|
stayLead OptionalWebinarWaitingRoom5 |
React.ReactNode |
|
endQuestion OptionalWebinarWaitingRoom5 |
string |
|
endAnswer OptionalWebinarWaitingRoom5 |
React.ReactNode |
|
bonusQuestion OptionalWebinarWaitingRoom5 |
string |
|
bonus OptionalWebinarWaitingRoom5 |
WebinarWaitingRoom5Bonus |
|
leaveQuestion OptionalWebinarWaitingRoom5 |
string |
|
leaveWith OptionalWebinarWaitingRoom5 |
React.ReactNode[] |
|
tabNote OptionalWebinarWaitingRoom5 |
React.ReactNode |
|
copy OptionalWebinarWaitingRoom5 |
Partial<WebinarWaitingRoom5Copy> |
|
disabled OptionalWebinarWaitingRoom5 |
boolean |
|
state OptionalWebinarWaitingRoom5 |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalWebinarWaitingRoom5 |
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-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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
8c59ba1f731b7369.webp
image/webp · 52.8 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB