Sample Sessions 1
Sample sessions: a numbered rail of real session previews that sells the event ticket by showing what happens in the room; each preview opens a lightbox with the page's clip (or its poster) and the ticket button.
Use it in a prompt
Use content/sample-sessions 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/sample-sessions.tsx. - Import it and pass your copy and images (Props tab):
import { SampleSessions } from "@/components/funneldna/content/sample-sessions"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/sample-sessions/component.tsx 460 lines
// layout: number-rail
// Sample sessions: a numbered rail of real session previews that sells the event ticket by showing what happens in the room; each preview opens a lightbox with the page's clip (or its poster) and the ticket button.
import * as React from 'react';
import { Check, Eye, Play, ShieldCheck, X } from 'lucide-react';
import { Divider, FX_HOST, Spotlight } from '../fx/fx';
import torn from '../fx/dividers/torn';
export type SampleSession = {
title: string;
speaker?: string;
role?: string;
summary?: React.ReactNode;
points?: React.ReactNode[]; // what they walk out with, shown in the lightbox
posterImage?: string; // slot item-n: a still from the session
posterAlt?: string;
clip?: React.ReactNode; // the page's real video embed, shown in the lightbox; omit it and the poster shows instead
};
export type SampleSessionsCopy = {
sessionOf: string; // 'Session {n} of {total}'
open: string;
watch: string;
speaker: string; // 'with {speaker}'
separator: string;
close: string;
sessionsLabel: string;
regularPrice: string;
todayPrice: string;
};
export type SampleSessionsProps = {
headline?: React.ReactNode;
lead?: React.ReactNode;
sessions?: SampleSession[];
label?: string; // the action, written as the outcome
note?: React.ReactNode; // one reassurance line under the button
price?: string;
regularPrice?: string; // shown slashed beside today's price
reasonsTitle?: string; // '{price}' is replaced with the price
reasons?: React.ReactNode[];
href?: string;
onAction?: (session?: SampleSession) => void;
onOpen?: (session: SampleSession, index: number) => void;
disabled?: boolean;
tornEdge?: boolean; // torn paper edge into the next section
state?: 'default' | 'hover' | 'active' | 'disabled';
copy?: Partial<SampleSessionsCopy>;
className?: string;
};
export function SampleSessions(props: SampleSessionsProps) {
const {
headline = 'See inside every session before you grab your seat',
lead = 'Tap a session to preview what happens in the room.',
sessions = DEFAULT_SESSIONS,
label = 'Get me in the room',
note,
price,
regularPrice,
reasonsTitle = 'Three reasons to grab your seat today',
reasons = [],
href,
onAction,
onOpen,
disabled = false,
tornEdge = true,
state = 'default',
className,
} = props;
const copy: SampleSessionsCopy = { ...COPY, ...props.copy };
const uid = React.useId();
const headId = uid + '-head';
const dlgTitleId = uid + '-dlg';
const dialogRef = React.useRef<HTMLDialogElement>(null);
const [open, setOpen] = React.useState<number | null>(null);
const total = sessions.length;
const current = open !== null ? sessions[open] : undefined;
const isDisabled = disabled || state === 'disabled';
const forced = state === 'hover' || state === 'active' ? state : undefined;
const hasReasons = reasons.length > 0;
React.useEffect(() => {
const d = dialogRef.current;
if (!d) return;
if (open !== null && !d.open && typeof d.showModal === 'function') d.showModal();
if (open === null && d.open) d.close();
}, [open]);
const go = (i: number) => {
if (!total) return;
const n = (i + total) % total;
setOpen(n);
onOpen?.(sessions[n], n);
};
const close = () => dialogRef.current?.close();
const act = (s?: SampleSession) => {
if (!isDisabled) onAction?.(s);
};
const onKey = (e: React.KeyboardEvent<HTMLDialogElement>) => {
if (open === null || total < 2) return;
if (e.key === 'ArrowRight') {
e.preventDefault();
go(open + 1);
}
if (e.key === 'ArrowLeft') {
e.preventDefault();
go(open - 1);
}
};
const byline = (s: SampleSession) => {
const who = s.speaker ? fill(copy.speaker, { speaker: s.speaker }) : '';
if (who && s.role) return who + copy.separator + s.role;
return who || s.role || '';
};
const rootClass = ['cf-sample-sessions', tornEdge ? 'has-edge' : '', className || ''].filter(Boolean).join(' ');
return (
<section className={rootClass} style={FX_HOST} aria-labelledby={headId}>
<style>{CSS}</style>
<Spotlight />
{tornEdge ? (
<div className='ss-edge' aria-hidden='true'>
<Divider shape='torn' src={torn} tone='surface' height={56} />
</div>
) : null}
<div className='ss-inner'>
<header className='ss-head'>
<h2 id={headId} className='ss-h2'>{headline}</h2>
{lead ? <p className='ss-lead'>{lead}</p> : null}
</header>
<ol className='ss-rail' aria-label={copy.sessionsLabel}>
{sessions.map((s, i) => {
const by = byline(s);
const rowClass = 'ss-row' + (s.posterImage ? '' : ' no-poster') + (forced === 'hover' && i === 0 ? ' is-hover' : '');
return (
<li key={s.title + i} className={rowClass} style={{ ['--i' as string]: i } as React.CSSProperties}>
<div className='ss-num' aria-hidden='true'>
<span className='ss-numeral'>{pad(i + 1)}</span>
<span className='ss-line' />
</div>
{s.posterImage ? (
<div className='ss-poster'>
<img src={s.posterImage} alt={s.posterAlt || ''} width={640} height={360} loading='lazy' decoding='async' />
{s.clip ? (
<span className='ss-play' aria-hidden='true'>
<Play size={24} strokeWidth={2.5} fill='currentColor' />
</span>
) : null}
</div>
) : null}
<div className='ss-text'>
<h3 className='ss-title'>
<button type='button' className='ss-open' aria-haspopup='dialog' onClick={() => go(i)}>
<span className='ss-sr'>{fill(copy.sessionOf, { n: i + 1, total })}: </span>
{s.title}
</button>
</h3>
{by ? <p className='ss-by'>{by}</p> : null}
{s.summary ? <p className='ss-sum'>{s.summary}</p> : null}
<p className='ss-cue' aria-hidden='true'>
{s.clip ? <Play className='ss-ic' size={16} strokeWidth={2.5} /> : <Eye className='ss-ic' size={16} strokeWidth={2.5} />}
{s.clip ? copy.watch : copy.open}
</p>
</div>
</li>
);
})}
</ol>
<div className={'ss-close' + (hasReasons ? '' : ' is-solo')}>
{hasReasons ? (
<div className='ss-why'>
<h3 className='ss-why-title'>{fill(reasonsTitle, { price: price || '' })}</h3>
<ol className='ss-reasons'>
{reasons.map((r, i) => (
<li key={i}>
<span className='ss-rn' aria-hidden='true'>{i + 1}</span>
<span className='ss-rt'>{r}</span>
</li>
))}
</ol>
</div>
) : null}
<div className='ss-act'>
{price ? (
<p className='ss-price'>
{regularPrice ? (
<span className='ss-was'>
<span className='ss-sr'>{copy.regularPrice} </span>
{regularPrice}
</span>
) : null}
<span className='ss-now'>
<span className='ss-sr'>{copy.todayPrice} </span>
{price}
</span>
</p>
) : null}
<Cta label={label} href={href} disabled={isDisabled} forced={forced} size='lg' onClick={() => act()} />
{note ? (
<p className='ss-note'>
<ShieldCheck className='ss-ic ss-ic-ok' size={16} strokeWidth={2.5} aria-hidden='true' />
{note}
</p>
) : null}
</div>
</div>
</div>
<dialog
ref={dialogRef}
className='ss-dialog'
aria-labelledby={dlgTitleId}
onClose={() => setOpen(null)}
onKeyDown={onKey}
onClick={(e) => {
if (e.target === e.currentTarget) close();
}}
>
{current && open !== null ? (
<div className='ss-dlg'>
<div className='ss-dlg-head'>
{total > 1 ? (
<div className='ss-tabs' role='group' aria-label={copy.sessionsLabel}>
{sessions.map((s, i) => (
<button
key={s.title + i}
type='button'
className={'ss-tab' + (i === open ? ' is-on' : '')}
aria-current={i === open ? 'true' : undefined}
aria-label={fill(copy.sessionOf, { n: i + 1, total }) + ': ' + s.title}
onClick={() => go(i)}
>
{pad(i + 1)}
</button>
))}
</div>
) : (
<span />
)}
<button type='button' className='ss-x' aria-label={copy.close} onClick={close}>
<X size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
</div>
<div className={'ss-dlg-body' + (current.clip || current.posterImage ? '' : ' no-media')}>
{current.clip || current.posterImage ? (
<div className='ss-media' key={open}>
{current.clip ? (
<div className='ss-clip'>{current.clip}</div>
) : (
<img src={current.posterImage} alt={current.posterAlt || ''} width={960} height={540} />
)}
</div>
) : null}
<div className='ss-dlg-copy'>
<h3 id={dlgTitleId} className='ss-dlg-title'>{current.title}</h3>
{byline(current) ? <p className='ss-dlg-by'>{byline(current)}</p> : null}
{current.summary ? <p className='ss-dlg-sum'>{current.summary}</p> : null}
{current.points && current.points.length ? (
<ul className='ss-points'>
{current.points.map((p, i) => (
<li key={i}>
<Check className='ss-tick' size={18} strokeWidth={2.5} aria-hidden='true' />
<span>{p}</span>
</li>
))}
</ul>
) : null}
<div className='ss-dlg-act'>
<Cta label={label} href={href} disabled={isDisabled} size='md' onClick={() => act(current)} />
{note ? (
<p className='ss-note'>
<ShieldCheck className='ss-ic ss-ic-ok' size={16} strokeWidth={2.5} aria-hidden='true' />
{note}
</p>
) : null}
</div>
</div>
</div>
</div>
) : null}
</dialog>
</section>
);
}
export default SampleSessions;
const COPY: SampleSessionsCopy = {
sessionOf: 'Session {n} of {total}',
open: 'Look inside this session',
watch: 'Watch the session clip',
speaker: 'with {speaker}',
separator: ' · ',
close: 'Close the session preview',
sessionsLabel: 'Sample sessions',
regularPrice: 'Regular price',
todayPrice: 'Today',
};
const DEFAULT_SESSIONS: SampleSession[] = [
{ title: 'Choose the one offer you’ll sell', summary: 'Leave with one offer, one price and one promise you can say in a sentence.' },
{ title: 'Write the page that sells it', summary: 'Draft your headline, lead and call to action live, with feedback in the room.' },
{ title: 'Launch and follow through', summary: 'Check every step, then plan the emails that follow every sign-up.' },
];
function pad(n: number) {
return String(n).padStart(2, '0');
}
function fill(template: string, vars: Record<string, string | number>) {
return Object.keys(vars).reduce((out, key) => out.split('{' + key + '}').join(String(vars[key])), template);
}
function Cta({
label,
href,
disabled,
forced,
size,
onClick,
}: {
label: string;
href?: string;
disabled?: boolean;
forced?: 'hover' | 'active';
size: 'lg' | 'md';
onClick: () => void;
}) {
const cls = 'ss-cta ss-cta--' + size + (forced ? ' is-' + forced : '');
if (href && !disabled) {
return (
<a className={cls} href={href} onClick={onClick}>
{label}
</a>
);
}
return (
<button type='button' className={cls} disabled={disabled} onClick={onClick}>
{label}
</button>
);
}
const CSS = `
.cf-sample-sessions{--ss-gap:clamp(32px,4vw,48px);position:relative;background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-sample-sessions.has-edge{padding-bottom:calc(clamp(64px,8.5vw,120px) + 56px)}
.cf-sample-sessions .ss-edge{position:absolute;left:0;right:0;bottom:0;height:56px;pointer-events:none}
.cf-sample-sessions .ss-inner{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-sample-sessions .ss-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-sample-sessions .ss-ic{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-sample-sessions .ss-head{max-width:46rem;margin:0 auto;text-align:center}
.cf-sample-sessions .ss-h2{margin:0;color:var(--band-ink);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-sample-sessions .ss-lead{margin:16px auto 0;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:balance}
.cf-sample-sessions .ss-rail{list-style:none;margin:clamp(40px,5vw,64px) 0 0;padding:0;display:flex;flex-direction:column;gap:var(--ss-gap)}
.cf-sample-sessions .ss-row{position:relative;display:grid;grid-template-columns:clamp(72px,9vw,120px) minmax(0,clamp(240px,34vw,400px)) minmax(0,1fr);column-gap:clamp(20px,3vw,40px);align-items:start;animation:ss-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--i,0) * .07s),.28s)}
.cf-sample-sessions .ss-row.no-poster{grid-template-columns:clamp(72px,9vw,120px) minmax(0,1fr)}
.cf-sample-sessions .ss-num{display:flex;flex-direction:column;align-items:center;align-self:stretch}
.cf-sample-sessions .ss-numeral{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(3.5rem,6vw,5.5rem);line-height:.9;letter-spacing:-0.04em;font-variant-numeric:tabular-nums;color:var(--band-ink)}
.cf-sample-sessions .ss-line{position:relative;display:block;flex:1 1 auto;width:2px;min-height:24px;margin:16px 0 calc(12px - var(--ss-gap));border-radius:2px;overflow:hidden;background:oklch(from var(--band-ink) l c h / .2)}
.cf-sample-sessions .ss-line::after{content:'';position:absolute;inset:0;background:var(--accent-fill,var(--accent));transform:scaleY(0);transform-origin:top;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.cf-sample-sessions .ss-row:hover .ss-line::after,.cf-sample-sessions .ss-row.is-hover .ss-line::after,.cf-sample-sessions .ss-row:has(.ss-open:focus-visible) .ss-line::after{transform:scaleY(1)}
.cf-sample-sessions .ss-row:last-child .ss-line{display:none}
.cf-sample-sessions .ss-poster{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:oklch(from var(--band-ink) l c h / .08)}
.cf-sample-sessions .ss-poster img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.cf-sample-sessions .ss-row:hover .ss-poster img,.cf-sample-sessions .ss-row.is-hover .ss-poster img{transform:scale(1.04)}
.cf-sample-sessions .ss-play{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;display:grid;place-items:center;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));filter:drop-shadow(0 2px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .45)) drop-shadow(0 8px 12px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3));transition:transform .16s ease}
.cf-sample-sessions .ss-row:hover .ss-play{transform:scale(1.06)}
.cf-sample-sessions .ss-text{min-width:0;padding-top:6px}
.cf-sample-sessions .ss-title{margin:0;font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-sample-sessions .ss-open{appearance:none;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-align:left;text-wrap:balance;cursor:pointer}
.cf-sample-sessions .ss-open::after{content:'';position:absolute;inset:0;z-index:2;border-radius:14px}
.cf-sample-sessions .ss-open:focus{outline:none}
.cf-sample-sessions .ss-open:focus-visible::after{outline:3px solid var(--band-ink);outline-offset:6px}
.cf-sample-sessions .ss-by{margin:8px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600}
.cf-sample-sessions .ss-sum{margin:12px 0 0;max-width:60ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cf-sample-sessions .ss-cue{margin:16px 0 0;font-size:.9375rem;line-height:1.4;font-weight:700;text-decoration:underline;text-decoration-color:oklch(from var(--band-ink) l c h / .45);text-underline-offset:.18em}
.cf-sample-sessions .ss-row:hover .ss-cue,.cf-sample-sessions .ss-row.is-hover .ss-cue{text-decoration-color:var(--band-ink)}
.cf-sample-sessions .ss-close{position:relative;max-width:960px;margin:clamp(48px,6vw,72px) auto 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,420px);gap:clamp(24px,4vw,48px);align-items:start;background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .22),0 12px 24px -8px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .32)));padding:clamp(20px,3vw,32px)}
.cf-sample-sessions .ss-close.is-solo{grid-template-columns:minmax(0,1fr);max-width:30rem}
.cf-sample-sessions .ss-why{padding-top:4px}
.cf-sample-sessions .ss-why-title{margin:0;color:var(--ink);font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-sample-sessions .ss-reasons{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:12px}
.cf-sample-sessions .ss-reasons li{display:grid;grid-template-columns:1.25em minmax(0,1fr);column-gap:12px;align-items:first baseline;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5}
.cf-sample-sessions .ss-rt{min-width:0;text-wrap:pretty}
.cf-sample-sessions .ss-rn{display:block;color:var(--accent);font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1;text-align:center;font-variant-numeric:tabular-nums}
.cf-sample-sessions .ss-act{display:flex;flex-direction:column;align-items:stretch;text-align:center;border-radius:10px;padding:20px;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-sample-sessions .ss-close.is-solo .ss-act{background:none;padding:0}
.cf-sample-sessions .ss-price{margin:0 0 16px;display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:4px 16px}
.cf-sample-sessions .ss-was{position:relative;display:inline-block;padding:0 .12em;color:var(--muted);font-family:var(--font-display);font-weight:700;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-variant-numeric:tabular-nums}
.cf-sample-sessions .ss-was::after{content:'';position:absolute;left:-.1em;right:-.1em;top:50%;height:.12em;margin-top:-.06em;border-radius:999px;background:var(--danger);transform:rotate(-16deg)}
.cf-sample-sessions .ss-now{color:var(--ink);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}
.cf-sample-sessions .ss-note{margin:12px 0 0;color:var(--muted);font-size:.9375rem;line-height:1.4;font-weight:600;text-align:center;text-wrap:pretty}
.cf-sample-sessions .ss-ic-ok{color:var(--success)}
.cf-sample-sessions .ss-cta{display:inline-flex;align-items:center;justify-content:center;width:100%;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2,var(--cta))) 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);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3),0 8px 16px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-sample-sessions .ss-cta--lg{min-height:72px}
.cf-sample-sessions .ss-cta--md{min-height:64px}
.cf-sample-sessions .ss-cta:hover:not(:disabled),.cf-sample-sessions .ss-cta.is-hover{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2,var(--cta))) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .34),0 10px 18px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .52))}
.cf-sample-sessions .ss-cta:active:not(:disabled),.cf-sample-sessions .ss-cta.is-active{transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - .22) c h / .6),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 1px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3)}
.cf-sample-sessions .ss-cta:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:3px}
.cf-sample-sessions .ss-cta:disabled{background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:not-allowed}
.cf-sample-sessions .ss-dialog{width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:auto;border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));background:var(--card);color:var(--ink);font-family:var(--font-body);box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .22),0 12px 24px -8px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .32))}
.cf-sample-sessions .ss-dialog[open]{animation:ss-pop .3s cubic-bezier(.2,.7,.2,1) both}
.cf-sample-sessions .ss-dialog::backdrop{background:oklch(from var(--band,oklch(0.27 0.07 256)) l c h / .74)}
.cf-sample-sessions .ss-dlg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 12px 12px clamp(16px,3vw,32px);border-bottom:1px solid oklch(from var(--ink) l c h / .12)}
.cf-sample-sessions .ss-tabs{display:flex;flex-wrap:wrap;gap:8px}
.cf-sample-sessions .ss-tab{min-width:52px;min-height:44px;padding:0 12px;border:1px solid transparent;border-radius:var(--button-radius,var(--radius,12px));background:color-mix(in oklch,var(--ink) 5%,var(--card));color:var(--ink);font-family:var(--font-display);font-weight:800;font-size:.9375rem;font-variant-numeric:tabular-nums;cursor:pointer;transition:background .16s ease,border-color .16s ease}
.cf-sample-sessions .ss-tab:hover{background:color-mix(in oklch,var(--ink) 9%,var(--card))}
.cf-sample-sessions .ss-tab.is-on{background:color-mix(in oklch,var(--accent) 12%,var(--card));border-color:oklch(from var(--accent) l c h / .55)}
.cf-sample-sessions .ss-tab:focus-visible,.cf-sample-sessions .ss-x:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:2px}
.cf-sample-sessions .ss-x{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;padding:0;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));cursor:pointer;transition:background .16s ease}
.cf-sample-sessions .ss-x:hover{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .04) c h)}
.cf-sample-sessions .ss-dlg-body{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(20px,3vw,32px);align-items:start;padding:clamp(20px,3vw,32px)}
.cf-sample-sessions .ss-dlg-body.no-media{grid-template-columns:minmax(0,1fr);max-width:40rem}
.cf-sample-sessions .ss-media{aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:color-mix(in oklch,var(--ink) 6%,var(--card))}
.cf-sample-sessions .ss-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%}
.cf-sample-sessions .ss-clip,.cf-sample-sessions .ss-clip > *{display:block;width:100%;height:100%;border:0}
.cf-sample-sessions .ss-dlg-title{margin:0;color:var(--ink);font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-sample-sessions .ss-dlg-by{margin:8px 0 0;color:var(--muted);font-size:.9375rem;line-height:1.4;font-weight:600}
.cf-sample-sessions .ss-dlg-sum{margin:12px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cf-sample-sessions .ss-points{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}
.cf-sample-sessions .ss-points li{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;align-items:start;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cf-sample-sessions .ss-tick{margin-top:4px;color:var(--success)}
.cf-sample-sessions .ss-dlg-act{margin-top:24px}
@keyframes ss-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes ss-pop{from{opacity:.82;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media (max-width:720px){
.cf-sample-sessions .ss-row,.cf-sample-sessions .ss-row.no-poster{grid-template-columns:minmax(0,1fr);row-gap:16px}
.cf-sample-sessions .ss-num{flex-direction:row;align-items:center;align-self:auto;gap:16px}
.cf-sample-sessions .ss-numeral{font-size:3.5rem}
.cf-sample-sessions .ss-line,.cf-sample-sessions .ss-row:last-child .ss-line{display:block;flex:1 1 auto;width:auto;height:2px;min-height:0;margin:0}
.cf-sample-sessions .ss-line::after{transform:scaleX(0);transform-origin:left}
.cf-sample-sessions .ss-row:hover .ss-line::after,.cf-sample-sessions .ss-row.is-hover .ss-line::after,.cf-sample-sessions .ss-row:has(.ss-open:focus-visible) .ss-line::after{transform:scaleX(1)}
.cf-sample-sessions .ss-text{padding-top:0}
.cf-sample-sessions .ss-close{grid-template-columns:minmax(0,1fr)}
.cf-sample-sessions .ss-act{padding:16px 12px}
.cf-sample-sessions .ss-cta{padding:12px 16px}
.cf-sample-sessions .ss-cta--lg{min-height:64px}
.cf-sample-sessions .ss-dlg-body{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){
.cf-sample-sessions .ss-row,.cf-sample-sessions .ss-dialog[open]{animation:none}
.cf-sample-sessions .ss-poster img,.cf-sample-sessions .ss-line::after,.cf-sample-sessions .ss-play,.cf-sample-sessions .ss-cta,.cf-sample-sessions .ss-tab,.cf-sample-sessions .ss-x{transition:none}
.cf-sample-sessions .ss-row:hover .ss-poster img,.cf-sample-sessions .ss-row.is-hover .ss-poster img,.cf-sample-sessions .ss-row:hover .ss-play{transform:none}
}
`;
pieces/content/sample-sessions/specimen.tsx 59 lines
import __studioImagedb280a0b from "../assets/0083b5788a4eb10b.webp";
import __studioImage10a365da from "../assets/b015a2f41d86435a.webp";
import __studioImageb040494a from "../assets/a4bde522a0849abc.webp";
import { SampleSessions } from '../sample-sessions';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
export default function SampleSessionsSpecimen({ state }: { state?: 'default' | 'hover' | 'active' | 'disabled' }) {
const s = defaults.sample;
const kit = s.items;
return (
<SampleSessions
state={state}
headline='See inside every session before you grab your seat'
lead='Tap a session to preview what you’ll build in the room, and who walks you through it.'
sessions={[
{
title: 'Pick the one offer your funnel sells',
speaker: 'Dana Reyes',
role: 'Offer coach',
summary: 'Turn a pile of ideas into one offer, one price and one promise people get in a sentence.',
points: ['Your offer written in one sentence', 'A price you can stand behind', 'The first page your funnel needs'],
posterImage: slot('item-1', __studioImagedb280a0b),
posterAlt: 'Dana Reyes teaching at a whiteboard during a live workshop session',
},
{
title: 'Write a headline people stop for',
speaker: 'Marcus Hale',
role: 'Copywriter',
summary: 'Draft your headline, lead and call to action live, then sharpen them with feedback in the room.',
points: ['Five headline drafts ready to test', 'A lead that keeps them reading', 'A button that says what they get'],
posterImage: slot('item-2', __studioImage10a365da),
posterAlt: 'Marcus Hale speaking to a small audience in front of a projection screen',
},
{
title: 'Check every step before launch day',
speaker: 'Priya Nair',
role: 'Funnel builder',
summary: 'Walk your funnel page by page with the launch checklist so nothing breaks when traffic arrives.',
points: ['Every link and form tested', 'Your follow-up emails mapped', 'A launch-day plan you can follow'],
posterImage: slot('item-3', __studioImageb040494a),
posterAlt: 'Priya Nair walking attendees through a funnel on her laptop',
},
]}
label='Build my funnel live'
price={s.price}
regularPrice={s.regularPrice}
reasonsTitle='Three reasons it’s {price} today'
reasons={[
'One ticket covers all three sessions.',
`The ${kit[1].name} and ${kit[2].name} come with your seat.`,
`You’re covered by our ${s.guarantee}.`,
]}
note={`Secure checkout · ${s.guarantee}`}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalSampleSessions |
React.ReactNode |
|
lead OptionalSampleSessions |
React.ReactNode |
|
sessions OptionalSampleSessions |
SampleSession[] |
|
label OptionalSampleSessions |
string |
|
note OptionalSampleSessions |
React.ReactNode |
|
price OptionalSampleSessions |
string |
|
regularPrice OptionalSampleSessions |
string |
|
reasonsTitle OptionalSampleSessions |
string |
|
reasons OptionalSampleSessions |
React.ReactNode[] |
|
href OptionalSampleSessions |
string |
|
onAction OptionalSampleSessions |
(session?: SampleSession) => void |
|
onOpen OptionalSampleSessions |
(session: SampleSession, index: number) => void |
|
disabled OptionalSampleSessions |
boolean |
|
tornEdge OptionalSampleSessions |
boolean |
|
state OptionalSampleSessions |
'default' | 'hover' | 'active' | 'disabled' |
|
copy OptionalSampleSessions |
Partial<SampleSessionsCopy> |
|
className OptionalSampleSessions |
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.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-3- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
0083b5788a4eb10b.webp
image/webp · 57 KB
-
9a2ebdab5ff4fcc4.webp
image/webp · 3.64 KB
-
a4bde522a0849abc.webp
image/webp · 51.3 KB
-
b015a2f41d86435a.webp
image/webp · 30.9 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB