Workshop Ticket 1
Workshop ticket offer: the live session on a dark stage beside a till-receipt price and one outcome button, so a low-ticket seat reads as an easy yes.
Use it in a prompt
Use offer/workshop-ticket 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/offer/workshop-ticket.tsx. - Import it and pass your copy and images (Props tab):
import { WorkshopTicket } from "@/components/funneldna/offer/workshop-ticket"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/workshop-ticket/component.tsx 514 lines
// layout: split-contrast
// Workshop ticket offer: the live session on a dark stage beside a till-receipt price and one outcome button, so a low-ticket seat reads as an easy yes.
import React from 'react';
import { CalendarCheck, Clock, Loader2, Lock, RotateCcw, Users } from 'lucide-react';
import { Pattern, FX_HOST } from '../fx/fx';
export type WorkshopTicketLine = {
label: string;
value: string;
// item photo (item-n slot); a line without one shows the event icon
image?: string;
imageAlt?: string;
};
export type WorkshopTicketTopic = {
title: string;
detail?: string;
};
export type WorkshopTicketCopy = {
zoneGroup: string;
eventTab: string;
localTab: string;
eventCaption: string;
// {zone} becomes the visitor's time zone
localCaption: string;
sameZoneCaption: string;
// {count} becomes seatsLeft
seats: string;
seat: string;
soldOut: string;
pending: string;
};
export type WorkshopTicketProps = {
headline?: string;
// phrase inside the headline that gets the marker stroke
highlight?: string;
lead?: string;
eventName?: string;
// ISO start with its UTC offset, e.g. 2026-12-10T18:00:00-05:00
startsAt?: string;
durationMinutes?: number;
// IANA zone the workshop runs in, e.g. America/New_York; enables the My time switch
timeZone?: string;
locale?: string;
// shown when startsAt is missing or invalid
dateLabel?: string;
timeLabel?: string;
// scene slot: the workshop setting, fading into the dark stage
sceneImage?: string;
sceneImageAlt?: string;
topicsTitle?: string;
topics?: WorkshopTicketTopic[];
// replay access line, shown only when supplied
replayNote?: string;
receiptMeta?: string;
lines?: WorkshopTicketLine[];
subtotalLabel?: string;
subtotal?: string;
discountLabel?: string;
discount?: string;
totalLabel?: string;
total?: string;
reasonLead?: string;
reason?: string;
// real seats remaining; leave unset unless the number is true
seatsLeft?: number;
label?: string;
note?: string;
soldOut?: boolean;
pending?: boolean;
href?: string;
onAction?: () => void;
copy?: Partial<WorkshopTicketCopy>;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
const DEFAULT_COPY: WorkshopTicketCopy = {
zoneGroup: 'Show the workshop time in',
eventTab: 'Event time',
localTab: 'My time',
eventCaption: `Shown in the host's time zone.`,
localCaption: 'Converted to your time zone ({zone}).',
sameZoneCaption: `You're in the same time zone as the host.`,
seats: '{count} seats left',
seat: '1 seat left',
soldOut: 'This workshop is full',
pending: 'Opening secure checkout…',
};
const DEFAULT_TOPICS: WorkshopTicketTopic[] = [
{ title: 'Your offer in one sentence', detail: 'Who it is for and the result they get.' },
{ title: 'The pages your funnel needs', detail: 'Every step from first click to checkout.' },
{ title: 'Your headline and call to action', detail: 'Drafted live, with the workbook open.' },
{ title: 'A launch check you can trust', detail: 'Links, forms and next steps tested.' },
];
const DEFAULT_LINES: WorkshopTicketLine[] = [
{ label: 'Live workshop seat', value: 'Included' },
{ label: 'Funnel Planning Guide', value: '$49' },
{ label: 'Page Copy Workbook', value: '$29' },
{ label: 'Launch Checklist', value: '$19' },
];
export function WorkshopTicket(props: WorkshopTicketProps) {
const {
headline = 'Map your first funnel in one live session',
highlight = 'your first funnel',
lead = 'Join the Funnel Starter Workshop and walk through your offer, page copy, and next steps.',
eventName = 'Funnel Starter Workshop',
startsAt = '2026-12-10T18:00:00-05:00',
durationMinutes = 120,
timeZone = 'America/New_York',
locale = 'en-US',
dateLabel = '',
timeLabel = '',
sceneImage = '',
sceneImageAlt = 'A desk set up for a live online workshop, with a laptop and a sketched funnel plan',
topicsTitle = `Four things you'll finish before you log off`,
topics = DEFAULT_TOPICS,
replayNote = '',
receiptMeta = '1 seat',
lines = DEFAULT_LINES,
subtotalLabel = 'Subtotal',
subtotal = '$97',
discountLabel = 'Workshop ticket price',
discount = '−$50',
totalLabel = 'Your ticket today',
total = '$47',
reasonLead = 'Why only $47?',
reason = `You're paying for the materials. The live session is where you use them, so you leave with a plan instead of notes.`,
seatsLeft,
label = 'Map my first funnel for $47',
note = 'Secure checkout · 30-day money-back guarantee',
soldOut = false,
pending = false,
href,
onAction,
copy,
state = 'default',
className,
} = props;
const c: WorkshopTicketCopy = { ...DEFAULT_COPY, ...copy };
const [mode, setMode] = React.useState<'event' | 'local'>('event');
const eventWhen = startsAt ? describeTime(startsAt, durationMinutes, timeZone, locale) : null;
const canConvert = Boolean(eventWhen && timeZone);
const showLocal = canConvert && mode === 'local';
const when = showLocal ? describeTime(startsAt, durationMinutes, undefined, locale) : eventWhen;
const localZone = showLocal ? localTimeZone() : '';
const caption = !canConvert
? ''
: !showLocal
? c.eventCaption
: localZone && localZone === timeZone
? c.sameZoneCaption
: fill(c.localCaption, { zone: localZone ? localZone.split('_').join(' ') : when ? when.zone : '' });
const disabled = soldOut || state === 'disabled';
const busy = pending && !disabled;
const seatsText =
typeof seatsLeft === 'number' && seatsLeft > 0 && !disabled
? seatsLeft === 1
? c.seat
: fill(c.seats, { count: String(seatsLeft) })
: '';
const ctaClass = ['wt-cta', state === 'hover' ? 'is-hover' : '', state === 'active' ? 'is-active' : ''].filter(Boolean).join(' ');
const ctaInner = busy ? (
<>
<Loader2 className='wt-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
<span>{c.pending}</span>
</>
) : (
<span>{disabled ? c.soldOut : label}</span>
);
const cta =
href && !disabled && !busy ? (
<a className={ctaClass} href={href} onClick={() => onAction?.()}>
{ctaInner}
</a>
) : (
<button
type='button'
className={ctaClass}
disabled={disabled || busy}
aria-busy={busy || undefined}
onClick={() => onAction?.()}
>
{ctaInner}
</button>
);
const rise = (i: number): React.CSSProperties => ({ animationDelay: `${Math.min(i * 0.07, 0.28)}s` });
return (
<section className={['cf-workshop-ticket', className].filter(Boolean).join(' ')} style={FX_HOST} aria-label={eventName}>
<style>{CSS}</style>
<Pattern name='grid' fade='edges' />
<div className='wt-wrap'>
<div className='wt-stage'>
<header className='wt-head wt-rise' style={rise(0)}>
<h2 className='wt-h2'>{marked(headline, highlight)}</h2>
{lead ? <p className='wt-lead'>{lead}</p> : null}
</header>
<div className='wt-event wt-rise' style={rise(1)}>
{sceneImage ? (
<div className='wt-scene'>
<img src={sceneImage} alt={sceneImageAlt} width={1200} height={800} loading='lazy' decoding='async' />
</div>
) : null}
<div className='wt-event-body'>
<div className='wt-when-wrap' aria-live='polite'>
{when ? (
<div className='wt-when wt-swap' key={mode}>
<p className='wt-date'>
<span className='wt-day'>{when.day}</span>
<span className='wt-date-text'>
<span className='wt-weekday'>{when.weekday}</span>
<span className='wt-month'>{when.month}</span>
</span>
</p>
<p className='wt-time'>
<Clock className='wt-inline-icon' size={18} strokeWidth={2.5} aria-hidden='true' />
{when.time}
{when.zone ? ` ${when.zone}` : ''}
</p>
</div>
) : dateLabel || timeLabel ? (
<div className='wt-when'>
{dateLabel ? <p className='wt-weekday'>{dateLabel}</p> : null}
{timeLabel ? (
<p className='wt-time'>
<Clock className='wt-inline-icon' size={18} strokeWidth={2.5} aria-hidden='true' />
{timeLabel}
</p>
) : null}
</div>
) : null}
</div>
{canConvert ? (
<div className='wt-zone-row'>
<div className='wt-zone' role='group' aria-label={c.zoneGroup}>
<button type='button' aria-pressed={!showLocal} onClick={() => setMode('event')}>
{c.eventTab}
</button>
<button type='button' aria-pressed={showLocal} onClick={() => setMode('local')}>
{c.localTab}
</button>
</div>
{caption ? <p className='wt-caption'>{caption}</p> : null}
</div>
) : null}
{replayNote ? (
<p className='wt-replay'>
<RotateCcw className='wt-inline-icon' size={18} strokeWidth={2.5} aria-hidden='true' />
{replayNote}
</p>
) : null}
{topics.length ? (
<div className='wt-topics-block'>
{topicsTitle ? <h3 className='wt-topics-title'>{topicsTitle}</h3> : null}
<ol className='wt-topics'>
{topics.map((topic, i) => (
<li className='wt-topic wt-rise' style={rise(i + 2)} key={topic.title + i}>
<span className='wt-num' aria-hidden='true'>{i + 1}</span>
<div>
<p className='wt-topic-title'>{topic.title}</p>
{topic.detail ? <p className='wt-topic-detail'>{topic.detail}</p> : null}
</div>
</li>
))}
</ol>
</div>
) : null}
</div>
</div>
<div className='wt-buy wt-rise' style={rise(2)}>
{seatsText ? (
<p className='wt-seats'>
<Users size={16} strokeWidth={2.5} aria-hidden='true' />
{seatsText}
</p>
) : null}
<div className='wt-receipt'>
<div className='wt-receipt-head'>
<p className='wt-receipt-name'>{eventName}</p>
{receiptMeta ? <p className='wt-receipt-meta'>{receiptMeta}</p> : null}
</div>
<ul className='wt-lines'>
{lines.map((line, i) => (
<li className='wt-line' key={line.label + i}>
{line.image ? (
<img className='wt-thumb' src={line.image} alt={line.imageAlt ?? ''} width={40} height={40} loading='lazy' decoding='async' />
) : (
<span className='wt-thumb wt-thumb-icon' aria-hidden='true'>
<CalendarCheck size={20} strokeWidth={2.5} />
</span>
)}
<span className='wt-line-label'>{line.label}</span>
<span className='wt-line-value'>{line.value}</span>
</li>
))}
</ul>
<dl className='wt-sums'>
{subtotal ? (
<div className='wt-sum'>
<dt>{subtotalLabel}</dt>
<dd>{subtotal}</dd>
</div>
) : null}
{discount ? (
<div className='wt-sum wt-sum-off'>
<dt>{discountLabel}</dt>
<dd>{discount}</dd>
</div>
) : null}
<div className='wt-total'>
<dt>{totalLabel}</dt>
<dd>{total}</dd>
</div>
</dl>
</div>
{reasonLead || reason ? (
<p className='wt-reason'>
{reasonLead ? <strong>{reasonLead}</strong> : null}
{reasonLead && reason ? ' ' : ''}
{reason}
</p>
) : null}
<div className='wt-action'>
{cta}
{note ? (
<p className='wt-note'>
{note.split(' · ').map((part, i, all) => (
<React.Fragment key={part + i}>
<span className='wt-note-part'>
{i === 0 ? <Lock className='wt-inline-icon' size={16} strokeWidth={2.5} aria-hidden='true' /> : null}
{part}
{i < all.length - 1 ? ' ·' : ''}
</span>
{i < all.length - 1 ? ' ' : ''}
</React.Fragment>
))}
</p>
) : null}
</div>
</div>
</div>
</div>
</section>
);
}
export default WorkshopTicket;
type When = { day: string; weekday: string; month: string; time: string; zone: string };
function describeTime(startsAt: string, minutes: number, timeZone: string | undefined, locale: string): When | null {
const start = new Date(startsAt);
if (Number.isNaN(start.getTime())) return null;
try {
const zone: Intl.DateTimeFormatOptions = timeZone ? { timeZone } : {};
const part = (options: Intl.DateTimeFormatOptions) => new Intl.DateTimeFormat(locale, { ...zone, ...options }).format(start);
const clock = new Intl.DateTimeFormat(locale, { ...zone, hour: 'numeric', minute: '2-digit' });
const end = new Date(start.getTime() + Math.max(0, minutes) * 60000);
const zoneName = new Intl.DateTimeFormat(locale, { ...zone, timeZoneName: 'short' })
.formatToParts(start)
.find((p) => p.type === 'timeZoneName');
return {
day: part({ day: 'numeric' }),
weekday: part({ weekday: 'long' }),
month: part({ month: 'long', year: 'numeric' }),
time: minutes > 0 ? `${clock.format(start)} – ${clock.format(end)}` : clock.format(start),
zone: zoneName ? zoneName.value : '',
};
} catch {
return null;
}
}
function localTimeZone(): string {
try {
return Intl.DateTimeFormat().resolvedOptions().timeZone || '';
} catch {
return '';
}
}
function fill(template: string, vars: Record<string, string>): string {
return Object.keys(vars).reduce((text, key) => text.split('{' + key + '}').join(vars[key]), template);
}
function marked(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='wt-mark'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
const CSS = `
.cf-workshop-ticket{--wt-shadow:var(--shadow,oklch(0.22 0.03 260));--wt-marker:color-mix(in oklch,var(--marker,#fae37c) 62%,transparent);--wt-body:clamp(1.0625rem,1.25vw,1.125rem);--wt-h3:clamp(1.3125rem,1.8vw,1.625rem);--wt-num:clamp(2.5rem,4.2vw,3.75rem);position:relative;isolation:isolate;overflow:hidden;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-workshop-ticket *,.cf-workshop-ticket *::before,.cf-workshop-ticket *::after{box-sizing:border-box}
.cf-workshop-ticket .wt-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-workshop-ticket .wt-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);grid-template-rows:auto 1fr;grid-template-areas:'event head' 'event buy';overflow:hidden;background:var(--card);border:1px solid var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--wt-shadow) l c h / 0.22),0 12px 24px -8px oklch(from var(--wt-shadow) l c h / 0.32)))}
.cf-workshop-ticket .wt-head{grid-area:head;min-width:0;background:var(--card);color:var(--ink);padding:clamp(28px,4vw,48px) clamp(24px,4vw,48px) 0}
.cf-workshop-ticket .wt-h2{margin:0 0 16px;color:var(--ink);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(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance}
.cf-workshop-ticket .wt-mark{color:inherit;padding:0 0.08em;margin:0 -0.04em;background-image:linear-gradient(var(--wt-marker),var(--wt-marker));background-repeat:no-repeat;background-size:100% 0.62em;background-position:0 88%;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-workshop-ticket .wt-lead{margin:0;max-width:60ch;color:var(--muted);font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-workshop-ticket .wt-event{grid-area:event;min-width:0;display:flex;flex-direction:column;background:var(--band);color:var(--band-ink)}
.cf-workshop-ticket .wt-scene{position:relative;flex:1 0 240px;min-height:240px;overflow:hidden}
.cf-workshop-ticket .wt-scene img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 40%}
.cf-workshop-ticket .wt-scene::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,oklch(from var(--band) l c h / 0) 40%,oklch(from var(--band) l c h / 0.72) 78%,var(--band) 100%)}
.cf-workshop-ticket .wt-event-body{position:relative;display:flex;flex-direction:column;gap:24px;padding:4px clamp(24px,4vw,44px) clamp(28px,4vw,44px)}
.cf-workshop-ticket .wt-event-body:first-child{padding-top:clamp(28px,4vw,44px)}
.cf-workshop-ticket .wt-when{display:grid;gap:20px}
.cf-workshop-ticket .wt-date{display:flex;align-items:center;gap:16px;margin:0}
.cf-workshop-ticket .wt-day{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:var(--wt-num);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
.cf-workshop-ticket .wt-date-text{display:grid;gap:4px;min-width:0}
.cf-workshop-ticket .wt-weekday{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:var(--wt-h3);line-height:1.15;letter-spacing:-0.01em}
.cf-workshop-ticket .wt-month{font-size:var(--wt-body);font-weight:600;line-height:1.3}
.cf-workshop-ticket .wt-time{margin:0;font-size:var(--wt-body);font-weight:700;line-height:1.4;font-variant-numeric:tabular-nums;text-wrap:pretty}
.cf-workshop-ticket .wt-inline-icon{display:inline-block;vertical-align:-0.15em;margin-inline-end:0.4em}
.cf-workshop-ticket .wt-zone-row{display:grid;gap:8px;justify-items:start}
.cf-workshop-ticket .wt-zone{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:oklch(from var(--band-ink) l c h / 0.12)}
.cf-workshop-ticket .wt-zone button{min-height:44px;margin:0;padding:0 18px;border:0;border-radius:999px;background:transparent;color:var(--band-ink);font-family:var(--font-body);font-size:14px;font-weight:800;line-height:1.2;cursor:pointer;transition:background 0.16s ease,color 0.16s ease}
.cf-workshop-ticket .wt-zone button:hover{background:oklch(from var(--band-ink) l c h / 0.14)}
.cf-workshop-ticket .wt-zone button[aria-pressed='true']{background:var(--band-ink);color:var(--band);box-shadow:0 1px 2px oklch(from var(--wt-shadow) l c h / 0.3)}
.cf-workshop-ticket .wt-zone button:focus-visible{outline:2px solid var(--band-ink);outline-offset:2px}
.cf-workshop-ticket .wt-caption{margin:0;color:var(--band-ink);font-size:15px;font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-workshop-ticket .wt-replay{margin:0;padding:12px 16px;border-radius:10px;background:oklch(from var(--band-ink) l c h / 0.1);color:var(--band-ink);font-size:var(--wt-body);font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-workshop-ticket .wt-topics-block{margin-top:8px}
.cf-workshop-ticket .wt-topics-title{margin:0 0 16px;color:var(--band-ink);font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:var(--wt-h3);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-workshop-ticket .wt-topics{display:grid;gap:16px;margin:0;padding:0;list-style:none}
.cf-workshop-ticket .wt-topic{display:grid;grid-template-columns:2rem minmax(0,1fr);gap:12px;align-items:start}
.cf-workshop-ticket .wt-num{color:var(--band-ink);font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:var(--wt-h3);line-height:1.15;font-variant-numeric:tabular-nums}
.cf-workshop-ticket .wt-topic-title{margin:0;padding-top:3px;font-size:var(--wt-body);font-weight:700;line-height:1.35;text-wrap:pretty}
.cf-workshop-ticket .wt-topic-detail{margin:4px 0 0;font-size:15px;font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-workshop-ticket .wt-buy{grid-area:buy;min-width:0;display:flex;flex-direction:column;gap:20px;background:var(--card);color:var(--ink);padding:28px clamp(24px,4vw,48px) clamp(28px,4vw,48px)}
.cf-workshop-ticket .wt-seats{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:30px;margin:0;padding:4px 12px;border-radius:999px;background:var(--warning-soft,color-mix(in oklch,var(--warning) 14%,var(--card)));color:var(--warning);font-size:14px;font-weight:800;line-height:1.2}
.cf-workshop-ticket .wt-receipt{border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));padding:20px clamp(16px,2.4vw,24px) 22px}
.cf-workshop-ticket .wt-receipt-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:0 0 16px}
.cf-workshop-ticket .wt-receipt-name{margin:0;color:var(--ink);font-family:var(--font-display);font-size:var(--wt-body);font-weight:800;line-height:1.25}
.cf-workshop-ticket .wt-receipt-meta{margin:0;color:var(--muted);font-size:15px;font-weight:600;line-height:1.4}
.cf-workshop-ticket .wt-lines{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.cf-workshop-ticket .wt-line{display:flex;align-items:flex-start;gap:12px}
.cf-workshop-ticket .wt-thumb{flex:0 0 40px;display:block;width:40px;height:40px;border-radius:8px;object-fit:cover}
.cf-workshop-ticket .wt-thumb-icon{display:grid;place-items:center;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-workshop-ticket .wt-line-label{flex:1 1 auto;min-width:0;padding-top:8px;color:var(--ink);font-size:var(--wt-body);font-weight:600;line-height:1.35;text-wrap:pretty}
.cf-workshop-ticket .wt-line-value{flex:0 0 auto;padding-top:8px;color:var(--ink);font-size:var(--wt-body);font-weight:700;line-height:1.35;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-workshop-ticket .wt-sums{display:grid;gap:8px;margin:20px 0 0}
.cf-workshop-ticket .wt-sum{display:flex;justify-content:space-between;gap:12px;font-size:var(--wt-body);line-height:1.35}
.cf-workshop-ticket .wt-sum dt{color:var(--muted);font-weight:600}
.cf-workshop-ticket .wt-sum dd{margin:0;color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-workshop-ticket .wt-sum-off dt,.cf-workshop-ticket .wt-sum-off dd{color:var(--success);font-weight:700}
.cf-workshop-ticket .wt-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:12px}
.cf-workshop-ticket .wt-total dt{color:var(--ink);font-size:var(--wt-body);font-weight:800;line-height:1.3}
.cf-workshop-ticket .wt-total dd{margin:0;color:var(--ink);font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:var(--wt-num);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
.cf-workshop-ticket .wt-reason{margin:0;max-width:64ch;color:var(--muted);font-size:var(--wt-body);font-weight:400;line-height:1.5;text-wrap:pretty}
.cf-workshop-ticket .wt-reason strong{color:var(--ink);font-weight:800}
.cf-workshop-ticket .wt-action{display:grid;gap:12px}
.cf-workshop-ticket .wt-cta{--wt-bb:var(--button-bg,var(--cta));--wt-bb2:var(--button-bg-2,var(--cta-2));display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:72px;margin:0;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(180deg,oklch(from var(--wt-bb) calc(l + 0.04) c h),oklch(from var(--wt-bb2) calc(l - 0.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-wrap:balance;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wt-bb) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--wt-bb) calc(l - 0.16) c h),0 1px 2px oklch(from var(--wt-shadow) l c h / 0.3),0 8px 16px -6px oklch(from var(--wt-shadow) l c h / 0.45));cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform 0.16s ease,box-shadow 0.16s ease,background 0.16s ease}
.cf-workshop-ticket .wt-cta:hover:not(:disabled),.cf-workshop-ticket .wt-cta.is-hover:not(:disabled){transform:translateY(-1px);background:linear-gradient(180deg,oklch(from var(--wt-bb) calc(l - 0.01) c h),oklch(from var(--wt-bb2) calc(l - 0.07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wt-bb) calc(l + 0.12) c h / 0.65),inset 0 -3px 0 oklch(from var(--wt-bb) calc(l - 0.2) c h),0 1px 2px oklch(from var(--wt-shadow) l c h / 0.34),0 10px 18px -6px oklch(from var(--wt-shadow) l c h / 0.55))}
.cf-workshop-ticket .wt-cta:active:not(:disabled),.cf-workshop-ticket .wt-cta.is-active:not(:disabled){transform:translateY(1px);background:linear-gradient(180deg,oklch(from var(--wt-bb) calc(l - 0.05) c h),oklch(from var(--wt-bb2) calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from var(--wt-bb) calc(l - 0.22) c h / 0.55),inset 0 -2px 0 oklch(from var(--wt-bb) calc(l - 0.16) c h),0 1px 2px oklch(from var(--wt-shadow) l c h / 0.3)}
.cf-workshop-ticket .wt-cta:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-workshop-ticket .wt-cta:disabled{cursor:progress}
.cf-workshop-ticket .wt-cta:disabled:not([aria-busy='true']){cursor:not-allowed;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm))}
.cf-workshop-ticket .wt-note{margin:0;color:var(--muted);font-size:15px;font-weight:600;line-height:1.4;text-align:center;text-wrap:pretty}
.cf-workshop-ticket .wt-note-part{display:inline-block;max-width:100%}
@keyframes wt-rise{from{opacity:0.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes wt-swap{from{opacity:0.82;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes wt-spin{to{transform:rotate(360deg)}}
.cf-workshop-ticket .wt-rise{animation:wt-rise 0.45s cubic-bezier(0.2,0.7,0.2,1) both}
.cf-workshop-ticket .wt-swap{animation:wt-swap 0.3s cubic-bezier(0.2,0.7,0.2,1) both}
.cf-workshop-ticket .wt-spin{animation:wt-spin 0.8s linear infinite}
@media (max-width:880px){
.cf-workshop-ticket .wt-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:'head' 'event' 'buy'}
.cf-workshop-ticket .wt-head{padding:28px 20px 24px}
.cf-workshop-ticket .wt-buy{padding:24px 20px 28px}
.cf-workshop-ticket .wt-event-body{padding:4px 20px 28px}
.cf-workshop-ticket .wt-event-body:first-child{padding-top:28px}
.cf-workshop-ticket .wt-scene{flex:0 0 auto;height:200px;min-height:0}
.cf-workshop-ticket .wt-receipt{padding:16px 16px 18px}
}
@media (max-width:480px){
.cf-workshop-ticket .wt-line{gap:10px}
.cf-workshop-ticket .wt-line-label,.cf-workshop-ticket .wt-line-value{font-size:1rem}
.cf-workshop-ticket .wt-topic{grid-template-columns:1.5rem minmax(0,1fr);gap:10px}
.cf-workshop-ticket .wt-cta{padding:12px 16px}
.cf-workshop-ticket .wt-when{gap:18px}
}
@media (prefers-reduced-motion:reduce){
.cf-workshop-ticket .wt-rise,.cf-workshop-ticket .wt-swap,.cf-workshop-ticket .wt-spin{animation:none}
.cf-workshop-ticket .wt-cta,.cf-workshop-ticket .wt-zone button{transition:none}
.cf-workshop-ticket .wt-cta:hover:not(:disabled),.cf-workshop-ticket .wt-cta.is-hover:not(:disabled),.cf-workshop-ticket .wt-cta:active:not(:disabled),.cf-workshop-ticket .wt-cta.is-active:not(:disabled){transform:none}
}
`;
pieces/offer/workshop-ticket/specimen.tsx 53 lines
import __studioImage4d01d1e2 from "../assets/d4991f1195be2417.webp";
import WorkshopTicket, { type WorkshopTicketProps } from '../workshop-ticket';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
type State = NonNullable<WorkshopTicketProps['state']>;
const sample = defaults.sample;
function amount(value: string): number {
return Number(value.replace(/[^0-9.]/g, ''));
}
export default function WorkshopTicketSpecimen({ state }: { state?: State }) {
const workshop = sample.registration;
const saving = amount(sample.regularPrice) - amount(sample.price);
return (
<WorkshopTicket
state={state}
eventName={workshop.name}
headline='Map your first funnel in one live session'
highlight='your first funnel'
lead={workshop.lead}
startsAt='2026-12-10T18:00:00-05:00'
durationMinutes={120}
timeZone='America/New_York'
sceneImage={slot('scene', __studioImage4d01d1e2)}
sceneImageAlt='A desk set up for the live workshop, with a laptop and a sketched funnel plan'
replayNote={`Can't make it live? Your ticket includes the full replay.`}
receiptMeta='1 seat · live + replay'
lines={[
{ label: 'Live workshop seat', value: 'Included' },
...sample.items.map((item, i) => ({
label: item.name,
value: item.value,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
})),
]}
subtotal={sample.regularPrice}
discountLabel='Workshop ticket price'
discount={`−$${saving}`}
totalLabel='Your ticket today'
total={sample.price}
reasonLead={`Why only ${sample.price}?`}
reason={`You're paying for the materials. The live session is where you use them, so you leave with a plan instead of notes.`}
label={`Map my first funnel for ${sample.price}`}
note={`Secure checkout · ${sample.guarantee}`}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalWorkshopTicket |
string |
|
highlight OptionalWorkshopTicket |
string |
|
lead OptionalWorkshopTicket |
string |
|
eventName OptionalWorkshopTicket |
string |
|
startsAt OptionalWorkshopTicket |
string |
|
durationMinutes OptionalWorkshopTicket |
number |
|
timeZone OptionalWorkshopTicket |
string |
|
locale OptionalWorkshopTicket |
string |
|
dateLabel OptionalWorkshopTicket |
string |
|
timeLabel OptionalWorkshopTicket |
string |
|
sceneImage OptionalWorkshopTicket |
string |
|
sceneImageAlt OptionalWorkshopTicket |
string |
|
topicsTitle OptionalWorkshopTicket |
string |
|
topics OptionalWorkshopTicket |
WorkshopTicketTopic[] |
|
replayNote OptionalWorkshopTicket |
string |
|
receiptMeta OptionalWorkshopTicket |
string |
|
lines OptionalWorkshopTicket |
WorkshopTicketLine[] |
|
subtotalLabel OptionalWorkshopTicket |
string |
|
subtotal OptionalWorkshopTicket |
string |
|
discountLabel OptionalWorkshopTicket |
string |
|
discount OptionalWorkshopTicket |
string |
|
totalLabel OptionalWorkshopTicket |
string |
|
total OptionalWorkshopTicket |
string |
|
reasonLead OptionalWorkshopTicket |
string |
|
reason OptionalWorkshopTicket |
string |
|
seatsLeft OptionalWorkshopTicket |
number |
|
label OptionalWorkshopTicket |
string |
|
note OptionalWorkshopTicket |
string |
|
soldOut OptionalWorkshopTicket |
boolean |
|
pending OptionalWorkshopTicket |
boolean |
|
href OptionalWorkshopTicket |
string |
|
onAction OptionalWorkshopTicket |
() => void |
|
copy OptionalWorkshopTicket |
Partial<WorkshopTicketCopy> |
|
state OptionalWorkshopTicket |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalWorkshopTicket |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- 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.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
scene- A wide atmosphere photo behind or beside the copy.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d4991f1195be2417.webp
image/webp · 102 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB