Event Seat Hero 1
Event seat hero: the first screen of an in-person event confirmation. It confirms the seat by name over a photo of the venue, gives one action (a props-built .ics "add to calendar") and a framed day sheet whose packing ticks fill a "Ready for the day" line, so the buyer arrives certain and prepared.
Use it in a prompt
Use hero/event-seat-hero 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/hero/event-seat-hero.tsx. - Import it and pass your copy and images (Props tab):
import { EventSeatHero } from "@/components/funneldna/hero/event-seat-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/event-seat-hero/component.tsx 566 lines
// layout: certificate-document
// Event seat hero: the first screen of an in-person event confirmation. It confirms the seat by name over a photo of the venue, gives one action (a props-built .ics "add to calendar") and a framed day sheet whose packing ticks fill a "Ready for the day" line, so the buyer arrives certain and prepared.
// Colour note: the tick glyph inside the solid --success badges is fixed white, per the status-badge rule (theme-contract section 1). Everything else reads the theme tokens.
import * as React from "react";
import { Bike, CalendarDays, CalendarPlus, Car, Check, Clock, DoorOpen, Footprints, Mail, MapPin, TramFront, UserPlus } from "lucide-react";
import { Backdrop, Divider, FX_HOST } from "../fx/fx";
import workshop from "../fx/backdrops/workshop";
import torn from "../fx/dividers/torn";
export type EventSeatHeroItem = {
label: string;
// one short line under the item
note?: string;
// starts ticked
checked?: boolean;
};
export type EventSeatHeroNote = {
// bold lead-in phrase that opens the paragraph
lead: string;
text: string;
};
export type EventSeatHeroHost = {
signoff?: string;
// rendered in the signature face
signature?: string;
name: string;
role?: string;
};
export type EventSeatHeroCopy = {
// {event} is replaced by the event name
headline: string;
headlineNoEvent: string;
dateLabel: string;
doorsLabel: string;
startLabel: string;
// accessible name of the address link; {location} is replaced
mapsLabel: string;
actionLabel: string;
actionNote: string;
// shown when no calendar file can be built (no startISO and no href)
disabledNote: string;
// {email} is replaced by the attendee email
attendee: string;
shareLabel: string;
checklistTitle: string;
checklistLabel: string;
progressLabel: string;
// {done} and {total} are replaced
progressCount: string;
progressDone: string;
// calendar entry title; {event} is replaced
calendarTitle: string;
};
export type EventSeatHeroProps = {
event?: string;
// display strings, shown exactly as supplied
date?: string;
doorsOpen?: string;
startTime?: string;
venueName?: string;
address?: string;
// maps link; built from venue and address when omitted
mapsHref?: string;
// ISO 8601 with offset, used only for the .ics file
startISO?: string;
endISO?: string;
calendarDescription?: string;
calendarFileName?: string;
// replaces the generated .ics link
href?: string;
onAction?: (ics: string, event: React.MouseEvent<HTMLAnchorElement>) => void;
email?: string;
// shows the "Bring a friend" link when supplied
referralUrl?: string;
onShare?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
notes?: EventSeatHeroNote[];
items?: EventSeatHeroItem[];
// receives the ticked state after every change, so a page can save it
onChecklistChange?: (checked: boolean[]) => void;
travelNote?: string;
travelMode?: "car" | "transit" | "bike" | "walk";
host?: EventSeatHeroHost;
// slot: scene (the fx Backdrop also reads the page's scene image)
venueImage?: string;
// slot: stamp, transparent background
sealImage?: string;
sealAlt?: string;
copy?: Partial<EventSeatHeroCopy>;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
const DEFAULT_COPY: EventSeatHeroCopy = {
headline: "Your seat at {event} is confirmed",
headlineNoEvent: "Your seat is confirmed",
dateLabel: "Date",
doorsLabel: "Doors open",
startLabel: "Starts",
mapsLabel: "{location}, open in Maps (opens in a new tab)",
actionLabel: "Add to my calendar",
actionNote: "Saves the date, times and address to your calendar",
disabledNote: "The calendar file appears once the date and time are set",
attendee: "Confirmation sent to {email}. Show it at the door.",
shareLabel: "Bring a friend: send them your link",
checklistTitle: "Pack these before you leave",
checklistLabel: "Packing checklist",
progressLabel: "Ready for the day",
progressCount: "{done} of {total} packed",
progressDone: "All packed. See you there.",
calendarTitle: "{event}",
};
const TRAVEL_ICONS = { car: Car, transit: TramFront, bike: Bike, walk: Footprints };
export function EventSeatHero(props: EventSeatHeroProps) {
const {
event = "",
date,
doorsOpen,
startTime,
venueName,
address,
mapsHref,
startISO,
endISO,
calendarDescription,
calendarFileName,
href,
onAction,
email,
referralUrl,
onShare,
notes = [],
items = [],
onChecklistChange,
travelNote,
travelMode = "car",
host,
venueImage,
sealImage,
sealAlt = "",
copy,
state = "default",
className,
} = props;
const c: EventSeatHeroCopy = { ...DEFAULT_COPY, ...copy };
const uid = React.useId();
const [checked, setChecked] = React.useState<boolean[]>(() => items.map((item) => !!item.checked));
const toggle = (index: number) => {
const next = items.map((_, k) => (k === index ? !checked[k] : !!checked[k]));
setChecked(next);
onChecklistChange?.(next);
};
const total = items.length;
const done = items.reduce((n, _, k) => n + (checked[k] ? 1 : 0), 0);
const pct = total ? Math.round((done / total) * 100) : 0;
const allDone = total > 0 && done === total;
const location = [venueName, address].filter(Boolean).join(", ");
const mapUrl = mapsHref ?? (location ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(location)}` : undefined);
const calTitle = (event ? fill(c.calendarTitle, { event }) : "") || c.headlineNoEvent;
const ics = startISO ? buildIcs({ title: calTitle, startISO, endISO, location, description: calendarDescription }) : "";
const calHref = href ?? (ics ? `data:text/calendar;charset=utf-8,${encodeURIComponent(ics)}` : undefined);
const isDisabled = state === "disabled" || !calHref;
const fileName = calendarFileName ?? `${slugify(event) || "event"}.ics`;
const headline = event ? c.headline : c.headlineNoEvent;
const showCard = items.length > 0 || !!travelNote || !!host;
const TravelIcon = TRAVEL_ICONS[travelMode] ?? Car;
const facts: { key: string; label: string; value: string; Icon: typeof Clock }[] = [];
if (date) facts.push({ key: "date", label: c.dateLabel, value: date, Icon: CalendarDays });
if (doorsOpen) facts.push({ key: "doors", label: c.doorsLabel, value: doorsOpen, Icon: DoorOpen });
if (startTime) facts.push({ key: "start", label: c.startLabel, value: startTime, Icon: Clock });
const renderAction = (describedBy?: string) => {
const inner = (
<>
<CalendarPlus aria-hidden="true" size={20} strokeWidth={2.5} />
<span>{c.actionLabel}</span>
</>
);
return isDisabled ? (
<button type="button" className="cf-esh__btn" disabled aria-describedby={describedBy}>
{inner}
</button>
) : (
<a
className="cf-esh__btn"
href={calHref}
download={href ? undefined : fileName}
aria-describedby={describedBy}
onClick={(e) => onAction?.(ics, e)}
>
{inner}
</a>
);
};
const noteId = `${uid}-note`;
const titleId = `${uid}-title`;
const cardTitleId = `${uid}-card`;
const progressId = `${uid}-progress`;
return (
<section
className={["cf-esh", className].filter(Boolean).join(" ")}
data-state={state}
style={{ ...FX_HOST, overflow: "clip" }}
aria-labelledby={titleId}
>
<style>{CSS}</style>
{host?.signature ? <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Allura&display=swap" /> : null}
<div className="cf-esh__photo" aria-hidden="true">
<Backdrop src={venueImage ?? workshop} treatment="scrim-dark" side="left" position="center" />
<div className="cf-esh__shade" />
</div>
<div className={`cf-esh__inner${showCard ? " cf-esh__inner--split" : ""}`}>
<div className="cf-esh__main">
<div className="cf-esh__head cf-esh__rise" style={rise(0)}>
<h1 id={titleId} className="cf-esh__h1">
{headlineNodes(headline, event)}
</h1>
</div>
{notes.length > 0 && (
<div className="cf-esh__notes cf-esh__rise" style={rise(1)}>
{notes.map((n, i) => (
<p key={i}>
<strong>{n.lead}</strong> {n.text}
</p>
))}
</div>
)}
{facts.length > 0 && (
<dl className="cf-esh__facts cf-esh__rise" data-count={facts.length} style={{ ...rise(2), ["--esh-cols" as string]: facts.length } as React.CSSProperties}>
{facts.map(({ key, label, value, Icon }) => (
<div key={key} className="cf-esh__fact">
<dt>
<Icon className="cf-esh__ico" aria-hidden="true" size={16} strokeWidth={2.5} />
{label}
</dt>
<dd>{value}</dd>
</div>
))}
</dl>
)}
{location && (
<p className="cf-esh__where cf-esh__rise" style={rise(3)}>
<MapPin className="cf-esh__ico" aria-hidden="true" size={18} strokeWidth={2.5} />
{mapUrl ? (
<a className="cf-esh__link" href={mapUrl} target="_blank" rel="noopener noreferrer" aria-label={fill(c.mapsLabel, { location })}>
{venueName ? <strong>{venueName}</strong> : null}
{venueName && address ? ", " : null}
{address}
</a>
) : (
<span>{location}</span>
)}
</p>
)}
<div className="cf-esh__action cf-esh__rise" style={rise(4)}>
{renderAction(noteId)}
<p id={noteId} className="cf-esh__note">
{calHref ? c.actionNote : c.disabledNote}
</p>
</div>
{(email || referralUrl) && (
<div className="cf-esh__meta">
{email ? (
<p>
<Mail className="cf-esh__ico" aria-hidden="true" size={16} strokeWidth={2.5} />
{withNode(c.attendee, "email", <strong>{email}</strong>)}
</p>
) : null}
{referralUrl ? (
<p>
<UserPlus className="cf-esh__ico" aria-hidden="true" size={16} strokeWidth={2.5} />
<a className="cf-esh__link" href={referralUrl} onClick={onShare}>
{c.shareLabel}
</a>
</p>
) : null}
</div>
)}
</div>
{showCard && (
<aside className="cf-esh__card cf-esh__rise" style={rise(2)} aria-labelledby={items.length > 0 ? cardTitleId : undefined}>
{(items.length > 0 || sealImage) && (
<div className="cf-esh__card-head">
{items.length > 0 ? (
<h2 id={cardTitleId} className="cf-esh__card-title">
{c.checklistTitle}
</h2>
) : (
<span />
)}
{sealImage ? <img className="cf-esh__seal" src={sealImage} alt={sealAlt} width={72} height={72} loading="lazy" decoding="async" /> : null}
</div>
)}
{items.length > 0 && (
<>
<div className="cf-esh__progress">
<div className="cf-esh__progress-row" data-done={allDone ? "" : undefined}>
<span id={progressId}>{c.progressLabel}</span>
<span className="cf-esh__progress-count" aria-live="polite">
{allDone ? c.progressDone : fill(c.progressCount, { done: String(done), total: String(total) })}
</span>
</div>
<div className="cf-esh__track" role="progressbar" aria-labelledby={progressId} aria-valuemin={0} aria-valuemax={total} aria-valuenow={done}>
<span className="cf-esh__fill" style={{ width: `${pct}%` }} />
</div>
</div>
<ul className="cf-esh__list" aria-label={c.checklistLabel}>
{items.map((item, k) => {
const id = `${uid}-item-${k}`;
return (
<li key={k}>
<label className="cf-esh__item" htmlFor={id}>
<input id={id} type="checkbox" className="cf-esh__check" checked={!!checked[k]} onChange={() => toggle(k)} />
<span className="cf-esh__box" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
<span className="cf-esh__item-text">
<span className="cf-esh__item-label">{item.label}</span>
{item.note ? <span className="cf-esh__item-note">{item.note}</span> : null}
</span>
</label>
</li>
);
})}
</ul>
</>
)}
{items.length > 0 && (travelNote || host) ? <hr className="cf-esh__rule" /> : null}
{travelNote ? (
<p className="cf-esh__travel">
<TravelIcon className="cf-esh__ico" aria-hidden="true" size={18} strokeWidth={2.5} />
{travelNote}
</p>
) : null}
{host ? (
<div className={`cf-esh__host${travelNote ? " cf-esh__host--gap" : ""}`}>
{host.signoff ? <p className="cf-esh__signoff">{host.signoff}</p> : null}
{host.signature ? (
<p className="cf-esh__sig" aria-hidden="true">
{host.signature}
</p>
) : null}
<p className="cf-esh__host-name">{host.name}</p>
{host.role ? <p className="cf-esh__host-role">{host.role}</p> : null}
</div>
) : null}
</aside>
)}
</div>
<Divider shape="torn" src={torn} tone="surface" height={44} />
</section>
);
}
export default EventSeatHero;
function rise(i: number): React.CSSProperties {
return { ["--esh-i" as string]: Math.min(i, 4) } as React.CSSProperties;
}
function fill(template: string, map: Record<string, string>): string {
return template.replace(/\{(\w+)\}/g, (match, key: string) => (key in map ? map[key] : match));
}
function withNode(template: string, key: string, node: React.ReactNode): React.ReactNode[] {
const parts = template.split(`{${key}}`);
const out: React.ReactNode[] = [];
parts.forEach((part, i) => {
if (i > 0) out.push(<React.Fragment key={`n${i}`}>{node}</React.Fragment>);
if (part) out.push(<React.Fragment key={`t${i}`}>{part}</React.Fragment>);
});
return out;
}
function headlineNodes(template: string, event: string): React.ReactNode[] {
const badge = (
<span className="cf-esh__badge" aria-hidden="true">
<Check strokeWidth={3} />
</span>
);
const parts = template.split("{event}");
const out: React.ReactNode[] = [];
parts.forEach((part, i) => {
if (i > 0) out.push(<span key={`e${i}`}>{event}</span>);
if (i < parts.length - 1) {
if (part) out.push(<React.Fragment key={`p${i}`}>{part}</React.Fragment>);
return;
}
const m = part.match(/^([\s\S]*?)(\S+)\s*$/);
if (m) {
if (m[1]) out.push(<React.Fragment key="lead">{m[1]}</React.Fragment>);
out.push(
<span key="tail" className="cf-esh__nowrap">
{m[2]}
{badge}
</span>
);
} else {
out.push(
<span key="tail" className="cf-esh__nowrap">
{"\u00a0"}
{badge}
</span>
);
}
});
return out;
}
function slugify(s: string): string {
return s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 48);
}
function toIcsStamp(iso: string): string | null {
const d = new Date(iso);
if (Number.isNaN(d.getTime())) return null;
return d.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}Z$/, "Z");
}
function escIcs(s: string): string {
return s.replace(/\\/g, "\\\\").replace(/\r?\n/g, "\\n").replace(/([,;])/g, "\\$1");
}
function buildIcs(o: { title: string; startISO: string; endISO?: string; location: string; description?: string }): string {
const start = toIcsStamp(o.startISO);
if (!start) return "";
const end = o.endISO ? toIcsStamp(o.endISO) : null;
const lines = [
"BEGIN:VCALENDAR",
"VERSION:2.0",
"PRODID:-//ClickFunnels//Event Seat Hero//EN",
"CALSCALE:GREGORIAN",
"METHOD:PUBLISH",
"BEGIN:VEVENT",
`UID:${start}-${slugify(o.title) || "event"}@event-seat-hero`,
`DTSTAMP:${start}`,
`DTSTART:${start}`,
];
if (end) lines.push(`DTEND:${end}`);
lines.push(`SUMMARY:${escIcs(o.title)}`);
if (o.location) lines.push(`LOCATION:${escIcs(o.location)}`);
if (o.description) lines.push(`DESCRIPTION:${escIcs(o.description)}`);
lines.push("END:VEVENT", "END:VCALENDAR");
return lines.join("\r\n");
}
const CSS = `
.cf-esh{position:relative;isolation:isolate;background:var(--band);color:var(--band-ink);font-family:var(--font-body);--esh-gutter:clamp(16px,5vw,48px);--esh-edge:44px;--esh-shadow:var(--shadow, oklch(0.22 0.03 260));--signature-font:var(--signature-face, "Allura", var(--font-display));padding:clamp(56px,8vw,112px) 0 calc(clamp(64px,8.5vw,120px) + var(--esh-edge))}
.cf-esh *,.cf-esh *::before,.cf-esh *::after{box-sizing:border-box}
.cf-esh__photo{position:absolute;inset:0;z-index:0;pointer-events:none}
.cf-esh__shade{position:absolute;inset:0;background:linear-gradient(90deg, oklch(from var(--band) l c h / .92) 0%, oklch(from var(--band) l c h / .78) 44%, oklch(from var(--band) l c h / .42) 100%)}
.cf-esh__inner{position:relative;z-index:1;max-width:calc(1120px + 2 * var(--esh-gutter));margin:0 auto;padding:0 var(--esh-gutter);display:grid;gap:clamp(32px,5vw,72px);align-items:start}
.cf-esh__main{min-width:0;max-width:46rem}
.cf-esh__h1{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(2.5rem,4.6vw,4.875rem);line-height:1.04;text-wrap:balance;color:var(--band-ink)}
.cf-esh__nowrap{white-space:nowrap}
.cf-esh__badge{display:inline-flex;align-items:center;justify-content:center;width:.74em;height:.74em;margin-inline-start:.22em;vertical-align:-.04em;border-radius:999px;background:var(--success);color:var(--status-glyph,#fff);box-shadow:0 1px 2px oklch(from var(--esh-shadow) l c h / .4), 0 4px 10px -2px oklch(from var(--esh-shadow) l c h / .35)}
.cf-esh__badge svg{width:.52em;height:.52em}
.cf-esh__ico{display:inline-block;flex:none;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-esh__notes{margin:24px 0 0;display:grid;gap:12px;max-width:36rem}
.cf-esh__notes p{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty;color:var(--band-ink)}
.cf-esh__notes strong{font-weight:700}
.cf-esh__facts{margin:32px 0 0;display:grid;grid-template-columns:repeat(var(--esh-cols,3),minmax(0,1fr));gap:1px;background:oklch(from var(--band-ink) l c h / .18);border:1px solid oklch(from var(--band-ink) l c h / .18);border-radius:var(--card-radius,var(--radius,14px));overflow:hidden;box-shadow:0 1px 2px oklch(from var(--esh-shadow) l c h / .3), 0 8px 16px -8px oklch(from var(--esh-shadow) l c h / .45)}
.cf-esh__facts[data-count="3"]{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr)}
.cf-esh__fact{margin:0;min-width:0;padding:16px 20px 18px;background:oklch(from var(--band) calc(l - .03) c h)}
.cf-esh__fact dt{font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--band-ink)}
.cf-esh__fact dd{margin:8px 0 0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;font-variant-numeric:tabular-nums;color:var(--band-ink);overflow-wrap:anywhere}
.cf-esh__where{margin:16px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;font-weight:500;text-wrap:pretty;color:var(--band-ink)}
.cf-esh__where strong{font-weight:700}
.cf-esh__link{color:var(--band-ink);text-decoration:underline;text-decoration-color:oklch(from var(--band-ink) l c h / .5);text-decoration-thickness:1px;text-underline-offset:.18em;border-radius:4px;transition:text-decoration-color .16s ease}
.cf-esh__link:hover{text-decoration-color:var(--band-ink);text-decoration-thickness:2px}
.cf-esh__link:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-esh__action{margin-top:32px;max-width:30rem;display:grid;justify-items:stretch}
.cf-esh__action .cf-esh__btn{width:100%}
.cf-esh__btn{--esh-b:var(--button-bg,var(--cta));--esh-b2:var(--button-bg-2,var(--cta-2));position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:72px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));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;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);text-decoration:none;text-align:center;cursor:pointer;background:linear-gradient(oklch(from var(--esh-b) calc(l + .04) c h),oklch(from var(--esh-b2) calc(l - .02) c h));box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--esh-b) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--esh-b) calc(l - .16) c h), 0 1px 2px oklch(from var(--esh-shadow) l c h / .35), 0 8px 16px -6px oklch(from var(--esh-shadow) l c h / .5));transition:transform .16s ease,box-shadow .16s ease,background .16s ease;-webkit-tap-highlight-color:transparent}
.cf-esh__btn svg{flex:none;width:20px;height:20px}
.cf-esh__btn:not(:disabled):hover,.cf-esh[data-state="hover"] .cf-esh__btn:not(:disabled){background:linear-gradient(oklch(from var(--esh-b) calc(l - .01) c h),oklch(from var(--esh-b2) calc(l - .07) c h));transform:translateY(-1px);box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--esh-b) calc(l + .12) c h / .7), inset 0 -3px 0 oklch(from var(--esh-b) calc(l - .2) c h), 0 1px 2px oklch(from var(--esh-shadow) l c h / .4), 0 12px 20px -8px oklch(from var(--esh-shadow) l c h / .6))}
.cf-esh__btn:not(:disabled):active,.cf-esh[data-state="active"] .cf-esh__btn:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from var(--esh-b) calc(l - .04) c h),oklch(from var(--esh-b2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--esh-b) calc(l - .22) c h / .6), inset 0 -2px 0 oklch(from var(--esh-b) calc(l - .16) c h), 0 1px 2px oklch(from var(--esh-shadow) l c h / .35)}
.cf-esh__btn:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-esh__btn:disabled{cursor:not-allowed;background:var(--secondary);color:var(--secondary-ink);text-shadow:none;transform:none;box-shadow:var(--button-2-shadow,var(--shadow-sm))}
.cf-esh__note{margin:12px 0 0;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--band-ink);text-wrap:pretty}
.cf-esh__meta{margin:24px 0 0;display:grid;gap:8px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--band-ink)}
.cf-esh__meta p{margin:0;text-wrap:pretty}
.cf-esh__meta strong{font-weight:700;overflow-wrap:anywhere}
.cf-esh__card{position:relative;min-width:0;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(0.22 0.03 260 / .22), 0 12px 24px -8px oklch(0.22 0.03 260 / .32)));padding:clamp(20px,3vw,32px)}
.cf-esh__card::before{content:"";position:absolute;inset:8px;border:1px solid oklch(from var(--ink) l c h / .1);border-radius:max(0px, calc(var(--card-radius,var(--radius,14px)) - 6px));pointer-events:none}
.cf-esh__card-head{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.cf-esh__card-title{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:-0.01em;text-wrap:balance;color:var(--ink)}
.cf-esh__seal{flex:none;width:72px;height:72px;object-fit:contain;margin:-6px -6px 0 0;filter:drop-shadow(0 2px 3px oklch(from var(--esh-shadow) l c h / .3)) drop-shadow(0 10px 14px oklch(from var(--esh-shadow) l c h / .22))}
.cf-esh__progress{position:relative;margin-top:20px}
.cf-esh__progress-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;font-size:.9375rem;line-height:1.4;font-weight:700;color:var(--ink)}
.cf-esh__progress-count{font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.cf-esh__progress-row[data-done] .cf-esh__progress-count{color:var(--success);font-weight:700}
.cf-esh__track{margin-top:8px;height:6px;border-radius:999px;background:color-mix(in oklch, var(--ink) 10%, var(--card));overflow:hidden}
.cf-esh__fill{display:block;height:100%;border-radius:inherit;background:var(--success);transition:width .45s cubic-bezier(.2,.7,.2,1)}
.cf-esh__list{position:relative;list-style:none;margin:16px -12px 0;padding:0;display:grid;gap:2px}
.cf-esh__item{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:14px;align-items:start;padding:12px;border-radius:10px;cursor:pointer;transition:background .16s ease}
.cf-esh__item:hover{background:color-mix(in oklch, var(--ink) 4%, var(--card))}
.cf-esh__check{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.cf-esh__box{display:grid;place-items:center;width:24px;height:24px;margin-top:1px;border-radius:6px;border:2px solid oklch(from var(--ink) l c h / .34);background:var(--field);color:transparent;transition:background .16s ease,border-color .16s ease}
.cf-esh__box svg{width:16px;height:16px}
.cf-esh__item:hover .cf-esh__box{border-color:oklch(from var(--ink) l c h / .55)}
.cf-esh__check:checked + .cf-esh__box{background:var(--success);border-color:var(--success);color:var(--status-glyph,#fff);animation:cf-esh-pop .3s cubic-bezier(.2,.7,.2,1)}
.cf-esh__check:focus-visible + .cf-esh__box{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .45);outline-offset:2px}
.cf-esh__item-text{display:grid;gap:4px;min-width:0}
.cf-esh__item-label{font-size:1.0625rem;line-height:1.35;font-weight:600;color:var(--ink);text-wrap:pretty;transition:color .16s ease}
.cf-esh__item-note{font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-esh__check:checked ~ .cf-esh__item-text .cf-esh__item-label{color:var(--muted)}
.cf-esh__rule{position:relative;height:1px;margin:20px 0;border:0;background:oklch(from var(--ink) l c h / .12)}
.cf-esh__travel{position:relative;margin:0;font-size:.9375rem;line-height:1.5;font-weight:500;color:var(--ink);text-wrap:pretty}
.cf-esh__travel .cf-esh__ico{color:var(--accent)}
.cf-esh__host{position:relative}
.cf-esh__host--gap{margin-top:20px}
.cf-esh__signoff{margin:0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.cf-esh__sig{margin:6px 0 4px;font-family:var(--signature-font);font-size:2.75rem;line-height:1;font-weight:400;color:var(--signature-ink,var(--ink))}
.cf-esh__host-name{margin:0;font-size:.9375rem;line-height:1.4;font-weight:700;color:var(--ink)}
.cf-esh__host-role{margin:0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
@keyframes cf-esh-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cf-esh-pop{from{transform:scale(.9)}to{transform:scale(1)}}
.cf-esh__rise{animation:cf-esh-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--esh-i,0) * .07s)}
@media (min-width:960px){.cf-esh{min-height:min(920px,100vh)}.cf-esh__inner--split{grid-template-columns:minmax(0,1.22fr) minmax(0,.78fr)}}
@media (min-width:721px) and (max-width:959px){.cf-esh__shade{background:oklch(from var(--band) l c h / .82)}.cf-esh__card{max-width:36rem}}
@media (max-width:720px){
.cf-esh{padding-top:0;--esh-photo-h:clamp(280px,40vh,360px);--esh-edge:40px}
.cf-esh__photo{inset:0 0 auto 0;height:var(--esh-photo-h)}
.cf-esh__shade{background:linear-gradient(180deg, oklch(from var(--band) l c h / .3) 0%, oklch(from var(--band) l c h / .66) 45%, oklch(from var(--band) l c h / .92) 78%, var(--band) 100%)}
.cf-esh__head{min-height:var(--esh-photo-h);display:flex;flex-direction:column;justify-content:flex-end;padding:72px 0 4px}
.cf-esh__notes{margin-top:20px}
.cf-esh__facts{margin-top:24px}
.cf-esh__facts[data-count]{grid-template-columns:repeat(2,minmax(0,1fr))}
.cf-esh__facts[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.cf-esh__facts[data-count="3"] .cf-esh__fact:first-child{grid-column:1/-1}
.cf-esh__action{margin-top:24px;max-width:none}
.cf-esh__action .cf-esh__btn{min-height:64px;padding:0 20px}
.cf-esh__seal{width:60px;height:60px}
}
@media (prefers-reduced-motion:reduce){
.cf-esh__rise,.cf-esh__check:checked + .cf-esh__box{animation:none}
.cf-esh__fill,.cf-esh__btn,.cf-esh__item,.cf-esh__box,.cf-esh__item-label,.cf-esh__link{transition:none}
.cf-esh__btn:not(:disabled):hover,.cf-esh__btn:not(:disabled):active,.cf-esh[data-state="hover"] .cf-esh__btn:not(:disabled),.cf-esh[data-state="active"] .cf-esh__btn:not(:disabled){transform:none}
}
`;
pieces/hero/event-seat-hero/specimen.tsx 50 lines
import __studioImage08fe4a3c from "../assets/b77adaa08e999568.webp";
import __studioImageb1ddcb43 from "../assets/8d2397e049aed60c.webp";
// Specimen: Kiln & Co.'s one-day Wheel Throwing Intensive in Portland (a fictional studio), the first screen of its seat confirmation page.
import EventSeatHero, { type EventSeatHeroProps } from "../event-seat-hero";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
export default function EventSeatHeroSpecimen({ state = "default" }: { state?: EventSeatHeroProps["state"] }) {
return (
<EventSeatHero
state={state}
event="Wheel Throwing Intensive"
date="Sat, March 13"
doorsOpen="9:30 am"
startTime="10:00 am"
venueName="Kiln & Co. Studio"
address="2140 SE Division St, Portland, OR 97202"
startISO="2027-03-13T10:00:00-08:00"
endISO="2027-03-13T16:00:00-08:00"
calendarDescription="Kiln & Co. Wheel Throwing Intensive. Doors open 9:30 am, class runs 10:00 am to 4:00 pm. Bring your confirmation email."
email="dana.r@example.com"
referralUrl="https://example.com/kiln-and-co/wheel-intensive?ref=dana"
notes={[
{ lead: "Everything is set up for you.", text: "Clay, tools, an apron and a wheel of your own wait at your station." },
{ lead: "Watch your inbox Friday.", text: "Mara at Kiln & Co. sends a reminder with the side-door code the day before." },
]}
items={[
{ label: "Clothes you can get muddy", note: "Clay splashes. Closed-toe shoes too." },
{ label: "Short nails, hair tied back", note: "Long nails drag through the clay on the wheel." },
{ label: "A towel and a water bottle" },
{ label: "A bag to carry pieces home", note: "Your fired pots are ready to collect three weeks later." },
]}
travelMode="transit"
travelNote="Free street parking on SE 21st Ave, or take the FX2 bus to SE Division & 21st and walk one block."
host={{ signoff: "See you at the wheel,", signature: "Mara", name: "Mara Ellison", role: "Lead potter, Kiln & Co." }}
venueImage={__studioImage08fe4a3c}
sealImage={slot(
"stamp",
__studioImageb1ddcb43
)}
copy={{
headline: "Your seat at the {event} is confirmed",
checklistTitle: "Pack these four things the night before",
actionLabel: "Yes! Save my wheel day",
actionNote: "Adds the date, times and studio address to your calendar",
}}
/>
);
}
| Name | Type | Details |
|---|---|---|
event OptionalEventSeatHero |
string |
|
date OptionalEventSeatHero |
string |
|
doorsOpen OptionalEventSeatHero |
string |
|
startTime OptionalEventSeatHero |
string |
|
venueName OptionalEventSeatHero |
string |
|
address OptionalEventSeatHero |
string |
|
mapsHref OptionalEventSeatHero |
string |
|
startISO OptionalEventSeatHero |
string |
|
endISO OptionalEventSeatHero |
string |
|
calendarDescription OptionalEventSeatHero |
string |
|
calendarFileName OptionalEventSeatHero |
string |
|
href OptionalEventSeatHero |
string |
|
onAction OptionalEventSeatHero |
(ics: string, event: React.MouseEvent<HTMLAnchorElement>) => void |
|
email OptionalEventSeatHero |
string |
|
referralUrl OptionalEventSeatHero |
string |
|
onShare OptionalEventSeatHero |
(event: React.MouseEvent<HTMLAnchorElement>) => void |
|
notes OptionalEventSeatHero |
EventSeatHeroNote[] |
|
items OptionalEventSeatHero |
EventSeatHeroItem[] |
|
onChecklistChange OptionalEventSeatHero |
(checked: boolean[]) => void |
|
travelNote OptionalEventSeatHero |
string |
|
travelMode OptionalEventSeatHero |
"car" | "transit" | "bike" | "walk" |
|
host OptionalEventSeatHero |
EventSeatHeroHost |
|
venueImage OptionalEventSeatHero |
string |
|
sealImage OptionalEventSeatHero |
string |
|
sealAlt OptionalEventSeatHero |
string |
|
copy OptionalEventSeatHero |
Partial<EventSeatHeroCopy> |
|
state OptionalEventSeatHero |
"default" | "hover" | "active" | "disabled" |
|
className OptionalEventSeatHero |
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-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
stamp- A stamp or badge graphic, on a transparent background.
-
8d2397e049aed60c.webp
image/webp · 384 KB
-
9a2ebdab5ff4fcc4.webp
image/webp · 3.64 KB
-
b77adaa08e999568.webp
image/webp · 100 KB
-
c8cba8e5f188490f.webp
image/webp · 35.9 KB