Workshop Ticket 2
Workshop agenda rail: a paid live class laid out minute by minute, each huge timestamp future-pacing what the visitor will have built, ending in the seat price and one order button.
Use it in a prompt
Use offer/workshop-ticket-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/offer/workshop-ticket-2.tsx. - Import it and pass your copy and images (Props tab):
import { WorkshopTicket2 } from "@/components/funneldna/offer/workshop-ticket-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/workshop-ticket-2/component.tsx 873 lines
// layout: number-rail
// Workshop agenda rail: a paid live class laid out minute by minute, each huge timestamp future-pacing what the visitor will have built, ending in the seat price and one order button.
import React from 'react';
import { CalendarDays, Clock, Loader2, Lock, RotateCcw } from 'lucide-react';
export type WorkshopTicket2Segment = {
// minutes from the start of the class, e.g. 20 shows 0:20
at: number;
// what the visitor builds in this segment, one line
title: React.ReactNode;
// future-pacing line; {end} becomes the timestamp this segment ends at
pace?: string;
};
export type WorkshopTicket2Copy = {
toggle: string;
// {zone} becomes the long time zone name
eventZone: string;
localZone: string;
sameZone: string;
// {minutes} becomes durationMinutes
duration: string;
railLabel: string;
closed: string;
pending: string;
};
export type WorkshopTicket2Props = {
headline?: string;
// phrase inside the headline that gets the marker stroke
highlight?: string;
lead?: string;
// ISO start with its UTC offset, e.g. 2026-12-10T18:00:00-05:00
startsAt?: string;
durationMinutes?: number;
// IANA zone the class runs in, e.g. America/New_York; enables the time zone switch
timeZone?: string;
locale?: string;
// shown when startsAt is missing or invalid
dateLabel?: string;
timeLabel?: string;
segments?: WorkshopTicket2Segment[];
// scene slot: the class in action, beside the first segments
photoImage?: string;
photoAlt?: string;
photoCaption?: string;
salutation?: string;
letter?: string[];
signOff?: string;
// the name the signature stands for; written in --signature-face when no signature image is supplied
signature?: string;
// signature slot: transparent handwritten signature, recoloured to the theme ink
signatureImage?: string;
signerName?: string;
signerRole?: string;
// presenter slot
presenterImage?: string;
presenterAlt?: string;
// {minutes} becomes durationMinutes
closeTitle?: string;
pricePrefix?: string;
price?: string;
// the value said in words beside the price
priceWords?: string;
// replay access line, shown only when supplied
replayNote?: string;
instruction?: string;
label?: string;
note?: string;
closed?: boolean;
pending?: boolean;
href?: string;
onAction?: () => void;
copy?: Partial<WorkshopTicket2Copy>;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
const DEFAULT_COPY: WorkshopTicket2Copy = {
toggle: 'Show in my time zone',
eventZone: 'Times shown in {zone}, the host’s time zone.',
localZone: 'Times shown in your time zone: {zone}.',
sameZone: 'You’re in the host’s time zone: {zone}.',
duration: '{minutes} minutes, live',
railLabel: 'The class, minute by minute',
closed: 'Registration is closed',
pending: 'Opening checkout…',
};
const DEFAULT_SEGMENTS: WorkshopTicket2Segment[] = [
{ at: 0, title: 'Read your starter like a pro', pace: 'By {end} you’ll know exactly when it’s strong enough to scale.' },
{ at: 20, title: 'Turn one loaf into a 40-loaf formula', pace: 'By {end} you’ll have your first scaled formula.' },
{ at: 45, title: 'Plan a bake day that runs on time', pace: 'By {end} you’ll have a mix-to-oven schedule you can repeat every week.' },
{ at: 70, title: 'Price every loaf with confidence', pace: 'By {end} you’ll know what to charge for every loaf on your menu.' },
];
const DEFAULT_LETTER = [
'You already bake a loaf people ask about. The hard part is baking forty of them, on time, the same every week.',
'That’s the whole class. Bring your starter to the counter and we’ll build it together, live, one timestamp at a time.',
];
export function WorkshopTicket2(props: WorkshopTicket2Props) {
const {
headline = 'Go from one loaf to a full bake day in 90 minutes',
highlight = 'a full bake day',
lead = 'Sourdough at Scale is a live masterclass for home bakers turning pro. Follow the clock and see what you’ll have built by the end.',
startsAt = '2026-12-10T18:00:00-05:00',
durationMinutes = 90,
timeZone = 'America/New_York',
locale = 'en-US',
dateLabel = '',
timeLabel = '',
segments = DEFAULT_SEGMENTS,
photoImage = '',
photoAlt = 'Floured hands shaping a round sourdough loaf on a wooden bench',
photoCaption = 'Shaping the dough from your first scaled formula.',
salutation = 'Dear home baker,',
letter = DEFAULT_LETTER,
signOff = 'See you at the counter,',
signature = 'Marta',
signatureImage = '',
signerName = 'Marta Ellery',
signerRole = 'Head baker and your host',
presenterImage = '',
presenterAlt = 'Marta Ellery, your host',
closeTitle = 'Take your seat for all {minutes} minutes',
pricePrefix = 'Just',
price = '$47',
priceWords = 'less than the flour for one big bake day',
replayNote = '',
instruction = 'Click the button below to reserve your seat.',
label = 'Order now',
note = 'Secure checkout · 30-day money-back guarantee',
closed = false,
pending = false,
href,
onAction,
copy,
state = 'default',
className,
} = props;
const c: WorkshopTicket2Copy = { ...DEFAULT_COPY, ...copy };
const uid = React.useId();
const headId = `${uid}-head`;
const capId = `${uid}-zone`;
const [mine, setMine] = React.useState(false);
const start = validDate(startsAt);
const canConvert = Boolean(start && timeZone);
const local = canConvert && mine;
const zone = local ? undefined : timeZone || undefined;
const minutes = Math.max(0, Math.round(durationMinutes || 0));
const durationText = minutes ? fill(c.duration, { minutes: String(minutes) }) : '';
const clock = (offset: number) =>
start ? fmt(new Date(start.getTime() + offset * 60000), locale, zone, { hour: 'numeric', minute: '2-digit' }) : '';
const dateText = start ? fmt(start, locale, zone, { weekday: 'short', month: 'short', day: 'numeric' }) : dateLabel;
const timeText = start ? [clock(0), zoneName(start, locale, zone, 'short')].filter(Boolean).join(' ') : timeLabel;
let caption = '';
if (canConvert && start) {
const longName = zoneName(start, locale, zone, 'long');
if (!local) {
caption = fill(c.eventZone, { zone: longName || timeZone.split('_').join(' ') });
} else {
const visitor = visitorZone();
caption = fill(visitor && visitor === timeZone ? c.sameZone : c.localZone, {
zone: longName || visitor.split('_').join(' '),
});
}
}
const clockKey = local ? 'local' : 'event';
const disabled = closed || state === 'disabled';
const busy = pending && !disabled;
const ctaClass = [
'cf-wt2-cta',
state === 'hover' && !disabled ? 'is-hover' : '',
state === 'active' && !disabled ? 'is-active' : '',
]
.filter(Boolean)
.join(' ');
const ctaInner = busy ? (
<>
<Loader2 className='cf-wt2-spin' size={20} strokeWidth={2.5} aria-hidden />
{c.pending}
</>
) : disabled ? (
c.closed
) : (
label
);
const handleAction = (e: React.MouseEvent<HTMLElement>) => {
if (disabled || busy) {
e.preventDefault();
return;
}
onAction?.();
};
const cta =
href && !disabled ? (
<a className={ctaClass} href={href} onClick={handleAction} aria-busy={busy || undefined}>
{ctaInner}
</a>
) : (
<button type='button' className={ctaClass} onClick={handleAction} disabled={disabled} aria-busy={busy || undefined}>
{ctaInner}
</button>
);
const priceText = [pricePrefix, price].filter(Boolean).join(' ');
return (
<section className={['cf-wt2', className].filter(Boolean).join(' ')} aria-labelledby={headId}>
<style>{CSS}</style>
<div className='cf-wt2-wrap'>
<header className='cf-wt2-head'>
<h2 id={headId} className='cf-wt2-title'>
{marked(headline, highlight)}
</h2>
{lead ? <p className='cf-wt2-lead'>{lead}</p> : null}
{dateText || timeText || durationText ? (
<p className='cf-wt2-meta'>
{dateText ? (
<span key={`d-${clockKey}`} className='cf-wt2-swap'>
<CalendarDays size={18} strokeWidth={2.5} aria-hidden />
{dateText}
</span>
) : null}
{timeText ? (
<span key={`t-${clockKey}`} className='cf-wt2-swap'>
<Clock size={18} strokeWidth={2.5} aria-hidden />
{timeText}
</span>
) : null}
{durationText ? <span>{durationText}</span> : null}
</p>
) : null}
{canConvert ? (
<div className='cf-wt2-zone'>
<button
type='button'
role='switch'
aria-checked={mine}
aria-describedby={capId}
className='cf-wt2-switch'
onClick={() => setMine((v) => !v)}
>
<span className='cf-wt2-knobtrack' aria-hidden>
<span className='cf-wt2-knob' />
</span>
{c.toggle}
</button>
<p id={capId} className='cf-wt2-caption' aria-live='polite'>
{caption}
</p>
</div>
) : null}
</header>
<div className='cf-wt2-aside'>
{photoImage ? (
<figure className='cf-wt2-photo'>
<img src={photoImage} alt={photoAlt} width={760} height={950} decoding='async' />
{photoCaption ? <figcaption>{photoCaption}</figcaption> : null}
</figure>
) : null}
{salutation || letter.length || signature || signerName ? (
<div className='cf-wt2-letter'>
{salutation ? <p className='cf-wt2-salute'>{salutation}</p> : null}
{letter.map((paragraph, i) => (
<p key={i} className='cf-wt2-para'>
{paragraph}
</p>
))}
{signOff ? <p className='cf-wt2-signoff'>{signOff}</p> : null}
{signature || signerName ? (
<div className='cf-wt2-signer'>
{presenterImage ? (
<img className='cf-wt2-avatar' src={presenterImage} alt={presenterAlt} width={112} height={112} loading='lazy' decoding='async' />
) : null}
<div className='cf-wt2-signtext'>
{signatureImage ? (
<span
className='cf-wt2-sigimg'
role='img'
aria-label={signature || signerName}
style={{ '--wt2-sig': `url("${signatureImage}")` } as React.CSSProperties}
/>
) : signature ? (
<p className='cf-wt2-sig'>{signature}</p>
) : null}
{signerName ? (
<p className='cf-wt2-name'>
<strong>{signerName}</strong>
{signerRole ? <span>{signerRole}</span> : null}
</p>
) : null}
</div>
</div>
) : null}
</div>
) : null}
</div>
<ol className='cf-wt2-rail' aria-label={c.railLabel}>
{segments.map((segment, i) => {
const next = segments[i + 1];
const end = stamp(next ? next.at : minutes);
return (
<li key={i} className='cf-wt2-stop' style={{ '--d': `${Math.min(i * 0.07, 0.28)}s` } as React.CSSProperties}>
<div className='cf-wt2-when'>
<span className='cf-wt2-num'>{stamp(segment.at)}</span>
{start ? (
<span key={clockKey} className='cf-wt2-clock cf-wt2-swap'>
{clock(segment.at)}
</span>
) : null}
</div>
<span className='cf-wt2-track' aria-hidden />
<div className='cf-wt2-body'>
<h3 className='cf-wt2-h3'>{segment.title}</h3>
{segment.pace ? <p className='cf-wt2-pace'>{paced(segment.pace, end)}</p> : null}
</div>
</li>
);
})}
</ol>
<div className='cf-wt2-close'>
<div className='cf-wt2-when'>
<span className='cf-wt2-num'>{stamp(minutes)}</span>
{start ? (
<span key={clockKey} className='cf-wt2-clock cf-wt2-swap'>
{clock(minutes)}
</span>
) : null}
</div>
<span className='cf-wt2-track is-end' aria-hidden />
{closeTitle ? <h3 className='cf-wt2-h3 cf-wt2-closetitle'>{fill(closeTitle, { minutes: String(minutes) })}</h3> : null}
<div className='cf-wt2-card'>
{priceText ? (
<p className='cf-wt2-price'>
<strong>{priceText}</strong>
{priceWords ? <span>{priceWords}</span> : null}
</p>
) : null}
{replayNote ? (
<p className='cf-wt2-replay'>
<RotateCcw className='cf-wt2-inline' size={18} strokeWidth={2.5} aria-hidden />
{replayNote}
</p>
) : null}
{instruction ? <p className='cf-wt2-instruct'>{instruction}</p> : null}
{cta}
{note ? (
<p className='cf-wt2-note'>
<Lock className='cf-wt2-inline' size={16} strokeWidth={2.5} aria-hidden />
{note}
</p>
) : null}
</div>
</div>
</div>
</section>
);
}
export default WorkshopTicket2;
function fill(template: string, values: Record<string, string>) {
return template.replace(/\{(\w+)\}/g, (match, key: string) => (key in values ? values[key] : match));
}
function stamp(totalMinutes: number) {
const m = Math.max(0, Math.round(totalMinutes || 0));
return `${Math.floor(m / 60)}:${String(m % 60).padStart(2, '0')}`;
}
function validDate(iso?: string) {
if (!iso) return null;
const d = new Date(iso);
return Number.isNaN(d.getTime()) ? null : d;
}
function fmt(d: Date, locale: string, zone: string | undefined, options: Intl.DateTimeFormatOptions) {
try {
return new Intl.DateTimeFormat(locale, { ...options, timeZone: zone }).format(d);
} catch {
try {
return new Intl.DateTimeFormat(undefined, options).format(d);
} catch {
return '';
}
}
}
function zoneName(d: Date, locale: string, zone: string | undefined, style: 'short' | 'long') {
try {
const parts = new Intl.DateTimeFormat(locale, { timeZone: zone, timeZoneName: style }).formatToParts(d);
const part = parts.find((p) => p.type === 'timeZoneName');
return part ? part.value : '';
} catch {
return '';
}
}
function visitorZone() {
try {
return Intl.DateTimeFormat().resolvedOptions().timeZone || '';
} catch {
return '';
}
}
function marked(text: string, phrase: string): React.ReactNode {
if (!phrase) return text;
const i = text.indexOf(phrase);
if (i < 0) return text;
return (
<>
{text.slice(0, i)}
<span className='cf-wt2-mark'>{phrase}</span>
{text.slice(i + phrase.length)}
</>
);
}
function paced(text: string, end: string): React.ReactNode {
const parts = text.split('{end}');
return parts.map((part, i) => (
<React.Fragment key={i}>
{part}
{i < parts.length - 1 ? <strong className='cf-wt2-at'>{end}</strong> : null}
</React.Fragment>
));
}
const CSS = `
.cf-wt2 {
--wt2-num: clamp(2.5rem, 4.2vw, 3.75rem);
--wt2-col: 9rem;
--wt2-track: 32px;
--wt2-pad: 40px;
--wt2-line: oklch(from var(--ink) l c h / .14);
--wt2-marker: var(--marker, #fae37c);
--wt2-shadow: var(--shadow, oklch(0.22 0.03 260));
--signature-font: var(--signature-face, var(--font-display));
--signature-ink: var(--ink);
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);
overflow-x: clip;
}
.cf-wt2 *, .cf-wt2 *::before, .cf-wt2 *::after { box-sizing: border-box; }
.cf-wt2-wrap {
max-width: 1120px;
margin: 0 auto;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 23.75rem);
grid-template-rows: auto auto 1fr;
grid-template-areas: 'head aside' 'rail aside' 'close aside';
column-gap: clamp(32px, 5vw, 72px);
row-gap: 0;
}
.cf-wt2-head { grid-area: head; margin-bottom: 48px; }
.cf-wt2-title {
margin: 0 0 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);
color: var(--ink);
text-wrap: balance;
}
.cf-wt2-mark {
background: linear-gradient(176deg, transparent 0 56%, var(--wt2-marker) 56% 92%, transparent 92%);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
padding: 0 .08em;
margin: 0 -.04em;
border-radius: .2em .1em .25em .12em;
color: inherit;
}
.cf-wt2-lead {
margin: 0 0 24px;
max-width: 60ch;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 500;
color: var(--muted);
text-wrap: pretty;
}
.cf-wt2-meta {
margin: 0;
display: flex;
flex-wrap: wrap;
gap: 8px 20px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.4;
font-weight: 700;
color: var(--ink);
}
.cf-wt2-meta span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.cf-wt2-meta svg { flex: none; color: var(--accent); }
.cf-wt2-zone { margin-top: 20px; }
.cf-wt2-switch {
display: inline-flex;
align-items: center;
gap: 12px;
min-height: 44px;
margin: 0;
padding: 6px 18px 6px 6px;
border: 1px solid oklch(from var(--ink) l c h / .12);
border-radius: 999px;
background: color-mix(in oklch, var(--ink) 4%, var(--surface));
color: var(--ink);
font-family: var(--font-body);
font-size: 1rem;
line-height: 1.2;
font-weight: 700;
text-align: left;
cursor: pointer;
transition: background .16s ease, border-color .16s ease;
}
.cf-wt2-switch:hover { background: color-mix(in oklch, var(--ink) 8%, var(--surface)); border-color: oklch(from var(--ink) l c h / .2); }
.cf-wt2-switch:focus-visible { outline: 3px solid var(--field-focus, var(--accent)); outline-offset: 3px; }
.cf-wt2-knobtrack {
position: relative;
flex: none;
width: 46px;
height: 28px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink) 24%, var(--surface));
transition: background .16s ease;
}
.cf-wt2-knob {
position: absolute;
top: 3px;
left: 3px;
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--card);
box-shadow: var(--shadow-sm, 0 1px 1px oklch(from var(--wt2-shadow) l c h / .18), 0 1px 3px oklch(from var(--wt2-shadow) l c h / .14));
transition: transform .16s ease, background .16s ease;
}
.cf-wt2-switch[aria-checked='true'] .cf-wt2-knobtrack { background: var(--accent-fill, var(--accent)); }
.cf-wt2-switch[aria-checked='true'] .cf-wt2-knob { transform: translateX(18px); background: var(--accent-fill-ink, var(--card)); }
.cf-wt2-caption {
margin: 8px 0 0;
min-height: 1.4em;
font-size: .9375rem;
line-height: 1.4;
font-weight: 500;
color: var(--muted);
text-wrap: pretty;
}
.cf-wt2-aside {
grid-area: aside;
align-self: start;
position: sticky;
top: 32px;
}
.cf-wt2-photo { margin: 0; }
.cf-wt2-photo img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 4 / 5;
object-fit: cover;
object-position: center 42%;
border-radius: 12px;
}
.cf-wt2-photo figcaption {
margin-top: 12px;
font-size: .9375rem;
line-height: 1.4;
font-weight: 500;
color: var(--muted);
text-wrap: pretty;
}
.cf-wt2-letter { margin-top: 32px; }
.cf-wt2-photo + .cf-wt2-letter { margin-top: 32px; }
.cf-wt2-aside > .cf-wt2-letter:first-child { margin-top: 0; }
.cf-wt2-salute {
margin: 0 0 12px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
font-weight: 700;
color: var(--ink);
}
.cf-wt2-para {
margin: 0 0 12px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.55;
color: var(--ink);
text-wrap: pretty;
}
.cf-wt2-signoff {
margin: 24px 0 12px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
color: var(--ink);
}
.cf-wt2-signer { display: flex; align-items: center; gap: 16px; }
.cf-wt2-avatar {
flex: none;
width: 56px;
height: 56px;
border-radius: 50%;
object-fit: cover;
object-position: center 30%;
}
.cf-wt2-signtext { min-width: 0; }
.cf-wt2-sig {
margin: 0 0 12px;
font-family: var(--signature-font);
font-weight: 700;
font-size: 1.5rem;
line-height: 1.2;
color: var(--signature-ink);
}
.cf-wt2-sigimg {
display: block;
width: 168px;
max-width: 100%;
height: 60px;
margin: 0 0 12px;
background: var(--signature-ink);
-webkit-mask: var(--wt2-sig) center / cover no-repeat;
mask: var(--wt2-sig) center / cover no-repeat;
}
.cf-wt2-name {
margin: 0;
font-size: .9375rem;
line-height: 1.4;
color: var(--muted);
}
.cf-wt2-name strong { display: block; font-weight: 700; color: var(--ink); }
.cf-wt2-rail { grid-area: rail; list-style: none; margin: 0; padding: 0; }
.cf-wt2-stop {
display: grid;
grid-template-columns: var(--wt2-col) var(--wt2-track) minmax(0, 1fr);
animation: cf-wt2-rise .45s cubic-bezier(.2, .7, .2, 1) both;
animation-delay: var(--d, 0s);
}
.cf-wt2-when { padding-bottom: var(--wt2-pad); text-align: right; }
.cf-wt2-num {
display: block;
font-family: var(--font-display);
font-size: var(--wt2-num);
line-height: 1;
font-weight: var(--display-weight, 800);
letter-spacing: -0.03em;
font-variant-numeric: tabular-nums;
color: var(--accent);
white-space: nowrap;
}
.cf-wt2-clock {
display: block;
margin-top: max(12px, calc(var(--wt2-num) * .32));
font-size: .9375rem;
line-height: 1.4;
font-weight: 600;
font-variant-numeric: tabular-nums;
color: var(--muted);
white-space: nowrap;
}
.cf-wt2-track { position: relative; display: block; }
.cf-wt2-track::before {
content: '';
position: absolute;
left: 50%;
top: calc(var(--wt2-num) / 2);
width: 18px;
height: 18px;
border-radius: 50%;
border: 3px solid var(--surface);
background: var(--accent-fill, var(--accent));
transform: translate(-50%, -50%);
z-index: 1;
}
.cf-wt2-stop .cf-wt2-track::after {
content: '';
position: absolute;
left: 50%;
width: 2px;
margin-left: -1px;
top: calc(var(--wt2-num) / 2);
bottom: calc(var(--wt2-num) / -2);
background: var(--wt2-line);
}
.cf-wt2-track.is-end::before { width: 26px; height: 26px; border-width: 4px; }
.cf-wt2-body { padding-bottom: var(--wt2-pad); min-width: 0; }
.cf-wt2-h3 {
margin: calc((var(--wt2-num) - 1.15em) / 2) 0 8px;
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);
color: var(--ink);
text-wrap: balance;
}
.cf-wt2-pace {
margin: 0;
max-width: 60ch;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
color: var(--muted);
text-wrap: pretty;
}
.cf-wt2-at { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cf-wt2-close {
grid-area: close;
align-self: start;
display: grid;
grid-template-columns: var(--wt2-col) var(--wt2-track) minmax(0, 1fr);
grid-template-rows: auto auto;
align-items: start;
}
.cf-wt2-close .cf-wt2-when { grid-column: 1; grid-row: 1 / span 2; padding-bottom: 0; }
.cf-wt2-close .cf-wt2-track { grid-column: 2; grid-row: 1; align-self: stretch; min-height: var(--wt2-num); }
.cf-wt2-closetitle { grid-column: 3; grid-row: 1; margin-bottom: 16px; }
.cf-wt2-card {
grid-column: 3;
grid-row: 2;
min-width: 0;
background: var(--card);
color: var(--ink);
border: 1px solid color-mix(in oklch, var(--accent) 28%, var(--card));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--wt2-shadow) l c h / .22), 0 12px 24px -8px oklch(from var(--wt2-shadow) l c h / .32)));
padding: clamp(20px, 3vw, 32px);
}
.cf-wt2-price {
margin: 0;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: clamp(12px, 1.6vw, 16px);
}
.cf-wt2-price strong {
font-family: var(--font-display);
font-size: clamp(2.5rem, 4.2vw, 3.75rem);
line-height: 1;
font-weight: var(--display-weight, 800);
letter-spacing: -0.03em;
font-variant-numeric: tabular-nums;
color: var(--ink);
white-space: nowrap;
}
.cf-wt2-price span {
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.4;
font-weight: 600;
color: var(--muted);
text-wrap: pretty;
}
.cf-wt2-inline { display: inline-block; vertical-align: -0.15em; margin-inline-end: .4em; }
.cf-wt2-replay {
margin: 16px 0 0;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
color: var(--ink);
text-wrap: pretty;
}
.cf-wt2-replay .cf-wt2-inline { color: var(--accent); }
.cf-wt2-instruct {
margin: 24px 0 12px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.45;
font-weight: 700;
color: var(--ink);
text-wrap: pretty;
}
.cf-wt2-note {
margin: 12px 0 0;
font-size: .9375rem;
line-height: 1.4;
font-weight: 500;
color: var(--muted);
text-wrap: pretty;
}
.cf-wt2-cta {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
min-height: 72px;
width: 100%;
min-width: 0;
margin: 0;
padding: 12px 28px;
border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l + .04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .02) c h));
color: var(--button-ink, var(--cta-ink));
font-family: var(--button-font, var(--font-display));
font-size: clamp(1.125rem, 1.55vw, 1.375rem);
line-height: 1.15;
font-weight: var(--button-weight, 800);
text-transform: var(--button-case, none);
text-align: center;
text-decoration: none;
text-wrap: balance;
text-shadow: var(--button-text-shadow, none);
cursor: pointer;
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .16) c h), 0 1px 2px oklch(from var(--wt2-shadow) l c h / .3), 0 8px 16px -6px oklch(from var(--wt2-shadow) l c h / .45));
transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cf-wt2-cta:hover:not(:disabled), .cf-wt2-cta.is-hover {
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - .01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .07) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + .12) c h / .7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .2) c h), 0 1px 2px oklch(from var(--wt2-shadow) l c h / .32), 0 10px 18px -6px oklch(from var(--wt2-shadow) l c h / .55));
}
.cf-wt2-cta:active:not(:disabled), .cf-wt2-cta.is-active {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - .04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .09) c h));
box-shadow: var(--button-shadow, inset 0 2px 4px oklch(from var(--button-bg, var(--cta)) calc(l - .22) c h / .5), inset 0 -2px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .18) c h), 0 1px 1px oklch(from var(--wt2-shadow) l c h / .28));
}
.cf-wt2-cta:focus-visible { outline: 3px solid var(--field-focus, var(--accent)); outline-offset: 3px; }
.cf-wt2-cta:disabled {
background: var(--button-2-bg, var(--secondary));
color: var(--button-2-ink, var(--secondary-ink));
box-shadow: var(--button-2-shadow, var(--shadow-sm));
text-shadow: none;
cursor: not-allowed;
transform: none;
}
.cf-wt2-cta[aria-busy='true'] { cursor: progress; }
.cf-wt2-spin { flex: none; animation: cf-wt2-spin .8s linear infinite; }
.cf-wt2-swap { animation: cf-wt2-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes cf-wt2-rise { from { opacity: .82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cf-wt2-spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
.cf-wt2-wrap {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: auto;
grid-template-areas: 'photo' 'head' 'letter' 'rail' 'close';
}
.cf-wt2-aside { display: contents; position: static; }
.cf-wt2-photo { grid-area: photo; margin: 0 0 32px; }
.cf-wt2-photo img { aspect-ratio: 16 / 10; object-position: center 45%; }
.cf-wt2-head { margin-bottom: 32px; }
.cf-wt2-letter, .cf-wt2-photo + .cf-wt2-letter { grid-area: letter; margin: 0 0 40px; }
}
@media (max-width: 560px) {
.cf-wt2 { --wt2-num: 2.25rem; --wt2-col: 4.75rem; --wt2-track: 24px; --wt2-pad: 32px; }
.cf-wt2-close { grid-template-rows: auto auto; }
.cf-wt2-close .cf-wt2-when { grid-row: 1; }
.cf-wt2-card { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; }
.cf-wt2-switch { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
.cf-wt2-stop, .cf-wt2-swap, .cf-wt2-spin { animation: none; }
.cf-wt2-cta, .cf-wt2-switch, .cf-wt2-knob, .cf-wt2-knobtrack { transition: none; }
.cf-wt2-cta:active:not(:disabled), .cf-wt2-cta.is-active { transform: none; }
}
`;
pieces/offer/workshop-ticket-2/specimen.tsx 36 lines
import __studioImage9fcfb0f6 from "../assets/47d18ed579c4e30a.webp";
import __studioImage4795f498 from "../assets/320ed0083caadd6e.webp";
import __studioImage02749784 from "../assets/f65ae3d050b34e45.webp";
import React from 'react';
import { WorkshopTicket2 } from '../workshop-ticket-2';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled';
export default function WorkshopTicket2Specimen({ state = 'default' }: { state?: SpecimenState }) {
const sample = defaults.sample;
return (
<WorkshopTicket2
state={state}
photoImage={slot(
'scene',
__studioImage4795f498
)}
photoAlt='Floured hands shaping a round sourdough loaf, with shaped loaves proofing behind'
signatureImage={slot(
'signature',
__studioImage9fcfb0f6
)}
presenterImage={slot(
'presenter',
__studioImage02749784
)}
price={sample.price}
replayNote='Can’t make it live? The replay comes with your seat.'
note={`Secure checkout · ${sample.guarantee}`}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalWorkshopTicket2 |
string |
|
highlight OptionalWorkshopTicket2 |
string |
|
lead OptionalWorkshopTicket2 |
string |
|
startsAt OptionalWorkshopTicket2 |
string |
|
durationMinutes OptionalWorkshopTicket2 |
number |
|
timeZone OptionalWorkshopTicket2 |
string |
|
locale OptionalWorkshopTicket2 |
string |
|
dateLabel OptionalWorkshopTicket2 |
string |
|
timeLabel OptionalWorkshopTicket2 |
string |
|
segments OptionalWorkshopTicket2 |
WorkshopTicket2Segment[] |
|
photoImage OptionalWorkshopTicket2 |
string |
|
photoAlt OptionalWorkshopTicket2 |
string |
|
photoCaption OptionalWorkshopTicket2 |
string |
|
salutation OptionalWorkshopTicket2 |
string |
|
letter OptionalWorkshopTicket2 |
string[] |
|
signOff OptionalWorkshopTicket2 |
string |
|
signature OptionalWorkshopTicket2 |
string |
|
signatureImage OptionalWorkshopTicket2 |
string |
|
signerName OptionalWorkshopTicket2 |
string |
|
signerRole OptionalWorkshopTicket2 |
string |
|
presenterImage OptionalWorkshopTicket2 |
string |
|
presenterAlt OptionalWorkshopTicket2 |
string |
|
closeTitle OptionalWorkshopTicket2 |
string |
|
pricePrefix OptionalWorkshopTicket2 |
string |
|
price OptionalWorkshopTicket2 |
string |
|
priceWords OptionalWorkshopTicket2 |
string |
|
replayNote OptionalWorkshopTicket2 |
string |
|
instruction OptionalWorkshopTicket2 |
string |
|
label OptionalWorkshopTicket2 |
string |
|
note OptionalWorkshopTicket2 |
string |
|
closed OptionalWorkshopTicket2 |
boolean |
|
pending OptionalWorkshopTicket2 |
boolean |
|
href OptionalWorkshopTicket2 |
string |
|
onAction OptionalWorkshopTicket2 |
() => void |
|
copy OptionalWorkshopTicket2 |
Partial<WorkshopTicket2Copy> |
|
state OptionalWorkshopTicket2 |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalWorkshopTicket2 |
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-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.
presenter- A photo of the host, coach or founder.
scene- A wide atmosphere photo behind or beside the copy.
signature- The founder’s handwritten signature.
-
320ed0083caadd6e.webp
image/webp · 148 KB
-
47d18ed579c4e30a.webp
image/webp · 54.5 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
f65ae3d050b34e45.webp
image/webp · 168 KB