Webinar Room 4
Live studio bento for webinar rooms. The stage leads, with the host and an on-air tile beside it. An ask-the-host box with a live character count keeps viewers engaged until the offer moment. At that moment the question tile hands its place to the offer: price, Add To Cart and guarantee.
Use it in a prompt
Use hero/webinar-room-4 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/hero/webinar-room-4.tsx. - Import it and pass your copy and images (Props tab):
import { WebinarRoom4 } from "@/components/funneldna/hero/webinar-room-4"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/webinar-room-4/component.tsx 640 lines
// layout: bento-grid
// Live studio bento for webinar rooms. The stage leads, with the host and an on-air tile beside it. An ask-the-host box with a live character count keeps viewers engaged until the offer moment. At that moment the question tile hands its place to the offer: price, Add To Cart and guarantee.
'use client'
import * as React from 'react'
import { AlertCircle, Check, Loader2, Presentation, ShieldCheck, ShoppingCart, UserRound } from 'lucide-react'
import { FX_HOST, Pattern } from '../fx/fx'
export type WebinarRoom4State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type WebinarRoom4Copy = {
questionTitle?: string
questionLead?: string
questionLabel?: string
questionPlaceholder?: string
sendLabel?: string
sendingLabel?: string
/** Shown when send is pressed with an empty box. */
emptyError?: string
/** Shown when onSubmit rejects. */
sendError?: string
/** Visible counter. Replaces {count} and {max}. */
counter?: string
/** Read by screen readers. Replaces {count} and {max}. */
counterSpoken?: string
/** Announced near the limit. Replaces {remaining}. */
remaining?: string
/** Status line above the offer heading. */
offerTag?: string
offerTitle?: string
/** Announced when the offer opens. Replaces {name}. */
openedMessage?: string
/** Replaces {price}. */
cartLabel?: string
/** Read by screen readers before the struck regular price. */
regularSpoken?: string
loadingText?: string
errorText?: string
liveLabel?: string
}
export type WebinarRoom4Props = {
headline?: string
/** Phrase inside the headline that gets the marker stroke. */
highlight?: string
lead?: string
sessionName?: string
/** Short schedule line shown as a chip on the stage. */
sessionTime?: string
/** Shows the on-air tile. Only set it while the session is really live. */
live?: boolean
liveDetail?: string
/** The page's real video player; it fills the stage. */
player?: React.ReactNode
/** scene slot: still shown on the stage when no player is given. */
sceneImage?: string
sceneAlt?: string
hostName?: string
hostRole?: string
/** presenter slot. */
presenterImage?: string
presenterAlt?: string
pointsTitle?: string
/** Fascination bullets under the stage. */
points?: string[]
/** Controlled offer moment: true swaps the question tile for the offer tile. */
offerOpen?: boolean
/** Offer moment as an ISO date-time or epoch ms; the tile swaps by itself when it arrives. */
offerAt?: string | number
productName?: string
offerDetail?: string
/** product slot: transparent cut-out. */
productImage?: string
productAlt?: string
price?: string
/** Struck regular value beside the price. Supplied values only; omit when there is none. */
regularPrice?: string
priceNote?: string
guarantee?: string
href?: string
/** A returned promise shows loadingText until it settles; a rejection shows errorText. */
onAction?: () => void | Promise<void>
defaultQuestion?: string
maxLength?: number
/** Empties the box once onSubmit has settled. */
clearOnSend?: boolean
/** Receives the trimmed question. A returned promise shows the loader; a rejection shows sendError. */
onSubmit?: (values: { question: string }) => void | Promise<void>
state?: WebinarRoom4State
copy?: WebinarRoom4Copy
className?: string
}
export function WebinarRoom4({
headline = 'Map out your first funnel',
highlight = 'first funnel',
lead = 'Join the Funnel Starter Workshop and walk through your offer, page copy, and next steps.',
sessionName = 'Funnel Starter Workshop',
sessionTime = 'Free workshop · Watch online',
live = false,
liveDetail = 'Live from the studio',
player,
sceneImage,
sceneAlt = 'The workshop studio set',
hostName = 'Your workshop host',
hostRole = 'Here to answer your questions',
presenterImage,
presenterAlt = 'Portrait of the workshop host',
pointsTitle = 'In this workshop, you’ll see',
points = DEFAULT_POINTS,
offerOpen,
offerAt,
productName = 'The Funnel Starter Kit',
offerDetail = 'Guide, workbook and checklist in one download.',
productImage,
productAlt = '',
price = '$47',
regularPrice,
priceNote = 'one-time payment',
guarantee = '30-day money-back guarantee',
href,
onAction,
defaultQuestion = '',
maxLength = 280,
clearOnSend = true,
onSubmit,
state = 'default',
copy,
className,
}: WebinarRoom4Props) {
const c = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const ids = { h: uid + 'h', ask: uid + 'a', field: uid + 'f', count: uid + 'c', err: uid + 'e', offer: uid + 'o', offerErr: uid + 'x' }
const max = Math.max(1, maxLength)
const mounted = React.useRef(true)
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
const [autoOpen, setAutoOpen] = React.useState(false)
React.useEffect(() => {
if (offerAt === undefined || offerAt === null) return
const at = typeof offerAt === 'number' ? offerAt : Date.parse(offerAt)
if (!Number.isFinite(at)) return
const wait = at - Date.now()
if (wait <= 0) {
setAutoOpen(true)
return
}
if (wait > 2147483647) return
const timer = window.setTimeout(() => setAutoOpen(true), wait)
return () => window.clearTimeout(timer)
}, [offerAt])
const open = offerOpen ?? autoOpen
const [question, setQuestion] = React.useState(defaultQuestion)
const [error, setError] = React.useState<string | null>(null)
const [sending, setSending] = React.useState(false)
const [action, setAction] = React.useState<'idle' | 'loading' | 'error'>('idle')
const [announce, setAnnounce] = React.useState('')
const fieldRef = React.useRef<HTMLTextAreaElement | null>(null)
const askRef = React.useRef<HTMLFormElement | null>(null)
const offerHeadRef = React.useRef<HTMLHeadingElement | null>(null)
const wasOpen = React.useRef(open)
const moveFocus = React.useRef(false)
// Read (never write) the DOM before the swap commits, so focus can follow the visitor into the offer.
if (open && !wasOpen.current && typeof document !== 'undefined') {
moveFocus.current = Boolean(askRef.current && askRef.current.contains(document.activeElement))
}
React.useEffect(() => {
if (open && !wasOpen.current) {
setAnnounce(fill(c.openedMessage, { name: productName }))
if (moveFocus.current) offerHeadRef.current?.focus()
moveFocus.current = false
}
wasOpen.current = open
}, [open, c.openedMessage, productName])
const blocked = state === 'disabled'
const forced = state === 'hover' ? ' is-hover' : state === 'active' ? ' is-active' : ''
const shownError = error ?? (state === 'error' && !open ? c.emptyError : null)
const empty = question.trim().length === 0
const count = question.length
const ratio = Math.min(1, count / max)
const near = ratio >= 0.9
const send = (event?: React.FormEvent) => {
event?.preventDefault()
if (blocked || sending) return
const text = question.trim()
if (!text) {
setError(c.emptyError)
fieldRef.current?.focus()
return
}
setError(null)
if (!onSubmit) return
let result: void | Promise<void>
try {
result = onSubmit({ question: text })
} catch {
setError(c.sendError)
return
}
if (result && typeof (result as Promise<void>).then === 'function') {
setSending(true)
;(result as Promise<void>).then(
() => {
if (!mounted.current) return
setSending(false)
if (clearOnSend) setQuestion('')
},
() => {
if (!mounted.current) return
setSending(false)
setError(c.sendError)
},
)
} else if (clearOnSend) {
setQuestion('')
}
}
const offerStatus = state === 'error' && open ? 'error' : action
const busy = offerStatus === 'loading'
const handleAction = (event: React.MouseEvent<HTMLElement>) => {
if (blocked || busy) {
event.preventDefault()
return
}
if (!onAction) return
setAction('idle')
let result: void | Promise<void>
try {
result = onAction()
} catch {
event.preventDefault()
setAction('error')
return
}
if (result && typeof (result as Promise<void>).then === 'function') {
event.preventDefault()
setAction('loading')
;(result as Promise<void>).then(
() => {
if (mounted.current) setAction('idle')
},
() => {
if (mounted.current) setAction('error')
},
)
}
}
const p = splitPrice(price)
const cartInner = busy ? (
<>
<Loader2 className='wr4-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
<span>{c.loadingText}</span>
</>
) : (
<>
<ShoppingCart size={20} strokeWidth={2.5} aria-hidden='true' />
<span>{fill(c.cartLabel, { price })}</span>
</>
)
const describe = offerStatus === 'error' ? ids.offerErr : undefined
const askTile = (
<form
ref={askRef}
key='ask'
className={'wr4-tile wr4-card wr4-slot wr4-ask' + (near ? ' is-near' : '')}
onSubmit={send}
noValidate
aria-labelledby={ids.ask}
>
<h2 id={ids.ask} className='wr4-title'>{c.questionTitle}</h2>
{c.questionLead ? <p className='wr4-note'>{c.questionLead}</p> : null}
<label className='wr4-label' htmlFor={ids.field}>{c.questionLabel}</label>
<div className={'wr4-field' + (shownError ? ' is-invalid' : '')}>
<textarea
ref={fieldRef}
id={ids.field}
name='question'
rows={4}
value={question}
maxLength={max}
placeholder={c.questionPlaceholder}
disabled={blocked}
aria-invalid={shownError ? true : undefined}
aria-describedby={shownError ? ids.count + ' ' + ids.err : ids.count}
onChange={(event) => {
setQuestion(event.target.value)
if (error && event.target.value.trim()) setError(null)
}}
onKeyDown={(event) => {
if (event.key === 'Enter' && (event.metaKey || event.ctrlKey)) {
event.preventDefault()
send()
}
}}
/>
<span className='wr4-meter' aria-hidden='true'>
<span style={{ transform: 'scaleX(' + ratio + ')' }} />
</span>
</div>
<div className='wr4-foot'>
<p id={ids.count} className='wr4-count'>
<span aria-hidden='true'>{fill(c.counter, { count, max })}</span>
<span className='wr4-sr'>{fill(c.counterSpoken, { count, max })}</span>
</p>
<button
type='submit'
className={'wr4-btn' + forced}
disabled={blocked}
aria-disabled={!blocked && empty ? true : undefined}
aria-busy={sending || undefined}
>
{sending ? (
<>
<Loader2 className='wr4-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
<span>{c.sendingLabel}</span>
</>
) : (
<span>{c.sendLabel}</span>
)}
</button>
</div>
{shownError ? (
<p id={ids.err} className='wr4-error' role='alert'>
<AlertCircle className='wr4-inline-icon' size={16} strokeWidth={2.5} aria-hidden='true' />
{shownError}
</p>
) : null}
<p className='wr4-sr' aria-live='polite'>{near ? fill(c.remaining, { remaining: Math.max(0, max - count) }) : ''}</p>
</form>
)
const offerTile = (
<section key='offer' className='wr4-tile wr4-card wr4-slot wr4-offer' aria-labelledby={ids.offer}>
{c.offerTag ? (
<p className='wr4-tag'>
<span className='wr4-dot' aria-hidden='true' />
{c.offerTag}
</p>
) : null}
<h2 ref={offerHeadRef} id={ids.offer} className='wr4-title' tabIndex={-1}>{c.offerTitle}</h2>
<div className='wr4-product'>
{productImage ? <img src={productImage} alt={productAlt} width={320} height={320} /> : null}
<div>
<p className='wr4-product-name'>{productName}</p>
{offerDetail ? <p className='wr4-note'>{offerDetail}</p> : null}
</div>
</div>
<div className='wr4-buy'>
<div className='wr4-price-row'>
<p className='wr4-price'>
{p.symbol ? <span className='wr4-sym'>{p.symbol}</span> : null}
<span className='wr4-amt'>{p.amount}</span>
{p.rest ? <span className='wr4-rest'>{p.rest}</span> : null}
</p>
{regularPrice ? (
<p className='wr4-was'>
<span className='wr4-sr'>{c.regularSpoken}</span>
<s>{regularPrice}</s>
</p>
) : null}
</div>
{priceNote ? <p className='wr4-price-note'>{priceNote}</p> : null}
{href ? (
<a
className={'wr4-btn is-big' + forced}
href={blocked ? undefined : href}
aria-disabled={blocked ? true : undefined}
aria-busy={busy || undefined}
aria-describedby={describe}
onClick={handleAction}
>
{cartInner}
</a>
) : (
<button
type='button'
className={'wr4-btn is-big' + forced}
disabled={blocked}
aria-busy={busy || undefined}
aria-describedby={describe}
onClick={handleAction}
>
{cartInner}
</button>
)}
{guarantee ? (
<p className='wr4-reassure'>
<ShieldCheck className='wr4-inline-icon' size={18} strokeWidth={2.5} aria-hidden='true' />
{guarantee}
</p>
) : null}
{offerStatus === 'error' ? (
<p id={ids.offerErr} className='wr4-error' role='alert'>
<AlertCircle className='wr4-inline-icon' size={16} strokeWidth={2.5} aria-hidden='true' />
{c.errorText}
</p>
) : null}
</div>
</section>
)
return (
<section className={'cf-webinar-room-4' + (className ? ' ' + className : '')} style={FX_HOST} aria-labelledby={ids.h}>
<Pattern name='grid' fade='top' />
<style>{CSS}</style>
<div className='wr4-inner'>
<header className='wr4-head'>
<h1 id={ids.h} className='wr4-h1'>{renderHeadline(headline, highlight)}</h1>
{lead ? <p className='wr4-lead'>{lead}</p> : null}
</header>
<div className={'wr4-grid' + (live ? ' is-live' : '')}>
{live ? (
<div className='wr4-tile wr4-onair'>
<span className='wr4-onair-label'>
<span className='wr4-dot' aria-hidden='true' />
{c.liveLabel}
</span>
{liveDetail ? <span className='wr4-onair-detail'>{liveDetail}</span> : null}
</div>
) : null}
<div className='wr4-tile wr4-stage'>
<div className='wr4-stage-head'>
<h2 className='wr4-stage-title'>{sessionName}</h2>
{sessionTime ? <span className='wr4-chip'>{sessionTime}</span> : null}
</div>
<div className='wr4-media'>
{player ? (
<div className='wr4-player'>{player}</div>
) : sceneImage ? (
<img src={sceneImage} alt={sceneAlt} width={1600} height={900} />
) : (
<div className='wr4-media-empty'>
<Presentation size={24} strokeWidth={2.5} aria-hidden='true' />
<span>{sessionName}</span>
</div>
)}
</div>
</div>
<div className='wr4-tile wr4-card wr4-host'>
{presenterImage ? (
<img className='wr4-portrait' src={presenterImage} alt={presenterAlt} width={240} height={240} />
) : (
<span className='wr4-portrait wr4-portrait-empty' aria-hidden='true'>
<UserRound size={24} strokeWidth={2.5} />
</span>
)}
<div className='wr4-host-text'>
<p className='wr4-host-name'>{hostName}</p>
{hostRole ? <p className='wr4-host-role'>{hostRole}</p> : null}
</div>
</div>
{open ? offerTile : askTile}
{points.length ? (
<div className='wr4-tile wr4-card wr4-points'>
<h2 className='wr4-title'>{pointsTitle}</h2>
<ul>
{points.map((point, index) => (
<li key={index}>
<span className='wr4-badge' aria-hidden='true'>
<Check size={16} strokeWidth={3} />
</span>
<span>{point}</span>
</li>
))}
</ul>
</div>
) : null}
</div>
<p className='wr4-sr' aria-live='polite'>{announce}</p>
</div>
</section>
)
}
export default WebinarRoom4
const DEFAULT_POINTS = [
'How to map your offer and the pages your funnel needs',
'The headline, offer and call to action to draft first',
'Which links, forms and next steps to check before launch',
]
const DEFAULT_COPY: Required<WebinarRoom4Copy> = {
questionTitle: 'Ask the host anything',
questionLead: 'Send it now. The host answers live, on air.',
questionLabel: 'Your question',
questionPlaceholder: 'What should my first funnel sell?',
sendLabel: 'Send my question',
sendingLabel: 'Sending…',
emptyError: 'Type your question first, then press send.',
sendError: 'We couldn’t send that. Please try again.',
counter: '{count}/{max}',
counterSpoken: '{count} of {max} characters used',
remaining: '{remaining} characters left',
offerTag: 'Offer now open',
offerTitle: 'Get everything from today’s session',
openedMessage: '{name} is now available.',
cartLabel: 'Add To Cart · {price}',
regularSpoken: 'Regular price',
loadingText: 'Adding to cart…',
errorText: 'We couldn’t add that to your cart. Please try again.',
liveLabel: 'On air',
}
function renderHeadline(text: string, phrase?: string) {
if (!phrase) return text
const at = text.indexOf(phrase)
if (at < 0) return text
return (
<>
{text.slice(0, at)}
<span className='wr4-mark'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
)
}
function splitPrice(price: string) {
const match = price.trim().match(/^([^0-9]*)([0-9][0-9.,]*)(.*)$/)
if (!match) return { symbol: '', amount: price, rest: '' }
return { symbol: match[1].trim(), amount: match[2], rest: match[3].trim() }
}
function fill(template: string, values: Record<string, string | number>) {
return Object.keys(values).reduce((out, key) => out.split('{' + key + '}').join(String(values[key])), template)
}
// --onair is component-scoped (defaults to the accent fill). The marker keeps its documented yellow default.
const CSS = `
.cf-webinar-room-4{--wr4-marker:var(--marker,#fae37c);--wr4-shadow:var(--shadow,oklch(0.22 0.03 260));--wr4-btn:var(--button-bg,var(--cta));--wr4-btn-2:var(--button-bg-2,var(--cta-2,var(--cta)));--wr4-focus:var(--field-focus,var(--accent));--wr4-onair:var(--onair,var(--accent-fill,var(--accent)));position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);overflow-x:clip}
.cf-webinar-room-4 *,.cf-webinar-room-4 *::before,.cf-webinar-room-4 *::after{box-sizing:border-box}
.cf-webinar-room-4 :is(h1,h2,p,ul){margin:0}
.cf-webinar-room-4 .wr4-inner{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-webinar-room-4 .wr4-head{margin-bottom:clamp(32px,4vw,48px)}
.cf-webinar-room-4 .wr4-h1{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;color:var(--ink);text-wrap:balance}
.cf-webinar-room-4 .wr4-mark{padding:0 .1em;margin:0 -.04em;border-radius:.14em .32em .2em .36em;background-image:linear-gradient(transparent 46%,oklch(from var(--wr4-marker) l c h / .55) 46%,oklch(from var(--wr4-marker) l c h / .55) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-webinar-room-4 .wr4-lead{margin-top:clamp(14px,1.6vw,22px);max-width:62ch;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-webinar-room-4 .wr4-grid{display:grid;gap:16px;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);grid-template-rows:auto 1fr auto;grid-template-areas:'stage host' 'stage slot' 'points slot'}
.cf-webinar-room-4 .wr4-grid.is-live{grid-template-rows:auto auto 1fr auto;grid-template-areas:'stage onair' 'stage host' 'stage slot' 'points slot'}
.cf-webinar-room-4 .wr4-stage{grid-area:stage}
.cf-webinar-room-4 .wr4-onair{grid-area:onair;animation-delay:.07s}
.cf-webinar-room-4 .wr4-host{grid-area:host;animation-delay:.14s}
.cf-webinar-room-4 .wr4-slot{grid-area:slot;animation-delay:.21s}
.cf-webinar-room-4 .wr4-points{grid-area:points;animation-delay:.28s}
.cf-webinar-room-4 .wr4-tile{position:relative;min-width:0;border-radius:var(--card-radius,var(--radius,14px));animation:wr4-in .45s cubic-bezier(.2,.7,.2,1) both}
.cf-webinar-room-4 .wr4-card{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));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--wr4-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--wr4-shadow) l c h / .2)))}
.cf-webinar-room-4 .wr4-slot{box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--wr4-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--wr4-shadow) l c h / .32))}
.cf-webinar-room-4 .wr4-stage{display:flex;flex-direction:column;gap:12px;padding:12px;background:var(--band);color:var(--band-ink);box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--wr4-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--wr4-shadow) l c h / .2))}
.cf-webinar-room-4 .wr4-stage-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding:6px 8px 0}
.cf-webinar-room-4 .wr4-stage-title{font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;color:var(--band-ink);text-wrap:balance}
.cf-webinar-room-4 .wr4-chip{display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .12);color:var(--band-ink);font-size:.875rem;font-weight:800;line-height:1.2;white-space:nowrap}
.cf-webinar-room-4 .wr4-media{position:relative;flex:1 0 auto;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:oklch(from var(--band) calc(l + .06) c h)}
.cf-webinar-room-4 .wr4-media>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.cf-webinar-room-4 .wr4-player{position:absolute;inset:0}
.cf-webinar-room-4 .wr4-player>*{width:100%;height:100%}
.cf-webinar-room-4 .wr4-media-empty{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:12px;padding:24px;text-align:center;color:var(--band-ink);font-weight:700}
.cf-webinar-room-4 .wr4-onair{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:14px 20px;background:var(--band);color:var(--band-ink);box-shadow:var(--shadow-sm,0 1px 1px oklch(from var(--wr4-shadow) l c h / .18),0 1px 3px oklch(from var(--wr4-shadow) l c h / .14))}
.cf-webinar-room-4 .wr4-onair-label{display:inline-flex;align-items:center;gap:12px;font-size:.875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;line-height:1.2}
.cf-webinar-room-4 .wr4-onair-detail{font-size:.9375rem;font-weight:500;line-height:1.4}
.cf-webinar-room-4 .wr4-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--wr4-onair);outline:4px solid oklch(from var(--wr4-onair) l c h / .3)}
.cf-webinar-room-4 .wr4-host{display:flex;align-items:center;gap:16px}
.cf-webinar-room-4 .wr4-portrait{flex:none;width:clamp(64px,6vw,88px);height:auto;aspect-ratio:1;border-radius:12px;object-fit:cover;object-position:50% 20%;background:color-mix(in oklch,var(--ink) 6%,var(--card))}
.cf-webinar-room-4 .wr4-portrait-empty{display:grid;place-items:center;color:var(--muted)}
.cf-webinar-room-4 .wr4-host-text{min-width:0}
.cf-webinar-room-4 .wr4-host-name{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;text-wrap:balance}
.cf-webinar-room-4 .wr4-host-role{margin-top:4px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-webinar-room-4 .wr4-title{font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;color:var(--ink);text-wrap:balance}
.cf-webinar-room-4 .wr4-title:focus{outline:none}
.cf-webinar-room-4 .wr4-note{margin-top:8px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-webinar-room-4 .wr4-ask{display:flex;flex-direction:column}
.cf-webinar-room-4 .wr4-label{display:block;margin:20px 0 8px;font-size:1.0625rem;font-weight:700;line-height:1.3;color:var(--label-ink,var(--ink))}
.cf-webinar-room-4 .wr4-field{position:relative;flex:1 1 auto;display:flex;min-height:136px;border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));background:var(--field);overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease}
.cf-webinar-room-4 .wr4-field:focus-within{border-color:var(--wr4-focus);box-shadow:0 0 0 3px oklch(from var(--wr4-focus) l c h / .35)}
.cf-webinar-room-4 .wr4-field.is-invalid{border-color:var(--danger);box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .22)}
.cf-webinar-room-4 .wr4-field textarea{flex:1;width:100%;margin:0;padding:14px 16px 20px;border:0;outline:0;resize:none;background:var(--field);color:var(--field-ink);font:inherit;font-size:1.0625rem;line-height:1.5}
.cf-webinar-room-4 .wr4-field textarea::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
.cf-webinar-room-4 .wr4-field textarea:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--field-ink) 5%,var(--field))}
.cf-webinar-room-4 .wr4-meter{position:absolute;left:0;right:0;bottom:0;height:4px;background:color-mix(in oklch,var(--ink) 8%,var(--field));pointer-events:none}
.cf-webinar-room-4 .wr4-meter>span{display:block;width:100%;height:100%;transform-origin:left center;background:var(--accent-fill,var(--accent));transition:transform .16s ease,background-color .16s ease}
.cf-webinar-room-4 .wr4-ask.is-near .wr4-meter>span{background:var(--warning)}
.cf-webinar-room-4 .wr4-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin-top:16px}
.cf-webinar-room-4 .wr4-count{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);font-variant-numeric:tabular-nums}
.cf-webinar-room-4 .wr4-ask.is-near .wr4-count{color:var(--warning)}
.cf-webinar-room-4 .wr4-foot .wr4-btn{flex:1 1 auto;width:auto;max-width:100%}
.cf-webinar-room-4 .wr4-error{margin-top:12px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--danger);text-wrap:pretty}
.cf-webinar-room-4 .wr4-inline-icon{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-webinar-room-4 .wr4-offer{display:flex;flex-direction:column;border-color:color-mix(in oklch,var(--accent) 45%,var(--card))}
.cf-webinar-room-4 .wr4-tag{display:flex;align-items:center;gap:12px;margin-bottom:12px;font-size:.875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;line-height:1.2;color:var(--accent)}
.cf-webinar-room-4 .wr4-tag .wr4-dot{width:8px;height:8px;background:var(--accent-fill,var(--accent));outline:3px solid oklch(from var(--accent-fill,var(--accent)) l c h / .28)}
.cf-webinar-room-4 .wr4-product{display:flex;align-items:flex-start;gap:16px;margin-top:16px}
.cf-webinar-room-4 .wr4-product img{flex:none;width:clamp(80px,7vw,104px);height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 2px 3px oklch(from var(--wr4-shadow) l c h / .28)) drop-shadow(0 10px 12px oklch(from var(--wr4-shadow) l c h / .18))}
.cf-webinar-room-4 .wr4-product>div{min-width:0}
.cf-webinar-room-4 .wr4-product .wr4-note{margin-top:4px}
.cf-webinar-room-4 .wr4-product-name{font-size:1.0625rem;font-weight:800;line-height:1.3;text-wrap:balance}
.cf-webinar-room-4 .wr4-buy{margin-top:auto;padding-top:20px}
.cf-webinar-room-4 .wr4-price{display:flex;align-items:flex-start;font-family:var(--font-display);font-weight:800;line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-webinar-room-4 .wr4-sym{margin:.18em .06em 0 0;font-size:clamp(1.3125rem,1.8vw,1.625rem)}
.cf-webinar-room-4 .wr4-amt{font-size:clamp(2.5rem,4.2vw,3.75rem)}
.cf-webinar-room-4 .wr4-rest{align-self:flex-end;margin-left:.2em;font-size:clamp(1.3125rem,1.8vw,1.625rem)}
.cf-webinar-room-4 .wr4-price-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 16px}
.cf-webinar-room-4 .wr4-was{padding-bottom:.3em;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:700;line-height:1;letter-spacing:-0.01em;font-variant-numeric:tabular-nums;color:var(--muted)}
.cf-webinar-room-4 .wr4-was s{text-decoration-line:line-through;text-decoration-color:var(--danger);text-decoration-thickness:2px}
.cf-webinar-room-4 .wr4-price-note{margin-top:12px;font-size:.875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;line-height:1.2;color:var(--muted)}
.cf-webinar-room-4 .wr4-buy .wr4-btn{margin-top:20px}
.cf-webinar-room-4 .wr4-reassure{margin-top:12px;text-align:center;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--ink);text-wrap:pretty}
.cf-webinar-room-4 .wr4-reassure svg{color:var(--success)}
.cf-webinar-room-4 .wr4-points ul{display:grid;gap:16px 24px;grid-template-columns:minmax(0,1fr);margin-top:16px;padding:0;list-style:none}
.cf-webinar-room-4 .wr4-points ul{gap:14px}
.cf-webinar-room-4 .wr4-points li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;max-width:64ch;line-height:1.45;text-wrap:pretty}
.cf-webinar-room-4 .wr4-badge{display:grid;place-items:center;width:24px;height:24px;margin-top:1px;border-radius:50%;background:var(--success);color:var(--success-ink,#fff)}
.cf-webinar-room-4 .wr4-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;padding:0 20px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--wr4-btn) calc(l + .04) c h),oklch(from var(--wr4-btn-2) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-decoration:none;text-shadow:var(--button-text-shadow,none);cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wr4-btn) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--wr4-btn) calc(l - .16) c h),0 1px 2px oklch(from var(--wr4-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--wr4-shadow) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-webinar-room-4 .wr4-btn.is-big{min-height:64px}
.cf-webinar-room-4 .wr4-btn:hover,.cf-webinar-room-4 .wr4-btn.is-hover{background:linear-gradient(oklch(from var(--wr4-btn) calc(l - .01) c h),oklch(from var(--wr4-btn-2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wr4-btn) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--wr4-btn) calc(l - .18) c h),0 1px 2px oklch(from var(--wr4-shadow) l c h / .32),0 10px 18px -6px oklch(from var(--wr4-shadow) l c h / .52))}
.cf-webinar-room-4 .wr4-btn:active,.cf-webinar-room-4 .wr4-btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--wr4-btn) calc(l - .03) c h),oklch(from var(--wr4-btn-2) calc(l - .09) c h));box-shadow:inset 0 2px 3px oklch(from var(--wr4-btn) calc(l - .22) c h / .5),inset 0 -2px 0 oklch(from var(--wr4-btn) calc(l - .16) c h),0 1px 1px oklch(from var(--wr4-shadow) l c h / .3)}
.cf-webinar-room-4 .wr4-btn:disabled,.cf-webinar-room-4 .wr4-btn[aria-disabled='true']{transform:none;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:none;text-shadow:none;cursor:not-allowed}
.cf-webinar-room-4 .wr4-btn[aria-busy='true']{cursor:progress}
.cf-webinar-room-4 .wr4-btn:focus-visible{outline:3px solid var(--wr4-focus);outline-offset:3px}
.cf-webinar-room-4 .wr4-spin{flex:none;animation:wr4-spin .8s linear infinite}
.cf-webinar-room-4 .wr4-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@keyframes wr4-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes wr4-spin{to{transform:rotate(360deg)}}
@media (max-width:900px){.cf-webinar-room-4 .wr4-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:'stage' 'host' 'slot' 'points'}.cf-webinar-room-4 .wr4-grid.is-live{grid-template-rows:none;grid-template-areas:'onair' 'stage' 'host' 'slot' 'points'}.cf-webinar-room-4 .wr4-media{flex:none}.cf-webinar-room-4 .wr4-field{flex:none;min-height:132px}.cf-webinar-room-4 .wr4-buy{margin-top:0}}
@media (max-width:560px){.cf-webinar-room-4 .wr4-grid{gap:12px}.cf-webinar-room-4 .wr4-stage{padding:8px;gap:10px}.cf-webinar-room-4 .wr4-stage-head{padding:6px 6px 0}.cf-webinar-room-4 .wr4-onair{padding:12px 16px}.cf-webinar-room-4 .wr4-host{gap:12px;padding:12px 16px}.cf-webinar-room-4 .wr4-portrait{width:52px;border-radius:8px}.cf-webinar-room-4 .wr4-host-name{font-size:1.0625rem}.cf-webinar-room-4 .wr4-chip{white-space:normal}.cf-webinar-room-4 .wr4-foot{gap:8px;margin-top:8px}.cf-webinar-room-4 .wr4-count{margin-left:auto}.cf-webinar-room-4 .wr4-foot .wr4-btn{flex-basis:100%}}
@media (prefers-reduced-motion:reduce){.cf-webinar-room-4 .wr4-tile,.cf-webinar-room-4 .wr4-spin{animation:none}.cf-webinar-room-4 :is(.wr4-btn,.wr4-field,.wr4-meter>span){transition:none}}
`
pieces/hero/webinar-room-4/specimen.tsx 61 lines
import __studioImage305c57d9 from "../assets/52414abea16bb702.webp";
import __studioImagea8534c21 from "../assets/1668095918b5260c.webp";
import __studioImageb2140d81 from "../assets/f6b2cf888c366b34.webp";
// Specimen: Rotaly’s live demo in the studio bento. The question tile shows before the offer moment; the offer tile shows after it.
import * as React from 'react'
import { WebinarRoom4 } from '../webinar-room-4'
import { slot } from '../../slots'
import defaults from '../../studio-defaults.json'
export const states = ['default', 'hover', 'active', 'disabled', 'error'] as const
type SpecimenState = (typeof states)[number]
export default function WebinarRoom4Specimen({ state = 'default' }: { state?: SpecimenState }) {
const sample = defaults.sample
// Before the offer moment: default shows a typed question, disabled shows an empty box (send disabled), and error shows an empty send.
// After the offer moment: hover and active show the offer tile with Add To Cart in that press state.
const offerMoment = state === 'hover' || state === 'active'
const emptyBox = state === 'disabled' || state === 'error'
return (
<WebinarRoom4
key={state}
headline='Shift scheduling, done in ten minutes'
highlight='done in ten minutes'
lead='Watch Rotaly build, swap and publish a full week of shifts live, then ask about your own roster while the host is on air.'
sessionName='Rotaly Live Demo'
sessionTime='Thursday · 1:00 pm ET'
live
liveDetail='Live from the Rotaly studio'
sceneImage={slot('scene', __studioImage305c57d9)}
sceneAlt='The Rotaly demo studio, with a laptop and a wall screen of colour-coded shifts'
hostName='Maya Okafor'
hostRole='Head of Product, Rotaly'
presenterImage={slot('presenter', __studioImagea8534c21)}
presenterAlt='Maya Okafor, host of the Rotaly live demo'
pointsTitle='In the next ten minutes, you’ll see'
points={[
'How to build next week from last week’s pattern in one click',
'The one setting that stops a double-booked shift before it’s published',
'Why swap requests stop landing in your texts once your team is on Rotaly',
]}
offerOpen={offerMoment}
productName='Rotaly Founding Plan'
offerDetail='Every feature from the demo, ready for your team today.'
productImage={slot('product', __studioImageb2140d81)}
productAlt='Rotaly on a tablet, showing a colour-coded weekly shift schedule'
price={sample.price}
regularPrice={sample.regularPrice}
priceNote='one-time payment'
guarantee={sample.guarantee}
defaultQuestion={emptyBox ? '' : 'Can I copy last week’s shifts and swap just two people?'}
state={state === 'disabled' ? 'default' : state}
copy={{
questionTitle: 'Ask Maya about your schedule',
questionLead: 'Send it now and she answers live, on air.',
questionPlaceholder: 'Can Rotaly handle split shifts across two locations?',
offerTitle: 'Run next week’s schedule on Rotaly',
}}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalWebinarRoom4 |
string |
Default 'Map out your first funnel'
|
highlight OptionalWebinarRoom4 |
string |
Default 'first funnel'
|
lead OptionalWebinarRoom4 |
string |
Default 'Join the Funnel Starter Workshop and walk through your offer, page copy, and next steps.'
|
sessionName OptionalWebinarRoom4 |
string |
Default 'Funnel Starter Workshop'
|
sessionTime OptionalWebinarRoom4 |
string |
Default 'Free workshop · Watch online'
|
live OptionalWebinarRoom4 |
boolean |
Default false
|
liveDetail OptionalWebinarRoom4 |
string |
Default 'Live from the studio'
|
player OptionalWebinarRoom4 |
React.ReactNode |
|
sceneImage OptionalWebinarRoom4 |
string |
|
sceneAlt OptionalWebinarRoom4 |
string |
Default 'The workshop studio set'
|
hostName OptionalWebinarRoom4 |
string |
Default 'Your workshop host'
|
hostRole OptionalWebinarRoom4 |
string |
Default 'Here to answer your questions'
|
presenterImage OptionalWebinarRoom4 |
string |
|
presenterAlt OptionalWebinarRoom4 |
string |
Default 'Portrait of the workshop host'
|
pointsTitle OptionalWebinarRoom4 |
string |
Default 'In this workshop, you’ll see'
|
points OptionalWebinarRoom4 |
string[] |
Default DEFAULT_POINTS
|
offerOpen OptionalWebinarRoom4 |
boolean |
|
offerAt OptionalWebinarRoom4 |
string | number |
|
productName OptionalWebinarRoom4 |
string |
Default 'The Funnel Starter Kit'
|
offerDetail OptionalWebinarRoom4 |
string |
Default 'Guide, workbook and checklist in one download.'
|
productImage OptionalWebinarRoom4 |
string |
|
productAlt OptionalWebinarRoom4 |
string |
Default ''
|
price OptionalWebinarRoom4 |
string |
Default '$47'
|
regularPrice OptionalWebinarRoom4 |
string |
|
priceNote OptionalWebinarRoom4 |
string |
Default 'one-time payment'
|
guarantee OptionalWebinarRoom4 |
string |
Default '30-day money-back guarantee'
|
href OptionalWebinarRoom4 |
string |
|
onAction OptionalWebinarRoom4 |
() => void | Promise<void> |
|
defaultQuestion OptionalWebinarRoom4 |
string |
Default ''
|
maxLength OptionalWebinarRoom4 |
number |
Default 280
|
clearOnSend OptionalWebinarRoom4 |
boolean |
Default true
|
onSubmit OptionalWebinarRoom4 |
(values: { question: string }) => void | Promise<void> |
|
state OptionalWebinarRoom4 |
WebinarRoom4State |
Default 'default'
|
copy OptionalWebinarRoom4 |
WebinarRoom4Copy |
|
className OptionalWebinarRoom4 |
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- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter- A photo of the host, coach or founder.
product- The main product shot or cover (ebook, kit, bottle).
scene- A wide atmosphere photo behind or beside the copy.
-
1668095918b5260c.webp
image/webp · 38.5 KB
-
52414abea16bb702.webp
image/webp · 64.3 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
f6b2cf888c366b34.webp
image/webp · 41.8 KB