Webinar Waiting Room 3
Webinar waiting room, the curtain call: a dark stage with a huge live countdown to the real start that hands over to
Use it in a prompt
Use hero/webinar-waiting-room-3 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-3.tsx. - Import it and pass your copy and images (Props tab):
import { WebinarWaitingRoom3 } from "@/components/funneldna/hero/webinar-waiting-room-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/webinar-waiting-room-3/component.tsx 387 lines
// layout: diagonal-split
// Webinar waiting room, the curtain call: a dark stage with a huge live countdown to the real start that hands over to
// 'The doors are open' and the enter button in the final minutes, above an angled field of first-ten-minutes promises.
import * as React from 'react'
import { CalendarClock, Clock, DoorOpen, Lock, Radio } from 'lucide-react'
import { Backdrop, FX_HOST } from '../fx/fx'
import stage from '../fx/backdrops/stage'
/** waiting: before the doors open · open: doors open, not started · live: the start time has passed. */
export type WaitingRoomPhase = 'waiting' | 'open' | 'live'
type UnitKey = 'days' | 'hours' | 'minutes' | 'seconds'
type UnitCopy = { one: string; other: string }
export type WebinarWaitingRoom3Copy = {
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 doors open while the visitor waits. */
announce: string
}
const DEFAULT_COPY: WebinarWaitingRoom3Copy = {
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: 'The doors are open. You can enter the room now.',
}
export type WebinarWaitingRoom3Promise = {
/** Optional marker for when it lands, e.g. 'Minute 4'. */
time?: string
text: React.ReactNode
}
export type WebinarWaitingRoom3Props = {
/** ISO date-time of the real start; the only thing that drives the countdown and the doors. */
startsAt: string
/** Readable start shown under the countdown, e.g. 'Thursday, December 3 at 1:00 PM ET'. */
startLabel?: React.ReactNode
/** How many minutes before the start the doors open and the button unlocks. */
doorsOpenMinutes?: number
eventName?: string
/** Headline above the countdown; it reads into the digits. */
headline?: React.ReactNode
/** Big headline once the doors are open. */
doorsHeadline?: React.ReactNode
/** Line under the doors headline before the start; {time} is the time left (m:ss). */
doorsLead?: string
/** Line under the doors headline once the start time has passed. */
liveLead?: string
/** Line above the locked button while waiting. */
instruction?: string
/** Line above the button once the doors are open. */
doorsInstruction?: string
actionLabel?: string
/** Note under the locked button; {time} is the doors time, {minutes} the doorsOpenMinutes. */
waitingNote?: string
/** Note under the open button. */
doorsNote?: string
promisesTitle?: React.ReactNode
/** The open loops for the first minutes; three short lines work best. */
promises?: WebinarWaitingRoom3Promise[]
/** One-sentence lines that give the reason to be on time; the last one is set as the punch. */
punch?: string[]
/** Stage photo behind the countdown; defaults to the fx stage backdrop (a page scene image replaces it). */
backdropImage?: string
/** Destination of the enter button once the doors are open. */
href?: string
/** Called when the open enter button is clicked. */
onAction?: (phase: 'open' | 'live') => void
/** Fires once when the doors open. */
onDoorsOpen?: () => void
copy?: Partial<WebinarWaitingRoom3Copy>
disabled?: boolean
state?: 'default' | 'hover' | 'active' | 'disabled'
className?: string
}
const DEFAULT_PROMISES: WebinarWaitingRoom3Promise[] = [
{ text: 'The one idea the whole session is built on' },
{ text: 'The mistake that quietly costs most people the result' },
{ text: 'What to have open so you can follow along live' },
]
const DEFAULT_PUNCH = [
'Everything in the session builds on the first ten minutes.',
'Join late and you spend the hour catching up.',
'Don’t.',
]
export function WebinarWaitingRoom3(props: WebinarWaitingRoom3Props) {
const {
startsAt,
startLabel,
doorsOpenMinutes = 2,
eventName = 'Live workshop',
headline = 'Your seat is saved. The curtain goes up in',
doorsHeadline = 'The doors are open',
doorsLead = 'We start in {time}. Come in and get settled.',
liveLead = 'We’re live. Come straight in.',
instruction = 'When the doors open, click the button below to take your seat.',
doorsInstruction = 'Click the button below to take your seat.',
actionLabel = 'Enter the Room',
waitingNote = 'Doors open at {time}, {minutes} minutes before we start.',
doorsNote = 'Your seat is saved. Come straight in.',
promisesTitle = 'In the first ten minutes you’ll see',
promises = DEFAULT_PROMISES,
punch = DEFAULT_PUNCH,
backdropImage,
href,
onAction,
onDoorsOpen,
disabled,
state = 'default',
className,
} = props
const copy: WebinarWaitingRoom3Copy = { ...DEFAULT_COPY, ...props.copy }
const uid = React.useId()
const headId = uid + '-h'
const listId = uid + '-p'
const noteId = uid + '-note'
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 doorsMs = Math.max(0, doorsOpenMinutes) * 60000
const phase: WaitingRoomPhase = !valid ? 'open' : left === 0 ? 'live' : left <= doorsMs ? 'open' : 'waiting'
const waiting = phase === 'waiting'
const doorsCb = React.useRef(onDoorsOpen)
doorsCb.current = onDoorsOpen
const fired = React.useRef(false)
const prev = React.useRef<WaitingRoomPhase>(phase)
const [announce, setAnnounce] = React.useState('')
React.useEffect(() => {
if (phase !== 'waiting' && !fired.current) {
fired.current = true
doorsCb.current?.()
}
if (prev.current === 'waiting' && phase !== 'waiting') setAnnounce(copy.announce)
prev.current = phase
}, [phase, copy.announce])
const parts = split(left)
const keys: UnitKey[] = parts.days > 0 ? ['days', 'hours', 'minutes', 'seconds'] : ['hours', 'minutes', 'seconds']
const unitLabel = (k: UnitKey, n: number) => (n === 1 ? copy[k].one : copy[k].other)
const spoken = keys.map((k) => parts[k] + ' ' + unitLabel(k, parts[k]).toLowerCase()).join(', ')
const doorsTime = valid
? new Date(target - doorsMs).toLocaleTimeString(undefined, { hour: 'numeric', minute: '2-digit' })
: ''
const lead = phase === 'live' ? liveLead : valid ? fill(doorsLead, { time: short(left) }) : null
const isDisabled = waiting || Boolean(disabled) || state === 'disabled'
const forced = isDisabled ? '' : state === 'hover' ? ' is-hover' : state === 'active' ? ' is-press' : ''
const btnClass = 'cf-wwr3__btn' + forced
const ChipIcon = waiting ? CalendarClock : phase === 'live' ? Radio : DoorOpen
const enterPhase: 'open' | 'live' | null = phase === 'waiting' ? null : phase
const handle = () => {
if (isDisabled || enterPhase === null) return
onAction?.(enterPhase)
}
const button =
href && !isDisabled ? (
<a className={btnClass} href={href} onClick={handle} aria-describedby={noteId}>
{actionLabel}
</a>
) : (
<button type='button' className={btnClass} disabled={isDisabled} onClick={handle} aria-describedby={noteId}>
{isDisabled ? <Lock className='cf-wwr3__ic' size={20} strokeWidth={2.5} aria-hidden='true' /> : null}
{actionLabel}
</button>
)
return (
<section className={['cf-wwr3', 'is-' + phase, className].filter(Boolean).join(' ')} aria-labelledby={headId}>
<style>{CSS}</style>
<div className='cf-wwr3__stage' style={FX_HOST}>
<Backdrop src={backdropImage ?? stage} treatment='scrim-dark' />
<div className='cf-wwr3__stagein'>
<p className='cf-wwr3__chip cf-wwr3__rise'>
<ChipIcon className='cf-wwr3__ic' size={16} strokeWidth={2.5} aria-hidden='true' />
{eventName}
</p>
<h1
id={headId}
key={waiting ? 'wait' : 'doors'}
className={'cf-wwr3__h1 cf-wwr3__rise cf-wwr3__d1' + (waiting ? '' : ' is-doors')}
>
{waiting ? headline : doorsHeadline}
</h1>
{waiting ? (
<div
className={'cf-wwr3__clock cf-wwr3__rise cf-wwr3__d2' + (keys.length === 4 ? '' : ' is-short')}
role='timer'
aria-live='off'
aria-label={fill(copy.timerLabel, { time: spoken })}
>
<div className='cf-wwr3__digits' aria-hidden='true'>
{keys.map((k, i) => (
<React.Fragment key={k}>
{i > 0 ? (
<span className='cf-wwr3__sep'>
<i />
<i />
</span>
) : null}
<span className='cf-wwr3__unit'>
<span key={k + parts[k]} className='cf-wwr3__num'>
{pad(parts[k])}
</span>
<span className='cf-wwr3__lbl'>{unitLabel(k, parts[k])}</span>
</span>
</React.Fragment>
))}
</div>
</div>
) : lead ? (
<p className='cf-wwr3__lead cf-wwr3__lead--doors'>{lead}</p>
) : null}
{waiting && startLabel ? (
<p className='cf-wwr3__lead cf-wwr3__rise cf-wwr3__d3'>
<CalendarClock className='cf-wwr3__ic' size={20} strokeWidth={2.5} aria-hidden='true' />
{startLabel}
</p>
) : null}
<div className='cf-wwr3__act cf-wwr3__rise cf-wwr3__d3'>
<p className='cf-wwr3__inst'>{waiting ? instruction : doorsInstruction}</p>
{button}
<p id={noteId} className='cf-wwr3__note'>
{waiting ? (
<>
<Clock className='cf-wwr3__ic' size={16} strokeWidth={2.5} aria-hidden='true' />
{fill(waitingNote, { time: doorsTime, minutes: String(doorsOpenMinutes) })}
</>
) : (
doorsNote
)}
</p>
</div>
<p className='cf-wwr3__sr' aria-live='polite'>
{announce}
</p>
</div>
</div>
<div className='cf-wwr3__field'>
<div className='cf-wwr3__fieldin'>
<h2 id={listId} className='cf-wwr3__h2'>
{promisesTitle}
</h2>
<ol className='cf-wwr3__list' aria-labelledby={listId}>
{promises.map((p, i) => (
<li key={i} className={'cf-wwr3__item' + (p.time ? ' has-time' : '')}>
<span className='cf-wwr3__dot' aria-hidden='true' />
<div>
{p.time ? <p className='cf-wwr3__time'>{p.time}</p> : null}
<p className='cf-wwr3__promise'>{p.text}</p>
</div>
</li>
))}
</ol>
{punch.length ? (
<div className='cf-wwr3__punch'>
{punch.map((line, i) => (
<p key={i} className={i === punch.length - 1 && punch.length > 1 ? 'is-last' : undefined}>
{line}
</p>
))}
</div>
) : null}
</div>
</div>
</section>
)
}
export default WebinarWaitingRoom3
function useNow(target: number, valid: boolean) {
const [now, setNow] = React.useState(() => Date.now())
React.useEffect(() => {
if (!valid) return
let id: number | undefined
const tick = () => {
const t = Date.now()
setNow(t)
if (t < target) {
const rem = (target - t) % 1000
id = window.setTimeout(tick, (rem > 0 ? rem : 1000) + 10)
}
}
tick()
return () => {
if (id !== undefined) window.clearTimeout(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 String(n).padStart(2, '0')
}
function short(ms: number) {
const p = split(ms)
const h = p.days * 24 + p.hours
return h > 0 ? `${h}:${pad(p.minutes)}:${pad(p.seconds)}` : `${p.minutes}:${pad(p.seconds)}`
}
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-wwr3{--cut:clamp(40px,6.5vw,104px);--rise:cubic-bezier(.2,.7,.2,1);position:relative;isolation:isolate;overflow:hidden;background:var(--band);color:var(--band-ink);font-family:var(--font-body)}
.cf-wwr3 *,.cf-wwr3 *::before,.cf-wwr3 *::after{box-sizing:border-box}
.cf-wwr3 :where(h1,h2,p,ol,li){margin:0}
.cf-wwr3__stage{position:relative;padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) calc(var(--cut) + clamp(48px,6vw,88px))}
.cf-wwr3__stagein{position:relative;z-index:1;max-width:1120px;margin-inline:auto;display:flex;flex-direction:column;align-items:center;text-align:center}
.cf-wwr3__chip{display:inline-block;max-width:100%;margin-bottom:24px;padding:6px 14px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .12);box-shadow:inset 0 0 0 1px oklch(from var(--band-ink) l c h / .16);color:var(--band-ink);font-size:.875rem;font-weight:800;line-height:1.3;letter-spacing:.01em;text-wrap:balance}
.cf-wwr3__ic{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em;flex:none}
.cf-wwr3__h1{color:var(--band-ink);font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance}
.cf-wwr3__h1.is-doors{font-size:clamp(2.75rem,8vw,6.5rem);line-height:1;animation:cf-wwr3-pop .3s var(--rise) both}
.cf-wwr3__clock{width:100%;container-type:inline-size;margin-top:clamp(24px,3vw,40px)}
.cf-wwr3__digits{display:flex;justify-content:center;align-items:flex-start;gap:.12em;color:var(--band-ink);font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.75rem,14cqi,9.5rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:lining-nums tabular-nums;text-shadow:0 2px 3px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .35)}
.cf-wwr3__clock.is-short .cf-wwr3__digits{font-size:clamp(3rem,19cqi,10.5rem)}
.cf-wwr3__unit{display:grid;justify-items:center;row-gap:clamp(10px,1.4vw,16px)}
.cf-wwr3__num{display:block;line-height:1;animation:cf-wwr3-tick .35s var(--rise) both}
.cf-wwr3__lbl{font-family:var(--font-body);font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;text-shadow:none}
.cf-wwr3__sep{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.2em;height:1em}
.cf-wwr3__sep i{display:block;width:.1em;height:.1em;border-radius:50%;background:var(--accent-fill,var(--accent))}
.cf-wwr3__lead{margin-top:clamp(20px,2.4vw,32px);color:var(--band-ink);font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:balance;font-variant-numeric:lining-nums tabular-nums}
.cf-wwr3__lead--doors{margin-top:clamp(16px,2vw,24px)}
.cf-wwr3__act{display:flex;flex-direction:column;align-items:center;width:100%;margin-top:clamp(28px,3.4vw,44px)}
.cf-wwr3__inst{max-width:40rem;margin-bottom:16px;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:600;line-height:1.5;text-wrap:pretty}
.cf-wwr3__note{max-width:40rem;margin-top:12px;font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-wwr3__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cf-wwr3__btn{display:inline-flex;align-items:center;justify-content:center;min-height:72px;min-width:min(100%,21rem);max-width:100%;padding:0 32px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));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-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .45),0 8px 16px -6px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .55));transition:background .16s ease,box-shadow .16s ease,transform .16s ease;-webkit-tap-highlight-color:transparent}
.cf-wwr3__btn:not(:disabled):hover,.cf-wwr3__btn.is-hover{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .5),0 10px 18px -6px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .65))}
.cf-wwr3__btn:not(:disabled):active,.cf-wwr3__btn.is-press{transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .06) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .4),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .18) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .4)}
.cf-wwr3__btn:focus-visible{outline:3px solid var(--band-ink);outline-offset:4px}
.cf-wwr3__btn:disabled{cursor:not-allowed;background:oklch(from var(--band-ink) l c h / .1);color:var(--band-ink);text-shadow:none;box-shadow:inset 0 0 0 1px oklch(from var(--band-ink) l c h / .3)}
.cf-wwr3__btn:disabled .cf-wwr3__ic{opacity:.85}
.cf-wwr3__field{position:relative;z-index:2;margin-top:calc(var(--cut) * -1);padding:calc(var(--cut) + clamp(40px,5vw,72px)) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);background:var(--card);color:var(--ink);clip-path:polygon(0 var(--cut),100% 0,100% 100%,0 100%)}
.cf-wwr3__fieldin{max-width:1120px;margin-inline:auto;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'list' 'punch';row-gap:clamp(24px,4vw,32px)}
.cf-wwr3__h2{grid-area:head;color:var(--ink);font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance}
.cf-wwr3__list{grid-area:list;list-style:none;padding:0;display:grid}
.cf-wwr3__item{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:16px;padding-bottom:clamp(24px,3vw,36px)}
.cf-wwr3__item:last-child{padding-bottom:0}
.cf-wwr3__item:not(:last-child)::after{content:'';position:absolute;left:9px;top:12px;bottom:-4px;width:2px;border-radius:2px;background:oklch(from var(--ink) l c h / .14)}
.cf-wwr3__dot{position:relative;z-index:1;width:16px;height:16px;margin:6px 0 0 2px;border-radius:50%;background:var(--accent-fill,var(--accent));outline:4px solid var(--card)}
.cf-wwr3__item.has-time .cf-wwr3__dot{margin-top:1px}
.cf-wwr3__time{margin-bottom:8px;color:var(--accent);font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;font-variant-numeric:lining-nums tabular-nums}
.cf-wwr3__promise{color:var(--ink);font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:800;line-height:1.2;letter-spacing:-.01em;text-wrap:pretty}
.cf-wwr3__punch{grid-area:punch;display:grid;gap:12px}
.cf-wwr3__punch p{color:var(--ink);font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-wwr3__punch p.is-last{margin-top:4px;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:var(--display-weight,800);line-height:1.15;letter-spacing:-.01em}
.cf-wwr3__rise{animation:cf-wwr3-rise .45s var(--rise) both}
.cf-wwr3__d1{animation-delay:.07s}
.cf-wwr3__d2{animation-delay:.14s}
.cf-wwr3__d3{animation-delay:.21s}
@media (min-width:900px){.cf-wwr3__fieldin{grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:'head list' 'punch list';grid-template-rows:auto 1fr;column-gap:clamp(32px,5vw,72px);row-gap:24px;align-items:start}}
@media (max-width:640px){.cf-wwr3__btn{width:100%;min-width:0;padding:0 20px}.cf-wwr3__chip{margin-bottom:20px}}
@container (max-width:560px){.cf-wwr3__digits{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;font-size:clamp(2.5rem,15cqi,3.5rem)}.cf-wwr3__clock.is-short .cf-wwr3__digits{font-size:clamp(2.75rem,19cqi,4.25rem)}.cf-wwr3__sep{display:none}.cf-wwr3__unit{row-gap:10px}.cf-wwr3__lbl{letter-spacing:.04em}}
@keyframes cf-wwr3-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-wwr3-pop{from{opacity:.82;transform:scale(.9)}to{opacity:1;transform:none}}
@keyframes cf-wwr3-tick{from{opacity:.82;transform:translateY(-.05em)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.cf-wwr3 *,.cf-wwr3 *::before,.cf-wwr3 *::after{animation:none !important;transition:none !important}}
`
pieces/hero/webinar-waiting-room-3/specimen.tsx 55 lines
import __studioImagec5f4ed26 from "../assets/98e5e33853738421.webp";
import * as React from 'react'
import { WebinarWaitingRoom3 } from '../webinar-waiting-room-3'
type State = 'default' | 'hover' | 'active' | 'disabled'
export const states = ['default', 'hover', 'active', 'disabled']
// Real time only: hover/active sit inside the final two minutes, so the doors are genuinely open.
function startFor(state: State) {
if (state === 'hover' || state === 'active') return new Date(Date.now() + 104000)
if (state === 'disabled') return new Date(Date.now() + 6 * 60000 + 30000)
const d = new Date()
d.setDate(d.getDate() + 2)
d.setHours(13, 0, 0, 0)
return d
}
export default function WebinarWaitingRoom3Specimen({ state = 'default' }: { state?: State }) {
const start = React.useMemo(() => startFor(state), [state])
const startLabel = React.useMemo(
() =>
new Intl.DateTimeFormat('en-US', {
weekday: 'long',
month: 'long',
day: 'numeric',
hour: 'numeric',
minute: '2-digit',
timeZoneName: 'short',
}).format(start),
[start],
)
return (
<WebinarWaitingRoom3
startsAt={start.toISOString()}
startLabel={startLabel}
eventName='Margin Lab · Agency Pricing Workshop'
headline='Your seat is saved. The pricing workshop starts in'
doorsNote='Your seat is saved. Bring one proposal you sent this year.'
promises={[
{ time: 'Minute 1', text: 'Why most agencies price their best work the lowest' },
{ time: 'Minute 4', text: 'The three-tier proposal that lets clients choose up, not down' },
{ time: 'Minute 8', text: 'The one line that ends the can-you-do-it-cheaper email' },
]}
punch={[
'Every pricing move in the session builds on the first ten minutes.',
'Join late and you spend the hour guessing at the why.',
'Don’t.',
]}
backdropImage={__studioImagec5f4ed26}
state={state}
/>
)
}
| Name | Type | Details |
|---|---|---|
startsAt RequiredWebinarWaitingRoom3 |
string |
|
startLabel OptionalWebinarWaitingRoom3 |
React.ReactNode |
|
doorsOpenMinutes OptionalWebinarWaitingRoom3 |
number |
|
eventName OptionalWebinarWaitingRoom3 |
string |
|
headline OptionalWebinarWaitingRoom3 |
React.ReactNode |
|
doorsHeadline OptionalWebinarWaitingRoom3 |
React.ReactNode |
|
doorsLead OptionalWebinarWaitingRoom3 |
string |
|
liveLead OptionalWebinarWaitingRoom3 |
string |
|
instruction OptionalWebinarWaitingRoom3 |
string |
|
doorsInstruction OptionalWebinarWaitingRoom3 |
string |
|
actionLabel OptionalWebinarWaitingRoom3 |
string |
|
waitingNote OptionalWebinarWaitingRoom3 |
string |
|
doorsNote OptionalWebinarWaitingRoom3 |
string |
|
promisesTitle OptionalWebinarWaitingRoom3 |
React.ReactNode |
|
promises OptionalWebinarWaitingRoom3 |
WebinarWaitingRoom3Promise[] |
|
punch OptionalWebinarWaitingRoom3 |
string[] |
|
backdropImage OptionalWebinarWaitingRoom3 |
string |
|
href OptionalWebinarWaitingRoom3 |
string |
|
onAction OptionalWebinarWaitingRoom3 |
(phase: 'open' | 'live') => void |
|
onDoorsOpen OptionalWebinarWaitingRoom3 |
() => void |
|
copy OptionalWebinarWaitingRoom3 |
Partial<WebinarWaitingRoom3Copy> |
|
disabled OptionalWebinarWaitingRoom3 |
boolean |
|
state OptionalWebinarWaitingRoom3 |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalWebinarWaitingRoom3 |
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.
--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.
This piece reads no image slots.
-
44c4a68a8f1604d6.webp
image/webp · 18.4 KB
-
98e5e33853738421.webp
image/webp · 29.5 KB