Stat Fan Hero 1
Stat-fan hero: a supplied result leads as a giant headline, a slim promise strip carries the one action, and a fan of app screens opens from a stack so the visitor sees the product at work.
Use it in a prompt
Use hero/stat-fan-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/stat-fan-hero.tsx. - Import it and pass your copy and images (Props tab):
import { StatFanHero } from "@/components/funneldna/hero/stat-fan-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/stat-fan-hero/component.tsx 609 lines
// layout: hello-strip
// Stat-fan hero: a supplied result leads as a giant headline, a slim promise strip carries the one action, and a fan of app screens opens from a stack so the visitor sees the product at work.
import React from 'react';
import { FX_HOST, Pattern } from '../fx/fx';
export type StatFanScreen = {
/** Screen image src (slot 'product' for the centre phone, 'item-n' for the others); omit it to show a themed lock-screen stand-in */
image?: string;
/** Alt text for the screen image */
alt?: string;
/** Lock-screen clock, e.g. '6:48' */
time?: string;
/** Lock-screen day line */
day?: string;
/** Lock-screen notification title */
noteTitle?: string;
/** Lock-screen notification body */
note?: string;
};
export type StatFanHeroPrice = {
/** Regular price, shown with a red slash */
regular?: string;
/** Today's price */
today: string;
/** One short line under the price */
note?: string;
};
export type StatFanHeroProps = {
/** The big promise. Use a stat only when it is real; the default is a plain promise */
headline?: React.ReactNode;
/** Phrase inside a string headline that gets the marker stroke */
highlight?: string;
/** Source line for a stat headline; renders a footnote mark and the line under the headline */
footnote?: string;
/** Symbol that links the headline to its footnote */
footnoteMark?: string;
/** The promise inside the strip */
subline?: React.ReactNode;
/** Italic aside in the founder's voice */
aside?: string;
price?: StatFanHeroPrice;
label?: string;
/** Benefit line inside the button */
sublabel?: string;
href?: string;
onAction?: () => void;
/** Up to five screens, left to right; the middle one is the hero screen */
screens?: StatFanScreen[];
/** Accessible name for the fan of screens */
fanLabel?: string;
/** Screen-reader labels for the price */
copy?: { regularPrice?: string; todayPrice?: string };
state?: 'default' | 'hover' | 'active';
className?: string;
};
const DEFAULT_SCREENS: StatFanScreen[] = [
{ time: '6:45', day: 'Monday', noteTitle: 'Good morning', note: 'Your plan for today is ready.' },
{ time: '8:10', day: 'Monday', noteTitle: 'Step one', note: 'Done. One more today.' },
{ time: '12:30', day: 'Monday', noteTitle: 'Check-in', note: 'Takes 30 seconds. Tap to log.' },
{ time: '18:20', day: 'Monday', noteTitle: 'Evening review', note: 'See how today went.' },
{ time: '21:40', day: 'Monday', noteTitle: 'Tomorrow', note: 'Your next step is waiting.' },
];
export function StatFanHero(props: StatFanHeroProps) {
const {
headline = 'Watch your progress show up, day after day',
highlight = 'show up',
footnote = '',
footnoteMark = '1',
subline = 'Follow a clear plan, see every win on one screen and get one small next step each morning.',
aside = '',
price,
label = 'Start my free trial',
sublabel = 'Set up in under a minute',
href,
onAction,
screens = DEFAULT_SCREENS,
fanLabel = 'Inside the app',
copy,
state,
className,
} = props;
const headingId = React.useId();
const stageRef = React.useRef<HTMLDivElement>(null);
const forced = state === 'hover' || state === 'active';
const [open, setOpen] = React.useState(forced);
React.useEffect(() => {
if (forced) {
setOpen(true);
return;
}
const el = stageRef.current;
const reduce =
typeof window !== 'undefined' &&
typeof window.matchMedia === 'function' &&
window.matchMedia('(prefers-reduced-motion: reduce)').matches;
if (!el || reduce || typeof IntersectionObserver === 'undefined') {
setOpen(true);
return;
}
const io = new IntersectionObserver(
(entries) => {
if (entries.some((e) => e.isIntersecting)) {
setOpen(true);
io.disconnect();
}
},
{ threshold: 0.2 },
);
io.observe(el);
return () => io.disconnect();
}, [forced]);
const shown = screens.slice(0, 5);
const centre = Math.floor((shown.length - 1) / 2);
const hasNote = Boolean(footnote);
const btnClass = 'sf-btn' + (state === 'hover' ? ' is-hover' : '') + (state === 'active' ? ' is-active' : '');
const btnInner = (
<>
<span className='sf-btn-label'>{label}</span>
{sublabel ? <span className='sf-btn-sub'>{sublabel}</span> : null}
</>
);
return (
<section
className={'cf-stat-fan-hero' + (className ? ' ' + className : '')}
style={FX_HOST}
aria-labelledby={headingId}
>
<Pattern name='rings' fade='edges' />
<div className='sf-head'>
<h1 id={headingId} className='sf-h1'>
{markPhrase(headline, highlight)}
{hasNote ? (
<sup className='sf-sup' aria-hidden='true'>
{footnoteMark}
</sup>
) : null}
</h1>
{hasNote ? (
<p className='sf-foot'>
<sup className='sf-foot-mark'>{footnoteMark}</sup>
{footnote}
</p>
) : null}
</div>
<div className='sf-strip' data-price={price ? 'true' : undefined}>
<div className='sf-copy'>
<p className='sf-sub'>{subline}</p>
{aside ? <p className='sf-aside'>{aside}</p> : null}
</div>
{price ? (
<p className='sf-price'>
{price.regular ? (
<span className='sf-was'>
<span className='sf-sr'>{(copy?.regularPrice ?? 'Regular price') + ' '}</span>
{price.regular}
</span>
) : null}
<span className='sf-now'>
<span className='sf-sr'>{(copy?.todayPrice ?? 'Today') + ' '}</span>
{price.today}
</span>
{price.note ? <span className='sf-price-note'>{price.note}</span> : null}
</p>
) : null}
{href ? (
<a className={btnClass} href={href} onClick={onAction ? () => onAction() : undefined}>
{btnInner}
</a>
) : (
<button type='button' className={btnClass} onClick={onAction ? () => onAction() : undefined}>
{btnInner}
</button>
)}
</div>
<div className='sf-stage' ref={stageRef}>
<ul className='sf-fan' data-open={open ? 'true' : 'false'} aria-label={fanLabel}>
{shown.map((screen, i) => (
<Phone key={i} screen={screen} pos={i - centre} />
))}
</ul>
</div>
<style>{CSS}</style>
</section>
);
}
export default StatFanHero;
function Phone({ screen, pos }: { screen: StatFanScreen; pos: number }) {
const abs = Math.abs(pos);
return (
<li
className='sf-phone'
data-pos={pos}
data-far={abs >= 2 ? 'true' : undefined}
style={vars({ '--pos': pos, '--abs': abs })}
>
<div className='sf-frame'>
<div className='sf-screen'>
{screen.image ? (
<img src={screen.image} alt={screen.alt ?? ''} loading={abs === 0 ? 'eager' : 'lazy'} decoding='async' />
) : (
<div className='sf-lock'>
{screen.time ? <span className='sf-time'>{screen.time}</span> : null}
{screen.day ? <span className='sf-day'>{screen.day}</span> : null}
{screen.noteTitle || screen.note ? (
<span className='sf-note'>
{screen.noteTitle ? <strong className='sf-note-title'>{screen.noteTitle}</strong> : null}
{screen.note ? <span className='sf-note-body'>{screen.note}</span> : null}
</span>
) : null}
</div>
)}
<span className='sf-island' aria-hidden='true' />
</div>
</div>
</li>
);
}
function markPhrase(node: React.ReactNode, phrase?: string): React.ReactNode {
if (typeof node !== 'string' || !phrase) return node;
const at = node.indexOf(phrase);
if (at < 0) return node;
return (
<>
{node.slice(0, at)}
<span className='sf-mark'>{phrase}</span>
{node.slice(at + phrase.length)}
</>
);
}
function vars(v: Record<string, string | number>): React.CSSProperties {
return v as React.CSSProperties;
}
const CSS = `
.cf-stat-fan-hero {
--gutter: clamp(16px, 5vw, 48px);
--w: clamp(176px, 19vw, 248px);
--overlap: -0.04;
--step: calc(var(--w) * 0.92);
--bezel-hi: oklch(from var(--band) 0.25 calc(c * 0.6) h);
--bezel-lo: oklch(from var(--band) 0.15 calc(c * 0.6) h);
--lock-ink: oklch(from var(--band) 0.97 0.01 h);
position: relative;
isolation: isolate;
overflow-x: clip;
background: var(--surface);
color: var(--ink);
font-family: var(--font-body);
padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(64px, 8.5vw, 120px);
}
.cf-stat-fan-hero .sf-head,
.cf-stat-fan-hero .sf-strip,
.cf-stat-fan-hero .sf-stage { position: relative; z-index: 1; }
.cf-stat-fan-hero .sf-head {
max-width: 64rem;
margin: 0 auto;
text-align: center;
animation: sf-rise .45s cubic-bezier(.2,.7,.2,1) both;
}
.cf-stat-fan-hero .sf-h1 {
margin: 0;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
letter-spacing: var(--display-tracking, -0.025em);
font-size: clamp(2.75rem, 6.4vw, 5.5rem);
line-height: 1.04;
color: var(--ink);
text-wrap: balance;
}
.cf-stat-fan-hero .sf-mark {
background-image: linear-gradient(transparent 56%, var(--marker, #fae37c) 56%, var(--marker, #fae37c) 90%, transparent 90%);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
padding: 0 .06em;
border-radius: .08em .22em .12em .26em;
}
.cf-stat-fan-hero .sf-sup {
font-size: .3em;
font-weight: 700;
letter-spacing: 0;
vertical-align: 1.4em;
line-height: 0;
margin-left: .1em;
color: var(--muted);
}
.cf-stat-fan-hero .sf-foot {
margin: 28px auto 0;
max-width: 44rem;
font-size: .9375rem;
line-height: 1.4;
font-weight: 500;
color: var(--muted);
text-wrap: pretty;
}
.cf-stat-fan-hero .sf-foot-mark {
font-size: .75em;
font-weight: 700;
vertical-align: .45em;
line-height: 0;
margin-right: .25em;
}
.cf-stat-fan-hero .sf-strip {
margin: clamp(32px, 4vw, 48px) auto 0;
max-width: 68rem;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 16px clamp(20px, 2.6vw, 32px);
padding: 12px 12px 12px clamp(20px, 2.6vw, 32px);
background: color-mix(in oklch, var(--ink) 4%, var(--surface));
border: 1px solid oklch(from var(--ink) l c h / .1);
border-radius: calc(var(--radius, 12px) + 12px);
animation: sf-rise .45s cubic-bezier(.2,.7,.2,1) .07s both;
}
.cf-stat-fan-hero .sf-strip[data-price] { grid-template-columns: minmax(0, 1fr) auto auto; }
.cf-stat-fan-hero .sf-copy { min-width: 0; }
.cf-stat-fan-hero .sf-sub {
margin: 0;
font-size: clamp(1.125rem, 1.4vw, 1.25rem);
line-height: 1.4;
font-weight: 500;
color: var(--ink);
text-wrap: pretty;
}
.cf-stat-fan-hero .sf-aside {
margin: 4px 0 0;
font-style: italic;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
font-weight: 400;
color: var(--muted);
text-wrap: pretty;
}
.cf-stat-fan-hero .sf-price {
margin: 0;
display: grid;
grid-template-columns: auto auto;
justify-content: start;
align-items: baseline;
column-gap: 12px;
row-gap: 12px;
padding-inline: 4px;
}
.cf-stat-fan-hero .sf-was {
position: relative;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
font-weight: 700;
color: var(--muted);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.cf-stat-fan-hero .sf-was::after {
content: '';
position: absolute;
left: -8%;
right: -8%;
top: 52%;
height: 3px;
border-radius: 3px;
background: var(--danger);
transform: rotate(-12deg);
pointer-events: none;
}
.cf-stat-fan-hero .sf-now {
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: 2rem;
line-height: 1;
letter-spacing: -0.03em;
color: var(--ink);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.cf-stat-fan-hero .sf-price-note {
grid-column: 1 / -1;
font-size: .9375rem;
line-height: 1.4;
font-weight: 600;
color: var(--muted);
white-space: nowrap;
}
.cf-stat-fan-hero .sf-sr {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
.cf-stat-fan-hero .sf-btn {
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
min-height: 72px;
padding: 10px 28px;
border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
font-family: var(--button-font, var(--font-display));
font-weight: var(--button-weight, 800);
text-transform: var(--button-case, none);
color: var(--button-ink, var(--cta-ink));
text-shadow: var(--button-text-shadow, none);
text-decoration: none;
text-align: center;
cursor: pointer;
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l + .04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .02) c h));
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-stat-fan-hero .sf-btn:hover,
.cf-stat-fan-hero .sf-btn.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)) calc(l - .07) c h));
transform: translateY(-1px);
box-shadow: inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + .12) 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 / .32), 0 12px 20px -8px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .55);
}
.cf-stat-fan-hero .sf-btn:active,
.cf-stat-fan-hero .sf-btn.is-active {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - .04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .08) c h));
box-shadow: inset 0 2px 4px oklch(from var(--button-bg, var(--cta)) calc(l - .22) c h / .55), 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-stat-fan-hero .sf-btn:focus-visible {
outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / .55);
outline-offset: 3px;
}
.cf-stat-fan-hero .sf-btn-label {
font-size: clamp(1.125rem, 1.55vw, 1.375rem);
line-height: 1.15;
white-space: nowrap;
}
.cf-stat-fan-hero .sf-btn-sub {
font-family: var(--font-body);
font-size: .9375rem;
line-height: 1.3;
font-weight: 600;
letter-spacing: 0;
text-transform: none;
text-wrap: balance;
}
.cf-stat-fan-hero .sf-stage { margin-top: clamp(40px, 5vw, 64px); }
.cf-stat-fan-hero .sf-fan {
list-style: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: flex-start;
}
.cf-stat-fan-hero .sf-phone {
position: relative;
flex: 0 0 var(--w);
width: var(--w);
margin: 0 calc(var(--w) * var(--overlap));
transform-origin: 50% 90%;
transform: translateY(var(--dy, 0px)) rotate(var(--rot, 0deg)) scale(var(--s, 1));
transition: transform .8s cubic-bezier(.2,.7,.2,1);
transition-delay: calc(var(--abs, 0) * 70ms + 80ms);
}
.cf-stat-fan-hero .sf-phone[data-pos='0'] { z-index: 3; }
.cf-stat-fan-hero .sf-phone[data-pos='-1'] { z-index: 2; --s: .9; --rot: -3deg; --dy: calc(var(--w) * 0.03); }
.cf-stat-fan-hero .sf-phone[data-pos='1'] { z-index: 2; --s: .9; --rot: 3deg; --dy: calc(var(--w) * 0.03); }
.cf-stat-fan-hero .sf-phone[data-pos='-2'] { z-index: 1; --s: .8; --rot: -6deg; --dy: calc(var(--w) * 0.08); }
.cf-stat-fan-hero .sf-phone[data-pos='2'] { z-index: 1; --s: .8; --rot: 6deg; --dy: calc(var(--w) * 0.08); }
.cf-stat-fan-hero .sf-frame {
aspect-ratio: 1 / 2;
padding: calc(var(--w) * 0.03);
border-radius: calc(var(--w) * 0.14);
background: linear-gradient(var(--bezel-hi), var(--bezel-lo));
box-shadow: inset 0 0 0 1px oklch(from var(--band) 0.44 calc(c * 0.6) h / .9), var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / .22), 0 4px 10px -2px oklch(0.22 0.03 260 / .2));
}
.cf-stat-fan-hero .sf-phone[data-pos='0'] .sf-frame {
box-shadow: inset 0 0 0 1px oklch(from var(--band) 0.44 calc(c * 0.6) h / .9), var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / .22), 0 12px 24px -8px oklch(0.22 0.03 260 / .32));
}
.cf-stat-fan-hero .sf-screen {
position: relative;
height: 100%;
overflow: hidden;
border-radius: calc(var(--w) * 0.11);
background: oklch(from var(--band) 0.22 calc(c * 0.9) h);
}
.cf-stat-fan-hero .sf-screen img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 0;
}
.cf-stat-fan-hero .sf-island {
position: absolute;
top: calc(var(--w) * 0.035);
left: 50%;
width: 30%;
height: calc(var(--w) * 0.07);
transform: translateX(-50%);
border-radius: 999px;
background: var(--bezel-lo);
}
.cf-stat-fan-hero .sf-lock {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
padding: calc(var(--w) * 0.22) calc(var(--w) * 0.06) calc(var(--w) * 0.08);
color: var(--lock-ink);
background: radial-gradient(130% 60% at 50% 0%, oklch(from var(--band) 0.42 calc(c * 1.2) h / .6), transparent 70%), oklch(from var(--band) 0.2 calc(c * 0.9) h);
}
.cf-stat-fan-hero .sf-time {
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: calc(var(--w) * 0.2);
line-height: 1;
letter-spacing: -0.03em;
font-variant-numeric: tabular-nums;
}
.cf-stat-fan-hero .sf-day {
margin-top: calc(var(--w) * 0.07);
font-size: max(13px, calc(var(--w) * 0.056));
font-weight: 600;
line-height: 1.3;
}
.cf-stat-fan-hero .sf-note {
margin-top: auto;
width: 100%;
display: grid;
gap: 2px;
padding: calc(var(--w) * 0.05) calc(var(--w) * 0.055);
border-radius: calc(var(--w) * 0.07);
background: oklch(from var(--band) 0.35 calc(c * 0.8) h / .94);
text-align: left;
font-size: max(13px, calc(var(--w) * 0.056));
line-height: 1.3;
}
.cf-stat-fan-hero .sf-note-title { font-weight: 800; }
.cf-stat-fan-hero .sf-note-body { font-weight: 500; text-wrap: pretty; }
@keyframes sf-rise {
from { opacity: .82; transform: translateY(8px); }
}
@media (prefers-reduced-motion: no-preference) {
.cf-stat-fan-hero .sf-fan[data-open='false'] .sf-phone {
transform: translateX(calc(var(--pos) * -1 * var(--step))) translateY(calc(var(--w) * 0.05)) scale(.94);
transition-delay: 0s;
}
}
@media (prefers-reduced-motion: reduce) {
.cf-stat-fan-hero .sf-head,
.cf-stat-fan-hero .sf-strip { animation: none; }
.cf-stat-fan-hero .sf-phone,
.cf-stat-fan-hero .sf-btn { transition: none; }
}
@media (max-width: 959px) {
.cf-stat-fan-hero .sf-strip,
.cf-stat-fan-hero .sf-strip[data-price] {
grid-template-columns: minmax(0, 1fr);
justify-items: center;
text-align: center;
max-width: 36rem;
padding: 20px;
gap: 16px;
}
.cf-stat-fan-hero .sf-price { justify-content: center; }
.cf-stat-fan-hero .sf-price-note { white-space: normal; }
.cf-stat-fan-hero .sf-btn { width: 100%; }
}
@media (max-width: 639px) {
.cf-stat-fan-hero {
--w: min(54vw, 212px);
--overlap: -0.11;
--step: calc(var(--w) * 0.78);
}
.cf-stat-fan-hero .sf-strip,
.cf-stat-fan-hero .sf-strip[data-price] { padding: 20px 16px 16px; }
.cf-stat-fan-hero .sf-btn { padding: 12px 16px; }
.cf-stat-fan-hero .sf-phone[data-far] { display: none; }
.cf-stat-fan-hero .sf-phone[data-pos='-1'] { --s: .86; --rot: -4deg; }
.cf-stat-fan-hero .sf-phone[data-pos='1'] { --s: .86; --rot: 4deg; }
}
`;
pieces/hero/stat-fan-hero/specimen.tsx 61 lines
import __studioImage74e5c686 from "../assets/de9458173b466cda.webp";
import __studioImage32a5fcf3 from "../assets/060c86b2c05b7706.webp";
import __studioImage2d17764d from "../assets/08550a931ad85e2b.webp";
// Specimen: Restwell, a fictional sleep-coaching app on a free trial, leading with a clearly fictional member stat and its source.
import React from 'react';
import { StatFanHero } from '../stat-fan-hero';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active'];
export default function StatFanHeroSpecimen({ state }: { state?: 'default' | 'hover' | 'active' }) {
return (
<StatFanHero
state={state}
headline='86% of members sleep better within a month'
highlight='sleep better'
footnote='Restwell member check-in survey of 1,240 members after 30 nights of coaching. Individual results vary.'
subline='Restwell coaches your evening, reads your night and hands you one small fix each morning.'
aside='(Yes, even if you’ve tried every sleep app already.)'
price={{ regular: '$12/mo', today: '$0', note: 'for your first 14 nights' }}
label='Start my 14 free nights'
sublabel='No charge today · cancel anytime'
fanLabel='Inside the Restwell app'
screens={[
{
time: '10:15',
day: 'Tuesday',
noteTitle: 'Restwell',
note: 'Wind-down starts now. Lights low, phone away.',
},
{
image: slot(
'item-1',
__studioImage74e5c686,
),
alt: 'Restwell sleep-stages chart for last night',
},
{
image: slot(
'product',
__studioImage32a5fcf3,
),
alt: 'Restwell home screen with last night’s sleep score',
},
{
image: slot(
'item-2',
__studioImage2d17764d,
),
alt: 'Restwell wind-down plan for tonight',
},
{
time: '6:48',
day: 'Wednesday',
noteTitle: 'Restwell',
note: 'Morning. One small fix for tonight is ready.',
},
]}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalStatFanHero |
React.ReactNode |
|
highlight OptionalStatFanHero |
string |
|
footnote OptionalStatFanHero |
string |
|
footnoteMark OptionalStatFanHero |
string |
|
subline OptionalStatFanHero |
React.ReactNode |
|
aside OptionalStatFanHero |
string |
|
price OptionalStatFanHero |
StatFanHeroPrice |
|
label OptionalStatFanHero |
string |
|
sublabel OptionalStatFanHero |
string |
|
href OptionalStatFanHero |
string |
|
onAction OptionalStatFanHero |
() => void |
|
screens OptionalStatFanHero |
StatFanScreen[] |
|
fanLabel OptionalStatFanHero |
string |
|
copy OptionalStatFanHero |
{ regularPrice?: string; todayPrice?: string } |
|
state OptionalStatFanHero |
'default' | 'hover' | 'active' |
|
className OptionalStatFanHero |
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.
--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.
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.
product- The main product shot or cover (ebook, kit, bottle).
-
060c86b2c05b7706.webp
image/webp · 30.8 KB
-
08550a931ad85e2b.webp
image/webp · 36.1 KB
-
de9458173b466cda.webp
image/webp · 20.8 KB