Webinar Room 2
Replay room: the visitor steps through the workshop part by part on a lit stage. The chapter path ends at the offer, which opens with price, button and guarantee at the replay’s offer moment.
Use it in a prompt
Use hero/webinar-room-2 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-2.tsx. - Import it and pass your copy and images (Props tab):
import { WebinarRoom2 } from "@/components/funneldna/hero/webinar-room-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/webinar-room-2/component.tsx 532 lines
// layout: path-to-action
// Replay room: the visitor steps through the workshop part by part on a lit stage. The chapter path ends at the offer, which opens with price, button and guarantee at the replay’s offer moment.
'use client'
import * as React from 'react'
import { AlertCircle, Clock3, Gift, Loader2, Lock, Presentation, ShieldCheck } from 'lucide-react'
import { FX_HOST, Spotlight } from '../fx/fx'
export type WebinarRoom2Chapter = {
title: string
/** Seconds into the replay where this part starts. */
at: number
/** Bold lead-in that opens the slide line. */
lead?: string
detail?: string
}
export type WebinarRoom2Item = { name: string; image?: string; imageAlt?: string }
export type WebinarRoom2State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type WebinarRoom2Copy = {
/** Replaces {workshop}. */
replayTag?: string
/** Replaces {number}, {total} and {time}. */
partTag?: string
/** Shown before the offer opens. Replaces {time}. */
offerTag?: string
/** Shown once the offer is open. Replaces {time}. */
offerOpenTag?: string
pathLabel?: string
offerSlideLead?: string
offerSlideText?: string
/** Replaces {name}. */
itemsLabel?: string
lockedTitle?: string
lockedText?: string
/** Replaces {time}. */
jumpLabel?: string
offerTitle?: string
/** Announced when the offer opens. Replaces {name}. */
openedMessage?: string
}
export type WebinarRoom2Props = {
headline?: string
/** Phrase inside the headline shown in the emphasis colour. */
highlight?: string
/** Replaces {workshop}, {name} and {time} (the offer moment). */
subheadline?: string
workshopName?: string
/** presenter-cutout slot: transparent waist-up portrait. */
presenterImage?: string
presenterAlt?: string
chapters?: WebinarRoom2Chapter[]
/** Seconds into the replay where the offer opens. */
offerAt?: number
/** Index of the part shown first. */
startChapter?: number
/** true opens the offer from the start; false keeps it closed until the visitor reaches it. */
offerOpen?: boolean
productName?: string
offerLead?: string
offerDetail?: string
/** Offer items shown on the offer slide (item-1 … item-n slots). */
items?: WebinarRoom2Item[]
price?: string
priceTerm?: string
/** Supplied per-day breakdown under the price. */
priceBreakdown?: string
label?: string
sublabel?: string
guarantee?: string
loadingText?: string
errorText?: string
href?: string
/** A returned promise shows loadingText until it settles; a rejection shows errorText. */
onAction?: () => void | Promise<void>
state?: WebinarRoom2State
copy?: WebinarRoom2Copy
className?: string
}
export function WebinarRoom2({
headline = 'Map out your first funnel in one replay',
highlight = 'first funnel',
subheadline = 'Step through the {workshop} part by part. At {time}, {name} opens right here.',
workshopName = 'Funnel Starter Workshop',
presenterImage,
presenterAlt = 'Workshop presenter explaining a slide',
chapters = DEFAULT_CHAPTERS,
offerAt = 2280,
startChapter = 0,
offerOpen,
productName = 'The Funnel Starter Kit',
offerLead = 'Guide, workbook and checklist.',
offerDetail = 'Everything from the replay in one download. One payment, yours to keep.',
items = [],
price = '$47',
priceTerm = 'once',
priceBreakdown = 'That’s about $1.57 a day for a month.',
label = 'Send me the Starter Kit',
sublabel = 'Instant download · yours to keep',
guarantee = '30-day money-back guarantee',
loadingText = 'Opening secure checkout…',
errorText = 'We couldn’t open checkout. Please try again.',
href,
onAction,
state = 'default',
copy,
className,
}: WebinarRoom2Props) {
const c = { ...DEFAULT_COPY, ...copy }
const total = chapters.length
const first = clamp(startChapter, 0, Math.max(0, total - 1))
const uid = React.useId()
const headingId = uid + '-h'
const stageRef = React.useRef<HTMLDivElement | null>(null)
const mounted = React.useRef(true)
const [current, setCurrent] = React.useState(() => (offerOpen || total === 0 ? total : first))
const [reached, setReached] = React.useState(() => Boolean(offerOpen) || total === 0)
const [moved, setMoved] = React.useState(false)
const [action, setAction] = React.useState<'idle' | 'loading' | 'error'>('idle')
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
React.useEffect(() => {
if (offerOpen === undefined) return
const open = offerOpen || total === 0
setReached(open)
setCurrent(open ? total : first)
setMoved(false)
}, [offerOpen, total, first])
const go = (index: number) => {
const next = clamp(index, 0, total)
setMoved(true)
setCurrent(next)
if (next >= total) setReached(true)
if (next < total && typeof window !== 'undefined' && window.matchMedia('(max-width: 900px)').matches) {
const stage = stageRef.current
if (stage && stage.getBoundingClientRect().bottom < 96) {
const still = window.matchMedia('(prefers-reduced-motion: reduce)').matches
stage.scrollIntoView({ block: 'start', behavior: still ? 'auto' : 'smooth' })
}
}
}
const status = state === 'error' ? 'error' : action
const disabled = state === 'disabled'
const busy = status === 'loading'
const forced = state === 'hover' ? ' is-hover' : state === 'active' ? ' is-active' : ''
const handle = (event: React.MouseEvent<HTMLElement>) => {
if (disabled || busy) {
event.preventDefault()
return
}
if (!onAction) return
setAction('idle')
let result: void | Promise<void>
try {
result = onAction()
} catch {
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 offerTime = clock(offerAt)
const vars = { name: productName, time: offerTime, workshop: workshopName }
const onOffer = current >= total
const chapter = onOffer ? undefined : chapters[current]
const ctaInner = busy ? (
<span className='wr2-cta-row'>
<Loader2 className='wr2-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
<span className='wr2-cta-label'>{loadingText}</span>
</span>
) : (
<>
<span className='wr2-cta-label'>{label}</span>
{sublabel ? <span className='wr2-cta-sub'>{sublabel}</span> : null}
</>
)
const cta = href ? (
<a
className={'wr2-cta' + forced}
href={disabled ? undefined : href}
aria-disabled={disabled || undefined}
aria-busy={busy || undefined}
onClick={handle}
>
{ctaInner}
</a>
) : (
<button type='button' className={'wr2-cta' + forced} disabled={disabled} aria-busy={busy || undefined} onClick={handle}>
{ctaInner}
</button>
)
return (
<section
className={['cf-webinar-room-2', className].filter(Boolean).join(' ')}
style={FX_HOST}
aria-labelledby={headingId}
>
<style>{CSS}</style>
<Spotlight />
<div className='wr2-wrap'>
<header className='wr2-head'>
<h1 id={headingId} className='wr2-h1'>
<Emph text={headline} phrase={highlight} />
</h1>
{subheadline ? <p className='wr2-lead'>{fill(subheadline, vars)}</p> : null}
</header>
<div className='wr2-stage' ref={stageRef}>
<div className='wr2-bar'>
<span className='wr2-chip'>
<Presentation size={16} strokeWidth={2.5} aria-hidden='true' />
{fill(c.replayTag, vars)}
</span>
<span className='wr2-chip'>
{chapter
? fill(c.partTag, { number: current + 1, total, time: clock(chapter.at) })
: fill(reached ? c.offerOpenTag : c.offerTag, vars)}
</span>
</div>
<div className={'wr2-slide' + (onOffer ? ' is-offer' : '')}>
<div className='wr2-copy' key={current} data-animate={moved ? 'rise' : undefined}>
{chapter ? (
<>
<span className='wr2-num'>{two(current + 1)}</span>
<h2 className='wr2-title'>{chapter.title}</h2>
{chapter.lead || chapter.detail ? (
<p className='wr2-body'>
{chapter.lead ? <strong>{chapter.lead}</strong> : null} {chapter.detail}
</p>
) : null}
</>
) : (
<>
<span className='wr2-num'>{offerTime}</span>
<h2 className='wr2-title'>{productName}</h2>
<p className='wr2-body'>
{c.offerSlideLead ? <strong>{c.offerSlideLead}</strong> : null} {c.offerSlideText}
</p>
{items.length > 0 ? (
<ul className='wr2-items' aria-label={fill(c.itemsLabel, vars)}>
{items.map((item, i) => (
<li key={item.name + i}>
{item.image ? (
<img src={item.image} alt={item.imageAlt || item.name} width={160} height={160} decoding='async' />
) : null}
<span>{item.name}</span>
</li>
))}
</ul>
) : null}
</>
)}
</div>
{presenterImage ? (
<img className='wr2-presenter' src={presenterImage} alt={presenterAlt} width={512} height={512} decoding='async' />
) : null}
</div>
</div>
<div className='wr2-path'>
<ol className='wr2-stops' aria-label={c.pathLabel} style={{ ['--wr2-n' as string]: Math.max(1, total) } as React.CSSProperties}>
{chapters.map((ch, i) => {
const past = i < current
const now = i === current
return (
<li key={ch.title + i} className={'wr2-stop' + (past ? ' is-done' : '')}>
<button
type='button'
className={'wr2-stop-btn' + (now ? ' is-now' : '') + (past ? ' is-past' : '')}
aria-current={now ? 'step' : undefined}
onClick={() => go(i)}
>
<span className='wr2-dot' aria-hidden='true' />
<span className='wr2-stop-text'>
<span className='wr2-stop-top'>
<span className='wr2-stop-num'>{two(i + 1)}</span>
<span className='wr2-stop-time'>
<Clock3 size={16} strokeWidth={2.5} aria-hidden='true' />
{clock(ch.at)}
</span>
</span>
<span className='wr2-stop-title'>{ch.title}</span>
</span>
</button>
</li>
)
})}
<li className={'wr2-final' + (reached ? ' is-open' : '')}>
<div className='wr2-final-head'>
<span className='wr2-node' aria-hidden='true'>
{reached ? <Gift size={14} strokeWidth={2.5} /> : <Lock size={14} strokeWidth={2.5} />}
</span>
<span className='wr2-final-label'>{fill(reached ? c.offerOpenTag : c.offerTag, vars)}</span>
</div>
<div className={'wr2-offer' + (reached && moved ? ' is-entering' : '')}>
{reached ? (
<>
<h3 className='wr2-h3'>{c.offerTitle}</h3>
<p className='wr2-offer-copy'>
{offerLead ? <strong>{offerLead}</strong> : null} {offerDetail}
</p>
<p className='wr2-price'>
<span className='wr2-amount'>{price}</span>
{priceTerm ? <span className='wr2-term'>{priceTerm}</span> : null}
</p>
{priceBreakdown ? <p className='wr2-per'>{priceBreakdown}</p> : null}
{cta}
{status === 'error' ? (
<p className='wr2-error' role='alert'>
<AlertCircle className='wr2-ic' size={16} strokeWidth={2.5} aria-hidden='true' />
{errorText}
</p>
) : null}
{guarantee ? (
<p className='wr2-guar'>
<ShieldCheck className='wr2-ic' size={18} strokeWidth={2.5} aria-hidden='true' />
{guarantee}
</p>
) : null}
</>
) : (
<>
<h3 className='wr2-h3'>{fill(c.lockedTitle, vars)}</h3>
<p className='wr2-lock-text'>{fill(c.lockedText, vars)}</p>
<button type='button' className='wr2-jump' onClick={() => go(total)}>
{fill(c.jumpLabel, vars)}
</button>
</>
)}
</div>
</li>
</ol>
</div>
<p className='wr2-sr' role='status'>
{reached && moved ? fill(c.openedMessage, vars) : ''}
</p>
</div>
</section>
)
}
export default WebinarRoom2
const DEFAULT_CHAPTERS: WebinarRoom2Chapter[] = [
{ title: 'Find the one offer your funnel sells', at: 0, lead: 'Start with one offer.', detail: 'Name who it’s for and the result they want first.' },
{ title: 'Map the pages your funnel needs', at: 560, lead: 'Sketch the path.', detail: 'Opt-in, sales page, order form and thank-you page, in order.' },
{ title: 'Write the headline that earns the click', at: 1305, lead: 'Lead with the promise.', detail: 'Then let the subhead make it clear in one line.' },
{ title: 'Check every step before you launch', at: 1810, lead: 'Test it like a visitor.', detail: 'Click every link, fill every form, follow every next step.' },
]
const DEFAULT_COPY: Required<WebinarRoom2Copy> = {
replayTag: 'Replay · {workshop}',
partTag: 'Part {number} of {total} · {time}',
offerTag: '{time} · Your kit opens',
offerOpenTag: '{time} · Your kit is open',
pathLabel: 'Replay parts',
offerSlideLead: 'Now open.',
offerSlideText: 'The guide, workbook and checklist that go with this replay.',
itemsLabel: 'Included in {name}',
lockedTitle: 'Plan, write and check your funnel tonight',
lockedText: 'Keep stepping through the replay, or jump straight to the moment the kit opens.',
jumpLabel: 'Jump to {time}',
offerTitle: 'Take the whole workshop home',
openedMessage: '{name} is now open below the replay.',
}
function Emph({ text, phrase }: { 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='wr2-em'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
)
}
function fill(template: string, values: Record<string, string | number>) {
let out = template
for (const key of Object.keys(values)) out = out.split('{' + key + '}').join(String(values[key]))
return out
}
function clamp(n: number, min: number, max: number) {
return Math.min(Math.max(n, min), max)
}
function two(n: number) {
return String(n).padStart(2, '0')
}
function clock(seconds: number) {
const s = Math.max(0, Math.round(seconds))
const h = Math.floor(s / 3600)
const m = Math.floor((s % 3600) / 60)
const r = s % 60
return h ? h + ':' + two(m) + ':' + two(r) : two(m) + ':' + two(r)
}
const R = '.cf-webinar-room-2'
const CSS = `
${R}{--wr2-hi:color-mix(in oklch,var(--accent-fill,var(--accent)) 42%,var(--band-ink));--wr2-soft:color-mix(in oklch,var(--band-ink) 82%,var(--band));--wr2-line:oklch(from var(--band-ink) l c h / .22);--wr2-sh:var(--shadow,oklch(.22 .03 260));position:relative;isolation:isolate;overflow:hidden;background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} img{display:block;max-width:100%}
${R} .wr2-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
${R} .wr2-head{max-width:54rem;margin:0 auto clamp(32px,4vw,48px);text-align:center}
${R} .wr2-h1{margin:0 0 clamp(14px,1.6vw,22px);font-family:var(--font-display);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance;color:var(--band-ink)}
${R} .wr2-em{color:var(--wr2-hi)}
${R} .wr2-lead{margin:0 auto;max-width:44rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty;color:var(--band-ink)}
${R} .wr2-stage{position:relative;padding:clamp(10px,1.4vw,18px);border-radius:var(--card-radius,var(--radius,14px));background:oklch(from var(--band) calc(l - 0.05) c h);border:1px solid oklch(from var(--band-ink) l c h / .14);box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--wr2-sh) l c h / .22),0 12px 24px -8px oklch(from var(--wr2-sh) l c h / .32))}
${R} .wr2-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:2px 2px 12px}
${R} .wr2-chip{display:inline-flex;align-items:center;gap:8px;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;font-variant-numeric:tabular-nums}
${R} .wr2-chip svg{flex:none}
${R} .wr2-slide{position:relative;overflow:hidden;min-height:clamp(380px,38vw,480px);border-radius:10px;background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12))}
${R} .wr2-copy{position:relative;z-index:2;width:58%;min-height:inherit;display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,4vw,56px)}
${R} .wr2-copy[data-animate]{animation:wr2-rise .45s cubic-bezier(.2,.7,.2,1) both}
${R} .wr2-num{display:block;margin:0 0 clamp(20px,2.2vw,28px);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;color:var(--accent)}
${R} .wr2-title{margin:0 0 clamp(12px,1.2vw,16px);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;color:var(--ink)}
${R} .wr2-body{margin:0;max-width:34rem;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty;color:var(--muted)}
${R} .wr2-body strong,${R} .wr2-offer-copy strong{color:var(--ink);font-weight:700}
${R} .wr2-items{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:26rem}
${R} .wr2-items li{display:grid;gap:8px;align-content:start;min-width:0}
${R} .wr2-items img{width:100%;aspect-ratio:1/1;height:auto;object-fit:cover;border-radius:8px;filter:drop-shadow(0 2px 3px oklch(from var(--wr2-sh) l c h / .25)) drop-shadow(0 8px 12px oklch(from var(--wr2-sh) l c h / .16))}
${R} .wr2-items span{font-size:.9375rem;font-weight:600;line-height:1.3;color:var(--ink);text-wrap:pretty}
${R} .wr2-presenter{position:absolute;z-index:1;right:clamp(0px,2vw,32px);bottom:0;height:96%;width:auto;max-width:46%;aspect-ratio:1/1;object-fit:contain;object-position:bottom center;filter:drop-shadow(0 2px 3px oklch(from var(--wr2-sh) l c h / .28)) drop-shadow(0 14px 18px oklch(from var(--wr2-sh) l c h / .18))}
${R} .wr2-path{margin-top:clamp(28px,3.5vw,44px)}
${R} .wr2-stops{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--wr2-n,4),minmax(0,1fr)) minmax(0,2.4fr);gap:16px;align-items:start}
${R} .wr2-stop{position:relative;min-width:0}
${R} .wr2-stop::before,${R} .wr2-stop::after{content:'';position:absolute;top:19px;left:20px;width:calc(100% + 16px);height:3px;border-radius:3px;background:var(--wr2-line);pointer-events:none}
${R} .wr2-stop::before{z-index:1;background:var(--accent-fill,var(--accent));transform:scaleX(0);transform-origin:left center;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
${R} .wr2-stop.is-done::before{transform:scaleX(1)}
${R} .wr2-stop-btn{position:relative;z-index:2;display:grid;gap:16px;width:100%;margin:0;padding:8px 12px 14px;border:0;border-radius:12px;background:transparent;color:var(--band-ink);font:inherit;text-align:left;cursor:pointer;transition:background .16s ease}
${R} .wr2-stop-btn:hover{background:oklch(from var(--band-ink) l c h / .08)}
${R} .wr2-stop-btn:focus-visible{outline:3px solid var(--wr2-hi);outline-offset:2px}
${R} .wr2-dot{justify-self:start;display:block;width:16px;height:16px;margin:4px 0;border-radius:50%;background:var(--band);box-shadow:inset 0 0 0 3px oklch(from var(--band-ink) l c h / .45);transition:transform .16s ease}
${R} .wr2-stop-btn.is-past .wr2-dot{background:var(--accent-fill,var(--accent));box-shadow:none}
${R} .wr2-stop-btn.is-now .wr2-dot{background:var(--band);box-shadow:inset 0 0 0 4px var(--accent-fill,var(--accent));transform:scale(1.25)}
${R} .wr2-stop-text{display:block;min-width:0}
${R} .wr2-stop-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:6px}
${R} .wr2-stop-num{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;color:var(--wr2-hi)}
${R} .wr2-stop-time{display:inline-flex;align-items:center;gap:6px;font-size:.9375rem;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--wr2-soft)}
${R} .wr2-stop-title{display:block;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.3;text-wrap:pretty;color:var(--band-ink)}
${R} .wr2-stop-btn.is-now .wr2-stop-title{font-weight:800}
${R} .wr2-final{position:relative;z-index:2;min-width:0}
${R} .wr2-final-head{display:flex;align-items:center;gap:12px;height:40px;padding-left:8px;margin-bottom:8px}
${R} .wr2-node{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:var(--band);color:var(--band-ink);box-shadow:inset 0 0 0 2px oklch(from var(--band-ink) l c h / .45)}
${R} .wr2-final.is-open .wr2-node{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));box-shadow:none;animation:wr2-pop .3s ease both}
${R} .wr2-final-label{font-size:.9375rem;font-weight:800;line-height:1.3;font-variant-numeric:tabular-nums;color:var(--band-ink)}
${R} .wr2-offer{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));padding:clamp(20px,2.4vw,28px);box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--wr2-sh) l c h / .22),0 4px 10px -2px oklch(from var(--wr2-sh) l c h / .2)))}
${R} .wr2-final.is-open .wr2-offer{border-color:color-mix(in oklch,var(--accent) 45%,var(--card));box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--wr2-sh) l c h / .22),0 12px 24px -8px oklch(from var(--wr2-sh) l c h / .32))}
${R} .wr2-offer.is-entering{animation:wr2-rise .45s cubic-bezier(.2,.7,.2,1) both}
${R} .wr2-h3{margin:0 0 12px;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);text-wrap:balance;color:var(--ink)}
${R} .wr2-lock-text,${R} .wr2-offer-copy{margin:0 0 20px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty;color:var(--muted)}
${R} .wr2-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 12px}
${R} .wr2-amount{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;color:var(--ink)}
${R} .wr2-term{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;color:var(--ink)}
${R} .wr2-per{margin:0 0 20px;font-size:.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty;color:var(--muted)}
${R} .wr2-cta{--wr2-b:var(--button-bg,var(--cta));--wr2-b2:var(--button-bg-2,var(--cta-2));position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:72px;margin:0;padding:12px 24px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--wr2-b) calc(l + 0.04) c h),oklch(from var(--wr2-b2) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));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(--wr2-b) calc(l + 0.14) c h / .7),inset 0 -3px 0 oklch(from var(--wr2-b) calc(l - 0.16) c h),0 1px 2px oklch(from var(--wr2-sh) l c h / .3),0 8px 16px -6px oklch(from var(--wr2-sh) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
${R} .wr2-cta:hover,${R} .wr2-cta.is-hover{background:linear-gradient(oklch(from var(--wr2-b) calc(l - 0.01) c h),oklch(from var(--wr2-b2) calc(l - 0.07) c h));box-shadow:inset 0 1px 0 oklch(from var(--wr2-b) calc(l + 0.12) c h / .7),inset 0 -3px 0 oklch(from var(--wr2-b) calc(l - 0.2) c h),0 1px 2px oklch(from var(--wr2-sh) l c h / .32),0 10px 18px -6px oklch(from var(--wr2-sh) l c h / .52)}
${R} .wr2-cta:active,${R} .wr2-cta.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--wr2-b) calc(l - 0.04) c h),oklch(from var(--wr2-b2) calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from var(--wr2-b) calc(l - 0.22) c h / .5),inset 0 -2px 0 oklch(from var(--wr2-b) calc(l - 0.18) c h),0 1px 2px oklch(from var(--wr2-sh) l c h / .3)}
${R} .wr2-cta:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
${R} .wr2-cta:disabled,${R} .wr2-cta[aria-disabled='true']{cursor:not-allowed;transform:none;background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:none}
${R} .wr2-cta[aria-busy='true']{cursor:progress}
${R} .wr2-cta-row{display:inline-flex;align-items:center;justify-content:center;gap:8px}
${R} .wr2-cta-label{font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.15;font-weight:var(--button-weight,800);text-transform:var(--button-case,none);text-wrap:balance}
${R} .wr2-cta-sub{font-family:var(--font-body);font-size:.9375rem;line-height:1.3;font-weight:600;text-wrap:pretty}
${R} .wr2-spin{flex:none;animation:wr2-spin .8s linear infinite}
${R} .wr2-jump{--wr2-b:var(--button-bg,var(--cta));--wr2-b2:var(--button-bg-2,var(--cta-2));display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;margin:0;padding:0 24px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--wr2-b) calc(l + 0.04) c h),oklch(from var(--wr2-b2) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-size:clamp(1.125rem,1.5vw,1.25rem);line-height:1.15;font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-variant-numeric:tabular-nums;text-shadow:var(--button-text-shadow,none);text-wrap:balance;cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wr2-b) calc(l + 0.14) c h / .7),inset 0 -3px 0 oklch(from var(--wr2-b) calc(l - 0.16) c h),0 1px 2px oklch(from var(--wr2-sh) l c h / .3),0 8px 16px -6px oklch(from var(--wr2-sh) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
${R} .wr2-jump:hover{background:linear-gradient(oklch(from var(--wr2-b) calc(l - 0.01) c h),oklch(from var(--wr2-b2) calc(l - 0.07) c h));box-shadow:inset 0 1px 0 oklch(from var(--wr2-b) calc(l + 0.12) c h / .7),inset 0 -3px 0 oklch(from var(--wr2-b) calc(l - 0.2) c h),0 1px 2px oklch(from var(--wr2-sh) l c h / .32),0 10px 18px -6px oklch(from var(--wr2-sh) l c h / .52)}
${R} .wr2-jump:active{transform:translateY(1px);background:linear-gradient(oklch(from var(--wr2-b) calc(l - 0.04) c h),oklch(from var(--wr2-b2) calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from var(--wr2-b) calc(l - 0.22) c h / .5),inset 0 -2px 0 oklch(from var(--wr2-b) calc(l - 0.18) c h),0 1px 2px oklch(from var(--wr2-sh) l c h / .3)}
${R} .wr2-jump:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
${R} .wr2-error{margin:12px 0 0;padding:8px 12px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty}
${R} .wr2-guar{margin:14px 0 0;font-size:.9375rem;font-weight:600;line-height:1.4;text-align:center;text-wrap:pretty;color:var(--ink)}
${R} .wr2-ic{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
${R} .wr2-guar .wr2-ic{color:var(--success)}
${R} .wr2-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media (max-width:900px){
${R} .wr2-stops{grid-template-columns:minmax(0,1fr);gap:8px}
${R} .wr2-stop::before,${R} .wr2-stop::after{top:22px;left:19px;width:3px;height:calc(100% + 8px)}
${R} .wr2-stop::before{transform:scaleY(0);transform-origin:center top}
${R} .wr2-stop.is-done::before{transform:scaleY(1)}
${R} .wr2-stop-btn{grid-template-columns:16px minmax(0,1fr);align-items:start;padding:10px 12px}
}
@media (max-width:640px){
${R} .wr2-slide{min-height:0}
${R} .wr2-copy{width:100%;min-height:0;justify-content:flex-start;padding:24px 20px calc(min(56vw,240px) + 8px)}
${R} .wr2-presenter{right:50%;transform:translateX(50%);height:min(56vw,240px);max-width:none}
${R} .wr2-slide.is-offer .wr2-copy{padding-bottom:24px}
${R} .wr2-slide.is-offer .wr2-presenter{display:none}
${R} .wr2-items{gap:12px}
${R} .wr2-items span{font-size:.875rem}
${R} .wr2-bar{padding-bottom:10px}
}
@media (prefers-reduced-motion:reduce){
${R} .wr2-copy[data-animate],${R} .wr2-offer.is-entering,${R} .wr2-final.is-open .wr2-node,${R} .wr2-spin{animation:none}
${R} .wr2-stop::before,${R} .wr2-stop-btn,${R} .wr2-dot,${R} .wr2-cta,${R} .wr2-jump{transition:none}
}
@keyframes wr2-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes wr2-pop{from{transform:scale(.9)}to{transform:scale(1)}}
@keyframes wr2-spin{to{transform:rotate(360deg)}}
`
pieces/hero/webinar-room-2/specimen.tsx 33 lines
import __studioImage2810c927 from "../assets/b2c88288977e633b.webp";
import * as React from 'react'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
import { WebinarRoom2, type WebinarRoom2State } from '../webinar-room-2'
// default shows the room before the offer moment; every other state shows it after, with the offer open.
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function WebinarRoom2Specimen({ state = 'default' }: { state?: string }) {
const sample = defaults.sample
const current = (states.includes(state) ? state : 'default') as WebinarRoom2State
const before = current === 'default'
return (
<WebinarRoom2
key={before ? 'before' : 'after'}
state={current}
offerOpen={!before}
startChapter={1}
workshopName={sample.registration.name}
productName={sample.name}
price={sample.price}
guarantee={sample.guarantee}
presenterImage={slot('presenter-cutout', __studioImage2810c927)}
presenterAlt='Workshop presenter explaining a slide'
items={sample.items.map((item, i) => ({
name: item.name,
image: slot('item-' + (i + 1), item.image),
imageAlt: item.imageAlt,
}))}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalWebinarRoom2 |
string |
Default 'Map out your first funnel in one replay'
|
highlight OptionalWebinarRoom2 |
string |
Default 'first funnel'
|
subheadline OptionalWebinarRoom2 |
string |
Default 'Step through the {workshop} part by part. At {time}, {name} opens right here.'
|
workshopName OptionalWebinarRoom2 |
string |
Default 'Funnel Starter Workshop'
|
presenterImage OptionalWebinarRoom2 |
string |
|
presenterAlt OptionalWebinarRoom2 |
string |
Default 'Workshop presenter explaining a slide'
|
chapters OptionalWebinarRoom2 |
WebinarRoom2Chapter[] |
Default DEFAULT_CHAPTERS
|
offerAt OptionalWebinarRoom2 |
number |
Default 2280
|
startChapter OptionalWebinarRoom2 |
number |
Default 0
|
offerOpen OptionalWebinarRoom2 |
boolean |
|
productName OptionalWebinarRoom2 |
string |
Default 'The Funnel Starter Kit'
|
offerLead OptionalWebinarRoom2 |
string |
Default 'Guide, workbook and checklist.'
|
offerDetail OptionalWebinarRoom2 |
string |
Default 'Everything from the replay in one download. One payment, yours to keep.'
|
items OptionalWebinarRoom2 |
WebinarRoom2Item[] |
Default []
|
price OptionalWebinarRoom2 |
string |
Default '$47'
|
priceTerm OptionalWebinarRoom2 |
string |
Default 'once'
|
priceBreakdown OptionalWebinarRoom2 |
string |
Default 'That’s about $1.57 a day for a month.'
|
label OptionalWebinarRoom2 |
string |
Default 'Send me the Starter Kit'
|
sublabel OptionalWebinarRoom2 |
string |
Default 'Instant download · yours to keep'
|
guarantee OptionalWebinarRoom2 |
string |
Default '30-day money-back guarantee'
|
loadingText OptionalWebinarRoom2 |
string |
Default 'Opening secure checkout…'
|
errorText OptionalWebinarRoom2 |
string |
Default 'We couldn’t open checkout. Please try again.'
|
href OptionalWebinarRoom2 |
string |
|
onAction OptionalWebinarRoom2 |
() => void | Promise<void> |
|
state OptionalWebinarRoom2 |
WebinarRoom2State |
Default 'default'
|
copy OptionalWebinarRoom2 |
WebinarRoom2Copy |
|
className OptionalWebinarRoom2 |
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.
--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.
presenter-cutout- The presenter on a transparent background.
-
b2c88288977e633b.webp
image/webp · 117 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB