Event Venue 1
Event venue and travel: the room, the schedule in the event's own time zone (one tap flips it to the visitor's),
Use it in a prompt
Use content/event-venue 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/content/event-venue.tsx. - Import it and pass your copy and images (Props tab):
import { EventVenue } from "@/components/funneldna/content/event-venue"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/event-venue/component.tsx 593 lines
// layout: scroll-panels
// Event venue and travel: the room, the schedule in the event's own time zone (one tap flips it to the visitor's),
// the hotel block and a map, then the ticket close, so travel questions never stall the purchase.
// Theme: every colour, face, button, card and shadow reads the theme-contract tokens. No fixed hues; images arrive as src props
// (the specimen fills them through slots). The time-zone toggle segments read the button role face (falling back to the body face).
import * as React from "react";
import { motion, useReducedMotion } from "motion/react";
import { BedDouble, CalendarClock, Car, Check, Clock, Copy, Footprints, MapPin, Plane, SquareParking, TrainFront, TriangleAlert } from "lucide-react";
import type { LucideIcon } from "lucide-react";
export type EventVenueIcon = "venue" | "hotel" | "airport" | "car" | "parking" | "walk" | "train";
export type EventVenueSession = {
/** ISO date-time with offset, e.g. "2027-03-11T09:00:00-06:00" */
start: string;
end?: string;
title: string;
};
export type EventVenueDay = {
/** Short tag beside the month, e.g. "Day 1" */
label?: string;
sessions: EventVenueSession[];
};
export type EventVenueHotel = {
name: string;
rate?: string;
/** Line beside the rate, e.g. "per night · group rate" */
rateNote?: string;
detail?: string;
codeLabel?: string;
code?: string;
/** When the room block releases, as plain text */
cutoff?: string;
href?: string;
linkLabel?: string;
};
export type EventVenueNote = { icon?: EventVenueIcon; title: string; detail?: string };
export type EventVenueCopy = {
eventTime: string;
yourTime: string;
toggleLabel: string;
/** "{zone}" is replaced with the event's zone name */
shownInEvent: string;
/** "{zone}" is replaced with the visitor's zone name */
shownInLocal: string;
sameZone: string;
copyAddress: string;
copied: string;
copyFailed: string;
directions: string;
};
export type EventVenueProps = {
headline?: React.ReactNode;
/** Phrase inside a string headline that is set in the subhead accent colour */
headlineEmphasis?: string;
lead?: React.ReactNode;
/** Accent subhead over the venue photo */
venueHeadline?: React.ReactNode;
venueName?: string;
/** Address lines, top to bottom */
address?: string[];
venueImage?: string;
venueImageAlt?: string;
directionsHref?: string;
scheduleHeadline?: React.ReactNode;
/** IANA zone of the event, e.g. "America/Chicago" */
timeZone?: string;
/** Spoken zone name, e.g. "Central Time (Austin)"; defaults to the short zone name */
timeZoneLabel?: string;
days?: EventVenueDay[];
locale?: string;
stayHeadline?: React.ReactNode;
hotel?: EventVenueHotel;
travelNotes?: EventVenueNote[];
mapHeadline?: React.ReactNode;
mapImage?: string;
mapImageAlt?: string;
/** Legend set under the map (never pinned onto it) */
mapLegend?: EventVenueNote[];
closeHeadline?: React.ReactNode;
price?: string;
priceLabel?: string;
/** Anchor line beside the price, e.g. "vs. $97 for the kit alone" */
alternative?: string;
ctaLabel?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
/** Quiet line under the button; defaults to a jump back to the schedule */
secondaryLabel?: string;
secondaryHref?: string;
disabled?: boolean;
state?: "default" | "hover" | "active" | "disabled";
copy?: Partial<EventVenueCopy>;
className?: string;
};
const DEFAULT_COPY: EventVenueCopy = {
eventTime: "Event time",
yourTime: "Your time",
toggleLabel: "Show session times in",
shownInEvent: "All times in {zone}",
shownInLocal: "Shown in your time: {zone}",
sameZone: "You're already in the event's time zone.",
copyAddress: "Copy address",
copied: "Address copied",
copyFailed: "Couldn't copy. Select the address above instead.",
directions: "Get directions",
};
const ICONS: Record<EventVenueIcon, LucideIcon> = {
venue: MapPin,
hotel: BedDouble,
airport: Plane,
car: Car,
parking: SquareParking,
walk: Footprints,
train: TrainFront,
};
export function EventVenue(props: EventVenueProps) {
const {
headline = "Here's where we meet, and how to get there",
headlineEmphasis,
lead = "The room, the schedule in local time, where to stay and how to find us: everything you need to plan the trip.",
venueHeadline = "Your seat is waiting in this room",
venueName,
address = [],
venueImage,
venueImageAlt = "",
directionsHref,
scheduleHeadline = "Every session, timed to the minute",
timeZone,
timeZoneLabel,
days = [],
locale = "en-US",
stayHeadline = "Plan your stay in two minutes",
hotel,
travelNotes = [],
mapHeadline = "Find us without the guesswork",
mapImage,
mapImageAlt = "",
mapLegend = [],
closeHeadline = "Lock in your seat, then book your travel",
price,
priceLabel = "Your ticket",
alternative,
ctaLabel = "Reserve My Seat",
href,
onAction,
secondaryLabel = "or check the schedule again",
secondaryHref,
disabled = false,
state = "default",
copy: copyProp,
className,
} = props;
const copy = { ...DEFAULT_COPY, ...copyProp };
const reduce = useReducedMotion();
const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, "");
const scheduleId = `cf-ev-${uid}-schedule`;
const [zoneMode, setZoneMode] = React.useState<"event" | "local">("event");
const [localZone, setLocalZone] = React.useState<string | null>(null);
const [copyState, setCopyState] = React.useState<"idle" | "copied" | "failed">("idle");
const copyTimer = React.useRef<number | undefined>(undefined);
React.useEffect(() => {
try {
setLocalZone(Intl.DateTimeFormat().resolvedOptions().timeZone || null);
} catch {
setLocalZone(null);
}
return () => window.clearTimeout(copyTimer.current);
}, []);
const firstIso = days[0]?.sessions[0]?.start;
const canToggle = Boolean(timeZone && localZone && firstIso);
const viewZone = zoneMode === "local" && localZone ? localZone : timeZone;
const eventZoneName = timeZoneLabel ?? (firstIso && timeZone ? zoneShort(firstIso, timeZone, locale) : "");
let zoneLine = "";
if (zoneMode === "local" && localZone && firstIso) {
zoneLine = localZone === timeZone
? copy.sameZone
: fill(copy.shownInLocal, { zone: `${zoneShort(firstIso, localZone, locale)} (${cityOf(localZone)})` });
} else if (eventZoneName) {
zoneLine = fill(copy.shownInEvent, { zone: eventZoneName });
}
const showTime = (iso: string) => {
const time = formatInZone(iso, viewZone, locale, { hour: "numeric", minute: "2-digit" });
if (zoneMode === "local" && viewZone !== timeZone) {
const eventDay = formatInZone(iso, timeZone, locale, { weekday: "short" });
const localDay = formatInZone(iso, viewZone, locale, { weekday: "short" });
if (eventDay !== localDay) return `${localDay} ${time}`;
}
return time;
};
const addressText = [venueName, ...address].filter(Boolean).join(", ");
const copyAddress = async () => {
window.clearTimeout(copyTimer.current);
try {
if (!navigator.clipboard) throw new Error("clipboard unavailable");
await navigator.clipboard.writeText(addressText);
setCopyState("copied");
} catch {
setCopyState("failed");
}
copyTimer.current = window.setTimeout(() => setCopyState("idle"), 2600);
};
const isDisabled = disabled || state === "disabled";
const ctaClass = ["cf-ev-cta", state === "hover" ? "is-hover" : "", state === "active" ? "is-active" : ""].filter(Boolean).join(" ");
const quietHref = secondaryHref ?? (days.length ? `#${scheduleId}` : undefined);
const showVenue = Boolean(venueImage || venueName || address.length);
const showSchedule = days.length > 0;
const showStay = Boolean(hotel) || travelNotes.length > 0;
const showMap = Boolean(mapImage) || mapLegend.length > 0;
const cta = href && !isDisabled ? (
<a className={ctaClass} href={href} onClick={onAction}>{ctaLabel}</a>
) : (
<button type="button" className={ctaClass} disabled={isDisabled} onClick={onAction}>{ctaLabel}</button>
);
return (
<section className={["cf-event-venue", className].filter(Boolean).join(" ")}>
<style>{CSS}</style>
<div className="cf-ev-wrap">
<header className="cf-ev-head cf-ev-rise">
<h2 className="cf-ev-h2">{emphasise(headline, headlineEmphasis)}</h2>
{lead ? <p className="cf-ev-lead">{lead}</p> : null}
</header>
{showVenue ? (
<div className="cf-ev-panel cf-ev-rise" style={delay(1)}>
<h3 className="cf-ev-sub">{venueHeadline}</h3>
{venueImage ? (
<img className="cf-ev-photo" src={venueImage} alt={venueImageAlt} width={1600} height={686} decoding="async" />
) : null}
{venueName || address.length ? (
<div className="cf-ev-venue-meta">
<div>
{venueName ? <p className="cf-ev-venue-name">{venueName}</p> : null}
{address.length ? (
<address className="cf-ev-address">
{address.map((line, i) => <span key={i}>{line}</span>)}
</address>
) : null}
</div>
<div className="cf-ev-actions">
{address.length ? (
<button type="button" className="cf-ev-btn2" onClick={copyAddress}>
{copyState === "copied" ? (
<Check className="cf-ev-ok" size={18} strokeWidth={2.5} aria-hidden="true" />
) : (
<Copy size={18} strokeWidth={2.5} aria-hidden="true" />
)}
<span>{copyState === "copied" ? copy.copied : copy.copyAddress}</span>
</button>
) : null}
{directionsHref ? (
<a className="cf-ev-link" href={directionsHref}>
<MapPin className="cf-ev-inline" size={18} strokeWidth={2.5} aria-hidden="true" />
{copy.directions}
</a>
) : null}
</div>
{copyState === "failed" ? (
<p className="cf-ev-error" role="alert">
<TriangleAlert className="cf-ev-inline" size={16} strokeWidth={2.5} aria-hidden="true" />
{copy.copyFailed}
</p>
) : null}
<span className="cf-ev-sr" aria-live="polite">{copyState === "copied" ? copy.copied : ""}</span>
</div>
) : null}
</div>
) : null}
</div>
{showSchedule ? (
<div className="cf-ev-band cf-ev-rise" id={scheduleId} style={delay(2)}>
<div className="cf-ev-wrap">
<div className="cf-ev-band-head">
<div>
<h3 className="cf-ev-sub">{scheduleHeadline}</h3>
{zoneLine ? (
<p className="cf-ev-zone" aria-live="polite">
<Clock className="cf-ev-inline" size={16} strokeWidth={2.5} aria-hidden="true" />
{zoneLine}
</p>
) : null}
</div>
{canToggle ? (
<div className="cf-ev-toggle" role="group" aria-label={copy.toggleLabel}>
{(["event", "local"] as const).map((mode) => (
<button
key={mode}
type="button"
className="cf-ev-seg"
aria-pressed={zoneMode === mode}
onClick={() => setZoneMode(mode)}
>
{zoneMode === mode ? (
<motion.span
layoutId={`cf-ev-${uid}-thumb`}
className="cf-ev-thumb"
transition={reduce ? { duration: 0 } : { type: "spring", stiffness: 520, damping: 40 }}
/>
) : null}
<span className="cf-ev-seg-label">{mode === "event" ? copy.eventTime : copy.yourTime}</span>
</button>
))}
</div>
) : null}
</div>
<ol className="cf-ev-days">
{days.map((day, di) => {
const first = day.sessions[0]?.start;
const num = first ? formatInZone(first, timeZone, locale, { day: "numeric" }) : "";
const weekday = first ? formatInZone(first, timeZone, locale, { weekday: "long" }) : "";
const month = first ? formatInZone(first, timeZone, locale, { month: "long" }) : "";
return (
<li key={di} className="cf-ev-day">
<div className="cf-ev-day-top">
{num ? <span className="cf-ev-num">{num}</span> : null}
<div className="cf-ev-day-when">
{weekday ? <h4 className="cf-ev-weekday">{weekday}</h4> : null}
<span className="cf-ev-month">{[month, day.label].filter(Boolean).join(" · ")}</span>
</div>
</div>
<ul className="cf-ev-sessions">
{day.sessions.map((session, si) => (
<li key={si} className="cf-ev-session">
<time className="cf-ev-time" dateTime={session.start}>
<span key={zoneMode} className="cf-ev-time-val">
{session.end ? `${showTime(session.start)} – ${showTime(session.end)}` : showTime(session.start)}
</span>
</time>
<span className="cf-ev-session-title">{session.title}</span>
</li>
))}
</ul>
</li>
);
})}
</ol>
</div>
</div>
) : null}
<div className="cf-ev-wrap">
{showStay ? (
<div className="cf-ev-panel cf-ev-rise" style={delay(3)}>
<h3 className="cf-ev-sub">{stayHeadline}</h3>
<div className={hotel && travelNotes.length ? "cf-ev-stay" : "cf-ev-stay is-single"}>
{hotel ? (
<div className="cf-ev-hotel">
{hotel.rate ? (
<p className="cf-ev-rate">
<span className="cf-ev-rate-num">{hotel.rate}</span>
{hotel.rateNote ? <span className="cf-ev-rate-note">{hotel.rateNote}</span> : null}
</p>
) : null}
<h4 className="cf-ev-hotel-name">{hotel.name}</h4>
{hotel.detail ? <p className="cf-ev-body">{hotel.detail}</p> : null}
{hotel.code ? (
<p className="cf-ev-chip">
{hotel.codeLabel ? <span>{hotel.codeLabel}</span> : null}
<strong>{hotel.code}</strong>
</p>
) : null}
{hotel.cutoff ? (
<p className="cf-ev-cutoff">
<CalendarClock className="cf-ev-inline" size={16} strokeWidth={2.5} aria-hidden="true" />
{hotel.cutoff}
</p>
) : null}
{hotel.href && hotel.linkLabel ? (
<p><a className="cf-ev-link cf-ev-hotel-link" href={hotel.href}>{hotel.linkLabel}</a></p>
) : null}
</div>
) : null}
{travelNotes.length ? (
<div className="cf-ev-well"><NoteList items={travelNotes} /></div>
) : null}
</div>
</div>
) : null}
{showMap ? (
<div className="cf-ev-panel cf-ev-rise" style={delay(4)}>
<h3 className="cf-ev-sub">{mapHeadline}</h3>
{mapImage ? (
<img className="cf-ev-photo cf-ev-map" src={mapImage} alt={mapImageAlt} width={1600} height={667} loading="lazy" decoding="async" />
) : null}
{mapLegend.length ? <NoteList items={mapLegend} className="cf-ev-legend" /> : null}
</div>
) : null}
<div className="cf-ev-close cf-ev-rise" style={delay(5)}>
<h3 className="cf-ev-close-h">{closeHeadline}</h3>
{price ? (
<div className="cf-ev-price">
<span className="cf-ev-price-num">{price}</span>
<span className="cf-ev-price-text">
{priceLabel ? <span className="cf-ev-price-label">{priceLabel}</span> : null}
{alternative ? <span className="cf-ev-alt">{alternative}</span> : null}
</span>
</div>
) : null}
{cta}
{quietHref && secondaryLabel ? (
<p className="cf-ev-quiet-line"><a className="cf-ev-quiet" href={quietHref}>{secondaryLabel}</a></p>
) : null}
</div>
</div>
</section>
);
}
export default EventVenue;
function NoteList({ items, className }: { items: EventVenueNote[]; className?: string }) {
return (
<ul className={["cf-ev-notes", className].filter(Boolean).join(" ")}>
{items.map((note, i) => {
const Icon = ICONS[note.icon ?? "venue"];
return (
<li key={i} className="cf-ev-note">
<span className="cf-ev-disc" aria-hidden="true"><Icon size={20} strokeWidth={2.5} /></span>
<span className="cf-ev-note-text">
<span className="cf-ev-note-title">{note.title}</span>
{note.detail ? <span className="cf-ev-note-detail">{note.detail}</span> : null}
</span>
</li>
);
})}
</ul>
);
}
function emphasise(text: React.ReactNode, phrase?: string): React.ReactNode {
if (typeof text !== "string" || !phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className="cf-ev-em">{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
function formatInZone(iso: string, zone: string | undefined, locale: string, opts: Intl.DateTimeFormatOptions): string {
const date = new Date(iso);
if (Number.isNaN(date.getTime())) return iso;
try {
return new Intl.DateTimeFormat(locale, zone ? { ...opts, timeZone: zone } : opts).format(date);
} catch {
return new Intl.DateTimeFormat(undefined, opts).format(date);
}
}
function zoneShort(iso: string, zone: string, locale: string): string {
try {
const parts = new Intl.DateTimeFormat(locale, { timeZone: zone, timeZoneName: "short", hour: "numeric" }).formatToParts(new Date(iso));
return parts.find((part) => part.type === "timeZoneName")?.value ?? zone;
} catch {
return zone;
}
}
function cityOf(zone: string): string {
return (zone.split("/").pop() ?? zone).replace(/_/g, " ");
}
function fill(template: string, values: Record<string, string>): string {
return Object.entries(values).reduce((out, [key, value]) => out.split(`{${key}}`).join(value), template);
}
function delay(index: number): React.CSSProperties {
return { animationDelay: `${Math.min(index * 0.07, 0.28)}s` };
}
const CSS = `
.cf-event-venue{--ev-shadow:var(--shadow,oklch(0.22 0.03 260));--ev-sub:var(--accent);--ev-sub-band:var(--band-ink);--ev-card-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--ev-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--ev-shadow) l c h / .2)));position:relative;overflow-x:clip;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding-block:clamp(56px,8vw,112px) clamp(64px,8.5vw,120px)}
.cf-event-venue *,.cf-event-venue *::before,.cf-event-venue *::after{box-sizing:border-box}
.cf-event-venue :where(h2,h3,h4,p,ul,ol,address){margin:0;padding:0}
.cf-ev-wrap{width:min(1120px,calc(100% - 2 * clamp(16px,5vw,48px)));margin-inline:auto}
.cf-ev-head{max-width:46rem}
.cf-ev-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}
.cf-ev-em{color:var(--ev-sub)}
.cf-ev-lead{margin-top:16px;max-width:64ch;color:var(--muted);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty}
.cf-ev-panel{margin-top:clamp(48px,6vw,80px)}
.cf-ev-sub{margin-bottom:16px;color:var(--ev-sub);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}
.cf-ev-photo{display:block;width:100%;height:auto;aspect-ratio:21/9;object-fit:cover;object-position:center;border-radius:12px;background:color-mix(in oklch,var(--ink) 6%,var(--surface))}
.cf-ev-map{aspect-ratio:12/5}
.cf-ev-venue-meta{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px 24px;margin-top:24px}
.cf-ev-venue-name{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}
.cf-ev-address{display:flex;flex-direction:column;margin-top:8px;font-style:normal;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink)}
.cf-ev-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.cf-ev-btn2{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--radius,12px));background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:var(--button-2-shadow,var(--shadow-sm));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:15px;line-height:1.2;cursor:pointer;transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.cf-ev-btn2:hover{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .04) c h)}
.cf-ev-btn2:active{transform:translateY(1px);box-shadow:none}
.cf-ev-btn2:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:3px}
.cf-ev-ok{color:var(--success)}
.cf-ev-error{flex-basis:100%;color:var(--danger);font-size:15px;font-weight:600;line-height:1.4}
.cf-ev-inline{display:inline-block;vertical-align:-0.18em;margin-inline-end:.4em}
.cf-ev-link{color:var(--link,var(--accent));font-weight:700;text-decoration:underline;text-decoration-thickness:1.5px;text-decoration-color:oklch(from var(--link,var(--accent)) l c h / .45);text-underline-offset:.18em;transition:color .16s ease}
.cf-ev-link:hover{color:oklch(from var(--link,var(--accent)) calc(l - .08) c h);text-decoration-color:currentColor}
.cf-ev-link:focus-visible,.cf-ev-quiet:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:3px;border-radius:4px}
.cf-ev-band{margin-top:clamp(48px,6vw,80px);padding-block:clamp(40px,6vw,72px);background:var(--band);color:var(--band-ink);scroll-margin-top:24px}
.cf-ev-band-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 32px;margin-bottom:24px}
.cf-ev-band-head > div:first-child{flex:1 1 22rem;min-width:0}
.cf-ev-band .cf-ev-sub{color:var(--ev-sub-band);margin-bottom:8px}
.cf-ev-zone{color:color-mix(in oklab,var(--band-ink) 86%,var(--band));font-size:15px;font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-ev-toggle{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .12);border:1px solid oklch(from var(--band-ink) l c h / .2)}
.cf-ev-seg{position:relative;isolation:isolate;min-height:44px;padding:0 20px;border:0;border-radius:999px;background:transparent;color:var(--band-ink);font-family:var(--button-font,var(--font-body));font-weight:700;font-size:15px;line-height:1.2;white-space:nowrap;cursor:pointer;transition:color .16s ease,background .16s ease}
.cf-ev-seg[aria-pressed='true']{color:var(--ink)}
.cf-ev-seg[aria-pressed='false']:hover{background:oklch(from var(--band-ink) l c h / .1)}
.cf-ev-seg:focus-visible{outline:3px solid var(--band-ink);outline-offset:2px}
.cf-ev-thumb{position:absolute;inset:0;z-index:-1;border-radius:999px;background:var(--card);box-shadow:var(--shadow-sm,0 1px 2px oklch(from var(--ev-shadow) l c h / .25))}
.cf-ev-seg-label{position:relative}
.cf-ev-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:clamp(16px,2.4vw,24px);list-style:none}
.cf-ev-day{container-type:inline-size;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(--ev-card-shadow);padding:clamp(20px,3vw,32px)}
.cf-ev-day-top{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.cf-ev-num,.cf-ev-rate-num,.cf-ev-price-num{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-ev-day-when{display:flex;flex-direction:column;gap:4px;min-width:0}
.cf-ev-weekday{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}
.cf-ev-month{color:var(--accent);font-size:14px;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase}
.cf-ev-sessions{list-style:none;display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:24px}
.cf-ev-session{grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:baseline;row-gap:4px;padding-block:16px;border-top:1px solid oklch(from var(--ink) l c h / .12)}
.cf-ev-session:first-child{padding-top:0;border-top:0}
.cf-ev-session:last-child{padding-bottom:0}
.cf-ev-time{font-weight:700;font-variant-numeric:tabular-nums;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;white-space:nowrap}
.cf-ev-time-val{display:inline-block;animation:cf-ev-swap .32s cubic-bezier(.2,.7,.2,1) both}
.cf-ev-session-title{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
@container (max-width:420px){.cf-ev-sessions{grid-template-columns:minmax(0,1fr)}.cf-ev-session{row-gap:4px}}
.cf-ev-stay{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:clamp(20px,3vw,32px);background:var(--card);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(--ev-card-shadow);padding:clamp(20px,3vw,32px)}
.cf-ev-stay.is-single{grid-template-columns:minmax(0,1fr)}
.cf-ev-hotel{min-width:0}
.cf-ev-hotel > * + *{margin-top:12px}
.cf-ev-rate{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.cf-ev-rate-note{color:var(--muted);font-size:15px;font-weight:600;line-height:1.4}
.cf-ev-hotel > .cf-ev-hotel-name{margin-top:16px;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}
.cf-ev-body{max-width:60ch;color:var(--muted);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cf-ev-chip{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:32px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--ink);font-size:14px;line-height:1.2}
.cf-ev-chip span{font-weight:600;color:var(--muted)}
.cf-ev-chip strong{font-weight:800;letter-spacing:.04em}
.cf-ev-cutoff{color:var(--muted);font-size:15px;font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-ev-hotel-link{font-size:clamp(1.0625rem,1.25vw,1.125rem)}
.cf-ev-well{min-width:0;background:color-mix(in oklch,var(--ink) 4%,var(--card));border-radius:10px;padding:clamp(16px,2.4vw,24px)}
.cf-ev-notes{display:grid;gap:16px;list-style:none}
.cf-ev-legend{margin-top:24px;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px 24px}
.cf-ev-note{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:12px}
.cf-ev-disc{display:grid;place-items:center;width:40px;height:40px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-ev-note-text{display:flex;flex-direction:column;gap:4px;min-width:0;padding-top:8px}
.cf-ev-note-title{font-weight:700;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4}
.cf-ev-note-detail{color:var(--muted);font-size:15px;line-height:1.4;text-wrap:pretty}
.cf-ev-close{max-width:46rem;margin:clamp(48px,6vw,80px) auto 0;text-align:center;background:var(--card);color:var(--ink);border:1px solid var(--card-border,color-mix(in oklch,var(--accent) 35%,var(--card)));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--ev-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--ev-shadow) l c h / .32)));padding:clamp(28px,4.5vw,48px) clamp(20px,4vw,48px)}
.cf-ev-close-h{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance}
.cf-ev-price{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px 20px;margin-top:24px}
.cf-ev-price-text{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;text-align:left}
.cf-ev-price-label{font-weight:700;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3}
.cf-ev-alt{color:var(--muted);font-size:15px;font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-ev-cta{--ev-b:var(--button-bg,var(--cta));--ev-b2:var(--button-bg-2,var(--cta-2));--ev-top:.04;--ev-bot:-.02;display:flex;align-items:center;justify-content:center;width:100%;max-width:28rem;min-height:72px;margin:32px auto 0;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--ev-b) calc(l + var(--ev-top)) c h),oklch(from var(--ev-b2) calc(l + var(--ev-bot)) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-decoration:none;text-wrap:balance;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--ev-b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--ev-b) calc(l - .16) c h),0 1px 2px oklch(from var(--ev-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--ev-shadow) l c h / .38));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-ev-cta:hover:not(:disabled),.cf-ev-cta.is-hover:not(:disabled){--ev-top:-.01;--ev-bot:-.07;transform:translateY(-1px);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--ev-b) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--ev-b) calc(l - .2) c h),0 1px 2px oklch(from var(--ev-shadow) l c h / .32),0 10px 18px -6px oklch(from var(--ev-shadow) l c h / .46))}
.cf-ev-cta:active:not(:disabled),.cf-ev-cta.is-active:not(:disabled){--ev-top:-.03;--ev-bot:-.09;transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--ev-b) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--ev-b) calc(l - .16) c h),0 1px 2px oklch(from var(--ev-shadow) l c h / .3)}
.cf-ev-cta:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:3px}
.cf-ev-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;transform:none;cursor:not-allowed}
.cf-ev-quiet-line{margin-top:16px}
.cf-ev-quiet{color:var(--muted);font-size:15px;font-weight:600;line-height:1.4;text-decoration:underline;text-decoration-color:oklch(from var(--muted) l c h / .45);text-underline-offset:.18em;transition:color .16s ease}
.cf-ev-quiet:hover{color:var(--ink);text-decoration-color:currentColor}
.cf-ev-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@keyframes cf-ev-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-ev-swap{from{opacity:.25;transform:translateY(-4px)}to{opacity:1;transform:none}}
.cf-ev-rise{animation:cf-ev-rise .45s cubic-bezier(.2,.7,.2,1) both}
@media (max-width:760px){.cf-ev-stay{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.cf-ev-photo,.cf-ev-map{aspect-ratio:4/3}.cf-ev-venue-meta{flex-direction:column}.cf-ev-toggle{display:flex;width:100%}.cf-ev-seg{flex:1 1 0;padding:0 12px}}
@media (max-width:480px){.cf-ev-price{flex-direction:column;gap:16px}.cf-ev-price-text{align-items:center;text-align:center}.cf-ev-cta{max-width:none;margin-top:28px}}
@media (prefers-reduced-motion:reduce){.cf-ev-rise,.cf-ev-time-val{animation:none}.cf-ev-cta,.cf-ev-btn2,.cf-ev-seg,.cf-ev-link,.cf-ev-quiet{transition:none}.cf-ev-cta:hover:not(:disabled),.cf-ev-cta.is-hover:not(:disabled),.cf-ev-cta:active:not(:disabled),.cf-ev-cta.is-active:not(:disabled),.cf-ev-btn2:active{transform:none}}
`;
pieces/content/event-venue/specimen.tsx 78 lines
import __studioImagee85e39cb from "../assets/5bd67b36489300a8.webp";
import __studioImagefa72ea1c from "../assets/9e7e2b0a3788fbe0.webp";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
import { EventVenue } from "../event-venue";
type SpecimenState = "default" | "hover" | "active" | "disabled";
export const states = ["default", "hover", "active", "disabled"];
export default function EventVenueSpecimen({ state = "default" }: { state?: SpecimenState }) {
const sample = defaults.sample;
return (
<EventVenue
state={state}
headline="Two days in Austin to build your first funnel"
headlineEmphasis="build your first funnel"
lead={`Join the ${sample.registration.name} live, in one room, laptop open. Here's the venue, the schedule in local time, where to stay and how to find us.`}
venueHeadline="A sunlit riverside loft with a desk saved for you"
venueName="The Foundry Loft"
address={["418 Riverside Works Lane, Suite 300", "Austin, TX 78702"]}
venueImage={slot("scene", __studioImagee85e39cb)}
venueImageAlt="The Foundry Loft workshop room, long tables facing the stage under tall windows"
directionsHref="https://www.google.com/maps/search/?api=1&query=Austin%2C%20TX"
scheduleHeadline="Two full days, planned to the minute"
timeZone="America/Chicago"
timeZoneLabel="Central Time (Austin)"
days={[
{
label: "Day 1",
sessions: [
{ start: "2027-03-11T08:30:00-06:00", title: "Doors open, coffee and check-in" },
{ start: "2027-03-11T09:00:00-06:00", end: "2027-03-11T12:00:00-06:00", title: "Map your offer and every page" },
{ start: "2027-03-11T13:30:00-06:00", end: "2027-03-11T17:00:00-06:00", title: "Write your page copy, live" },
],
},
{
label: "Day 2",
sessions: [
{ start: "2027-03-12T09:00:00-06:00", end: "2027-03-12T12:00:00-06:00", title: "Build your pages side by side" },
{ start: "2027-03-12T13:30:00-06:00", end: "2027-03-12T16:30:00-06:00", title: "Launch check and open Q&A" },
],
},
]}
stayHeadline="Sleep four minutes from the room at the group rate"
hotel={{
name: "The Lamplight Hotel",
rate: "$189",
rateNote: "per night · group rate",
detail: "A short walk along the river path. Breakfast and fast Wi-Fi in every room.",
codeLabel: "Booking code",
code: "FUNNEL27",
cutoff: "Group rate held until February 18, 2027",
href: "https://example.com/lamplight-group-rate",
linkLabel: "Book the group rate",
}}
travelNotes={[
{ icon: "airport", title: "Fly into Austin-Bergstrom (AUS)", detail: "About 15 minutes to the venue by car." },
{ icon: "parking", title: "Park right under the building", detail: "Garage entrance on Riverside Works Lane." },
{ icon: "walk", title: "Walk over from the hotel", detail: "Four minutes along the lit river path." },
]}
mapHeadline="Everything you need sits a short walk apart"
mapImage={slot("map", __studioImagefa72ea1c)}
mapImageAlt="Map of downtown Austin with the venue marked at the centre"
mapLegend={[
{ icon: "venue", title: "The Foundry Loft", detail: "418 Riverside Works Ln, Suite 300" },
{ icon: "hotel", title: "The Lamplight Hotel", detail: "4-minute walk to the venue" },
{ icon: "airport", title: "Austin-Bergstrom (AUS)", detail: "About 15 minutes by car" },
]}
closeHeadline="Lock in your seat, then book your travel"
price={sample.price}
priceLabel={`Your ticket, with ${sample.name} included`}
alternative={`vs. ${sample.regularPrice} for the kit on its own`}
ctaLabel={`Reserve My Seat for ${sample.price}`}
secondaryLabel="or check the two-day schedule again"
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalEventVenue |
React.ReactNode |
|
headlineEmphasis OptionalEventVenue |
string |
|
lead OptionalEventVenue |
React.ReactNode |
|
venueHeadline OptionalEventVenue |
React.ReactNode |
|
venueName OptionalEventVenue |
string |
|
address OptionalEventVenue |
string[] |
|
venueImage OptionalEventVenue |
string |
|
venueImageAlt OptionalEventVenue |
string |
|
directionsHref OptionalEventVenue |
string |
|
scheduleHeadline OptionalEventVenue |
React.ReactNode |
|
timeZone OptionalEventVenue |
string |
|
timeZoneLabel OptionalEventVenue |
string |
|
days OptionalEventVenue |
EventVenueDay[] |
|
locale OptionalEventVenue |
string |
|
stayHeadline OptionalEventVenue |
React.ReactNode |
|
hotel OptionalEventVenue |
EventVenueHotel |
|
travelNotes OptionalEventVenue |
EventVenueNote[] |
|
mapHeadline OptionalEventVenue |
React.ReactNode |
|
mapImage OptionalEventVenue |
string |
|
mapImageAlt OptionalEventVenue |
string |
|
mapLegend OptionalEventVenue |
EventVenueNote[] |
|
closeHeadline OptionalEventVenue |
React.ReactNode |
|
price OptionalEventVenue |
string |
|
priceLabel OptionalEventVenue |
string |
|
alternative OptionalEventVenue |
string |
|
ctaLabel OptionalEventVenue |
string |
|
href OptionalEventVenue |
string |
|
onAction OptionalEventVenue |
(event: React.MouseEvent<HTMLElement>) => void |
|
secondaryLabel OptionalEventVenue |
string |
|
secondaryHref OptionalEventVenue |
string |
|
disabled OptionalEventVenue |
boolean |
|
state OptionalEventVenue |
"default" | "hover" | "active" | "disabled" |
|
copy OptionalEventVenue |
Partial<EventVenueCopy> |
|
className OptionalEventVenue |
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-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
map- An image this piece places.
scene- A wide atmosphere photo behind or beside the copy.
-
5bd67b36489300a8.webp
image/webp · 206 KB
-
9e7e2b0a3788fbe0.webp
image/webp · 52 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB