Ticket Tiers 3
Workshop ticket toggle: a full-bleed studio photo sets the scene, then one ticket card flips between tiers and plays
Use it in a prompt
Use offer/ticket-tiers-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/offer/ticket-tiers-3.tsx. - Import it and pass your copy and images (Props tab):
import { TicketTiers3 } from "@/components/funneldna/offer/ticket-tiers-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/ticket-tiers-3/component.tsx 511 lines
// layout: segmented-stepper
// Workshop ticket toggle: a full-bleed studio photo sets the scene, then one ticket card flips between tiers and plays
// each out as a lived day, hour by hour, with the price, dates, city and the booking action right under it.
import * as React from 'react';
import { AnimatePresence, motion, useReducedMotion } from 'motion/react';
import { CalendarDays, Check, MapPin } from 'lucide-react';
export type TicketDayStop = {
// e.g. 'Sat 9:00 am'
time: string;
// what you are doing then, a few words
what: string;
};
export type TicketTier3 = {
name: string;
// today's price as shown, e.g. '$295'
price: string;
// words after the price in the investment line, e.g. 'for both days, with up to six pieces fired.'
priceLine?: string;
// future-paced subhead for the day this ticket gives you
dayHeading: React.ReactNode;
dayLine?: React.ReactNode;
includes: string[];
// title over the hour-by-hour strip, e.g. 'Your weekend, hour by hour'
scheduleTitle?: string;
schedule: TicketDayStop[];
// dates for this ticket; falls back to the block dates
dates?: string;
// button top line; falls back to copy.actionLabel
actionLabel?: string;
// short benefit line inside the button
actionNote?: string;
// availability, only when supplied; a sold-out tier shows as a disabled segment
soldOut?: boolean;
// preselected when defaultTier is not set
featured?: boolean;
// checkout destination for this ticket; falls back to the block href
href?: string;
};
export type TicketTiers3Copy = {
// read by screen readers for the ticket toggle
legend: string;
// small-caps label in front of the price
investmentLabel: string;
// shown in place of the price on a sold-out segment
soldOut: string;
// button label when the tier sets no actionLabel
actionLabel: string;
// button label while booking is disabled
disabledLabel: string;
// button label when every tier is sold out
allSoldOutLabel: string;
};
export type TicketTiers3Props = {
// wrap the key phrase in <span className='tt3-mark'> for the marker stroke
headline?: React.ReactNode;
// one sentence under the headline
lead?: React.ReactNode;
eventName?: string;
// shown when the chosen tier has no dates of its own
dates?: string;
city?: string;
// one segment per ticket, in display order
tiers?: TicketTier3[];
// preselected tier index; defaults to the featured tier
defaultTier?: number;
// slot: scene (the studio, the room where the day happens)
sceneImage?: string;
sceneImageAlt?: string;
// checkout destination; a tier's own href wins
href?: string;
// booking click with the chosen tier and its index; not called while blocked
onAction?: (tier: TicketTier3, index: number) => void;
// closes booking: segments and button are disabled
disabled?: boolean;
// interface labels; defaults are the approved copy
copy?: Partial<TicketTiers3Copy>;
// forced visual state for previews
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
export function TicketTiers3({
headline = DEFAULT_HEADLINE,
lead = 'Pick your ticket and see exactly how your days at the wheel unfold, hour by hour.',
eventName = 'Kiln & Clay Weekend Intensive',
dates = 'June 14–15, 2027',
city = 'Portland, OR',
tiers = DEFAULT_TIERS,
defaultTier,
sceneImage,
sceneImageAlt = 'Potters shaping clay at their wheels in a bright studio',
href,
onAction,
disabled = false,
copy: copyProp,
state = 'default',
className,
}: TicketTiers3Props) {
const copy: TicketTiers3Copy = { ...DEFAULT_COPY, ...copyProp };
const reduce = useReducedMotion();
const uid = React.useId();
const headingId = uid + '-h';
const panelId = uid + '-p';
const groupName = uid + '-tier';
const pillId = uid + '-pill';
const isDisabled = disabled || state === 'disabled';
const [picked, setPicked] = React.useState<number | null>(() => startIndex(tiers, defaultTier));
const index = picked !== null && tiers[picked] && !tiers[picked].soldOut ? picked : startIndex(tiers, defaultTier);
const shown = index ?? 0;
const tier = tiers[shown];
const blocked = isDisabled || index === null;
const target = !blocked && tier ? (tier.href ?? href) : undefined;
const hasPhoto = !!sceneImage;
function choose(i: number) {
if (isDisabled || !tiers[i] || tiers[i].soldOut) return;
setPicked(i);
}
function handleAction(event: React.MouseEvent<HTMLElement>) {
if (blocked || index === null || !tier) {
event.preventDefault();
return;
}
onAction?.(tier, index);
}
const panelTransition = reduce ? { duration: 0 } : { duration: 0.34, ease: EASE };
const pillTransition = reduce ? { duration: 0 } : { type: 'spring' as const, stiffness: 520, damping: 42 };
const label = isDisabled
? copy.disabledLabel
: index === null
? copy.allSoldOutLabel
: (tier?.actionLabel ?? copy.actionLabel);
const note = blocked ? undefined : tier?.actionNote;
const ctaClass = 'tt3-cta' + (state === 'hover' ? ' is-hover' : '') + (state === 'active' ? ' is-active' : '');
const inner = (
<>
<span className='tt3-cta-main'>{label}</span>
{note ? <span className='tt3-cta-sub'>{note}</span> : null}
</>
);
const cta = target ? (
<a className={ctaClass} href={target} onClick={handleAction}>{inner}</a>
) : (
<button type='button' className={ctaClass} onClick={handleAction} disabled={blocked}>{inner}</button>
);
return (
<section
className={'cf-ticket-tiers-3' + (hasPhoto ? '' : ' no-photo') + (className ? ' ' + className : '')}
aria-labelledby={headingId}
>
<style>{CSS}</style>
<header className='tt3-head'>
<h2 id={headingId} className='tt3-h'>{headline}</h2>
{lead ? <p className='tt3-lead'>{lead}</p> : null}
</header>
{hasPhoto ? (
<div className='tt3-photo'>
<img src={sceneImage} alt={sceneImageAlt} width={1600} height={900} decoding='async' />
</div>
) : null}
{tier ? (
<div className='tt3-card'>
<fieldset className='tt3-seg' disabled={isDisabled}>
<legend className='tt3-sr'>{copy.legend}</legend>
<div className='tt3-track' style={{ '--tt3-n': tiers.length } as React.CSSProperties}>
{tiers.map((t, i) => {
const on = i === index;
return (
<label key={t.name + i} className={'tt3-segment' + (on ? ' is-on' : '') + (t.soldOut ? ' is-out' : '')}>
<input
type='radio'
className='tt3-sr'
name={groupName}
checked={on}
disabled={!!t.soldOut || isDisabled}
onChange={() => choose(i)}
aria-controls={panelId}
/>
<span className='tt3-face'>
{on ? <motion.span layoutId={pillId} className='tt3-pill' transition={pillTransition} aria-hidden /> : null}
<span className='tt3-seg-name'>{t.name}</span>
<span className='tt3-seg-price'>{t.soldOut ? copy.soldOut : t.price}</span>
</span>
</label>
);
})}
</div>
</fieldset>
<div className='tt3-panels' id={panelId}>
<AnimatePresence mode='popLayout' initial={false}>
<motion.div
key={shown}
className='tt3-panel'
initial={reduce ? false : { opacity: 0, y: 8 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0 }}
transition={panelTransition}
>
<div className='tt3-panel-top'>
<div>
<h3 className='tt3-sub'>{tier.dayHeading}</h3>
{tier.dayLine ? <p className='tt3-line'>{tier.dayLine}</p> : null}
</div>
<ul className='tt3-inc'>
{tier.includes.map((item, i) => (
<li key={item + i}>
<span className='tt3-tick' aria-hidden>
<Check size={16} strokeWidth={3} />
</span>
<span>{item}</span>
</li>
))}
</ul>
</div>
{tier.schedule.length ? (
<div className='tt3-day'>
{tier.scheduleTitle ? <p className='tt3-day-title'>{tier.scheduleTitle}</p> : null}
<ol className='tt3-strip'>
{tier.schedule.map((stop, i) => (
<li key={stop.time + i} className='tt3-stop' style={{ animationDelay: Math.min(i * 0.07, 0.28) + 's' }}>
<span className='tt3-dot' aria-hidden />
<span className='tt3-time'>{stop.time}</span>
<span className='tt3-what'>{stop.what}</span>
</li>
))}
</ol>
</div>
) : null}
</motion.div>
</AnimatePresence>
</div>
<div className='tt3-close'>
<div className='tt3-close-copy'>
<p className='tt3-meta'>
{eventName ? <span className='tt3-event'>{eventName}</span> : null}
<span className='tt3-when'>
<span>
<CalendarDays size={18} strokeWidth={2.5} className='tt3-ic' aria-hidden />
{tier.dates ?? dates}
</span>
{city ? (
<span>
<MapPin size={18} strokeWidth={2.5} className='tt3-ic' aria-hidden />
{city}
</span>
) : null}
</span>
</p>
<div className='tt3-invest' aria-live='polite'>
<p className='tt3-price-row'>
<span className='tt3-sc'>{copy.investmentLabel}</span>{' '}
<strong key={shown} className='tt3-price'>{tier.price}</strong>
</p>
{tier.priceLine ? <p className='tt3-price-line'>{tier.priceLine}</p> : null}
</div>
</div>
{cta}
</div>
</div>
) : null}
</section>
);
}
export default TicketTiers3;
function startIndex(list: TicketTier3[], preferred?: number): number | null {
if (preferred !== undefined && list[preferred] && !list[preferred].soldOut) return preferred;
const featured = list.findIndex((t) => t.featured && !t.soldOut);
if (featured >= 0) return featured;
const open = list.findIndex((t) => !t.soldOut);
return open >= 0 ? open : null;
}
const EASE: [number, number, number, number] = [0.2, 0.7, 0.2, 1];
const DEFAULT_HEADLINE = (
<>
Spend a weekend at the wheel. <span className='tt3-mark'>Go home with pieces you made.</span>
</>
);
const DEFAULT_COPY: TicketTiers3Copy = {
legend: 'Choose your ticket',
investmentLabel: 'Your investment:',
soldOut: 'Sold out',
actionLabel: 'Book this ticket',
disabledLabel: 'Booking is closed',
allSoldOutLabel: 'All tickets are sold out',
};
const DEFAULT_TIERS: TicketTier3[] = [
{
name: 'Day pass',
price: '$145',
priceLine: 'for one full Saturday at the wheel.',
dayHeading: 'By 4 pm Saturday, your first bowl is off the wheel',
dayLine: 'One full day at your own wheel, from wedging the clay to trimming your first foot ring.',
includes: [
'Your own wheel for the day',
'12 lb of stoneware clay and every tool',
'Two pieces glazed and fired for pickup',
'Lunch and coffee in the studio',
],
scheduleTitle: 'Your Saturday, hour by hour',
schedule: [
{ time: '9:00 am', what: 'Coffee at your wheel' },
{ time: '9:30 am', what: 'Wedge and center the clay' },
{ time: '11:00 am', what: 'Pull your first cylinder' },
{ time: '12:30 pm', what: 'Lunch on the patio' },
{ time: '1:30 pm', what: 'Throw a bowl and a mug' },
{ time: '3:30 pm', what: 'Pick two pieces to fire' },
],
dates: 'Saturday, June 14, 2027',
actionLabel: 'Book my day pass',
actionNote: 'Clay, tools and lunch included',
},
{
name: 'Full weekend',
price: '$295',
priceLine: 'for both days, with up to six pieces fired.',
dayHeading: 'By Sunday afternoon, your first set is in the kiln',
dayLine: 'Saturday you throw. Sunday you trim, glaze and load the kiln with the pieces you’re proudest of.',
includes: [
'Your own wheel both days',
'25 lb of stoneware clay and every tool',
'Up to six pieces glazed and fired',
'Glaze lab with 14 studio glazes',
'Lunch and coffee both days',
],
scheduleTitle: 'Your weekend, hour by hour',
schedule: [
{ time: 'Sat 9:00 am', what: 'Center and pull your first walls' },
{ time: 'Sat 1:30 pm', what: 'Throw bowls, mugs and a vase' },
{ time: 'Sun 9:00 am', what: 'Trim feet and add handles' },
{ time: 'Sun 11:30 am', what: 'Dip and brush in the glaze lab' },
{ time: 'Sun 2:00 pm', what: 'Load the kiln together' },
{ time: 'Sun 4:00 pm', what: 'Plan your next pieces' },
],
featured: true,
actionLabel: 'Book my full weekend',
actionNote: 'Clay, glazes and firing included',
},
{
name: 'Weekend + private session',
price: '$445',
priceLine: 'for the full weekend plus your private session.',
dayHeading: 'Sunday evening, the lead potter fixes your throw one-on-one',
dayLine: 'Everything in the full weekend, plus 90 quiet minutes alone at the wheel with the lead potter after the group heads home.',
includes: [
'Everything in the full weekend',
'A 90-minute one-on-one at the wheel',
'One larger piece of your choice fired',
'A 30-day practice plan to take home',
],
scheduleTitle: 'Your weekend, hour by hour',
schedule: [
{ time: 'Sat 9:00 am', what: 'Center and pull with the group' },
{ time: 'Sat 1:30 pm', what: 'Throw your first set' },
{ time: 'Sun 9:00 am', what: 'Trim feet and add handles' },
{ time: 'Sun 2:00 pm', what: 'Glaze and load the kiln' },
{ time: 'Sun 5:00 pm', what: 'Your private session begins' },
{ time: 'Sun 6:30 pm', what: 'Leave with your practice plan' },
],
actionLabel: 'Book weekend + private',
actionNote: 'Your private session is held with your seat',
},
];
const R = '.cf-ticket-tiers-3';
const CSS = `
${R}{
--tt3-gutter:clamp(16px,5vw,48px);
--tt3-track:color-mix(in oklch,var(--ink) 6%,var(--card));
--tt3-well:color-mix(in oklch,var(--ink) 4%,var(--card));
--tt3-rule:oklch(from var(--ink) l c h / .16);
--tt3-time-ink:color-mix(in oklch,var(--accent) 78%,var(--ink));
--tt3-marker:color-mix(in oklch,var(--marker,#fae37c) 75%,transparent);
--tt3-shadow:var(--shadow,oklch(0.22 0.03 260));
position:relative;
background:var(--surface);
color:var(--ink);
font-family:var(--font-body);
padding:clamp(56px,8vw,112px) 0 clamp(64px,8.5vw,120px);
overflow-x:clip;
}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} .tt3-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
${R} .tt3-head{max-width:calc(46rem + 2 * var(--tt3-gutter));margin:0 auto;padding:0 var(--tt3-gutter);text-align:center;animation:tt3-rise .45s cubic-bezier(.2,.7,.2,1) both}
${R} .tt3-h{margin:0;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;color:var(--ink);text-wrap:balance}
${R} .tt3-mark{background-image:linear-gradient(transparent 50%,var(--tt3-marker) 50%,var(--tt3-marker) 94%,transparent 94%);padding:0 .1em;margin:0 -.04em;border-radius:.12em .4em .2em .35em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
${R} .tt3-lead{margin:16px auto 0;max-width:40rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
${R} .tt3-photo{position:relative;margin-top:clamp(32px,4vw,48px);height:clamp(380px,46vw,620px);overflow:hidden}
${R} .tt3-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 42%}
${R} .tt3-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,transparent 55%,oklch(from var(--band) l c h / .35));pointer-events:none}
${R} .tt3-card{position:relative;z-index:1;width:min(960px,calc(100% - 2 * var(--tt3-gutter)));margin:calc(-1 * clamp(140px,14vw,200px)) auto 0;padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--tt3-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--tt3-shadow) l c h / .32)));animation:tt3-rise .45s .07s cubic-bezier(.2,.7,.2,1) both}
${R}.no-photo .tt3-card{margin-top:clamp(32px,4vw,48px)}
${R} .tt3-seg{margin:0;padding:0;border:0;min-width:0}
${R} .tt3-track{display:grid;grid-template-columns:repeat(var(--tt3-n,3),minmax(0,1fr));gap:6px;padding:6px;background:var(--tt3-track);border-radius:calc(var(--radius,12px) + 6px)}
${R} .tt3-segment{position:relative;display:block;min-width:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
${R} .tt3-face{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;padding:10px 16px;border-radius:var(--radius,12px);text-align:center;transition:background .16s ease,transform .16s ease}
${R} .tt3-pill{position:absolute;inset:0;z-index:0;border-radius:inherit;background:var(--card);border:2px solid var(--accent);box-shadow:var(--shadow-sm,0 1px 2px oklch(from var(--tt3-shadow) l c h / .2))}
${R} .tt3-seg-name,${R} .tt3-seg-price{position:relative;z-index:1}
${R} .tt3-seg-name{font-family:var(--font-display);font-weight:800;font-size:17px;line-height:1.15;color:var(--ink);text-wrap:balance}
${R} .tt3-seg-price{font-size:15px;font-weight:600;line-height:1.3;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
${R} .tt3-segment.is-on .tt3-seg-price{color:var(--accent);font-weight:800}
${R} .tt3-seg:not(:disabled) .tt3-segment:not(.is-on):not(.is-out):hover .tt3-face{background:color-mix(in oklch,var(--ink) 10%,var(--card))}
${R} .tt3-seg:not(:disabled) .tt3-segment:not(.is-on):not(.is-out):active .tt3-face{background:color-mix(in oklch,var(--ink) 14%,var(--card));transform:translateY(1px)}
${R} .tt3-segment input:focus-visible + .tt3-face{outline:3px solid oklch(from var(--accent) l c h / .55);outline-offset:2px}
${R} .tt3-segment.is-out,${R} .tt3-seg:disabled .tt3-segment{cursor:not-allowed}
${R} .tt3-segment.is-out .tt3-seg-name{color:var(--muted);text-decoration:line-through;text-decoration-thickness:2px}
${R} .tt3-segment.is-out .tt3-seg-price{color:var(--muted);font-size:14px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
${R} .tt3-seg:disabled .tt3-pill{border-color:var(--tt3-rule);box-shadow:none}
${R} .tt3-panels{position:relative;margin-top:clamp(24px,3vw,32px)}
${R} .tt3-panel-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(24px,4vw,48px);align-items:start}
${R} .tt3-sub{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;color:var(--subhead-ink,var(--ink));text-wrap:balance}
${R} .tt3-line{margin:12px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
${R} .tt3-inc{list-style:none;margin:0;padding:0;display:grid;gap:12px}
${R} .tt3-inc li{display:flex;align-items:flex-start;gap:12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;font-weight:500;color:var(--ink);text-wrap:pretty}
${R} .tt3-tick{flex:0 0 auto;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:999px;background:var(--success);color:var(--success-ink,#fff)}
${R} .tt3-day{margin-top:clamp(24px,3vw,32px);padding:clamp(20px,2.4vw,24px);background:var(--tt3-well);border-radius:10px}
${R} .tt3-day-title{margin:0 0 16px;font-family:var(--font-display);font-weight:800;font-size:17px;line-height:1.2;color:var(--ink)}
${R} .tt3-strip{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:12px}
${R} .tt3-stop{position:relative;display:grid;grid-template-rows:16px auto auto;row-gap:8px;min-width:0;animation:tt3-rise .45s cubic-bezier(.2,.7,.2,1) both}
${R} .tt3-dot{position:relative;display:block;height:16px}
${R} .tt3-dot::before{content:'';position:absolute;left:0;top:1px;width:14px;height:14px;border-radius:999px;background:var(--accent-fill,var(--accent))}
${R} .tt3-stop:not(:last-child) .tt3-dot::after{content:'';position:absolute;left:20px;right:-8px;top:7px;height:2px;border-radius:2px;background:var(--tt3-rule)}
${R} .tt3-time{font-size:15px;font-weight:800;line-height:1.2;color:var(--tt3-time-ink);font-variant-numeric:tabular-nums}
${R} .tt3-what{font-size:15px;font-weight:600;line-height:1.4;color:var(--ink);text-wrap:pretty}
${R} .tt3-close{margin-top:clamp(32px,4vw,48px);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px 40px;align-items:end}
${R} .tt3-close-copy{min-width:0}
${R} .tt3-meta{margin:0;display:grid;gap:4px;font-size:15px;font-weight:600;line-height:1.4;color:var(--muted)}
${R} .tt3-event{font-family:var(--font-display);font-size:17px;line-height:1.2;color:var(--ink);font-weight:800;text-wrap:balance}
${R} .tt3-when{display:flex;flex-wrap:wrap;gap:4px 20px}
${R} .tt3-when > span{white-space:nowrap}
${R} .tt3-ic{display:inline-block;vertical-align:-.22em;margin-inline-end:.4em;color:var(--accent)}
${R} .tt3-invest{margin-top:16px}
${R} .tt3-price-row{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;color:var(--ink)}
${R} .tt3-sc{font-variant-caps:all-small-caps;font-size:17px;font-weight:800;letter-spacing:.06em;line-height:1.2;color:var(--ink)}
${R} .tt3-price{display:inline-block;font-family:var(--font-display);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink);animation:tt3-fade .3s ease both}
${R} .tt3-price-line{margin:12px 0 0;max-width:34rem;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:500;line-height:1.45;color:var(--muted);text-wrap:pretty}
${R} .tt3-cta{
--tt3-btn:var(--button-bg,var(--cta));
--tt3-btn-2:var(--button-bg-2,var(--cta-2));
--tt3-dl:0;
appearance:none;border:0;margin:0;
display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
min-height:72px;min-width:min(100%,300px);padding:12px 28px;
border-radius:var(--button-radius,var(--radius,12px));
font-family:var(--button-font,var(--font-display));text-transform:var(--button-case,none);
color:var(--button-ink,var(--cta-ink));text-decoration:none;text-align:center;
text-shadow:var(--button-text-shadow,none);cursor:pointer;
background:linear-gradient(oklch(from var(--tt3-btn) calc(l + .04 - var(--tt3-dl)) c h),oklch(from var(--tt3-btn-2) calc(l - .02 - var(--tt3-dl)) c h));
box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--tt3-btn) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--tt3-btn) calc(l - .16) c h),0 1px 2px oklch(from var(--tt3-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--tt3-shadow) l c h / .45));
transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
${R} .tt3-cta:hover:not(:disabled),${R} .tt3-cta.is-hover:not(:disabled){--tt3-dl:.05;box-shadow:inset 0 1px 0 oklch(from var(--tt3-btn) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--tt3-btn) calc(l - .18) c h),0 1px 2px oklch(from var(--tt3-shadow) l c h / .34),0 10px 20px -6px oklch(from var(--tt3-shadow) l c h / .52)}
${R} .tt3-cta:active:not(:disabled),${R} .tt3-cta.is-active:not(:disabled){--tt3-dl:.08;transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--tt3-btn) calc(l - .22) c h / .5),inset 0 -2px 0 oklch(from var(--tt3-btn) calc(l - .16) c h),0 1px 2px oklch(from var(--tt3-shadow) l c h / .3)}
${R} .tt3-cta:focus-visible{outline:3px solid oklch(from var(--accent) l c h / .55);outline-offset:3px}
${R} .tt3-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}
${R} .tt3-cta-main{font-size:clamp(1.125rem,1.55vw,1.375rem);font-weight:var(--button-weight,800);line-height:1.15;text-wrap:balance}
${R} .tt3-cta-sub{font-family:var(--font-body);font-size:15px;font-weight:600;line-height:1.3;text-wrap:pretty}
@keyframes tt3-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes tt3-fade{from{opacity:.82}to{opacity:1}}
@media (max-width:900px){
${R} .tt3-strip{grid-auto-flow:row;grid-auto-columns:auto;gap:0}
${R} .tt3-stop{grid-template-columns:16px minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;row-gap:2px;padding-bottom:16px}
${R} .tt3-stop:last-child{padding-bottom:0}
${R} .tt3-dot{grid-column:1;grid-row:1 / span 2;height:auto}
${R} .tt3-time{grid-column:2;grid-row:1}
${R} .tt3-what{grid-column:2;grid-row:2;font-size:16px}
${R} .tt3-dot::before{left:1px;top:2px}
${R} .tt3-stop:not(:last-child) .tt3-dot::after{left:7px;right:auto;width:2px;height:auto;top:22px;bottom:-18px}
}
@media (max-width:760px){
${R} .tt3-panel-top{grid-template-columns:minmax(0,1fr);gap:20px}
}
@media (max-width:640px){
${R} .tt3-photo{height:auto;aspect-ratio:4 / 5;max-height:540px}
${R} .tt3-card{margin-top:-48px}
${R}.no-photo .tt3-card{margin-top:32px}
${R} .tt3-track{grid-template-columns:minmax(0,1fr)}
${R} .tt3-face{flex-direction:row;justify-content:space-between;gap:12px;min-height:56px;text-align:left}
${R} .tt3-close{grid-template-columns:minmax(0,1fr);gap:24px}
${R} .tt3-cta{width:100%;min-width:0;padding:12px 16px}
}
@media (prefers-reduced-motion:reduce){
${R} .tt3-head,${R} .tt3-card,${R} .tt3-stop,${R} .tt3-price{animation:none}
${R} .tt3-face,${R} .tt3-cta{transition:none}
${R} .tt3-cta:active:not(:disabled),${R} .tt3-cta.is-active:not(:disabled),${R} .tt3-seg:not(:disabled) .tt3-segment:not(.is-on):not(.is-out):active .tt3-face{transform:none}
}
`;
pieces/offer/ticket-tiers-3/specimen.tsx 99 lines
import __studioImage4634d671 from "../assets/afdb4a4af02c7bed.webp";
import * as React from 'react';
import { TicketTiers3, type TicketTier3, type TicketTiers3Props } from '../ticket-tiers-3';
import { slot } from '../../slots';
export const states: NonNullable<TicketTiers3Props['state']>[] = ['default', 'hover', 'active', 'disabled'];
const tiers: TicketTier3[] = [
{
name: 'Day pass',
price: '$145',
priceLine: 'for one full Saturday at the wheel.',
dayHeading: 'By 4 pm Saturday, your first bowl is off the wheel',
dayLine: 'One full day at your own wheel, from wedging the clay to trimming your first foot ring.',
includes: [
'Your own wheel for the day',
'12 lb of stoneware clay and every tool',
'Two pieces glazed and fired for pickup',
'Lunch and coffee in the studio',
],
scheduleTitle: 'Your Saturday, hour by hour',
schedule: [
{ time: '9:00 am', what: 'Coffee at your wheel' },
{ time: '9:30 am', what: 'Wedge and center the clay' },
{ time: '11:00 am', what: 'Pull your first cylinder' },
{ time: '12:30 pm', what: 'Lunch on the patio' },
{ time: '1:30 pm', what: 'Throw a bowl and a mug' },
{ time: '3:30 pm', what: 'Pick two pieces to fire' },
],
dates: 'Saturday, June 14, 2027',
actionLabel: 'Book my day pass',
actionNote: 'Clay, tools and lunch included',
soldOut: true,
},
{
name: 'Full weekend',
price: '$295',
priceLine: 'for both days, with up to six pieces fired.',
dayHeading: 'By Sunday afternoon, your first set is in the kiln',
dayLine: 'Saturday you throw. Sunday you trim, glaze and load the kiln with the pieces you’re proudest of.',
includes: [
'Your own wheel both days',
'25 lb of stoneware clay and every tool',
'Up to six pieces glazed and fired',
'Glaze lab with 14 studio glazes',
'Lunch and coffee both days',
],
scheduleTitle: 'Your weekend, hour by hour',
schedule: [
{ time: 'Sat 9:00 am', what: 'Center and pull your first walls' },
{ time: 'Sat 1:30 pm', what: 'Throw bowls, mugs and a vase' },
{ time: 'Sun 9:00 am', what: 'Trim feet and add handles' },
{ time: 'Sun 11:30 am', what: 'Dip and brush in the glaze lab' },
{ time: 'Sun 2:00 pm', what: 'Load the kiln together' },
{ time: 'Sun 4:00 pm', what: 'Plan your next pieces' },
],
featured: true,
actionLabel: 'Book my full weekend',
actionNote: 'Clay, glazes and firing included',
},
{
name: 'Weekend + private session',
price: '$445',
priceLine: 'for the full weekend plus your private session.',
dayHeading: 'Sunday evening, the lead potter fixes your throw one-on-one',
dayLine: 'Everything in the full weekend, plus 90 quiet minutes alone at the wheel with the lead potter after the group heads home.',
includes: [
'Everything in the full weekend',
'A 90-minute one-on-one at the wheel',
'One larger piece of your choice fired',
'A 30-day practice plan to take home',
],
scheduleTitle: 'Your weekend, hour by hour',
schedule: [
{ time: 'Sat 9:00 am', what: 'Center and pull with the group' },
{ time: 'Sat 1:30 pm', what: 'Throw your first set' },
{ time: 'Sun 9:00 am', what: 'Trim feet and add handles' },
{ time: 'Sun 2:00 pm', what: 'Glaze and load the kiln' },
{ time: 'Sun 5:00 pm', what: 'Your private session begins' },
{ time: 'Sun 6:30 pm', what: 'Leave with your practice plan' },
],
actionLabel: 'Book weekend + private',
actionNote: 'Your private session is held with your seat',
},
];
export default function TicketTiers3Specimen({ state }: { state?: TicketTiers3Props['state'] }) {
return (
<TicketTiers3
state={state}
eventName='Kiln & Clay Weekend Intensive'
dates='June 14–15, 2027'
city='Portland, OR'
tiers={tiers}
sceneImage={slot('scene', __studioImage4634d671)}
sceneImageAlt='Hands shaping a stoneware bowl on a potter’s wheel in a bright studio'
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalTicketTiers3 |
React.ReactNode |
Default DEFAULT_HEADLINE
|
lead OptionalTicketTiers3 |
React.ReactNode |
Default 'Pick your ticket and see exactly how your days at the wheel unfold, hour by hour.'
|
eventName OptionalTicketTiers3 |
string |
Default 'Kiln & Clay Weekend Intensive'
|
dates OptionalTicketTiers3 |
string |
Default 'June 14–15, 2027'
|
city OptionalTicketTiers3 |
string |
Default 'Portland, OR'
|
tiers OptionalTicketTiers3 |
TicketTier3[] |
Default DEFAULT_TIERS
|
defaultTier OptionalTicketTiers3 |
number |
|
sceneImage OptionalTicketTiers3 |
string |
|
sceneImageAlt OptionalTicketTiers3 |
string |
Default 'Potters shaping clay at their wheels in a bright studio'
|
href OptionalTicketTiers3 |
string |
|
onAction OptionalTicketTiers3 |
(tier: TicketTier3, index: number) => void |
|
disabled OptionalTicketTiers3 |
boolean |
Default false
|
copy OptionalTicketTiers3 |
Partial<TicketTiers3Copy> |
|
state OptionalTicketTiers3 |
'default' | 'hover' | 'active' | 'disabled' |
Default 'default'
|
className OptionalTicketTiers3 |
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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
afdb4a4af02c7bed.webp
image/webp · 66.9 KB