Webinar Session Picker 3
The host’s invitation set as an advertorial front page: the presenter speaks to one visitor, the supplied sessions sit under the speech as big radio rows that re-render in whatever time zone they choose, and one card saves the seat.
Use it in a prompt
Use forms/webinar-session-picker-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/forms/webinar-session-picker-3.tsx. - Import it and pass your copy and images (Props tab):
import { WebinarSessionPicker3 } from "@/components/funneldna/forms/webinar-session-picker-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/forms/webinar-session-picker-3/component.tsx 804 lines
// layout: advertorial-front
// The host’s invitation set as an advertorial front page: the presenter speaks to one visitor, the supplied sessions sit under the speech as big radio rows that re-render in whatever time zone they choose, and one card saves the seat.
import * as React from 'react'
import { AlertCircle, CalendarCheck, Check, ChevronDown, Globe, Loader2, Lock, ShieldCheck } from 'lucide-react'
/** States this piece renders. Hover and active are forced onto a session row and the register button for review. */
export type WebinarSessionPicker3State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
/** A session start with an optional closed flag. */
export type SessionRecord = {
startsAt: string | number | Date
/** Shows the row greyed out with copy.unavailable; it can't be picked. */
disabled?: boolean
}
/** A session start: ISO string, epoch milliseconds, Date, or a record. */
export type SessionInput = string | number | Date | SessionRecord
export type SessionPickerField = {
name: string
label: string
type?: string
autoComplete?: string
/** Example answer shown in the field. A sensible one is used when omitted. */
placeholder?: string
}
/** Every generated word. Placeholders in braces are replaced as text. */
export type WebinarSessionPicker3Copy = typeof DEFAULT_COPY
export type WebinarSessionPicker3Props = {
/** Generated words and templates. Placeholders: {date}, {city}, {name}, {label}, {host}, {time}, {zone}, {day}. */
copy?: Partial<WebinarSessionPicker3Copy>
/** Workshop name set as the masthead nameplate. */
workshopName?: string
/** Short line at the top left of the masthead. Empty hides it. */
edition?: string
headline?: string
/** Phrase inside the headline that gets the marker stroke. */
highlight?: string
lead?: string
/** presenter-cutout slot: the host on a transparent background. On phones it becomes a round portrait beside the first line of the speech. */
presenterImage?: string
presenterImageAlt?: string
hostName?: string
hostRole?: string
/** Name used in host-time lines; defaults to the first word of hostName. */
hostShortName?: string
/** The host's IANA zone; each row shows the host's own time small. Empty hides those lines. */
hostTimeZone?: string
/** First line of the speech, in the host's voice. */
greeting?: string
/** One short paragraph inviting the visitor. */
invitation?: React.ReactNode
/** Bold line introducing the takeaways. Empty hides it. */
takeawaysTitle?: string
/** What they'll leave with: three short lines. */
takeaways?: React.ReactNode[]
/** Heading over the session rows. */
pickTitle?: string
/** Supplied session starts. Past times hide themselves; the soonest show first. */
sessions?: SessionInput[]
maxSessions?: number
/** Zones offered in the switcher beside the visitor's own and the host's. */
zones?: string[]
/** Heading on the registration card. */
seatTitle?: string
/** Form fields; each gets a label, an example placeholder and required validation. */
fields?: SessionPickerField[]
/** Risk reversal set in bold right above the button. Empty hides it. */
riskLine?: string
/** Register button label. */
label?: string
/** Privacy line under the button. Empty hides it. */
privacy?: string
/** Alert shown in the error state or when onSubmit rejects. */
errorMessage?: string
/** Shown in place of rows when no upcoming session remains. */
emptyMessage?: string
/** Optional BCP 47 locale. Defaults to the visitor's browser. */
locale?: string
/** Starting zone. Defaults to the visitor’s browser zone; they can still change it. */
timeZone?: string
state?: WebinarSessionPicker3State
/** Called with the chosen session (ISO), the zone shown and the field values. A returned promise shows the loading label; a rejection shows errorMessage. */
onSubmit?: (data: { session: string; timeZone: string; values: Record<string, string> }) => void | Promise<void>
className?: string
}
const NO_SESSIONS: SessionInput[] = []
export function WebinarSessionPicker3({
copy: copyOverrides,
workshopName = 'Funnel Starter Workshop',
edition = 'Free online workshop',
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.',
presenterImage,
presenterImageAlt = '',
hostName = '',
hostRole = '',
hostShortName,
hostTimeZone,
greeting = 'Hi, I’ll be your host. Come and sit with me.',
invitation = 'Bring your offer idea. I’ll walk you through the pages your funnel needs, the copy for each one, and what to do the moment we finish.',
takeawaysTitle = 'You’ll leave with:',
takeaways = DEFAULT_TAKEAWAYS,
pickTitle = 'Pick the time that works for you',
sessions = NO_SESSIONS,
maxSessions = 4,
zones = COMMON_ZONES,
seatTitle = 'Save your free seat',
fields = DEFAULT_FIELDS,
riskLine = 'It’s free, and you can leave any time.',
label = 'Yes! Save My Seat',
privacy = 'We respect your inbox. Unsubscribe anytime.',
errorMessage = 'We couldn’t complete your registration. Please try again.',
emptyMessage = 'New sessions are on the way. Please check back soon.',
locale,
timeZone,
state = 'default',
onSubmit,
className,
}: WebinarSessionPicker3Props) {
const copy = React.useMemo(() => ({ ...DEFAULT_COPY, ...copyOverrides }), [copyOverrides])
const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, '')
const [now, setNow] = React.useState<number | null>(null)
const [home, setHome] = React.useState('')
const [zone, setZone] = React.useState('')
const [picked, setPicked] = React.useState<string | null>(null)
const [values, setValues] = React.useState<Record<string, string>>({})
const [errors, setErrors] = React.useState<Record<string, string>>({})
const [status, setStatus] = React.useState<'idle' | 'loading' | 'error'>('idle')
const [needPick, setNeedPick] = React.useState(false)
const alive = React.useRef(true)
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
React.useEffect(() => {
const mine = detectZone()
setHome(mine)
setZone(validZone(timeZone) ?? mine)
setNow(Date.now())
const timer = window.setInterval(() => setNow(Date.now()), 60000)
return () => window.clearInterval(timer)
}, [timeZone])
const loc = React.useMemo(() => okLocale(locale), [locale])
const hostZone = React.useMemo(() => validZone(hostTimeZone), [hostTimeZone])
const activeZone = zone || hostZone || 'UTC'
const hostFirst = (hostShortName ?? hostName.trim().split(' ')[0] ?? '').trim()
const parsed = React.useMemo(() => parseSessions(sessions), [sessions])
const slots = React.useMemo(
() => describeSlots(parsed, now, maxSessions, loc, activeZone, hostZone, hostFirst, copy),
[parsed, now, maxSessions, loc, activeZone, hostZone, hostFirst, copy],
)
const zoneOptions = React.useMemo(() => {
const probe = new Date(now ?? parsed[0]?.time ?? 0)
const seen = new Set<string>()
const out: { zone: string; label: string }[] = []
for (const candidate of [home, hostZone, activeZone, ...zones]) {
const ok = validZone(candidate)
if (!ok || seen.has(ok)) continue
seen.add(ok)
const base = fill(copy.zoneOption, { city: cityOf(ok), name: zoneName(probe, loc, ok, 'long') })
let text = base
if (ok === home) text = fill(copy.yourZone, { label: base })
else if (ok === hostZone && hostFirst) text = fill(copy.hostZone, { label: base, host: hostFirst })
out.push({ zone: ok, label: text })
}
return out
}, [home, hostZone, activeZone, zones, now, parsed, loc, copy, hostFirst])
const off = state === 'disabled'
const loading = status === 'loading'
const forced = state === 'hover' || state === 'active' ? state : undefined
const open = slots.filter((slot) => !slot.disabled)
const chosen = open.find((slot) => slot.id === picked) ?? (forced ? (open[0] ?? null) : null)
const forcedRow = forced ? (open.find((slot) => slot.id !== chosen?.id) ?? open[0])?.id : undefined
const showError = state === 'error' || status === 'error'
const shown: Record<string, string> =
state === 'error'
? Object.fromEntries(fields.map((field) => [field.name, errors[field.name] || fieldError(field, '', copy)]))
: errors
const dateline =
now != null
? fill(copy.dateline, { date: fmt(new Date(now), loc, activeZone, { weekday: 'long', month: 'long', day: 'numeric' }), city: cityOf(activeZone) })
: ''
const setValue = (name: string, value: string) => {
setValues((prev) => ({ ...prev, [name]: value }))
if (errors[name]) {
setErrors((prev) => {
const next = { ...prev }
delete next[name]
return next
})
}
}
const submit = async (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault()
if (off || loading) return
if (!chosen) {
setNeedPick(true)
document.getElementById(`${uid}-rows`)?.querySelector<HTMLInputElement>('input:not(:disabled)')?.focus()
return
}
const next: Record<string, string> = {}
for (const field of fields) {
const message = fieldError(field, (values[field.name] ?? '').trim(), copy)
if (message) next[field.name] = message
}
setErrors(next)
setStatus('idle')
const firstBad = fields.find((field) => next[field.name])
if (firstBad) {
document.getElementById(`${uid}-${firstBad.name}`)?.focus()
return
}
const clean = Object.fromEntries(fields.map((field) => [field.name, (values[field.name] ?? '').trim()]))
try {
const result = onSubmit?.({ session: chosen.id, timeZone: activeZone, values: clean })
if (!result || typeof (result as Promise<void>).then !== 'function') return
setStatus('loading')
await result
if (alive.current) setStatus('idle')
} catch {
if (alive.current) setStatus('error')
}
}
return (
<section className={`${ROOT}${className ? ` ${className}` : ''}`} aria-labelledby={`${uid}-h`}>
<style>{CSS}</style>
<div className='wsp3-wrap'>
<header className='wsp3-mast'>
<div className='wsp3-mast-top'>
{edition ? <span className='wsp3-edition'>{edition}</span> : <span />}
<span className='wsp3-dateline'>{dateline}</span>
</div>
<p className='wsp3-plate'>{workshopName}</p>
<h2 id={`${uid}-h`} className='wsp3-h'>
{withMarker(headline, highlight)}
</h2>
{lead ? <p className='wsp3-lead'>{lead}</p> : null}
</header>
<form className='wsp3-cols' data-host={presenterImage ? 'y' : 'n'} noValidate onSubmit={submit} aria-busy={loading || undefined}>
{presenterImage ? (
<figure className='wsp3-host wsp3-rise'>
<img src={presenterImage} alt={presenterImageAlt} width={640} height={640} />
{hostName || hostRole ? (
<figcaption>
{hostName ? <span className='wsp3-host-name'>{hostName}</span> : null}
{hostRole ? <span className='wsp3-host-role'>{hostRole}</span> : null}
</figcaption>
) : null}
</figure>
) : null}
<div className='wsp3-main'>
<div className='wsp3-speech wsp3-rise' style={delay(1)}>
<div className='wsp3-open'>
{presenterImage ? (
<span className='wsp3-portrait'>
<img src={presenterImage} alt={presenterImageAlt} width={64} height={64} />
</span>
) : null}
<p className='wsp3-greet'>{greeting}</p>
</div>
{invitation ? <p className='wsp3-say'>{invitation}</p> : null}
{takeaways.length ? (
<>
{takeawaysTitle ? <p className='wsp3-leave-t'>{takeawaysTitle}</p> : null}
<ul className='wsp3-leave'>
{takeaways.map((item, i) => (
<li key={i}>
<span className='wsp3-tick' aria-hidden='true'>
<Check size={14} strokeWidth={3} />
</span>
<span>{item}</span>
</li>
))}
</ul>
</>
) : null}
</div>
<div className='wsp3-pick wsp3-rise' style={delay(2)}>
<h3 id={`${uid}-pick`} className='wsp3-pick-t'>
{pickTitle}
</h3>
<div className='wsp3-zone'>
<label className='wsp3-zone-l' htmlFor={`${uid}-zone`}>
{copy.zoneLabel}
</label>
<span className='wsp3-sel'>
<Globe className='wsp3-globe' size={18} strokeWidth={2.5} aria-hidden='true' />
<select id={`${uid}-zone`} value={activeZone} disabled={off} onChange={(event) => setZone(event.target.value)}>
{zoneOptions.map((option) => (
<option key={option.zone} value={option.zone}>
{option.label}
</option>
))}
</select>
<ChevronDown className='wsp3-chev' size={18} strokeWidth={2.5} aria-hidden='true' />
</span>
</div>
{slots.length ? (
<div id={`${uid}-rows`} className='wsp3-rows' role='radiogroup' aria-labelledby={`${uid}-pick`}>
{slots.map((slot, i) => (
<label key={`${slot.id}-${i}`} className='wsp3-row' data-force={forcedRow === slot.id ? forced : undefined}>
<input
className='wsp3-radio'
type='radio'
name={`${uid}-session`}
value={slot.id}
checked={chosen?.id === slot.id}
disabled={off || slot.disabled}
onChange={() => {
setPicked(slot.id)
setNeedPick(false)
}}
/>
<span className='wsp3-box'>
<span className='wsp3-dot' aria-hidden='true' />
<span key={`w-${activeZone}`} className='wsp3-when wsp3-swap' style={delay(i)}>
<span className='wsp3-day'>{slot.day}</span>
<span className='wsp3-date'>
<span className='wsp3-dtext'>{slot.date}</span>
{slot.rel ? <span className='wsp3-chip'>{slot.rel}</span> : null}
</span>
</span>
<span key={`t-${activeZone}`} className='wsp3-time wsp3-swap' style={delay(i)}>
<span className='wsp3-local'>
{slot.local}
<span className='wsp3-tz'>{slot.short}</span>
</span>
{slot.disabled ? (
<span className='wsp3-note'>{copy.unavailable}</span>
) : slot.host ? (
<span className='wsp3-note'>{slot.host}</span>
) : null}
</span>
</span>
</label>
))}
</div>
) : (
<p className='wsp3-empty'>{emptyMessage}</p>
)}
</div>
</div>
<div className='wsp3-seat wsp3-rise' style={delay(3)}>
<h3 className='wsp3-seat-t'>{seatTitle}</h3>
<p
id={`${uid}-picked`}
className='wsp3-pickline'
data-on={chosen ? 'y' : undefined}
data-warn={needPick && !chosen ? 'y' : undefined}
aria-live='polite'
>
<CalendarCheck size={18} strokeWidth={2.5} aria-hidden='true' />
{chosen ? (
<>
{copy.pickedLead} <strong>{chosen.when}</strong>
</>
) : needPick ? (
copy.pickFirst
) : (
copy.noPick
)}
</p>
<div className='wsp3-fields'>
{fields.map((field) => {
const id = `${uid}-${field.name}`
const error = shown[field.name]
return (
<div key={field.name} className='wsp3-field'>
<label htmlFor={id}>{field.label}</label>
<input
id={id}
name={field.name}
type={field.type ?? 'text'}
inputMode={field.type === 'email' ? 'email' : undefined}
autoComplete={field.autoComplete}
placeholder={field.placeholder ?? examplePlaceholder(field)}
value={values[field.name] ?? ''}
disabled={off}
onChange={(event) => setValue(field.name, event.target.value)}
aria-invalid={error ? true : undefined}
aria-describedby={error ? `${id}-err` : undefined}
/>
{error ? (
<p id={`${id}-err`} className='wsp3-err'>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden='true' />
{error}
</p>
) : null}
</div>
)
})}
</div>
{riskLine ? (
<p className='wsp3-risk'>
<ShieldCheck size={20} strokeWidth={2.5} aria-hidden='true' />
{riskLine}
</p>
) : null}
{showError ? (
<p className='wsp3-alert' role='alert'>
<AlertCircle size={18} strokeWidth={2.5} aria-hidden='true' />
{errorMessage}
</p>
) : null}
<button
type='submit'
className='wsp3-btn'
disabled={off}
data-force={forced}
aria-busy={loading || undefined}
aria-describedby={`${uid}-picked`}
>
{loading ? (
<>
<Loader2 className='wsp3-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
{copy.loading}
</>
) : (
label
)}
</button>
{privacy ? (
<p className='wsp3-privacy'>
<Lock size={16} strokeWidth={2.5} aria-hidden='true' />
{privacy}
</p>
) : null}
</div>
</form>
</div>
</section>
)
}
export default WebinarSessionPicker3
type Slot = {
id: string
time: number
disabled: boolean
day: string
date: string
local: string
short: string
rel: string
host: string
when: string
}
const DEFAULT_COPY = {
dateline: '{date} · {city} edition',
zoneLabel: 'Times shown in',
zoneOption: '{city} · {name}',
yourZone: '{label} (your time)',
hostZone: '{label} ({host}’s time)',
hostTime: '{time} {zone} for {host}',
hostTimeAnon: '{time} {zone}, host time',
sameAsHost: 'Same time as {host}',
sameAsHostAnon: 'Same as host time',
today: 'Today',
tomorrow: 'Tomorrow',
unavailable: 'Registration closed',
when: '{day}, {date} at {time} {zone}',
pickedLead: 'Your seat:',
noPick: 'Choose a time to save your seat.',
pickFirst: 'Pick one of the times first, then save your seat.',
loading: 'Saving your seat…',
requiredError: 'Please enter your {label}.',
emailMissing: 'Please enter your email address.',
emailError: 'Please enter a valid email, like you@example.com.',
}
const DEFAULT_TAKEAWAYS: React.ReactNode[] = [
'A map of the pages your funnel needs',
'Headline and offer copy you can use',
'A short list of your next steps',
]
const DEFAULT_FIELDS: SessionPickerField[] = [
{ name: 'name', label: 'First name', autoComplete: 'given-name', placeholder: 'Jane' },
{ name: 'email', label: 'Email address', type: 'email', autoComplete: 'email', placeholder: 'you@example.com' },
]
const COMMON_ZONES = [
'America/New_York',
'America/Chicago',
'America/Denver',
'America/Phoenix',
'America/Los_Angeles',
'America/Anchorage',
'Pacific/Honolulu',
'America/Toronto',
'America/Sao_Paulo',
'Europe/London',
'Europe/Paris',
'Europe/Berlin',
'Africa/Johannesburg',
'Asia/Dubai',
'Asia/Kolkata',
'Asia/Singapore',
'Asia/Tokyo',
'Australia/Sydney',
'Pacific/Auckland',
'UTC',
]
const EMAIL = /^[^@ ]+@[^@ ]+[.][^@ ]{2,}$/
function fill(template: string, values: Record<string, string>): string {
return template.replace(/[{]([a-zA-Z]+)[}]/g, (match, key: string) => (key in values ? values[key] : match))
}
function withMarker(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text
const at = text.indexOf(phrase)
if (at < 0) return text
return (
<>
{text.slice(0, at)}
<span className='wsp3-mark'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
)
}
function delay(i: number): React.CSSProperties {
return { '--wsp3-d': `${Math.min(i * 0.07, 0.28).toFixed(2)}s` } as React.CSSProperties
}
function fieldError(field: SessionPickerField, value: string, copy: WebinarSessionPicker3Copy): string {
if (!value) return field.type === 'email' ? copy.emailMissing : fill(copy.requiredError, { label: field.label.toLowerCase() })
if (field.type === 'email' && !EMAIL.test(value)) return copy.emailError
return ''
}
function examplePlaceholder(field: SessionPickerField): string {
const name = field.name.toLowerCase()
if (field.type === 'email' || name.includes('email')) return 'you@example.com'
if (field.type === 'tel' || name.includes('phone')) return '(555) 123-4567'
if (name.includes('name')) return 'Jane Smith'
return 'Type your answer'
}
function okLocale(locale?: string): string | undefined {
if (!locale) return undefined
try {
return Intl.getCanonicalLocales(locale)[0]
} catch {
return undefined
}
}
function validZone(zone?: string | null): string | null {
if (!zone) return null
try {
return new Intl.DateTimeFormat('en-US', { timeZone: zone }).resolvedOptions().timeZone
} catch {
return null
}
}
function detectZone(): string {
try {
return validZone(Intl.DateTimeFormat().resolvedOptions().timeZone) ?? 'UTC'
} catch {
return 'UTC'
}
}
function cityOf(zone: string): string {
if (zone === 'UTC' || zone === 'Etc/UTC') return 'UTC'
return (zone.split('/').pop() ?? zone).replace(/_/g, ' ')
}
function fmt(date: Date, locale: string | undefined, zone: string, options: Intl.DateTimeFormatOptions): string {
return new Intl.DateTimeFormat(locale, { ...options, timeZone: zone }).format(date)
}
function zoneName(date: Date, locale: string | undefined, zone: string, style: 'short' | 'long'): string {
const part = new Intl.DateTimeFormat(locale, { timeZone: zone, timeZoneName: style })
.formatToParts(date)
.find((p) => p.type === 'timeZoneName')
return part?.value ?? zone
}
function dayNumber(time: number, zone: string): number {
const parts = new Intl.DateTimeFormat('en-US', { timeZone: zone, year: 'numeric', month: 'numeric', day: 'numeric' }).formatToParts(new Date(time))
const get = (type: string) => Number(parts.find((p) => p.type === type)?.value ?? 0)
return Math.round(Date.UTC(get('year'), get('month') - 1, get('day')) / 86400000)
}
function parseSessions(list: SessionInput[]): { time: number; disabled: boolean }[] {
const out: { time: number; disabled: boolean }[] = []
for (const item of list) {
const record: SessionRecord = typeof item === 'object' && !(item instanceof Date) ? item : { startsAt: item }
const date = record.startsAt instanceof Date ? record.startsAt : new Date(record.startsAt)
const time = date.getTime()
if (Number.isFinite(time)) out.push({ time, disabled: Boolean(record.disabled) })
}
return out.sort((a, b) => a.time - b.time)
}
function describeSlots(
parsed: { time: number; disabled: boolean }[],
now: number | null,
max: number,
locale: string | undefined,
zone: string,
hostZone: string | null,
host: string,
copy: WebinarSessionPicker3Copy,
): Slot[] {
const list = (now == null ? parsed : parsed.filter((p) => p.time > now)).slice(0, Math.max(0, max))
const today = now == null ? null : dayNumber(now, zone)
return list.map((p) => {
const date = new Date(p.time)
const day = fmt(date, locale, zone, { weekday: 'long' })
const dateText = fmt(date, locale, zone, { month: 'long', day: 'numeric' })
const local = fmt(date, locale, zone, { hour: 'numeric', minute: '2-digit' })
const short = zoneName(date, locale, zone, 'short')
const diff = today == null ? null : dayNumber(p.time, zone) - today
const rel = diff === 0 ? copy.today : diff === 1 ? copy.tomorrow : ''
let hostLine = ''
if (hostZone) {
const hostClock = fmt(date, locale, hostZone, { hour: 'numeric', minute: '2-digit' })
const hostDay = fmt(date, locale, hostZone, { weekday: 'short' })
const localDay = fmt(date, locale, zone, { weekday: 'short' })
if (hostClock === local && hostDay === localDay) {
hostLine = host ? fill(copy.sameAsHost, { host }) : copy.sameAsHostAnon
} else {
const shown = hostDay === localDay ? hostClock : `${hostDay} ${hostClock}`
const values = { time: shown, zone: zoneName(date, locale, hostZone, 'short'), host }
hostLine = host ? fill(copy.hostTime, values) : fill(copy.hostTimeAnon, values)
}
}
return {
id: date.toISOString(),
time: p.time,
disabled: p.disabled,
day,
date: dateText,
local,
short,
rel,
host: hostLine,
when: fill(copy.when, { day, date: dateText, time: local, zone: short }),
}
})
}
const ROOT = 'cf-webinar-session-picker-3'
const R = `.${ROOT}`
const SH_SM = 'var(--shadow-sm,0 1px 1px oklch(from var(--wsp3-sh) l c h / .18),0 1px 3px oklch(from var(--wsp3-sh) l c h / .14))'
const SH_MD = 'var(--shadow-md,0 1px 2px oklch(from var(--wsp3-sh) l c h / .22),0 4px 10px -2px oklch(from var(--wsp3-sh) l c h / .2))'
const SH_LG = 'var(--shadow-lg,0 2px 4px oklch(from var(--wsp3-sh) l c h / .22),0 12px 24px -8px oklch(from var(--wsp3-sh) l c h / .32))'
const H3 = '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:-.01em'
const CSS = `
${R}{--wsp3-sh:var(--shadow,oklch(0.22 0.03 260));--wsp3-line:oklch(from var(--ink) l c h / .14);--wsp3-card-line:var(--card-border,oklch(from var(--ink) l c h / .12));--wsp3-marker:var(--marker,#fae37c);--wsp3-marker-ink:var(--marker-ink,oklch(from var(--wsp3-marker) calc((0.66 - l) * 100) 0.02 h));--wsp3-ease:cubic-bezier(.2,.7,.2,1);position:relative;overflow-x:clip;padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);background:var(--surface);color:var(--ink);font-family:var(--font-body);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} :where(h2,h3,p,ul,figure){margin:0}
${R} .wsp3-wrap{max-width:1120px;margin-inline:auto}
${R} .wsp3-mast-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;padding-bottom:12px;border-bottom:1px solid var(--wsp3-line)}
${R} .wsp3-edition{font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
${R} .wsp3-dateline{min-height:1.4em;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
${R} .wsp3-plate{padding:16px 0 14px;border-bottom:3px double oklch(from var(--ink) l c h / .3);${H3};letter-spacing:.06em;text-transform:uppercase;text-align:center;text-wrap:balance}
${R} .wsp3-h{margin-top:clamp(24px,3vw,40px);font-family:var(--font-display);font-size:clamp(2.25rem,4.4vw,3.75rem);line-height:1.04;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.025em);text-transform:var(--display-case,none);text-align:center;text-wrap:balance}
${R} .wsp3-mark{padding:0 .14em;border-radius:.2em .35em .25em .3em;background-image:linear-gradient(transparent 10%,oklch(from var(--wsp3-marker) l c h / .92) 10%,oklch(from var(--wsp3-marker) l c h / .92) 96%,transparent 96%);color:var(--wsp3-marker-ink);-webkit-box-decoration-break:clone;box-decoration-break:clone}
${R} .wsp3-lead{max-width:46rem;margin:20px auto 0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-align:center;text-wrap:pretty}
${R} .wsp3-cols{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:clamp(32px,4vw,48px);margin-top:clamp(32px,4.5vw,56px)}
${R} .wsp3-main{min-width:0}
${R} .wsp3-host{display:none;text-align:center}
${R} .wsp3-host img{display:block;width:100%;height:auto;max-height:560px;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 2px 3px oklch(from var(--wsp3-sh) l c h / .28)) drop-shadow(0 16px 18px oklch(from var(--wsp3-sh) l c h / .2))}
${R} .wsp3-host figcaption{margin-top:16px}
${R} .wsp3-host-name{display:block;font-weight:800;line-height:1.3}
${R} .wsp3-host-role{display:block;margin-top:4px;font-size:.9375rem;line-height:1.4;color:var(--muted);text-wrap:pretty}
${R} .wsp3-speech{position:relative;padding:clamp(20px,3vw,32px);border:1px solid var(--wsp3-card-line);border-radius:var(--card-radius,var(--radius,14px));background:var(--card);box-shadow:var(--card-shadow,${SH_MD})}
${R} .wsp3-open{display:flex;align-items:center;gap:12px}
${R} .wsp3-portrait{display:none;flex:0 0 64px;width:64px;height:64px;overflow:hidden;border-radius:50%;background:color-mix(in oklch,var(--ink) 6%,var(--card))}
${R} .wsp3-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0;transform:scale(1.35);transform-origin:50% 10%}
${R} .wsp3-greet{${H3};text-wrap:balance}
${R} .wsp3-say{margin-top:12px;text-wrap:pretty}
${R} .wsp3-leave-t{margin-top:24px;font-weight:800}
${R} .wsp3-leave{display:grid;gap:12px;margin-top:12px;padding:0;list-style:none}
${R} .wsp3-leave li{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:12px;line-height:1.45;font-weight:600;text-wrap:pretty}
${R} .wsp3-tick{display:grid;place-items:center;width:24px;height:24px;margin-top:1px;border-radius:50%;background:var(--success);color:var(--success-ink,#fff)}
${R} .wsp3-pick{margin-top:32px}
${R} .wsp3-pick-t,${R} .wsp3-seat-t{${H3};text-wrap:balance}
${R} .wsp3-zone{display:grid;gap:8px;margin-top:16px}
${R} .wsp3-zone-l{font-size:.9375rem;font-weight:700;line-height:1.4;color:var(--muted)}
${R} .wsp3-sel{position:relative;min-width:0}
${R} .wsp3-sel select{display:block;width:100%;min-height:52px;padding:0 44px;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);color:var(--field-ink);font:inherit;font-size:1.0625rem;font-weight:700;text-overflow:ellipsis;cursor:pointer;-webkit-appearance:none;appearance:none;transition:border-color .16s ease,box-shadow .16s ease}
${R} .wsp3-sel select option{background:var(--field);color:var(--field-ink)}
${R} .wsp3-sel select:hover:not(:disabled){border-color:oklch(from var(--field-ink) l c h / .45)}
${R} .wsp3-sel select:focus-visible{outline:none;border-color:var(--field-focus,var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent)) l c h / .35)}
${R} .wsp3-sel select:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--field-ink) 6%,var(--field))}
${R} .wsp3-sel svg{position:absolute;top:50%;translate:0 -50%;color:var(--field-ink);pointer-events:none}
${R} .wsp3-globe{left:14px}
${R} .wsp3-chev{right:14px}
${R} .wsp3-rows{display:grid;gap:12px;margin-top:16px}
${R} .wsp3-row{position:relative;display:block;cursor:pointer}
${R} .wsp3-radio{position:absolute;top:0;left:0;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
${R} .wsp3-box{display:grid;grid-template-columns:24px minmax(min-content,1fr) auto;align-items:center;gap:16px;min-height:80px;padding:14px 20px;border:1px solid var(--wsp3-card-line);border-radius:var(--card-radius,var(--radius,14px));background:var(--card);box-shadow:${SH_SM};transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease}
${R} .wsp3-row:hover .wsp3-radio:not(:disabled) + .wsp3-box,${R} .wsp3-row[data-force='hover'] .wsp3-radio:not(:disabled) + .wsp3-box{border-color:oklch(from var(--accent) l c h / .6);box-shadow:${SH_MD};transform:translateY(-1px)}
${R} .wsp3-row:active .wsp3-radio:not(:disabled) + .wsp3-box,${R} .wsp3-row[data-force='active'] .wsp3-radio:not(:disabled) + .wsp3-box{border-color:var(--accent);box-shadow:${SH_SM};transform:translateY(0)}
${R} .wsp3-radio:checked + .wsp3-box{border-color:var(--accent);background:color-mix(in oklch,var(--accent) 10%,var(--card));box-shadow:inset 0 0 0 1px var(--accent),${SH_MD}}
${R} .wsp3-radio:focus-visible + .wsp3-box{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .45);outline-offset:3px}
${R} .wsp3-radio:disabled + .wsp3-box{border-color:oklch(from var(--ink) l c h / .1);background:color-mix(in oklch,var(--ink) 3%,var(--card));box-shadow:none;cursor:not-allowed}
${R} .wsp3-radio:disabled + .wsp3-box .wsp3-local{color:var(--muted)}
${R} .wsp3-dot{position:relative;width:24px;height:24px;border:2px solid oklch(from var(--ink) l c h / .35);border-radius:50%;background:var(--card);transition:border-color .16s ease,background .16s ease}
${R} .wsp3-radio:checked + .wsp3-box .wsp3-dot{border-color:var(--accent-fill,var(--accent));background:var(--accent-fill,var(--accent))}
${R} .wsp3-radio:checked + .wsp3-box .wsp3-dot::after{content:'';position:absolute;inset:5px;border-radius:50%;background:var(--accent-fill-ink,var(--card))}
${R} .wsp3-radio:disabled + .wsp3-box .wsp3-dot{border-color:oklch(from var(--ink) l c h / .18);background:transparent}
${R} .wsp3-when{min-width:0}
${R} .wsp3-day{display:block;font-weight:800;line-height:1.25}
${R} .wsp3-date{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:4px;font-size:.9375rem;line-height:1.4;color:var(--muted)}
${R} .wsp3-dtext{white-space:nowrap}
${R} .wsp3-chip{display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--ink);font-size:.875rem;font-weight:800;line-height:1.2}
${R} .wsp3-time{min-width:0;text-align:right}
${R} .wsp3-local{display:block;${H3};line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}
${R} .wsp3-tz{margin-inline-start:6px;font-family:var(--font-body);font-size:.9375rem;font-weight:700;letter-spacing:0;color:var(--muted)}
${R} .wsp3-note{display:block;margin-top:4px;font-size:.9375rem;line-height:1.35;color:var(--muted);text-wrap:pretty}
${R} .wsp3-radio:checked + .wsp3-box :is(.wsp3-date,.wsp3-tz,.wsp3-note){color:var(--ink)}
${R} .wsp3-empty{margin-top:16px;padding:16px 20px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--surface));color:var(--ink)}
${R} .wsp3-seat{padding:clamp(20px,3vw,32px);border:1px solid oklch(from var(--accent) l c h / .35);border-radius:var(--card-radius,var(--radius,14px));background:var(--card);box-shadow:${SH_LG}}
${R} .wsp3-pickline{margin-top:16px;padding:12px 16px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));font-size:.9375rem;line-height:1.45;color:var(--ink);text-wrap:pretty}
${R} :is(.wsp3-pickline,.wsp3-risk,.wsp3-err,.wsp3-alert,.wsp3-privacy) svg{display:inline-block;vertical-align:-.18em;margin-inline-end:.45em}
${R} .wsp3-pickline svg{color:var(--muted)}
${R} .wsp3-pickline[data-on] svg{color:var(--success)}
${R} .wsp3-pickline[data-warn]{background:var(--danger-soft);color:var(--danger);font-weight:600}
${R} .wsp3-pickline[data-warn] svg{color:var(--danger)}
${R} .wsp3-fields{display:grid;gap:16px;margin-top:24px}
${R} .wsp3-field label{display:block;margin-bottom:8px;font-size:1rem;font-weight:700;line-height:1.3;color:var(--label-ink,var(--ink))}
${R} .wsp3-field input{display:block;width:100%;min-height:56px;padding:0 16px;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);color:var(--field-ink);font:inherit;font-size:1.0625rem;box-shadow:inset 0 1px 2px oklch(from var(--wsp3-sh) l c h / .08);transition:border-color .16s ease,box-shadow .16s ease}
${R} .wsp3-field input::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
${R} .wsp3-field input:hover:not(:disabled){border-color:oklch(from var(--field-ink) l c h / .45)}
${R} .wsp3-field input:focus-visible{outline:none;border-color:var(--field-focus,var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent)) l c h / .35)}
${R} .wsp3-field input[aria-invalid='true']{border-color:var(--danger)}
${R} .wsp3-field input[aria-invalid='true']:focus-visible{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .3)}
${R} .wsp3-field input:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--field-ink) 5%,var(--field))}
${R} .wsp3-err{margin-top:8px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--danger);text-wrap:pretty}
${R} .wsp3-risk{margin-top:24px;font-weight:800;line-height:1.4;text-wrap:pretty}
${R} .wsp3-risk svg{color:var(--success)}
${R} .wsp3-alert{margin-top:16px;padding:12px 16px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:.9375rem;font-weight:600;line-height:1.45}
${R} .wsp3-btn{--wsp3-b:var(--button-bg,var(--cta));--wsp3-b2:var(--button-bg-2,var(--cta-2));display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:64px;margin-top:12px;padding:10px 20px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--wsp3-b) calc(l + .04) c h),oklch(from var(--wsp3-b2) 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-wrap:balance;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wsp3-b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--wsp3-b) calc(l - .16) c h),0 1px 2px oklch(from var(--wsp3-sh) l c h / .3),0 8px 16px -6px oklch(from var(--wsp3-sh) l c h / .45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
${R} .wsp3-btn:hover:not(:disabled),${R} .wsp3-btn[data-force='hover']:not(:disabled){background:linear-gradient(oklch(from var(--wsp3-b) calc(l - .01) c h),oklch(from var(--wsp3-b2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wsp3-b) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--wsp3-b) calc(l - .2) c h),0 1px 2px oklch(from var(--wsp3-sh) l c h / .32),0 10px 20px -6px oklch(from var(--wsp3-sh) l c h / .5))}
${R} .wsp3-btn:active:not(:disabled),${R} .wsp3-btn[data-force='active']:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from var(--wsp3-b) calc(l - .05) c h),oklch(from var(--wsp3-b2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--wsp3-b) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--wsp3-b) calc(l - .16) c h),0 1px 2px oklch(from var(--wsp3-sh) l c h / .3)}
${R} .wsp3-btn:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:3px}
${R} .wsp3-btn:disabled{background:color-mix(in oklch,var(--ink) 10%,var(--card));color:color-mix(in oklch,var(--ink) 58%,var(--card));text-shadow:none;box-shadow:none;cursor:not-allowed}
${R} .wsp3-btn[aria-busy='true']{cursor:progress}
${R} .wsp3-privacy{margin-top:12px;font-size:.9375rem;line-height:1.4;color:var(--muted);text-align:center;text-wrap:pretty}
@media (min-width:760px){
${R} .wsp3-cols[data-host='y']{grid-template-columns:minmax(200px,.75fr) minmax(0,1.6fr)}
${R} .wsp3-cols[data-host='y'] .wsp3-host{display:block;position:sticky;top:24px;grid-row:1 / span 2}
${R} .wsp3-cols[data-host='y'] .wsp3-seat{grid-column:2}
${R} .wsp3-cols[data-host='y'] .wsp3-speech::before{content:'';position:absolute;top:40px;left:-9px;width:16px;height:16px;border-bottom:1px solid var(--wsp3-card-line);border-left:1px solid var(--wsp3-card-line);border-bottom-left-radius:3px;background:var(--card);transform:rotate(45deg)}
}
@media (max-width:759.98px){
${R} .wsp3-portrait{display:block}
}
@media (min-width:900px){
${R} .wsp3-cols[data-host='n']{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
${R} .wsp3-cols[data-host='n'] .wsp3-seat{position:sticky;top:24px}
}
@media (min-width:1200px){
${R} .wsp3-cols[data-host='y']{grid-template-columns:minmax(0,.8fr) minmax(0,1.05fr) minmax(0,1.05fr)}
${R} .wsp3-cols[data-host='y'] .wsp3-host{grid-row:1}
${R} .wsp3-cols[data-host='y'] .wsp3-seat{grid-column:3;grid-row:1;position:sticky;top:24px}
}
@media (max-width:480px){
${R} .wsp3-box{gap:12px;padding:14px 16px}
}
@media (prefers-reduced-motion:no-preference){
${R} .wsp3-rise,${R} .wsp3-swap{animation:wsp3-in .45s var(--wsp3-ease) both;animation-delay:var(--wsp3-d,0s)}
${R} .wsp3-spin{animation:wsp3-spin .8s linear infinite}
}
@media (prefers-reduced-motion:reduce){
${R} :is(.wsp3-box,.wsp3-dot,.wsp3-btn,.wsp3-sel select,.wsp3-field input){transition:none}
${R} .wsp3-row .wsp3-radio + .wsp3-box.wsp3-box.wsp3-box{transform:none}
${R} .wsp3-btn.wsp3-btn.wsp3-btn{transform:none}
}
@keyframes wsp3-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes wsp3-spin{to{transform:rotate(360deg)}}
`
pieces/forms/webinar-session-picker-3/specimen.tsx 61 lines
import __studioImage8b9afd43 from "../assets/e9c3004d6f268eb9.webp";
// Specimen: the fictional Debt-Free Family workshop, introduced by a generated host cut-out.
import * as React from 'react'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
import { WebinarSessionPicker3 } from '../webinar-session-picker-3'
import type { WebinarSessionPicker3State } from '../webinar-session-picker-3'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
const HOUR = 3600000
const DAY = 24 * HOUR
// Upcoming sessions counted from today: evenings at 7 PM and one noon session, US Central time. Tonight's has closed.
function upcomingSessions() {
const start = new Date()
start.setUTCHours(0, 0, 0, 0)
const base = start.getTime()
return [
{ startsAt: new Date(base + DAY + HOUR).toISOString(), disabled: true },
{ startsAt: new Date(base + 2 * DAY + HOUR).toISOString() },
{ startsAt: new Date(base + 3 * DAY + 18 * HOUR).toISOString() },
{ startsAt: new Date(base + 5 * DAY + HOUR).toISOString() },
]
}
export default function WebinarSessionPicker3Specimen({ state = 'default' }: { state?: WebinarSessionPicker3State }) {
const sessions = React.useMemo(upcomingSessions, [])
return (
<WebinarSessionPicker3
state={state}
workshopName='The Debt-Free Family Workshop'
edition='Free live workshop'
headline='Become a debt-free family, one payday at a time'
highlight='debt-free family'
lead='A free live workshop for parents who are done juggling cards, loans and late fees.'
presenterImage={slot('presenter-cutout', __studioImage8b9afd43)}
presenterImageAlt='Dana Ruiz, your workshop host, inviting you in'
hostName='Dana Ruiz'
hostRole='Family money coach and your host'
hostTimeZone='America/Chicago'
greeting='Hi, I’m Dana. Pull up a chair.'
invitation='Our family carried four cards for years. What changed wasn’t a stricter budget, it was a simple plan we run every payday. Sit with me for an hour and I’ll walk you through it, with your own numbers in front of you.'
takeawaysTitle='You’ll leave with:'
takeaways={[
'A payday plan that gives every dollar a job',
'The order to clear your debts so the first win comes fast',
'A 15-minute money talk the whole family can keep',
]}
pickTitle='Pick the time that works for your family'
sessions={sessions}
seatTitle='Save your family’s free seat'
fields={defaults.sample.fields}
riskLine='It’s free, and you can leave any time.'
label='Yes, save my free seat'
privacy={defaults.sample.registration.privacy}
errorMessage={defaults.sample.registration.error}
/>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalWebinarSessionPicker3 |
Partial<WebinarSessionPicker3Copy> |
|
workshopName OptionalWebinarSessionPicker3 |
string |
Default 'Funnel Starter Workshop'
|
edition OptionalWebinarSessionPicker3 |
string |
Default 'Free online workshop'
|
headline OptionalWebinarSessionPicker3 |
string |
Default 'Map out your first funnel'
|
highlight OptionalWebinarSessionPicker3 |
string |
Default 'first funnel'
|
lead OptionalWebinarSessionPicker3 |
string |
Default 'Join the Funnel Starter Workshop and walk through your offer, page copy, and next steps.'
|
presenterImage OptionalWebinarSessionPicker3 |
string |
|
presenterImageAlt OptionalWebinarSessionPicker3 |
string |
Default ''
|
hostName OptionalWebinarSessionPicker3 |
string |
Default ''
|
hostRole OptionalWebinarSessionPicker3 |
string |
Default ''
|
hostShortName OptionalWebinarSessionPicker3 |
string |
|
hostTimeZone OptionalWebinarSessionPicker3 |
string |
|
greeting OptionalWebinarSessionPicker3 |
string |
Default 'Hi, I’ll be your host. Come and sit with me.'
|
invitation OptionalWebinarSessionPicker3 |
React.ReactNode |
Default 'Bring your offer idea. I’ll walk you through the pages your funnel needs, the copy for each one, and what to do the moment we finish.'
|
takeawaysTitle OptionalWebinarSessionPicker3 |
string |
Default 'You’ll leave with:'
|
takeaways OptionalWebinarSessionPicker3 |
React.ReactNode[] |
Default DEFAULT_TAKEAWAYS
|
pickTitle OptionalWebinarSessionPicker3 |
string |
Default 'Pick the time that works for you'
|
sessions OptionalWebinarSessionPicker3 |
SessionInput[] |
Default NO_SESSIONS
|
maxSessions OptionalWebinarSessionPicker3 |
number |
Default 4
|
zones OptionalWebinarSessionPicker3 |
string[] |
Default COMMON_ZONES
|
seatTitle OptionalWebinarSessionPicker3 |
string |
Default 'Save your free seat'
|
fields OptionalWebinarSessionPicker3 |
SessionPickerField[] |
Default DEFAULT_FIELDS
|
riskLine OptionalWebinarSessionPicker3 |
string |
Default 'It’s free, and you can leave any time.'
|
label OptionalWebinarSessionPicker3 |
string |
Default 'Yes! Save My Seat'
|
privacy OptionalWebinarSessionPicker3 |
string |
Default 'We respect your inbox. Unsubscribe anytime.'
|
errorMessage OptionalWebinarSessionPicker3 |
string |
Default 'We couldn’t complete your registration. Please try again.'
|
emptyMessage OptionalWebinarSessionPicker3 |
string |
Default 'New sessions are on the way. Please check back soon.'
|
locale OptionalWebinarSessionPicker3 |
string |
|
timeZone OptionalWebinarSessionPicker3 |
string |
|
state OptionalWebinarSessionPicker3 |
WebinarSessionPicker3State |
Default 'default'
|
onSubmit OptionalWebinarSessionPicker3 |
(data: { session: string; timeZone: string; values: Record<string, string> }) => void | Promise<void> |
|
className OptionalWebinarSessionPicker3 |
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.
--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-cutout- The presenter on a transparent background.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
e9c3004d6f268eb9.webp
image/webp · 111 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB