Instant Demo 3
Founder demo front page: a masthead and the founder's quoted promise, the cut-out founder speaking beside the story,
Use it in a prompt
Use hero/instant-demo-3 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/instant-demo-3.tsx. - Import it and pass your copy and images (Props tab):
import { InstantDemo3 } from "@/components/funneldna/hero/instant-demo-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/instant-demo-3/component.tsx 774 lines
// layout: advertorial-front
// Founder demo front page: a masthead and the founder's quoted promise, the cut-out founder speaking beside the story,
// a demo still that swaps between the full walk-through and the short cut, then the offer strip with one action.
import React, { useId, useRef, useState } from 'react';
import { Check, Clock, Lock, Scissors, Timer } from 'lucide-react';
export type InstantDemo3Version = {
/** Stable id, used for selection and defaultVersion. */
id: string;
/** Toggle label, e.g. 'Full 9-minute demo'. */
label: string;
/** Bold runtime under the still, e.g. '9 minutes'. */
runtime: string;
/** What this version shows, set after the runtime. */
detail?: string;
/** Still from this version of the demo. Slot: scene. */
image?: string;
imageAlt?: string;
/** The page's real video embed for this version; shown instead of the still. */
media?: React.ReactNode;
};
export type InstantDemo3Lead = { lead: string; text: string };
export type InstantDemo3Props = {
/** Name across the top of the front page. */
masthead?: string;
dateline?: string;
/** Advertorial disclosure chip in the masthead. */
disclosure?: string;
/** The founder's promise, set in quotes. */
headline?: string;
/** Phrase inside the headline that gets the marker stroke. */
highlight?: string;
/** Founder cut-out on a transparent background. Slot: presenter-cutout. */
presenterImage?: string;
presenterImageAlt?: string;
/** Short paragraphs in the speech block, each opening with a bold lead-in. */
leads?: InstantDemo3Lead[];
presenterName?: string;
presenterRole?: string;
/** Demo lengths the toggle switches between. */
versions?: InstantDemo3Version[];
/** Version id selected on first render. */
defaultVersion?: string;
/** Accessible name of the length toggle. */
toggleLabel?: string;
price?: string;
regularPrice?: string;
/** The saving carried on the coupon, e.g. '$40'. */
saving?: string;
/** Coupon text. Placeholders: {saving}, {regular}. */
couponLine?: string;
todayLabel?: string;
boxHeading?: string;
/** What ships in the box. */
boxItems?: string[];
buttonLabel?: string;
/** Checkout destination; without it the button only calls onAction. */
href?: string;
/** One short line under the button. */
reassurance?: string;
onAction?: () => void;
onVersionChange?: (version: InstantDemo3Version) => void;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
const P = 'cf-instant-demo-3';
const DEFAULT_LEADS: InstantDemo3Lead[] = [
{ lead: 'Watch it work before you decide.', text: 'Every step is on camera, from the box to the first result on your counter.' },
{ lead: 'No guesswork on setup.', text: 'You see where it plugs in, what goes inside and how long each step takes.' },
{ lead: 'Pick the length that suits you.', text: 'Watch the full walk-through, or the quick version if you only want the result.' },
];
const DEFAULT_VERSIONS: InstantDemo3Version[] = [
{ id: 'full', label: 'Full demo', runtime: 'Full walk-through', detail: 'every step, start to finish' },
{ id: 'short', label: 'Quick version', runtime: 'Quick version', detail: 'just the finished result' },
];
export function InstantDemo3(props: InstantDemo3Props) {
const {
masthead = 'The Demo Desk',
dateline = 'A founder walk-through',
disclosure = 'Advertisement',
headline = 'Give me a few minutes and I’ll show it working right in front of you',
highlight = 'show it working',
presenterImage,
presenterImageAlt = 'The founder',
leads = DEFAULT_LEADS,
presenterName = '',
presenterRole = '',
versions = DEFAULT_VERSIONS,
defaultVersion,
toggleLabel = 'Choose the length of the demo',
price = '',
regularPrice = '',
saving = '',
couponLine = 'Clip {saving} off the {regular} list price',
todayLabel = 'Your price today',
boxHeading = 'Everything you need ships in the box',
boxItems = [],
buttonLabel = 'Yes! Send Me Mine',
href,
reassurance = 'Secure checkout',
onAction,
onVersionChange,
state = 'default',
className,
} = props;
const uid = useId();
const headId = `${uid}-h`;
const runId = `${uid}-run`;
const disabled = state === 'disabled';
const segRefs = useRef<Array<HTMLButtonElement | null>>([]);
const [selected, setSelected] = useState<string | undefined>(() =>
defaultVersion && versions.some((v) => v.id === defaultVersion) ? defaultVersion : versions[0]?.id
);
const current = versions.find((v) => v.id === selected) ?? versions[0];
const hasFace = !!presenterImage;
const hasStills = versions.some((v) => !!v.image);
function choose(i: number, focus?: boolean) {
if (disabled) return;
const v = versions[i];
if (!v) return;
setSelected(v.id);
onVersionChange?.(v);
if (focus) segRefs.current[i]?.focus();
}
function onKey(e: React.KeyboardEvent<HTMLButtonElement>, i: number) {
const n = versions.length;
let next = -1;
if (e.key === 'ArrowRight' || e.key === 'ArrowDown') next = (i + 1) % n;
else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') next = (i - 1 + n) % n;
else if (e.key === 'Home') next = 0;
else if (e.key === 'End') next = n - 1;
if (next < 0) return;
e.preventDefault();
choose(next, true);
}
const stateCls = (state === 'hover' ? ' is-hover' : '') + (state === 'active' ? ' is-active' : '');
const renderAction = () => (
<>
{href && !disabled ? (
<a className={'cf-instant-demo-3__cta' + stateCls} href={href} onClick={() => onAction?.()}>
{buttonLabel}
</a>
) : (
<button type='button' className={'cf-instant-demo-3__cta' + stateCls} disabled={disabled} onClick={() => onAction?.()}>
{buttonLabel}
</button>
)}
{reassurance ? (
<p className={`${P}__note`}>
<Lock className={`${P}__noteIcon`} size={16} strokeWidth={2.5} aria-hidden />
{reassurance}
</p>
) : null}
</>
);
return (
<section className={`${P}${hasFace ? '' : ' is-noface'}${className ? ' ' + className : ''}`} aria-labelledby={headId}>
<style>{CSS}</style>
<div className={`${P}__wrap`}>
<div className={`${P}__grid`}>
<header className={`${P}__mast ${P}__rv`} style={rv(0)}>
<p className={`${P}__masthead`}>{masthead}</p>
<div className={`${P}__meta`}>
{dateline ? <p className={`${P}__dateline`}>{dateline}</p> : null}
{disclosure ? <span className={`${P}__disclosure`}>{disclosure}</span> : null}
</div>
</header>
<h1 id={headId} className={`${P}__h ${P}__rv`} style={rv(1)}>
<span className={`${P}__q`} aria-hidden>“</span>
{renderHeadline(headline, highlight, `${P}__mark`)}
<span className={`${P}__q`} aria-hidden>”</span>
</h1>
{hasFace ? (
<div className={`${P}__face ${P}__rv`} style={rv(2)}>
<img className={`${P}__cutout`} src={presenterImage} alt={presenterImageAlt} />
</div>
) : null}
{leads.length || presenterName ? (
<div className={`${P}__speech ${P}__rv`} style={rv(3)}>
{leads.map((l, i) => (
<p key={i} className={`${P}__lead`}>
<strong>{l.lead}</strong> {l.text}
</p>
))}
{presenterName || presenterRole ? (
<p className={`${P}__sign`}>
{presenterName ? <span className={`${P}__signName`}>{presenterName}</span> : null}
{presenterRole ? <span className={`${P}__signRole`}>{presenterRole}</span> : null}
</p>
) : null}
</div>
) : null}
{current ? (
<div className={`${P}__photo ${P}__rv`} style={rv(3)}>
{versions.length > 1 ? (
<div
role='radiogroup'
aria-label={toggleLabel}
className={`${P}__toggle`}
style={{ gridTemplateColumns: `repeat(${versions.length}, minmax(0, 1fr))` }}
>
{versions.map((v, i) => {
const on = v.id === current.id;
const Icon = i === 0 ? Clock : Timer;
return (
<button
key={v.id}
ref={(el) => {
segRefs.current[i] = el;
}}
type='button'
role='radio'
aria-checked={on}
aria-controls={runId}
tabIndex={on ? 0 : -1}
disabled={disabled}
className={'cf-instant-demo-3__seg' + (on ? ' is-on' : '')}
onClick={() => choose(i)}
onKeyDown={(e) => onKey(e, i)}
>
<span className={`${P}__segText`}>
<Icon className={`${P}__segIcon`} size={18} strokeWidth={2.5} aria-hidden />
{keepHyphen(v.label)}
</span>
</button>
);
})}
</div>
) : null}
{current.media ? (
<div className={`${P}__media`}>{current.media}</div>
) : hasStills ? (
<div className={`${P}__frame`}>
{versions.map((v) =>
v.image ? (
<img
key={v.id}
className={`${P}__still${v.id === current.id ? ' is-on' : ''}`}
src={v.image}
alt={v.id === current.id ? (v.imageAlt ?? '') : ''}
aria-hidden={v.id === current.id ? undefined : true}
/>
) : null
)}
</div>
) : null}
<p id={runId} className={`${P}__runtime`} aria-live='polite'>
<Clock className={`${P}__rtIcon`} size={18} strokeWidth={2.5} aria-hidden />
<strong>{current.runtime}</strong>
{current.detail ? ` · ${current.detail}` : null}
</p>
</div>
) : null}
<div className={`${P}__offer ${P}__rv`} style={rv(4)}>
{price ? (
<div className={`${P}__deal`}>
{saving && regularPrice && couponLine ? (
<p className={`${P}__coupon`}>
<Scissors className={`${P}__scissors`} size={16} strokeWidth={2.5} aria-hidden />
{fill(couponLine, { saving: <strong>{saving}</strong>, regular: regularPrice })}
</p>
) : null}
<p className={`${P}__today`}>
{todayLabel ? <span className={`${P}__todayLabel`}>{todayLabel}</span> : null}
<span className={`${P}__price`}>{price}</span>
</p>
</div>
) : null}
{boxItems.length ? (
<div className={`${P}__box`}>
{boxHeading ? <h2 className={`${P}__boxH`}>{boxHeading}</h2> : null}
<ul className={`${P}__items`}>
{boxItems.map((item, i) => (
<li key={i} className={`${P}__item`}>
<Check className={`${P}__itemIcon`} size={16} strokeWidth={2.5} aria-hidden />
{item}
</li>
))}
</ul>
</div>
) : null}
<div className={`${P}__act`}>{renderAction()}</div>
</div>
</div>
</div>
</section>
);
}
export default InstantDemo3;
function rv(i: number): React.CSSProperties {
return { animationDelay: `${Math.min(i * 0.07, 0.28)}s` };
}
/** Keeps compounds like '9-minute' together so a toggle label never breaks after its hyphen. */
function keepHyphen(label: string): string {
return label.replace(/(\S)-(\S)/g, '$1\u2011$2');
}
function renderHeadline(text: string, phrase: string | undefined, cls: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className={cls}>{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
function fill(template: string, values: Record<string, React.ReactNode>): React.ReactNode[] {
const out: React.ReactNode[] = [];
let rest = template;
let k = 0;
while (rest.length) {
const open = rest.indexOf('{');
const close = open >= 0 ? rest.indexOf('}', open) : -1;
if (open < 0 || close < 0) {
out.push(rest);
break;
}
const key = rest.slice(open + 1, close);
out.push(rest.slice(0, open));
out.push(key in values ? <React.Fragment key={k++}>{values[key]}</React.Fragment> : rest.slice(open, close + 1));
rest = rest.slice(close + 1);
}
return out;
}
const CSS = `
.cf-instant-demo-3 {
position: relative;
background: var(--surface, #ffffff);
color: var(--ink, #1b2333);
font-family: var(--font-body, system-ui, sans-serif);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
overflow-x: clip;
}
.cf-instant-demo-3 *, .cf-instant-demo-3 *::before, .cf-instant-demo-3 *::after { box-sizing: border-box; }
.cf-instant-demo-3__wrap { max-width: 1120px; margin: 0 auto; }
.cf-instant-demo-3__grid {
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-areas: 'mast' 'head' 'face' 'speech' 'photo' 'offer';
gap: clamp(24px, 3vw, 40px) clamp(24px, 3.2vw, 48px);
}
.cf-instant-demo-3.is-noface .cf-instant-demo-3__grid { grid-template-areas: 'mast' 'head' 'speech' 'photo' 'offer'; }
.cf-instant-demo-3__mast {
grid-area: mast;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px 24px;
padding-bottom: 16px;
border-bottom: 3px double oklch(from var(--ink, #1b2333) l c h / 0.3);
}
.cf-instant-demo-3__masthead {
margin: 0;
font-family: var(--font-display, inherit);
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;
color: var(--ink, #1b2333);
}
.cf-instant-demo-3__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cf-instant-demo-3__dateline { margin: 0; font-size: 0.9375rem; line-height: 1.4; font-weight: 600; color: var(--muted, #556070); }
.cf-instant-demo-3__disclosure {
display: inline-flex;
align-items: center;
min-height: 28px;
padding: 4px 12px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink, #1b2333) 6%, var(--surface, #ffffff));
color: var(--ink, #1b2333);
font-size: 0.875rem;
line-height: 1.2;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.cf-instant-demo-3__h {
grid-area: head;
margin: 0;
font-family: var(--font-display, inherit);
font-weight: var(--display-weight, 800);
letter-spacing: var(--display-tracking, -0.025em);
text-transform: var(--display-case, none);
font-size: clamp(2.5rem, 5.4vw, 4.875rem);
line-height: 1.04;
text-wrap: balance;
color: var(--ink, #1b2333);
}
.cf-instant-demo-3__q { color: var(--accent, #2c5fc4); }
.cf-instant-demo-3__mark {
--cf-id3-marker: color-mix(in oklch, var(--marker, #fae37c) 80%, transparent);
background-image: linear-gradient(var(--cf-id3-marker), var(--cf-id3-marker));
background-repeat: no-repeat;
background-size: 100% 0.42em;
background-position: 0 88%;
padding: 0 0.08em;
margin: 0 -0.04em;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.cf-instant-demo-3__face {
grid-area: face;
position: relative;
display: flex;
justify-content: center;
align-items: flex-start;
height: 264px;
padding: 16px 12px 0;
overflow: hidden;
border-radius: var(--card-radius, var(--radius, 14px));
background: color-mix(in oklch, var(--ink, #1b2333) 5%, var(--surface, #ffffff));
}
.cf-instant-demo-3__cutout {
position: relative;
z-index: 1;
display: block;
flex: 0 0 auto;
width: min(100%, 340px);
height: auto;
aspect-ratio: 1 / 1;
object-fit: cover;
object-position: center top;
filter: drop-shadow(0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.28)) drop-shadow(0 12px 16px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.2));
}
.cf-instant-demo-3__speech {
grid-area: speech;
align-self: start;
position: relative;
background: var(--card, #ffffff);
color: var(--ink, #1b2333);
border: 1px solid var(--card-border, oklch(from var(--ink, #1b2333) l c h / 0.12));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)));
padding: clamp(20px, 3vw, 32px);
}
.cf-instant-demo-3__speech::before {
content: '';
position: absolute;
top: -10px;
left: 50%;
width: 18px;
height: 18px;
margin-left: -9px;
background: var(--card, #ffffff);
border-top: 1px solid var(--card-border, oklch(from var(--ink, #1b2333) l c h / 0.12));
border-left: 1px solid var(--card-border, oklch(from var(--ink, #1b2333) l c h / 0.12));
transform: rotate(45deg);
}
.cf-instant-demo-3.is-noface .cf-instant-demo-3__speech::before { display: none; }
.cf-instant-demo-3__lead {
margin: 0;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
text-wrap: pretty;
color: var(--ink, #1b2333);
}
.cf-instant-demo-3__lead + .cf-instant-demo-3__lead { margin-top: 16px; }
.cf-instant-demo-3__lead strong { font-weight: 700; }
.cf-instant-demo-3__sign { margin: 24px 0 0; display: flex; flex-direction: column; gap: 4px; }
.cf-instant-demo-3__signName {
font-family: var(--font-display, inherit);
font-weight: var(--display-weight, 800);
font-size: 1.0625rem;
line-height: 1.2;
color: var(--ink, #1b2333);
}
.cf-instant-demo-3__signRole { font-size: 0.9375rem; line-height: 1.4; font-weight: 500; color: var(--muted, #556070); }
.cf-instant-demo-3__photo { grid-area: photo; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cf-instant-demo-3__toggle {
display: grid;
gap: 4px;
padding: 4px;
border-radius: calc(var(--button-radius, var(--radius, 12px)) + 4px);
background: color-mix(in oklch, var(--ink, #1b2333) 6%, var(--surface, #ffffff));
}
.cf-instant-demo-3__seg {
appearance: none;
border: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
min-height: 52px;
padding: 8px 10px;
border-radius: var(--button-radius, var(--radius, 12px));
background: transparent;
color: var(--muted, #556070);
font-family: var(--font-body, inherit);
font-size: 1rem;
font-weight: 700;
line-height: 1.25;
cursor: pointer;
transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.cf-instant-demo-3__segText { min-width: 0; text-align: center; text-wrap: balance; }
.cf-instant-demo-3__seg:hover:not(:disabled):not(.is-on) {
color: var(--button-2-ink, var(--secondary-ink, var(--ink, #1b2333)));
background: color-mix(in oklch, var(--button-2-bg, var(--secondary, #e7eaf0)) 70%, transparent);
}
.cf-instant-demo-3__seg.is-on {
background: var(--card, #ffffff);
color: var(--ink, #1b2333);
box-shadow: var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / 0.18), 0 1px 3px oklch(0.22 0.03 260 / 0.14));
}
.cf-instant-demo-3__seg:focus-visible {
outline: 3px solid oklch(from var(--field-focus, var(--accent, #2c5fc4)) l c h / 0.55);
outline-offset: 2px;
}
.cf-instant-demo-3__seg:disabled { cursor: not-allowed; }
.cf-instant-demo-3__segIcon { display: none; vertical-align: -0.15em; margin-inline-end: 0.4em; }
.cf-instant-demo-3__seg.is-on .cf-instant-demo-3__segIcon { color: var(--accent, #2c5fc4); }
.cf-instant-demo-3__frame {
position: relative;
aspect-ratio: 4 / 3;
border-radius: 12px;
overflow: hidden;
background: color-mix(in oklch, var(--ink, #1b2333) 6%, var(--surface, #ffffff));
}
.cf-instant-demo-3__still {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
opacity: 0;
transform: scale(1.02);
transition: opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cf-instant-demo-3__still.is-on { opacity: 1; transform: none; }
.cf-instant-demo-3__media { border-radius: 12px; overflow: hidden; }
.cf-instant-demo-3__runtime {
margin: 0;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
font-weight: 500;
color: var(--muted, #556070);
text-wrap: pretty;
}
.cf-instant-demo-3__runtime strong { color: var(--ink, #1b2333); font-weight: 700; }
.cf-instant-demo-3__rtIcon { display: inline-block; vertical-align: -0.15em; margin-inline-end: 0.4em; color: var(--accent, #2c5fc4); }
.cf-instant-demo-3__offer {
grid-area: offer;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-areas: 'deal' 'box' 'act';
align-items: start;
gap: 28px;
background: var(--card, #ffffff);
color: var(--ink, #1b2333);
border: 1px solid oklch(from var(--accent, #2c5fc4) l c h / 0.32);
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32)));
padding: clamp(24px, 3.4vw, 40px);
}
.cf-instant-demo-3__deal { grid-area: deal; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cf-instant-demo-3__coupon {
margin: 0;
max-width: 100%;
padding: 8px 14px;
border: 1px solid oklch(from var(--ink, #1b2333) l c h / 0.12);
border-radius: 10px;
background: color-mix(in oklch, var(--ink, #1b2333) 4%, var(--card, #ffffff));
color: var(--ink, #1b2333);
font-size: 0.9375rem;
line-height: 1.4;
font-weight: 600;
text-wrap: pretty;
}
.cf-instant-demo-3__coupon strong { font-weight: 800; }
.cf-instant-demo-3__scissors {
display: inline-block;
vertical-align: -0.15em;
margin-inline-end: 0.4em;
color: var(--muted, #556070);
}
.cf-instant-demo-3__today { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.cf-instant-demo-3__todayLabel { font-size: 0.9375rem; line-height: 1.4; font-weight: 600; color: var(--muted, #556070); }
.cf-instant-demo-3__price {
font-family: var(--font-display, inherit);
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, #1b2333);
}
.cf-instant-demo-3__box { grid-area: box; min-width: 0; }
.cf-instant-demo-3__boxH {
margin: 0 0 16px;
font-family: var(--font-display, inherit);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15;
letter-spacing: -0.01em;
text-wrap: balance;
color: var(--ink, #1b2333);
}
.cf-instant-demo-3__items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-instant-demo-3__item {
display: inline-flex;
align-items: center;
gap: 8px;
max-width: 100%;
min-height: 32px;
padding: 4px 12px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink, #1b2333) 6%, var(--card, #ffffff));
color: var(--ink, #1b2333);
font-size: 0.9375rem;
line-height: 1.3;
font-weight: 600;
}
.cf-instant-demo-3__itemIcon { flex: 0 0 auto; color: var(--success, #2f7d4f); }
.cf-instant-demo-3__act { grid-area: act; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cf-instant-demo-3__cta {
appearance: none;
border: 0;
margin: 0;
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 72px;
padding: 12px 28px;
border-radius: var(--button-radius, var(--radius, 12px));
font-family: var(--button-font, var(--font-display, inherit));
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;
color: var(--button-ink, var(--cta-ink, #ffffff));
text-shadow: var(--button-text-shadow, none);
background: linear-gradient(oklch(from var(--button-bg, var(--cta, #d8402f)) calc(l + 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2, #b8301f)) calc(l - 0.02) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta, #d8402f)) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta, #d8402f)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.3), 0 8px 16px -6px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.45));
cursor: pointer;
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.cf-instant-demo-3__cta:hover:not(:disabled), .cf-instant-demo-3__cta.is-hover:not(:disabled) {
background: linear-gradient(oklch(from var(--button-bg, var(--cta, #d8402f)) calc(l - 0.01) c h), oklch(from var(--button-bg-2, var(--cta-2, #b8301f)) calc(l - 0.07) c h));
box-shadow: inset 0 1px 0 oklch(from var(--button-bg, var(--cta, #d8402f)) calc(l + 0.1) c h / 0.6), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta, #d8402f)) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.32), 0 10px 18px -6px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.55);
}
.cf-instant-demo-3__cta:active:not(:disabled), .cf-instant-demo-3__cta.is-active:not(:disabled) {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--button-bg, var(--cta, #d8402f)) calc(l - 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2, #b8301f)) calc(l - 0.1) c h));
box-shadow: inset 0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.35), inset 0 -2px 0 oklch(from var(--button-bg, var(--cta, #d8402f)) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.3);
}
.cf-instant-demo-3__cta:focus-visible {
outline: 3px solid oklch(from var(--field-focus, var(--accent, #2c5fc4)) l c h / 0.55);
outline-offset: 3px;
}
.cf-instant-demo-3__cta:disabled {
cursor: not-allowed;
transform: none;
background: var(--button-2-bg, var(--secondary, #e7eaf0));
color: var(--button-2-ink, var(--secondary-ink, #1b2333));
text-shadow: none;
box-shadow: var(--button-2-shadow, var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / 0.18), 0 1px 3px oklch(0.22 0.03 260 / 0.14)));
}
.cf-instant-demo-3__note {
margin: 0;
text-align: center;
font-size: 0.9375rem;
line-height: 1.4;
font-weight: 500;
color: var(--muted, #556070);
text-wrap: pretty;
}
.cf-instant-demo-3__noteIcon { display: inline-block; vertical-align: -0.15em; margin-inline-end: 0.4em; color: var(--success, #2f7d4f); }
@keyframes cf-instant-demo-3-rise {
from { opacity: 0.82; transform: translateY(8px); }
to { opacity: 1; transform: none; }
}
.cf-instant-demo-3__rv { animation: cf-instant-demo-3-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@media (min-width: 420px) {
.cf-instant-demo-3__segIcon { display: inline-block; }
}
@media (max-width: 639.98px) {
.cf-instant-demo-3__cta { min-height: 64px; }
}
@media (min-width: 640px) {
.cf-instant-demo-3__grid {
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
grid-template-areas: 'mast mast' 'head head' 'face speech' 'photo photo' 'offer offer';
}
.cf-instant-demo-3.is-noface .cf-instant-demo-3__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'mast' 'head' 'speech' 'photo' 'offer'; }
.cf-instant-demo-3__face { height: auto; min-height: 320px; align-items: flex-end; padding: 24px 12px 0; }
.cf-instant-demo-3__cutout { width: 100%; max-width: 380px; object-fit: contain; object-position: center bottom; }
.cf-instant-demo-3__act { max-width: 480px; }
.cf-instant-demo-3__speech::before {
top: 46%;
left: -10px;
margin-left: 0;
border-top: 0;
border-bottom: 1px solid var(--card-border, oklch(from var(--ink, #1b2333) l c h / 0.12));
}
}
@media (min-width: 960px) {
.cf-instant-demo-3__grid {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
grid-template-areas: 'mast mast mast' 'head head head' 'face speech photo' 'offer offer offer';
}
.cf-instant-demo-3.is-noface .cf-instant-demo-3__grid {
grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
grid-template-areas: 'mast mast' 'head head' 'speech photo' 'offer offer';
}
}
@media (min-width: 1024px) {
.cf-instant-demo-3__offer {
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
grid-template-areas: 'deal box' 'act box';
gap: 28px clamp(32px, 4vw, 56px);
}
.cf-instant-demo-3__act { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
.cf-instant-demo-3__rv { animation: none; }
.cf-instant-demo-3__still, .cf-instant-demo-3__seg, .cf-instant-demo-3__cta { transition: none; }
.cf-instant-demo-3__still { transform: none; }
.cf-instant-demo-3__cta:active:not(:disabled), .cf-instant-demo-3__cta.is-active:not(:disabled) { transform: none; }
}
`;
pieces/hero/instant-demo-3/specimen.tsx 74 lines
import __studioImagedc6d17ec from "../assets/a761f34015ba07cc.webp";
import __studioImage02d1db0a from "../assets/a8ce0efee246b3ba.webp";
import __studioImaged43ae824 from "../assets/56ed24a7851e6072.webp";
import React from 'react';
import { InstantDemo3 } from '../instant-demo-3';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
const FOUNDER = __studioImagedc6d17ec;
const DEMO_FULL = __studioImage02d1db0a;
const DEMO_SHORT = __studioImaged43ae824;
export const states = ['default', 'hover', 'active', 'disabled'];
export default function InstantDemo3Specimen({ state }: { state?: 'default' | 'hover' | 'active' | 'disabled' }) {
return (
<InstantDemo3
masthead='Brineworks Kitchen Notes'
dateline='From the founder’s test kitchen'
disclosure='Advertisement'
headline='Give me nine minutes and I’ll smoke a salmon fillet in front of you'
highlight='smoke a salmon fillet'
presenterImage={slot('presenter-cutout', FOUNDER)}
presenterImageAlt='Mara Lindqvist, founder of Brineworks, presenting the demo'
leads={[
{
lead: 'Watch it work before you buy.',
text: 'A raw fillet goes on the rack, the glass lid comes down, and you see the cold smoke roll in real time.',
},
{ lead: 'No backyard, no propane.', text: 'Brineworks sits on your counter beside the kettle and plugs into the wall.' },
{
lead: 'Pick the length that suits you.',
text: 'Watch every step in the full walk-through, or the 60-second version if you just want the first slice.',
},
]}
presenterName='Mara Lindqvist'
presenterRole='Founder, Brineworks'
versions={[
{
id: 'full',
label: 'Full 9-minute demo',
runtime: '9 minutes',
detail: 'raw fillet to first slice, every step on camera',
image: slot('scene', DEMO_FULL),
imageAlt: 'A salmon fillet on the rack inside the Brineworks smoker as cold smoke rolls under the glass lid',
},
{
id: 'short',
label: '60-second version',
runtime: '60 seconds',
detail: 'the lid lift and the first slice',
image: slot('scene', DEMO_SHORT),
imageAlt: 'Cold-smoked salmon sliced thin beside the Brineworks smoker',
},
]}
price='$189'
regularPrice='$229'
saving='$40'
boxHeading='Everything for your first fillet ships in the box'
boxItems={[
'Brineworks countertop smoker',
'Glass smoking lid',
'Stainless fillet rack',
'Two jars of applewood chips',
'Brine & cure starter guide',
]}
buttonLabel='Yes! I Want My Brineworks'
reassurance={`${defaults.sample.guarantee} · Secure checkout`}
state={state}
/>
);
}
| Name | Type | Details |
|---|---|---|
masthead OptionalInstantDemo3 |
string |
|
dateline OptionalInstantDemo3 |
string |
|
disclosure OptionalInstantDemo3 |
string |
|
headline OptionalInstantDemo3 |
string |
|
highlight OptionalInstantDemo3 |
string |
|
presenterImage OptionalInstantDemo3 |
string |
|
presenterImageAlt OptionalInstantDemo3 |
string |
|
leads OptionalInstantDemo3 |
InstantDemo3Lead[] |
|
presenterName OptionalInstantDemo3 |
string |
|
presenterRole OptionalInstantDemo3 |
string |
|
versions OptionalInstantDemo3 |
InstantDemo3Version[] |
|
defaultVersion OptionalInstantDemo3 |
string |
|
toggleLabel OptionalInstantDemo3 |
string |
|
price OptionalInstantDemo3 |
string |
|
regularPrice OptionalInstantDemo3 |
string |
|
saving OptionalInstantDemo3 |
string |
|
couponLine OptionalInstantDemo3 |
string |
|
todayLabel OptionalInstantDemo3 |
string |
|
boxHeading OptionalInstantDemo3 |
string |
|
boxItems OptionalInstantDemo3 |
string[] |
|
buttonLabel OptionalInstantDemo3 |
string |
|
href OptionalInstantDemo3 |
string |
|
reassurance OptionalInstantDemo3 |
string |
|
onAction OptionalInstantDemo3 |
() => void |
|
onVersionChange OptionalInstantDemo3 |
(version: InstantDemo3Version) => void |
|
state OptionalInstantDemo3 |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalInstantDemo3 |
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.
scene- A wide atmosphere photo behind or beside the copy.
-
56ed24a7851e6072.webp
image/webp · 40.7 KB
-
a761f34015ba07cc.webp
image/webp · 92.4 KB
-
a8ce0efee246b3ba.webp
image/webp · 33.9 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB