Ticket Tiers 1
Live event ticket selector: the promise, the room, the date and city, a seat map that lights up the chosen section, and a tier picker that hands the chosen ticket to checkout.
Use it in a prompt
Use offer/ticket-tiers 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.tsx. - Import it and pass your copy and images (Props tab):
import { TicketTiers } from "@/components/funneldna/offer/ticket-tiers"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/ticket-tiers/component.tsx 641 lines
// layout: bento-grid
// Live event ticket selector: the promise, the room, the date and city, a seat map that lights up the chosen section, and a tier picker that hands the chosen ticket to checkout.
import * as React from 'react';
import { AnimatePresence, motion, useReducedMotion } from 'motion/react';
import { AlertCircle, Check, MapPin, Tag, Users } from 'lucide-react';
export type TicketTier = {
name: string;
price: string;
// small line beside the price, e.g. 'per person'
priceNote?: string;
// regular price, only when supplied; shown inside the coupon
regularPrice?: string;
// the saving the coupon carries, e.g. 'Save $200'; no coupon without it
saving?: string;
includes: string[];
// where this ticket sits, shown under the seat map
zone?: string;
// seat line, only when supplied (e.g. '40 seats total'); never invent scarcity
seats?: string;
// short flag on the card, e.g. 'Includes hot seats'
badge?: string;
// preselected when defaultTier is not set
featured?: boolean;
soldOut?: boolean;
// checkout destination for this tier; falls back to the block href
href?: string;
};
export type TicketTiersCopy = {
selectHeading: string;
mapHeading: string;
mapEmpty: string;
mapHint: string;
stageLabel: string;
// button label; {tier} and {price} are replaced
actionLabel: string;
chooseLabel: string;
disabledLabel: string;
error: string;
// {tier}, {event} and {city} are replaced
summary: string;
// {saving} and {regularPrice} are replaced
coupon: string;
todayLabel: string;
empty: string;
// phone-only hint on collapsed tier cards
peek: string;
soldOut: string;
};
export type TicketTiersProps = {
// wrap the key phrase in <span className='tt-mark'> for the marker stroke
headline?: React.ReactNode;
lead?: React.ReactNode;
// italic aside in the host's own voice, under the lead
aside?: React.ReactNode;
eventName?: string;
// small line above the big date, e.g. 'March 2027'
dateMonth?: string;
// big numerals, e.g. '14–16'
dateDays?: string;
dateDetail?: string;
city?: string;
venue?: string;
// slot: scene (the room, the event, the people in it)
sceneImage?: string;
sceneImageAlt?: string;
tiers?: TicketTier[];
// preselected tier index; defaults to the featured tier, null for none
defaultTier?: number | null;
// checkout destination; a tier's own href wins
href?: string;
onAction?: (tier: TicketTier, index: number) => void;
// the quiet line under the button
secondaryLabel?: string;
secondaryHref?: string;
disabled?: boolean;
copy?: Partial<TicketTiersCopy>;
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error';
className?: string;
};
export function TicketTiers({
headline = DEFAULT_HEADLINE,
lead = 'Three days, in person. Plan your funnel, write your page copy, and check every step before you launch.',
aside = '(I keep the Platinum room small on purpose. I want time to sit down with you and look at your funnel.)',
eventName = 'Funnel Starter Live',
dateMonth = 'March 2027',
dateDays = '14–16',
dateDetail = '3 days, in person',
city = 'Austin, TX',
venue = 'Lakeside Hall',
sceneImage,
sceneImageAlt = 'Attendees building their funnels at round tables during a live workshop',
tiers = DEFAULT_TIERS,
defaultTier,
href,
onAction,
secondaryLabel = 'or see the full three-day agenda',
secondaryHref,
disabled = false,
copy: copyProp,
state = 'default',
className,
}: TicketTiersProps) {
const copy: TicketTiersCopy = { ...DEFAULT_COPY, ...copyProp };
const reduce = useReducedMotion();
const uid = React.useId();
const headingId = uid + '-h';
const errorId = uid + '-err';
const groupName = uid + '-tier';
const isDisabled = disabled || state === 'disabled';
const featured = tiers.findIndex((t) => t.featured && !t.soldOut);
const startIndex = state === 'error' ? null : defaultTier !== undefined ? defaultTier : featured >= 0 ? featured : null;
const [selected, setSelected] = React.useState<number | null>(startIndex);
const [error, setError] = React.useState(state === 'error');
const groupRef = React.useRef<HTMLDivElement>(null);
React.useEffect(() => {
setSelected(startIndex);
setError(state === 'error');
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [state]);
const zones = React.useMemo(() => zoneGeometry(tiers.length), [tiers.length]);
const current = selected !== null && tiers[selected] && !tiers[selected].soldOut ? tiers[selected] : null;
const target = current && !isDisabled ? (current.href ?? href) : undefined;
function choose(index: number) {
if (isDisabled || !tiers[index] || tiers[index].soldOut) return;
setSelected(index);
setError(false);
}
function handleContinue(event: React.MouseEvent<HTMLElement>) {
if (isDisabled) {
event.preventDefault();
return;
}
if (!current || selected === null) {
event.preventDefault();
setError(true);
groupRef.current?.querySelector<HTMLInputElement>('input:not(:disabled)')?.focus();
return;
}
onAction?.(current, selected);
}
const label = isDisabled
? copy.disabledLabel
: current
? fill(copy.actionLabel, { tier: current.name, price: current.price })
: copy.chooseLabel;
const ctaClass = 'tt-cta' + (state === 'hover' ? ' is-hover' : '') + (state === 'active' ? ' is-active' : '');
const couponText = current && current.saving
? current.regularPrice
? fill(copy.coupon, { saving: current.saving, regularPrice: current.regularPrice })
: current.saving
: null;
const reveal = (i: number): React.CSSProperties => ({ animationDelay: Math.min(i * 0.07, 0.28) + 's' });
const cta = target ? (
<a className={ctaClass} href={target} onClick={handleContinue}>{label}</a>
) : (
<button type='button' className={ctaClass} onClick={handleContinue} disabled={isDisabled} aria-describedby={error ? errorId : undefined}>
{label}
</button>
);
return (
<section className={'cf-ticket-tiers' + (className ? ' ' + className : '')} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className='tt-wrap'>
<div className={'tt-grid' + (sceneImage ? '' : ' no-photo')}>
<div className='tt-tile tt-card tt-promise' style={reveal(0)}>
<h2 id={headingId} className='tt-h2'>{headline}</h2>
{lead ? <p className='tt-lead'>{lead}</p> : null}
{aside ? <p className='tt-aside'>{aside}</p> : null}
</div>
{sceneImage ? (
<div className='tt-tile tt-photo' style={reveal(1)}>
<img src={sceneImage} alt={sceneImageAlt} width={1536} height={1024} loading='lazy' decoding='async' />
</div>
) : null}
<div className='tt-tile tt-facts' style={reveal(2)}>
<div className='tt-facts-in'>
<p className='tt-when'>
{dateMonth ? <span className='tt-month'>{dateMonth}</span> : null}
{dateDays ? <span className='tt-days'>{dateDays}</span> : null}
{dateDetail ? <span className='tt-detail'>{dateDetail}</span> : null}
</p>
<p className='tt-where'>
{city ? (
<span className='tt-city'>
<MapPin size={20} strokeWidth={2.5} aria-hidden='true' />
{city}
</span>
) : null}
{venue ? <span className='tt-venue'>{venue}</span> : null}
</p>
</div>
</div>
<div className='tt-tile tt-card tt-map' style={reveal(3)}>
<div className='tt-map-in'>
<h3 className='tt-h3'>{copy.mapHeading}</h3>
<svg className='tt-svg' viewBox='0 0 320 214' aria-hidden='true' focusable='false'>
<rect className='tt-stage' x='96' y='6' width='128' height='32' rx='8' />
<text className='tt-stage-label' x='160' y='23' textAnchor='middle' dominantBaseline='middle'>{copy.stageLabel}</text>
{zones.map((zone, i) => {
const index = tiers.length - 1 - i;
const tier = tiers[index];
if (!tier) return null;
const on = !!current && selected === index;
const off = isDisabled || !!tier.soldOut;
return (
<g key={index} className={'tt-zone' + (on ? ' is-on' : '') + (off ? ' is-off' : '')} onClick={() => choose(index)}>
<path className='tt-seat' d={zone.left} />
<path className='tt-seat' d={zone.right} />
{zone.rows.map((d, k) => <path key={k} className='tt-row' d={d} />)}
</g>
);
})}
</svg>
<div className='tt-map-key'>
<p className='tt-key-line'>
<span className={'tt-swatch' + (current ? '' : ' is-empty')} aria-hidden='true' />
{current ? (
<>
<strong>{current.name}</strong>
{current.zone ? ' · ' + current.zone : ''}
</>
) : (
copy.mapEmpty
)}
</p>
<p className='tt-hint'>{copy.mapHint}</p>
</div>
</div>
</div>
<div className='tt-tile tt-select' style={reveal(4)}>
<fieldset className='tt-fieldset' disabled={isDisabled}>
<legend className='tt-legend'>
<h3 className='tt-h3'>{copy.selectHeading}</h3>
</legend>
{error ? (
<p id={errorId} className='tt-error' role='alert'>
<AlertCircle size={18} strokeWidth={2.5} aria-hidden='true' />
{copy.error}
</p>
) : null}
<div ref={groupRef} className={'tt-tiers' + (error ? ' is-error' : '')} style={{ '--n': tiers.length } as React.CSSProperties}>
{tiers.map((tier, i) => {
const id = groupName + '-' + i;
const includesId = id + '-inc';
const isSelected = selected === i && !tier.soldOut;
const off = isDisabled || !!tier.soldOut;
const cls = 'tt-tier' + (isSelected ? ' is-selected' : '') + (off ? ' is-disabled' : '');
return (
<div key={tier.name + i} className={cls}>
<input
id={id}
className='tt-input'
type='radio'
name={groupName}
value={String(i)}
checked={isSelected}
disabled={off}
onChange={() => choose(i)}
aria-describedby={includesId}
aria-invalid={error || undefined}
/>
<label htmlFor={id} className='tt-tier-label'>
<span className='tt-tier-top'>
<span className='tt-dot' aria-hidden='true' />
<span className='tt-tier-name'>{tier.name}</span>
{tier.badge ? <span className='tt-badge'>{tier.badge}</span> : null}
</span>
<span className='tt-tier-price'>
<span className='tt-tier-num'>{tier.price}</span>
{tier.priceNote ? <span className='tt-tier-note'>{tier.priceNote}</span> : null}
</span>
</label>
{tier.seats || tier.soldOut ? (
<p className='tt-chips'>
{tier.soldOut ? <span className='tt-chip'>{copy.soldOut}</span> : null}
{tier.seats ? (
<span className='tt-chip'>
<Users size={16} strokeWidth={2.5} aria-hidden='true' />
{tier.seats}
</span>
) : null}
</p>
) : null}
<div className='tt-more'>
<div className='tt-more-inner'>
<ul id={includesId} className='tt-includes'>
{tier.includes.map((item) => (
<li key={item}>
<Check size={18} strokeWidth={2.5} aria-hidden='true' />
<span>{item}</span>
</li>
))}
</ul>
</div>
</div>
{!isSelected && !off ? <p className='tt-peek' aria-hidden='true'>{copy.peek}</p> : null}
</div>
);
})}
</div>
</fieldset>
<div className='tt-action'>
<div className='tt-deal' aria-live='polite'>
{current ? (
<>
<p className='tt-summary'>{fill(copy.summary, { tier: current.name, event: eventName, city })}</p>
{couponText ? (
<p className='tt-coupon'>
<Tag size={16} strokeWidth={2.5} aria-hidden='true' />
{couponText}
</p>
) : null}
<p className='tt-today'>{copy.todayLabel}</p>
<p className='tt-price'>
<AnimatePresence initial={false} mode='popLayout'>
<motion.span
key={String(selected) + current.price}
className='tt-price-num'
initial={reduce ? false : { opacity: 0.4, y: 8 }}
animate={{ opacity: 1, y: 0 }}
exit={reduce ? { opacity: 0 } : { opacity: 0, y: -8 }}
transition={{ duration: reduce ? 0 : 0.25, ease: [0.2, 0.7, 0.2, 1] }}
>
{current.price}
</motion.span>
</AnimatePresence>
{current.priceNote ? <span className='tt-price-note'>{current.priceNote}</span> : null}
</p>
</>
) : (
<p className='tt-empty'>{copy.empty}</p>
)}
</div>
<div className='tt-go'>
{cta}
{secondaryLabel ? (
secondaryHref ? (
<a className='tt-quiet' href={secondaryHref}>{secondaryLabel}</a>
) : (
<p className='tt-quiet'>{secondaryLabel}</p>
)
) : null}
</div>
</div>
</div>
</div>
</div>
</section>
);
}
export default TicketTiers;
const DEFAULT_HEADLINE = (
<>
Pick your seat. Leave with <span className='tt-mark'>your first funnel built</span>.
</>
);
const DEFAULT_TIERS: TicketTier[] = [
{
name: 'General',
price: '$297',
priceNote: 'per person',
regularPrice: '$497',
saving: 'Save $200',
zone: 'General seating, rows 11+',
includes: ['All 3 days of live funnel-building sessions', 'The event workbook for every session', 'Lunch on all 3 days', 'Session replays for 30 days'],
},
{
name: 'VIP',
price: '$697',
priceNote: 'per person',
regularPrice: '$997',
saving: 'Save $300',
zone: 'Reserved, rows 4–10',
badge: 'Includes hot seats',
featured: true,
includes: ['Everything in General', 'A reserved seat in rows 4–10', 'Hot-seat page reviews on day 2', 'Lifetime session replays'],
},
{
name: 'Platinum',
price: '$1,497',
priceNote: 'per person',
zone: 'Front row, rows 1–3',
seats: '40 seats total',
includes: ['Everything in VIP', 'A front-row seat in rows 1–3', 'Private dinner on night one', 'A 1-on-1 funnel review at the event'],
},
];
const DEFAULT_COPY: TicketTiersCopy = {
selectHeading: 'Choose how close you sit to the stage',
mapHeading: 'See where your ticket puts you',
mapEmpty: 'Pick a ticket to light up your section.',
mapHint: 'Tap a section to switch tickets.',
stageLabel: 'Stage',
actionLabel: 'Reserve My {tier} Seat',
chooseLabel: 'Choose Your Ticket',
disabledLabel: 'Ticket Sales Are Closed',
error: 'Choose a ticket to continue.',
summary: '{tier} ticket · {event} · {city}',
coupon: '{saving} off the regular {regularPrice} ticket',
todayLabel: 'Your ticket today',
empty: 'Pick a ticket above to see your price.',
peek: 'See what’s included',
soldOut: 'Sold out',
};
function fill(template: string, values: Record<string, string | undefined>) {
let out = template;
for (const key of Object.keys(values)) out = out.split('{' + key + '}').join(values[key] ?? '');
return out;
}
// Seat map: zones from the stage back, split by a centre aisle, each widening like a real room.
function zoneGeometry(count: number) {
const n = Math.max(count, 1);
const top = 56;
const bottom = 206;
const gap = 8;
const aisle = 7;
const cx = 160;
const h = (bottom - top - gap * (n - 1)) / n;
const half = (y: number) => 64 + (y - 40) * 0.56;
const r = (v: number) => v.toFixed(1);
return Array.from({ length: n }, (_, i) => {
const y1 = top + i * (h + gap);
const y2 = y1 + h;
const a = half(y1);
const b = half(y2);
const left = 'M' + r(cx - aisle) + ' ' + r(y1) + 'L' + r(cx - a) + ' ' + r(y1) + 'L' + r(cx - b) + ' ' + r(y2) + 'L' + r(cx - aisle) + ' ' + r(y2) + 'Z';
const right = 'M' + r(cx + aisle) + ' ' + r(y1) + 'L' + r(cx + a) + ' ' + r(y1) + 'L' + r(cx + b) + ' ' + r(y2) + 'L' + r(cx + aisle) + ' ' + r(y2) + 'Z';
const rows = [1, 2].map((k) => {
const y = y1 + (h * k) / 3;
const w = half(y) - 6;
return 'M' + r(cx - w) + ' ' + r(y) + 'L' + r(cx - aisle - 4) + ' ' + r(y) + 'M' + r(cx + aisle + 4) + ' ' + r(y) + 'L' + r(cx + w) + ' ' + r(y);
});
return { left, right, rows };
});
}
// Theme: every colour, face and shadow below is a contract token or an OKLCH recipe on one.
// Hex appears only as a last var() fallback; #fae37c is the documented marker default.
const CSS = `
.cf-ticket-tiers{
--tt-sh:var(--shadow, oklch(0.22 0.03 260));
--tt-shadow-sm:var(--shadow-sm, 0 1px 1px oklch(from var(--tt-sh) l c h / .18), 0 1px 3px oklch(from var(--tt-sh) l c h / .14));
--tt-shadow-md:var(--shadow-md, 0 1px 2px oklch(from var(--tt-sh) l c h / .22), 0 4px 10px -2px oklch(from var(--tt-sh) l c h / .2));
--tt-shadow-lg:var(--shadow-lg, 0 2px 4px oklch(from var(--tt-sh) l c h / .22), 0 12px 24px -8px oklch(from var(--tt-sh) l c h / .32));
--tt-radius:var(--card-radius, var(--radius, 14px));
--tt-border:var(--card-border, oklch(from var(--ink, #101828) l c h / .12));
--tt-num:clamp(2.5rem, 4.2vw, 3.75rem);
--tt-h3:clamp(1.3125rem, 1.8vw, 1.625rem);
--tt-lead:clamp(1.125rem, 1.5vw, 1.375rem);
--tt-body:clamp(1.0625rem, 1.25vw, 1.125rem);
position:relative;
background:var(--surface, #ffffff);
color:var(--ink, #101828);
font-family:var(--font-body, system-ui, sans-serif);
padding:clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
overflow-x:clip;
}
.cf-ticket-tiers, .cf-ticket-tiers *, .cf-ticket-tiers *::before, .cf-ticket-tiers *::after{box-sizing:border-box}
.cf-ticket-tiers :where(h2, h3, p, ul){margin:0}
.cf-ticket-tiers .tt-wrap{max-width:1120px;margin-inline:auto}
.cf-ticket-tiers .tt-grid{display:grid;gap:16px;grid-template-columns:repeat(12, minmax(0, 1fr));grid-template-areas:'p p p p p p p i i i i i' 'f f f f m m m m m m m m' 's s s s s s s s s s s s'}
.cf-ticket-tiers .tt-grid.no-photo{grid-template-areas:'p p p p p p p m m m m m' 'f f f f f f f m m m m m' 's s s s s s s s s s s s'}
.cf-ticket-tiers .tt-promise{grid-area:p}
.cf-ticket-tiers .tt-photo{grid-area:i}
.cf-ticket-tiers .tt-facts{grid-area:f}
.cf-ticket-tiers .tt-map{grid-area:m}
.cf-ticket-tiers .tt-select{grid-area:s}
@keyframes tt-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
.cf-ticket-tiers .tt-tile{min-width:0;animation:tt-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-ticket-tiers .tt-card{background:var(--card, #ffffff);color:var(--ink);border:1px solid var(--tt-border);border-radius:var(--tt-radius);box-shadow:var(--card-shadow, var(--tt-shadow-md));padding:clamp(20px, 3vw, 32px)}
.cf-ticket-tiers .tt-h2{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;color:var(--ink)}
.cf-ticket-tiers .tt-mark{background:linear-gradient(transparent 52%, color-mix(in oklch, var(--marker, #fae37c) 85%, transparent) 52% 92%, transparent 92%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-inline:.06em;border-radius:.12em}
.cf-ticket-tiers .tt-lead{margin-top:16px;max-width:60ch;font-size:var(--tt-lead);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-ticket-tiers .tt-aside{margin-top:16px;max-width:60ch;font-size:var(--tt-body);line-height:1.5;font-style:italic;color:var(--ink);text-wrap:pretty}
.cf-ticket-tiers .tt-h3{font-family:var(--font-display);font-weight:var(--display-weight, 800);text-transform:var(--display-case, none);font-size:var(--tt-h3);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-ticket-tiers .tt-photo{position:relative;overflow:hidden;border-radius:var(--tt-radius);min-height:320px;background:color-mix(in oklch, var(--ink) 6%, var(--surface))}
.cf-ticket-tiers .tt-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.cf-ticket-tiers .tt-facts{background:var(--accent-fill, var(--accent));color:var(--accent-fill-ink, var(--card));border-radius:var(--tt-radius);box-shadow:var(--tt-shadow-md);padding:clamp(20px, 3vw, 32px);container-type:inline-size}
.cf-ticket-tiers .tt-facts-in{display:grid;gap:24px;height:100%;align-content:space-between}
@container (min-width: 380px){.cf-ticket-tiers .tt-facts-in{grid-template-columns:auto minmax(0, 1fr);align-content:end;align-items:end;column-gap:32px}}
.cf-ticket-tiers .tt-when, .cf-ticket-tiers .tt-where{display:flex;flex-direction:column;min-width:0}
.cf-ticket-tiers .tt-month{font-size:var(--tt-lead);font-weight:800;line-height:1.2}
.cf-ticket-tiers .tt-days{margin-top:12px;font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:var(--tt-num);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-ticket-tiers .tt-detail{margin-top:20px;font-size:15px;font-weight:600;line-height:1.4}
.cf-ticket-tiers .tt-city{display:block;font-size:var(--tt-lead);font-weight:800;line-height:1.25;text-wrap:pretty}
.cf-ticket-tiers .tt-city svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-ticket-tiers .tt-venue{margin-top:4px;font-size:15px;font-weight:600;line-height:1.4}
.cf-ticket-tiers .tt-map{container-type:inline-size}
.cf-ticket-tiers .tt-map-in{display:flex;flex-direction:column;gap:16px;height:100%}
.cf-ticket-tiers .tt-svg{display:block;width:100%;height:auto;max-height:240px}
@container (min-width: 560px){
.cf-ticket-tiers .tt-map-in{display:grid;grid-template-columns:minmax(0, .85fr) minmax(0, 1fr);grid-template-areas:'h s' 'k s';column-gap:32px;row-gap:24px}
.cf-ticket-tiers .tt-map-in > .tt-h3{grid-area:h;align-self:start}
.cf-ticket-tiers .tt-map-in > .tt-svg{grid-area:s;align-self:center}
.cf-ticket-tiers .tt-map-in > .tt-map-key{grid-area:k;align-self:end}
}
.cf-ticket-tiers .tt-stage{fill:var(--band)}
.cf-ticket-tiers .tt-stage-label{fill:var(--band-ink);font-family:var(--font-display);font-size:15px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.cf-ticket-tiers .tt-zone{--tt-zone:color-mix(in oklch, var(--ink) 9%, var(--card));cursor:pointer}
.cf-ticket-tiers .tt-zone.is-on{--tt-zone:var(--accent-fill, var(--accent))}
.cf-ticket-tiers .tt-zone.is-off{--tt-zone:color-mix(in oklch, var(--ink) 4%, var(--card));cursor:default}
.cf-ticket-tiers .tt-seat{fill:var(--tt-zone);stroke:var(--tt-zone);stroke-width:5;stroke-linejoin:round;transition:fill .25s ease, stroke .25s ease}
.cf-ticket-tiers .tt-row{fill:none;stroke:oklch(from var(--card) l c h / .75);stroke-width:1.5;stroke-linecap:round;pointer-events:none}
@media (hover: hover){.cf-ticket-tiers .tt-zone:not(.is-on):not(.is-off):hover{--tt-zone:color-mix(in oklch, var(--ink) 16%, var(--card))}}
.cf-ticket-tiers .tt-map-key{display:grid;gap:4px}
.cf-ticket-tiers .tt-key-line{font-size:var(--tt-body);font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-ticket-tiers .tt-key-line strong{font-weight:800}
.cf-ticket-tiers .tt-swatch{display:inline-block;width:14px;height:14px;border-radius:4px;vertical-align:-0.1em;margin-inline-end:.5em;background:var(--accent-fill, var(--accent))}
.cf-ticket-tiers .tt-swatch.is-empty{background:color-mix(in oklch, var(--ink) 9%, var(--card))}
.cf-ticket-tiers .tt-hint{font-size:15px;font-weight:500;line-height:1.4;color:var(--muted)}
.cf-ticket-tiers .tt-select{background:var(--band);color:var(--band-ink);border-radius:var(--tt-radius);box-shadow:var(--tt-shadow-lg);padding:clamp(20px, 3.5vw, 40px)}
.cf-ticket-tiers .tt-fieldset{border:0;margin:0;padding:0;min-width:0}
.cf-ticket-tiers .tt-legend{float:left;width:100%;padding:0;margin:0 0 24px;color:var(--band-ink)}
.cf-ticket-tiers .tt-legend .tt-h3{color:var(--band-ink)}
.cf-ticket-tiers .tt-error{clear:both;display:block;width:fit-content;max-width:100%;margin:-8px 0 16px;padding:8px 12px;border-radius:10px;background:var(--danger-soft, color-mix(in oklch, var(--danger) 14%, var(--card)));color:var(--danger);font-size:15px;font-weight:700;line-height:1.4;text-wrap:pretty}
.cf-ticket-tiers .tt-error svg{display:inline-block;vertical-align:-0.2em;margin-inline-end:.4em}
.cf-ticket-tiers .tt-tiers{clear:both;display:grid;grid-template-columns:repeat(var(--n, 3), minmax(0, 1fr));gap:16px;align-items:stretch}
.cf-ticket-tiers .tt-tier{position:relative;display:flex;flex-direction:column;min-width:0;background:var(--card);color:var(--ink);border:1px solid var(--tt-border);border-radius:var(--tt-radius);padding:clamp(20px, 3vw, 32px);box-shadow:var(--card-shadow, var(--tt-shadow-sm));transition:transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease}
@media (hover: hover){.cf-ticket-tiers .tt-tier:not(.is-disabled):not(.is-selected):hover{transform:translateY(-2px);box-shadow:var(--tt-shadow-md);border-color:oklch(from var(--ink) l c h / .28)}}
.cf-ticket-tiers .tt-tier.is-selected{background:color-mix(in oklch, var(--accent) 8%, var(--card));border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent), var(--tt-shadow-lg);transform:translateY(-2px)}
.cf-ticket-tiers .tt-tier.is-disabled:not(.is-selected){background:color-mix(in oklch, var(--ink) 4%, var(--card));box-shadow:none}
.cf-ticket-tiers .tt-tier:has(.tt-input:focus-visible){outline:3px solid var(--band-ink);outline-offset:3px}
.cf-ticket-tiers .tt-tiers.is-error .tt-tier:not(.is-disabled){border-color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger), var(--tt-shadow-sm)}
.cf-ticket-tiers .tt-input{position:absolute;top:0;left:0;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.cf-ticket-tiers .tt-tier-label{display:block;cursor:pointer}
.cf-ticket-tiers .tt-tier-label::after{content:'';position:absolute;inset:0;border-radius:var(--tt-radius);z-index:1}
.cf-ticket-tiers .tt-tier.is-disabled .tt-tier-label{cursor:not-allowed}
.cf-ticket-tiers .tt-tier-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.cf-ticket-tiers .tt-dot{position:relative;flex:none;width:24px;height:24px;border-radius:999px;border:2px solid oklch(from var(--ink) l c h / .4);background:var(--card);transition:background-color .16s ease, border-color .16s ease}
.cf-ticket-tiers .tt-tier.is-selected .tt-dot{background:var(--accent-fill, var(--accent));border-color:var(--accent-fill, var(--accent))}
.cf-ticket-tiers .tt-tier.is-selected .tt-dot::after{content:'';position:absolute;inset:5px;border-radius:999px;background:var(--accent-fill-ink, var(--card))}
.cf-ticket-tiers .tt-tier-name{font-family:var(--font-display);font-weight:var(--display-weight, 800);text-transform:var(--display-case, none);font-size:var(--tt-h3);line-height:1.15;letter-spacing:-0.01em}
.cf-ticket-tiers .tt-badge{margin-left:auto;display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:999px;background:var(--accent-fill, var(--accent));color:var(--accent-fill-ink, var(--card));font-size:14px;font-weight:800;line-height:1.2}
.cf-ticket-tiers .tt-tier-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-top:16px}
.cf-ticket-tiers .tt-tier-num{font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:var(--tt-num);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-ticket-tiers .tt-tier-note{font-size:15px;font-weight:600;line-height:1.4;color:var(--muted)}
.cf-ticket-tiers .tt-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.cf-ticket-tiers .tt-chip{display:inline-flex;align-items:center;gap:8px;min-height:28px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch, var(--ink) 6%, var(--card));color:var(--ink);font-size:14px;font-weight:800;line-height:1.2}
.cf-ticket-tiers .tt-more{display:grid;grid-template-rows:1fr;transition:grid-template-rows .3s cubic-bezier(.2,.7,.2,1)}
.cf-ticket-tiers .tt-more-inner{min-height:0;overflow:hidden}
.cf-ticket-tiers .tt-includes{list-style:none;margin:0;padding:20px 0 0;display:grid;gap:12px}
.cf-ticket-tiers .tt-includes li{display:flex;align-items:flex-start;gap:8px;font-size:var(--tt-body);line-height:1.45;color:var(--ink)}
.cf-ticket-tiers .tt-includes li span{text-wrap:pretty}
.cf-ticket-tiers .tt-includes svg{flex:none;margin-top:.2em;color:var(--success)}
.cf-ticket-tiers .tt-peek{display:none}
.cf-ticket-tiers .tt-action{display:grid;grid-template-columns:minmax(0, 1fr) minmax(300px, 400px);gap:24px 48px;align-items:end;margin-top:32px}
.cf-ticket-tiers .tt-deal{min-width:0}
.cf-ticket-tiers .tt-summary{font-size:15px;font-weight:600;line-height:1.4;color:var(--band-ink);text-wrap:pretty}
.cf-ticket-tiers .tt-coupon{display:block;width:fit-content;max-width:100%;margin-top:12px;padding:6px 14px;border-radius:10px;background:oklch(from var(--band-ink) l c h / .12);color:var(--band-ink);font-size:15px;font-weight:800;line-height:1.4;text-wrap:pretty}
.cf-ticket-tiers .tt-coupon svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:.45em}
.cf-ticket-tiers .tt-today{margin-top:24px;font-size:15px;font-weight:600;line-height:1.4;color:var(--band-ink)}
.cf-ticket-tiers .tt-price{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-top:8px}
.cf-ticket-tiers .tt-price-num{display:inline-block;font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:var(--tt-num);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--band-ink)}
.cf-ticket-tiers .tt-price-note{font-size:15px;font-weight:600;line-height:1.4;color:var(--band-ink)}
.cf-ticket-tiers .tt-empty{font-size:var(--tt-lead);font-weight:500;line-height:1.4;color:var(--band-ink);text-wrap:pretty}
.cf-ticket-tiers .tt-go{display:flex;flex-direction:column;align-items:stretch;gap:12px;text-align:center}
.cf-ticket-tiers .tt-quiet{font-size:15px;font-weight:600;line-height:1.4;color:var(--band-ink);text-wrap:pretty}
.cf-ticket-tiers a.tt-quiet{text-decoration:underline;text-decoration-color:oklch(from var(--band-ink) l c h / .45);text-underline-offset:.18em}
.cf-ticket-tiers a.tt-quiet:hover{text-decoration-color:var(--band-ink)}
.cf-ticket-tiers a.tt-quiet:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px;border-radius:4px}
.cf-ticket-tiers .tt-cta{
--tt-b:var(--button-bg, var(--cta));
--tt-b2:var(--button-bg-2, var(--cta-2));
position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:72px;margin:0;padding:12px 28px;border:0;
border-radius:var(--button-radius, var(--radius, 12px));
background:linear-gradient(oklch(from var(--tt-b) calc(l + .04) c h), oklch(from var(--tt-b2) calc(l - .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-wrap:balance;text-decoration:none;
text-shadow:var(--button-text-shadow, none);
box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--tt-b) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--tt-b) calc(l - .16) c h), 0 1px 2px oklch(from var(--tt-sh) l c h / .3), 0 8px 16px -6px oklch(from var(--tt-sh) l c h / .45));
cursor:pointer;-webkit-tap-highlight-color:transparent;
transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cf-ticket-tiers .tt-cta:hover:not(:disabled), .cf-ticket-tiers .tt-cta.is-hover:not(:disabled){
background:linear-gradient(oklch(from var(--tt-b) calc(l - .01) c h), oklch(from var(--tt-b2) calc(l - .07) c h));
box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--tt-b) calc(l + .12) c h / .6), inset 0 -3px 0 oklch(from var(--tt-b) calc(l - .18) c h), 0 1px 2px oklch(from var(--tt-sh) l c h / .32), 0 10px 18px -6px oklch(from var(--tt-sh) l c h / .5));
transform:translateY(-1px);
}
.cf-ticket-tiers .tt-cta:active:not(:disabled), .cf-ticket-tiers .tt-cta.is-active:not(:disabled){
background:linear-gradient(oklch(from var(--tt-b) calc(l - .05) c h), oklch(from var(--tt-b2) calc(l - .09) c h));
box-shadow:var(--button-shadow, inset 0 2px 4px oklch(from var(--tt-b) calc(l - .22) c h / .55), inset 0 -2px 0 oklch(from var(--tt-b) calc(l - .16) c h), 0 1px 2px oklch(from var(--tt-sh) l c h / .3));
transform:translateY(1px);
}
.cf-ticket-tiers .tt-cta:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-ticket-tiers .tt-cta:disabled{background:var(--button-2-bg, var(--secondary));color:var(--button-2-ink, var(--secondary-ink));box-shadow:var(--button-2-shadow, var(--tt-shadow-sm));text-shadow:none;cursor:not-allowed;transform:none}
@media (max-width: 1024px){
.cf-ticket-tiers .tt-grid{grid-template-columns:repeat(2, minmax(0, 1fr));grid-template-areas:'p p' 'i i' 'f m' 's s'}
.cf-ticket-tiers .tt-grid.no-photo{grid-template-areas:'p p' 'f m' 's s'}
.cf-ticket-tiers .tt-photo{min-height:0;aspect-ratio:16 / 9}
}
@media (max-width: 900px){
.cf-ticket-tiers .tt-tiers{grid-template-columns:minmax(0, 1fr);gap:12px}
}
@media (max-width: 820px){
.cf-ticket-tiers .tt-action{grid-template-columns:minmax(0, 1fr);gap:24px;margin-top:24px}
}
@media (max-width: 680px){
.cf-ticket-tiers .tt-grid{grid-template-columns:minmax(0, 1fr);grid-template-areas:'p' 'i' 'f' 'm' 's';gap:12px}
.cf-ticket-tiers .tt-grid.no-photo{grid-template-areas:'p' 'f' 'm' 's'}
.cf-ticket-tiers .tt-photo{aspect-ratio:16 / 10}
.cf-ticket-tiers .tt-tier:not(.is-selected) .tt-more{grid-template-rows:0fr}
.cf-ticket-tiers .tt-tier:not(.is-selected):not(.is-disabled) .tt-peek{display:block;margin-top:12px;font-size:15px;font-weight:600;line-height:1.4;color:var(--muted)}
}
@media (prefers-reduced-motion: reduce){
.cf-ticket-tiers .tt-tile, .cf-ticket-tiers .tt-tier, .cf-ticket-tiers .tt-dot, .cf-ticket-tiers .tt-seat, .cf-ticket-tiers .tt-more, .cf-ticket-tiers .tt-cta{animation:none !important;transition:none !important}
.cf-ticket-tiers .tt-tier.is-selected, .cf-ticket-tiers .tt-cta:hover:not(:disabled), .cf-ticket-tiers .tt-cta.is-hover:not(:disabled), .cf-ticket-tiers .tt-tier:hover{transform:none}
}
`;
pieces/offer/ticket-tiers/specimen.tsx 65 lines
import __studioImage08ca8f3e from "../assets/50dfc9f115ba6c30.webp";
// Specimen: Funnel Starter Live tickets on the bento layout, VIP preselected, the room photo in the scene slot.
import TicketTiers, { type TicketTier, type TicketTiersProps } from '../ticket-tiers';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled', 'error'];
const tiers: TicketTier[] = [
{
name: 'General',
price: '$297',
priceNote: 'per person',
regularPrice: '$497',
saving: 'Save $200',
zone: 'General seating, rows 11+',
includes: ['All 3 days of live funnel-building sessions', 'The event workbook for every session', 'Lunch on all 3 days', 'Session replays for 30 days'],
},
{
name: 'VIP',
price: '$697',
priceNote: 'per person',
regularPrice: '$997',
saving: 'Save $300',
zone: 'Reserved, rows 4–10',
badge: 'Includes hot seats',
featured: true,
includes: ['Everything in General', 'A reserved seat in rows 4–10', 'Hot-seat page reviews on day 2', 'Lifetime session replays'],
},
{
name: 'Platinum',
price: '$1,497',
priceNote: 'per person',
zone: 'Front row, rows 1–3',
seats: '40 seats total',
includes: ['Everything in VIP', 'A front-row seat in rows 1–3', 'Private dinner on night one', 'A 1-on-1 funnel review at the event'],
},
];
export default function TicketTiersSpecimen({ state = 'default' }: { state?: TicketTiersProps['state'] }) {
const sample = defaults.sample;
return (
<TicketTiers
state={state}
headline={
<>
Pick your seat. Leave with <span className='tt-mark'>your first funnel built</span>.
</>
}
lead={'Three days, in person. ' + sample.lead}
aside='(I keep the Platinum room small on purpose. I want time to sit down with you and look at your funnel.)'
eventName='Funnel Starter Live'
dateMonth='March 2027'
dateDays='14–16'
dateDetail='3 days, in person'
city='Austin, TX'
venue='Lakeside Hall'
sceneImage={slot('scene', __studioImage08ca8f3e)}
sceneImageAlt='Attendees building their funnels at round tables during a live workshop'
tiers={tiers}
secondaryLabel='or see the full three-day agenda'
secondaryHref='#agenda'
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalTicketTiers |
React.ReactNode |
Default DEFAULT_HEADLINE
|
lead OptionalTicketTiers |
React.ReactNode |
Default 'Three days, in person. Plan your funnel, write your page copy, and check every step before you launch.'
|
aside OptionalTicketTiers |
React.ReactNode |
Default '(I keep the Platinum room small on purpose. I want time to sit down with you and look at your funnel.)'
|
eventName OptionalTicketTiers |
string |
Default 'Funnel Starter Live'
|
dateMonth OptionalTicketTiers |
string |
Default 'March 2027'
|
dateDays OptionalTicketTiers |
string |
Default '14–16'
|
dateDetail OptionalTicketTiers |
string |
Default '3 days, in person'
|
city OptionalTicketTiers |
string |
Default 'Austin, TX'
|
venue OptionalTicketTiers |
string |
Default 'Lakeside Hall'
|
sceneImage OptionalTicketTiers |
string |
|
sceneImageAlt OptionalTicketTiers |
string |
Default 'Attendees building their funnels at round tables during a live workshop'
|
tiers OptionalTicketTiers |
TicketTier[] |
Default DEFAULT_TIERS
|
defaultTier OptionalTicketTiers |
number | null |
|
href OptionalTicketTiers |
string |
|
onAction OptionalTicketTiers |
(tier: TicketTier, index: number) => void |
|
secondaryLabel OptionalTicketTiers |
string |
Default 'or see the full three-day agenda'
|
secondaryHref OptionalTicketTiers |
string |
|
disabled OptionalTicketTiers |
boolean |
Default false
|
copy OptionalTicketTiers |
Partial<TicketTiersCopy> |
|
state OptionalTicketTiers |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
Default 'default'
|
className OptionalTicketTiers |
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.
-
50dfc9f115ba6c30.webp
image/webp · 129 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB