Masterclass Hero 1
Paid masterclass first screen: the host cut out on a colour field, a 90-minute promise, a hoverable route of the session's segments, the start time in the visitor’s own zone and one Add To Cart with the price on the button.
Use it in a prompt
Use hero/masterclass-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/masterclass-hero.tsx. - Import it and pass your copy and images (Props tab):
import { MasterclassHero } from "@/components/funneldna/hero/masterclass-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/masterclass-hero/component.tsx 784 lines
// layout: route-map
// Paid masterclass first screen: the host cut out on a colour field, a 90-minute promise, a hoverable route of the session's segments, the start time in the visitor’s own zone and one Add To Cart with the price on the button.
import React from 'react';
import { CalendarDays, Clock, Globe, RotateCcw, ShoppingCart, Users } from 'lucide-react';
import { Divider, FX_HOST, Spot } from '../fx/fx';
import pin from '../fx/spots/pin';
import chart from '../fx/spots/chart';
import checklist from '../fx/spots/checklist';
import community from '../fx/spots/community';
import rocket from '../fx/spots/rocket';
type DividerTone = React.ComponentProps<typeof Divider>['tone'];
export type MasterclassSegment = {
minutes: number; // length of this block of the session
title: string; // short name shown on the timeline block
covers: string; // what the block covers, revealed on hover, focus or tap
spot?: string; // imported fx spot illustration, e.g. import pin from '../fx/spots/pin'
};
export type MasterclassHeroCopy = {
cta: string; // first button line
priceLine: string; // second button line; {price} is replaced by the price
noPriceLine: string; // second button line when no price is supplied
psLabel: string;
rangeShort: string; // timeline block range: {start}, {end}
rangeLong: string; // revealed panel range: {start}, {end}
totalLabel: string; // end of the route: {total}
routeLabel: string; // accessible name of the timeline: {total}
hint: string; // touch hint under the timeline (hidden on hover devices)
localTime: string; // visitor conversion: {time}
sameZone: string; // shown when the visitor is already in the event zone
};
export type MasterclassHeroProps = {
headline?: string;
headlineEmphasis?: string; // phrase inside the headline that gets the marker stroke
lead?: string;
presenterImage?: string; // slot presenter-cutout: transparent cut-out of the host
presenterAlt?: string;
hostName?: string;
hostRole?: string;
startsAt?: string; // ISO date-time with offset, e.g. 2026-12-10T18:00:00-05:00
timeZone?: string; // IANA zone the event runs in, e.g. America/New_York
timeZoneLabel?: string; // plain-words zone name shown after the time
locale?: string;
dateText?: string; // fallback date line when startsAt is not supplied
timeText?: string; // fallback time line when startsAt is not supplied
segments?: MasterclassSegment[];
price?: string; // ticket price, shown only on the button's second line
priceReason?: string; // reason-why line for the price
replayNote?: string;
seatsNote?: string;
ps?: string; // P.S. text after the label
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled?: boolean;
state?: 'default' | 'hover' | 'active' | 'disabled';
edgeTone?: DividerTone; // token of the section that follows, for the curved edge
showEdge?: boolean;
copy?: Partial<MasterclassHeroCopy>;
className?: string;
};
export function MasterclassHero(props: MasterclassHeroProps) {
const {
headline = 'In 90 minutes, finish the plan you keep putting off',
headlineEmphasis = 'finish the plan',
lead = 'A live, hands-on masterclass. Bring one real project and leave with the next step done, not a page of notes.',
presenterImage,
presenterAlt = 'Your masterclass host',
hostName = '',
hostRole = '',
startsAt,
timeZone,
timeZoneLabel = '',
locale = 'en-US',
dateText = '',
timeText = '',
segments = DEFAULT_SEGMENTS,
price = '',
priceReason = '',
replayNote = '',
seatsNote = '',
ps = '',
href,
onAction,
disabled = false,
state = 'default',
edgeTone = 'band' as DividerTone,
showEdge = true,
copy: copyOverrides,
className,
} = props;
const copy: MasterclassHeroCopy = { ...DEFAULT_COPY, ...copyOverrides };
const uid = React.useId();
const detailId = uid + '-detail';
const [active, setActive] = React.useState(0);
const [localLine, setLocalLine] = React.useState('');
const segs = segments.filter((s) => s && s.title);
const starts: number[] = [];
let total = 0;
for (const s of segs) {
starts.push(total);
total += Math.max(0, Number(s.minutes) || 0);
}
const last = segs.length - 1;
const current = Math.min(active, Math.max(0, last));
const event = startsAt ? formatEvent(startsAt, total, timeZone, locale) : null;
const dateLine = event ? event.date : dateText;
const timeLine = event ? event.time : timeText;
const localTpl = copy.localTime;
const sameTpl = copy.sameZone;
React.useEffect(() => {
setLocalLine(startsAt && timeZone ? viewerTime(startsAt, timeZone, locale, localTpl, sameTpl) : '');
}, [startsAt, timeZone, locale, localTpl, sameTpl]);
const isDisabled = disabled || state === 'disabled';
const buyState = state === 'hover' || state === 'active' ? state : undefined;
const hasAside = Boolean(presenterImage || hostName || hostRole);
const at = headlineEmphasis ? headline.indexOf(headlineEmphasis) : -1;
const title =
at < 0 ? (
headline
) : (
<>
{headline.slice(0, at)}
<span className='cf-mch__mark'>{headlineEmphasis}</span>
{headline.slice(at + headlineEmphasis.length)}
</>
);
const when =
dateLine || timeLine || localLine || seatsNote ? (
<div className='cf-mch__when'>
{dateLine ? (
<p className='cf-mch__date'>
<CalendarDays className='cf-mch__icon' size={18} strokeWidth={2.5} aria-hidden='true' />
{dateLine}
</p>
) : null}
{timeLine ? (
<p className='cf-mch__fact'>
<Clock className='cf-mch__icon' size={18} strokeWidth={2.5} aria-hidden='true' />
{timeLine}
{timeZoneLabel ? ' · ' + timeZoneLabel : ''}
</p>
) : null}
{localLine ? (
<p className='cf-mch__fact'>
<Globe className='cf-mch__icon' size={18} strokeWidth={2.5} aria-hidden='true' />
{localLine}
</p>
) : null}
{seatsNote ? (
<p className='cf-mch__fact'>
<Users className='cf-mch__icon' size={18} strokeWidth={2.5} aria-hidden='true' />
{seatsNote}
</p>
) : null}
</div>
) : null;
const buyInner = (
<>
<span className='cf-mch__buy-main'>
<ShoppingCart size={20} strokeWidth={2.5} aria-hidden='true' />
{copy.cta}
</span>
<span className='cf-mch__buy-sub'>
{price ? withNode(copy.priceLine, '{price}', <strong className='cf-mch__price'>{price}</strong>) : copy.noPriceLine}
</span>
</>
);
const button =
href && !isDisabled ? (
<a className='cf-mch__buy' href={href} data-state={buyState} onClick={onAction}>
{buyInner}
</a>
) : (
<button type='button' className='cf-mch__buy' data-state={buyState} disabled={isDisabled} onClick={onAction}>
{buyInner}
</button>
);
return (
<section className={['cf-mch', className].filter(Boolean).join(' ')} style={FX_HOST} data-edge={showEdge ? 'true' : 'false'}>
<style>{CSS}</style>
{showEdge ? <Divider shape='curve' tone={edgeTone} height={56} /> : null}
<div className='cf-mch__inner' data-aside={hasAside ? 'true' : 'false'}>
{hasAside ? (
<div className='cf-mch__aside cf-mch__rise' style={delay(0)}>
{presenterImage ? (
<figure className='cf-mch__figure'>
<span className='cf-mch__field' aria-hidden='true' />
<img className='cf-mch__portrait' src={presenterImage} alt={presenterAlt} width={800} height={1000} loading='eager' decoding='async' />
</figure>
) : null}
{hostName || hostRole ? (
<p className='cf-mch__host'>
{hostName ? <span className='cf-mch__host-name'>{hostName}</span> : null}
{hostRole ? <span className='cf-mch__host-role'>{hostRole}</span> : null}
</p>
) : null}
{when ? <div className='cf-mch__when-slot cf-mch__when-slot--aside'>{when}</div> : null}
</div>
) : null}
<div className='cf-mch__main'>
<h1 className='cf-mch__h1 cf-mch__rise' style={delay(0)}>
{title}
</h1>
{lead ? (
<p className='cf-mch__lead cf-mch__rise' style={delay(1)}>
{lead}
</p>
) : null}
{when ? <div className={hasAside ? 'cf-mch__when-slot cf-mch__when-slot--main' : 'cf-mch__when-slot'}>{when}</div> : null}
{segs.length > 0 ? (
<div className='cf-mch__route cf-mch__rise' style={delay(2)} role='group' aria-label={fill(copy.routeLabel, { total })}>
<div className='cf-mch__scroll'>
<ol className='cf-mch__track'>
{segs.map((s, i) => {
const start = starts[i];
const end = start + Math.max(0, Number(s.minutes) || 0);
const isLast = i === last;
return (
<li key={i} className='cf-mch__stop' style={{ flexGrow: Math.max(1, Number(s.minutes) || 1) }}>
<button
type='button'
className='cf-mch__tile'
aria-pressed={i === current}
aria-controls={detailId}
onMouseEnter={() => setActive(i)}
onFocus={() => setActive(i)}
onClick={() => setActive(i)}
>
<span className='cf-mch__mins'>{fill(copy.rangeShort, { start, end })}</span>
<span className='cf-mch__seg-title'>{s.title}</span>
</button>
<span className='cf-mch__rail' data-reached={i <= current ? 'true' : 'false'} data-last={isLast ? 'true' : 'false'} aria-hidden='true'>
<span className='cf-mch__dot' data-on={i <= current + 1 ? 'true' : 'false'} />
<span className='cf-mch__at'>{start}</span>
{isLast ? (
<>
<span className='cf-mch__dot cf-mch__dot--end' data-on={current === last ? 'true' : 'false'} />
<span className='cf-mch__at cf-mch__at--end'>{fill(copy.totalLabel, { total })}</span>
</>
) : null}
</span>
</li>
);
})}
</ol>
</div>
{copy.hint ? <p className='cf-mch__hint'>{copy.hint}</p> : null}
<div className='cf-mch__detail' id={detailId} aria-live='polite'>
{segs.map((s, i) => {
const on = i === current;
const start = starts[i];
const end = start + Math.max(0, Number(s.minutes) || 0);
return (
<div key={i} className='cf-mch__panel' data-on={on ? 'true' : 'false'} data-spot={s.spot ? 'true' : 'false'} aria-hidden={!on}>
{s.spot ? (
<span className='cf-mch__spot'>
<Spot src={s.spot} size={56} />
</span>
) : null}
<div className='cf-mch__panel-copy'>
<p className='cf-mch__panel-range'>{fill(copy.rangeLong, { start, end })}</p>
<p className='cf-mch__panel-title'>{s.title}</p>
{s.covers ? <p className='cf-mch__panel-text'>{s.covers}</p> : null}
</div>
</div>
);
})}
</div>
</div>
) : null}
<div className='cf-mch__action cf-mch__rise' style={delay(3)}>
{priceReason ? <p className='cf-mch__reason'>{priceReason}</p> : null}
{button}
{replayNote ? (
<p className='cf-mch__replay'>
<RotateCcw className='cf-mch__icon' size={16} strokeWidth={2.5} aria-hidden='true' />
{replayNote}
</p>
) : null}
{ps ? (
<p className='cf-mch__ps'>
<strong>{copy.psLabel}</strong> {ps}
</p>
) : null}
</div>
</div>
</div>
</section>
);
}
export default MasterclassHero;
const DEFAULT_COPY: MasterclassHeroCopy = {
cta: 'Add To Cart',
priceLine: 'Your masterclass ticket · {price}',
noPriceLine: 'Secure checkout',
psLabel: 'P.S.',
rangeShort: '{start}–{end} min',
rangeLong: 'Minutes {start}–{end}',
totalLabel: '{total} min',
routeLabel: 'What the {total} minutes cover, segment by segment',
hint: 'Swipe the timeline and tap a segment to see what it covers.',
localTime: 'That’s {time} where you are',
sameZone: 'Same time where you are',
};
const DEFAULT_SEGMENTS: MasterclassSegment[] = [
{ minutes: 10, title: 'Where you are now', covers: 'Name the one project you’re bringing and what has stopped it so far.', spot: pin },
{ minutes: 25, title: 'The method', covers: 'Walk through the framework step by step, with a worked example on screen.', spot: chart },
{ minutes: 25, title: 'Apply it to yours', covers: 'Fill in your own version while the host works through it live.', spot: checklist },
{ minutes: 20, title: 'Live Q&A', covers: 'Bring your questions; the host answers as many as the time allows.', spot: community },
{ minutes: 10, title: 'Your next step', covers: 'Leave with the one action to take tomorrow morning.', spot: rocket },
];
function formatEvent(startsAt: string, minutes: number, timeZone: string | undefined, locale: string) {
const start = new Date(startsAt);
if (Number.isNaN(start.getTime())) return null;
try {
const date = new Intl.DateTimeFormat(locale, { weekday: 'long', month: 'long', day: 'numeric', year: 'numeric', timeZone }).format(start);
const clock = new Intl.DateTimeFormat(locale, { hour: 'numeric', minute: '2-digit', timeZoneName: 'short', timeZone }) as Intl.DateTimeFormat & {
formatRange?: (a: Date, b: Date) => string;
};
const end = new Date(start.getTime() + minutes * 60000);
const time = minutes > 0 && typeof clock.formatRange === 'function' ? clock.formatRange(start, end) : clock.format(start);
return { date, time };
} catch {
return null;
}
}
function viewerTime(startsAt: string, timeZone: string, locale: string, template: string, same: string) {
const start = new Date(startsAt);
if (Number.isNaN(start.getTime())) return '';
try {
const viewer = Intl.DateTimeFormat().resolvedOptions().timeZone;
if (viewer === timeZone) return same;
const clock = new Intl.DateTimeFormat(locale, { weekday: 'short', hour: 'numeric', minute: '2-digit', timeZoneName: 'short' });
return fill(template, { time: clock.format(start) });
} catch {
return '';
}
}
function fill(template: string, values: Record<string, string | number>) {
let out = template;
for (const key of Object.keys(values)) out = out.split('{' + key + '}').join(String(values[key]));
return out;
}
function withNode(template: string, token: string, node: React.ReactNode) {
const at = template.indexOf(token);
if (at < 0) return <>{template} {node}</>;
return (
<>
{template.slice(0, at)}
{node}
{template.slice(at + token.length)}
</>
);
}
function delay(step: number): React.CSSProperties {
return { ['--d' as string]: step } as React.CSSProperties;
}
const CSS = `
.cf-mch {
--mch-gutter: clamp(16px, 5vw, 48px);
--mch-edge: 56px;
--mch-shadow: var(--shadow, oklch(0.22 0.03 260));
--mch-cta: var(--button-bg, var(--cta));
--mch-radius: var(--card-radius, var(--radius, 14px));
position: relative;
overflow-x: clip;
background: var(--surface);
color: var(--ink);
font-family: var(--font-body);
padding-top: clamp(56px, 8vw, 112px);
padding-bottom: calc(clamp(64px, 8.5vw, 120px) + var(--mch-edge));
}
.cf-mch[data-edge=false] { --mch-edge: 0px; }
.cf-mch *, .cf-mch *::before, .cf-mch *::after { box-sizing: border-box; }
:where(.cf-mch) p { margin: 0; }
.cf-mch__inner {
position: relative;
z-index: 1;
max-width: calc(1120px + 2 * var(--mch-gutter));
margin: 0 auto;
padding: 0 var(--mch-gutter);
display: grid;
grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
gap: clamp(32px, 5vw, 72px);
align-items: start;
}
.cf-mch__inner[data-aside=false] {
grid-template-columns: minmax(0, 1fr);
max-width: calc(46rem + 2 * var(--mch-gutter));
}
.cf-mch__aside { position: sticky; top: 32px; min-width: 0; }
.cf-mch__main { min-width: 0; }
.cf-mch__figure {
position: relative;
margin: 0;
aspect-ratio: 4 / 5;
border-radius: var(--mch-radius);
overflow: hidden;
isolation: isolate;
}
.cf-mch__field {
position: absolute;
inset: 0;
background: radial-gradient(120% 90% at 50% 18%, oklch(from var(--band) calc(l + 0.07) c h), var(--band) 70%);
}
.cf-mch__portrait {
position: relative;
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 22%;
filter: drop-shadow(0 2px 3px oklch(from var(--mch-shadow) l c h / 0.3)) drop-shadow(0 12px 16px oklch(from var(--mch-shadow) l c h / 0.28));
}
.cf-mch__host { margin-top: 16px; line-height: 1.4; }
.cf-mch__host-name {
display: block;
font-family: var(--font-display);
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
font-weight: 800;
}
.cf-mch__host-role {
display: block;
margin-top: 2px;
font-size: 0.9375rem;
font-weight: 500;
color: var(--muted);
text-wrap: pretty;
}
.cf-mch__when-slot { margin-top: 24px; }
.cf-mch__when {
display: grid;
gap: 8px;
padding: 16px 20px;
border-radius: var(--radius, 12px);
background: color-mix(in oklch, var(--ink) 4%, var(--surface));
color: var(--ink);
}
.cf-mch__date {
font-family: var(--font-display);
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
font-weight: 800;
line-height: 1.3;
text-wrap: pretty;
}
.cf-mch__fact { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; text-wrap: pretty; }
.cf-mch__icon {
display: inline-block;
vertical-align: -0.15em;
margin-inline-end: 0.45em;
color: var(--accent);
}
.cf-mch__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.4vw, 4rem);
line-height: 1.04;
text-wrap: balance;
color: var(--ink);
}
.cf-mch__mark {
background-image: linear-gradient(transparent 56%, oklch(from var(--marker, #fae37c) l c h / 0.55) 56%, oklch(from var(--marker, #fae37c) l c h / 0.55) 94%, transparent 94%);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
padding: 0 0.08em;
margin: 0 -0.04em;
border-radius: 0.1em 0.22em 0.14em 0.26em;
}
.cf-mch__lead {
margin-top: clamp(14px, 1.6vw, 24px);
max-width: 60ch;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 500;
text-wrap: pretty;
}
.cf-mch__route { margin-top: clamp(24px, 2.6vw, 32px); }
.cf-mch__scroll {
overflow-x: auto;
overflow-y: hidden;
margin-inline: -6px;
padding: 6px 6px 2px;
scrollbar-width: thin;
overscroll-behavior-x: contain;
}
.cf-mch__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.cf-mch__stop { flex: 1 1 0; min-width: 124px; display: flex; flex-direction: column; gap: 10px; }
.cf-mch__tile {
flex: 1;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
min-height: 76px;
padding: 12px;
border-radius: 10px;
border: 1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12));
background: var(--card);
color: var(--ink);
font: inherit;
text-align: left;
cursor: pointer;
box-shadow: var(--shadow-sm, 0 1px 2px oklch(from var(--mch-shadow) l c h / 0.2));
transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.cf-mch__tile[aria-pressed=true] {
background: color-mix(in oklch, var(--accent) 10%, var(--card));
border-color: oklch(from var(--accent) l c h / 0.55);
box-shadow: var(--shadow-lg, 0 2px 4px oklch(from var(--mch-shadow) l c h / 0.22), 0 12px 24px -8px oklch(from var(--mch-shadow) l c h / 0.32));
}
.cf-mch__tile:focus-visible {
outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / 0.6);
outline-offset: 2px;
}
@media (hover: hover) {
.cf-mch__tile:hover {
transform: translateY(-2px);
border-color: oklch(from var(--accent) l c h / 0.45);
box-shadow: var(--shadow-md, 0 1px 2px oklch(from var(--mch-shadow) l c h / 0.22), 0 4px 10px -2px oklch(from var(--mch-shadow) l c h / 0.2));
}
.cf-mch__tile[aria-pressed=true]:hover {
box-shadow: var(--shadow-lg, 0 2px 4px oklch(from var(--mch-shadow) l c h / 0.22), 0 12px 24px -8px oklch(from var(--mch-shadow) l c h / 0.32));
}
}
.cf-mch__tile:active { transform: translateY(0); }
.cf-mch__mins {
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
color: var(--muted);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.cf-mch__tile[aria-pressed=true] .cf-mch__mins { color: var(--ink); }
.cf-mch__seg-title { font-size: 0.9375rem; font-weight: 700; line-height: 1.25; text-wrap: pretty; }
.cf-mch__rail { position: relative; display: block; height: 34px; }
.cf-mch__rail::before, .cf-mch__rail::after {
content: '';
position: absolute;
left: 0;
right: -6px;
top: 4px;
height: 4px;
border-radius: 999px;
}
.cf-mch__rail[data-last=true]::before, .cf-mch__rail[data-last=true]::after { right: 0; }
.cf-mch__rail::before { background: color-mix(in oklch, var(--ink) 12%, var(--surface)); }
.cf-mch__rail::after {
background: var(--accent-fill, var(--accent));
transform: scaleX(0);
transform-origin: left center;
transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cf-mch__rail[data-reached=true]::after { transform: scaleX(1); }
.cf-mch__dot {
position: absolute;
z-index: 1;
left: -1px;
top: 0;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--surface);
border: 3px solid color-mix(in oklch, var(--ink) 22%, var(--surface));
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cf-mch__dot[data-on=true] { background: var(--accent-fill, var(--accent)); border-color: var(--accent-fill, var(--accent)); }
.cf-mch__dot--end { left: auto; right: -1px; }
.cf-mch__at {
position: absolute;
left: 0;
top: 17px;
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
color: var(--muted);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.cf-mch__at--end { left: auto; right: 0; }
.cf-mch__hint { margin-top: 4px; font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .cf-mch__hint { display: none; } }
.cf-mch__detail { display: grid; margin-top: 12px; }
.cf-mch__panel {
grid-area: 1 / 1;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 16px;
align-items: start;
padding: clamp(16px, 2vw, 20px) clamp(20px, 2.6vw, 24px);
border-radius: var(--mch-radius);
border: 1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12));
background: var(--card);
color: var(--ink);
box-shadow: var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(from var(--mch-shadow) l c h / 0.22), 0 4px 10px -2px oklch(from var(--mch-shadow) l c h / 0.2)));
visibility: hidden;
opacity: 0;
transform: translateY(4px);
transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.cf-mch__panel[data-spot=true] { grid-template-columns: 56px minmax(0, 1fr); }
.cf-mch__panel[data-on=true] {
visibility: visible;
opacity: 1;
transform: none;
transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}
.cf-mch__spot { display: block; line-height: 0; }
.cf-mch__panel-range {
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
color: var(--accent);
font-variant-numeric: tabular-nums;
}
.cf-mch__panel-title {
margin-top: 12px;
font-family: var(--font-display);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
font-weight: 800;
letter-spacing: -0.01em;
line-height: 1.15;
text-wrap: balance;
}
.cf-mch__panel-text {
margin-top: 8px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
text-wrap: pretty;
}
.cf-mch__action { margin-top: clamp(32px, 3.4vw, 48px); }
.cf-mch__reason {
margin-bottom: 16px;
max-width: 60ch;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
font-weight: 500;
line-height: 1.5;
text-wrap: pretty;
}
.cf-mch__buy {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
width: 100%;
min-height: 72px;
padding: 12px 28px;
border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
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);
text-decoration: none;
text-align: center;
text-shadow: var(--button-text-shadow, none);
cursor: pointer;
-webkit-tap-highlight-color: transparent;
background: linear-gradient(oklch(from var(--mch-cta) calc(l + 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.02) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--mch-cta) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--mch-cta) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--mch-shadow) l c h / 0.3), 0 8px 16px -6px oklch(from var(--mch-shadow) l c h / 0.45));
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.cf-mch__buy:hover, .cf-mch__buy[data-state=hover] {
background: linear-gradient(oklch(from var(--mch-cta) calc(l - 0.01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.07) c h));
box-shadow: inset 0 1px 0 oklch(from var(--mch-cta) calc(l + 0.12) c h / 0.6), inset 0 -3px 0 oklch(from var(--mch-cta) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--mch-shadow) l c h / 0.32), 0 12px 20px -8px oklch(from var(--mch-shadow) l c h / 0.5);
}
.cf-mch__buy:active, .cf-mch__buy[data-state=active] {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--mch-cta) calc(l - 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.08) c h));
box-shadow: inset 0 2px 4px oklch(from var(--mch-cta) calc(l - 0.22) c h / 0.55), inset 0 -2px 0 oklch(from var(--mch-cta) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--mch-shadow) l c h / 0.3);
}
.cf-mch__buy:focus-visible {
outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / 0.6);
outline-offset: 3px;
}
.cf-mch__buy:disabled {
cursor: not-allowed;
transform: none;
background: var(--button-2-bg, var(--secondary));
color: var(--button-2-ink, var(--secondary-ink));
text-shadow: none;
box-shadow: var(--button-2-shadow, var(--shadow-sm));
}
.cf-mch__buy-main {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
font-size: clamp(1.125rem, 1.55vw, 1.375rem);
line-height: 1.15;
white-space: nowrap;
}
.cf-mch__buy-sub {
font-family: var(--font-body);
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.3;
text-transform: none;
text-wrap: pretty;
}
.cf-mch__price { font-weight: 800; font-variant-numeric: tabular-nums; }
.cf-mch__replay { margin-top: 12px; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--muted); text-align: center; text-wrap: pretty; }
.cf-mch__ps {
margin-top: 24px;
max-width: 60ch;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
text-wrap: pretty;
}
.cf-mch__ps strong { font-weight: 800; }
@keyframes cf-mch-rise {
from { opacity: 0.82; transform: translateY(8px); }
to { opacity: 1; transform: none; }
}
.cf-mch__rise { animation: cf-mch-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--d, 0) * 0.07s); }
@media (min-width: 900px) {
.cf-mch__when-slot--main { display: none; }
}
@media (max-width: 899px) {
.cf-mch__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.cf-mch__aside { position: static; width: 100%; max-width: 520px; margin-inline: auto; }
.cf-mch__figure { aspect-ratio: 5 / 4; }
.cf-mch__portrait { object-position: 50% 18%; }
.cf-mch__host { text-align: center; }
.cf-mch__when-slot--aside { display: none; }
.cf-mch__scroll {
margin-inline: calc(-1 * var(--mch-gutter));
padding-inline: var(--mch-gutter);
scroll-padding-inline: var(--mch-gutter);
scroll-snap-type: x proximity;
}
.cf-mch__stop { min-width: 140px; scroll-snap-align: start; }
.cf-mch__tile { min-height: 84px; }
.cf-mch__buy { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
.cf-mch .cf-mch__rise { animation: none; }
.cf-mch .cf-mch__tile, .cf-mch .cf-mch__buy, .cf-mch .cf-mch__panel, .cf-mch .cf-mch__dot, .cf-mch .cf-mch__rail::after { transition: none; }
.cf-mch .cf-mch__tile:hover, .cf-mch .cf-mch__buy:active, .cf-mch .cf-mch__buy[data-state=active], .cf-mch .cf-mch__panel { transform: none; }
}
`;
pieces/hero/masterclass-hero/specimen.tsx 44 lines
import __studioImage8a1b749e from "../assets/633b3a42cc73dd7f.webp";
import MasterclassHero from '../masterclass-hero';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
import pin from '../../fx/spots/pin';
import chart from '../../fx/spots/chart';
import checklist from '../../fx/spots/checklist';
import community from '../../fx/spots/community';
import rocket from '../../fx/spots/rocket';
export const states = ['default', 'hover', 'active', 'disabled'];
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled';
export default function MasterclassHeroSpecimen({ state = 'default' }: { state?: SpecimenState }) {
return (
<MasterclassHero
state={state}
headline='In 90 minutes, price your next offer'
headlineEmphasis='price your next offer'
lead='The Pricing Room is a live masterclass for coaches who undercharge. Bring one offer and leave with a number you can say on your next sales call.'
presenterImage={slot('presenter-cutout', __studioImage8a1b749e)}
presenterAlt='Rena Calder, host of The Pricing Room'
hostName='Rena Calder'
hostRole='Your host · pricing coach for 1:1 and group coaches'
startsAt='2026-12-10T18:00:00-05:00'
timeZone='America/New_York'
timeZoneLabel='New York time'
segments={[
{ minutes: 10, title: 'Where your price is now', covers: 'Write down what you charge today and the sentence you use to defend it. That’s your starting line.', spot: pin },
{ minutes: 20, title: 'Build the value ladder', covers: 'Map your offer onto three rungs so the price follows the outcome, not the hours you put in.', spot: chart },
{ minutes: 25, title: 'Set the number', covers: 'Pick an anchor, a target and a floor for your next offer on the Room’s one-page price sheet.', spot: checklist },
{ minutes: 25, title: 'Live hot seats', covers: 'Five coaches put their offer on screen and reprice it live, so you hear the reasoning, not just the answer.', spot: community },
{ minutes: 10, title: 'Say it out loud', covers: 'Rehearse your new price in the exact sentence you’ll use on your next sales call.', spot: rocket },
]}
price='$49'
priceReason='Why $49? A small price keeps the room serious: people who pay show up with an offer and do the work.'
seatsNote='Capped at 60 seats so the hot seats stay hands-on.'
replayNote='Can’t make it live? Your ticket includes the full replay for 14 days.'
ps={`Ninety minutes, one offer, one new price you can say out loud. And your ticket is covered by our ${defaults.sample.guarantee}.`}
href='#checkout'
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalMasterclassHero |
string |
|
headlineEmphasis OptionalMasterclassHero |
string |
|
lead OptionalMasterclassHero |
string |
|
presenterImage OptionalMasterclassHero |
string |
|
presenterAlt OptionalMasterclassHero |
string |
|
hostName OptionalMasterclassHero |
string |
|
hostRole OptionalMasterclassHero |
string |
|
startsAt OptionalMasterclassHero |
string |
|
timeZone OptionalMasterclassHero |
string |
|
timeZoneLabel OptionalMasterclassHero |
string |
|
locale OptionalMasterclassHero |
string |
|
dateText OptionalMasterclassHero |
string |
|
timeText OptionalMasterclassHero |
string |
|
segments OptionalMasterclassHero |
MasterclassSegment[] |
|
price OptionalMasterclassHero |
string |
|
priceReason OptionalMasterclassHero |
string |
|
replayNote OptionalMasterclassHero |
string |
|
seatsNote OptionalMasterclassHero |
string |
|
ps OptionalMasterclassHero |
string |
|
href OptionalMasterclassHero |
string |
|
onAction OptionalMasterclassHero |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalMasterclassHero |
boolean |
|
state OptionalMasterclassHero |
'default' | 'hover' | 'active' | 'disabled' |
|
edgeTone OptionalMasterclassHero |
DividerTone |
|
showEdge OptionalMasterclassHero |
boolean |
|
copy OptionalMasterclassHero |
Partial<MasterclassHeroCopy> |
|
className OptionalMasterclassHero |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter-cutout- The presenter on a transparent background.
-
0d114386aa55e8d2.webp
image/webp · 15.6 KB
-
369bb6f216bb84ab.webp
image/webp · 22.6 KB
-
5602e47ebdb81810.webp
image/webp · 35.6 KB
-
633b3a42cc73dd7f.webp
image/webp · 98.5 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d7814fce240ddf0e.webp
image/webp · 17.6 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB