Quiz Result Hero 1
Quiz result hero: a bento first screen that names the visitor’s result, diagnoses the one thing holding that type
Use it in a prompt
Use hero/quiz-result-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/quiz-result-hero.tsx. - Import it and pass your copy and images (Props tab):
import { QuizResultHero } from "@/components/funneldna/hero/quiz-result-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/quiz-result-hero/component.tsx 397 lines
// layout: bento-grid
// Quiz result hero: a bento first screen that names the visitor’s result, diagnoses the one thing holding that type
// back, confirms the full report is on its way and from whom, then prescribes the matched next step behind one action.
import * as React from 'react';
import { Check, Mail, RotateCcw, ShieldCheck, TriangleAlert } from 'lucide-react';
import { Backdrop, Divider, FX_HOST } from '../fx/fx';
import home from '../fx/backdrops/home';
export type QuizResultTrait = {
title: React.ReactNode;
// One short line that backs the trait up.
detail?: React.ReactNode;
};
export type QuizResultHeroProps = {
// The result name in display type; focused and announced for screen readers on arrival.
resultTitle?: string;
// A phrase inside resultTitle set in the accent colour (usually the type name).
resultHighlight?: string;
// Read before the result name by screen readers only.
resultAnnounce?: string;
// Two plain lines explaining the result.
resultSummary?: React.ReactNode;
// Illustration of the result archetype (image slot: scene).
resultImage?: string;
resultImageAlt?: string;
traitsTitle?: React.ReactNode;
// Top traits for this result; the tile hides when empty.
traits?: QuizResultTrait[];
holdbackTitle?: React.ReactNode;
// The one thing holding this result type back; the tile hides when empty.
holdback?: React.ReactNode;
// Heading of the report tile; the tile hides when empty.
inboxTitle?: React.ReactNode;
// Who the report email comes from; the line hides when empty.
sender?: string;
// Template for the sender line; {sender} is replaced with the sender in bold.
fromTemplate?: string;
// Subject line of the report email; hides when empty.
subject?: string;
subjectLabel?: string;
inboxNote?: React.ReactNode;
// The recommended next step, matched to the result.
offerTitle?: React.ReactNode;
offerBody?: React.ReactNode;
// Italic aside in the author’s voice.
offerAside?: React.ReactNode;
// Product or training cover (image slot: product), transparent background.
offerImage?: string;
offerImageAlt?: string;
// Plain instruction that ends the copy, right above the button.
instruction?: React.ReactNode;
actionLabel?: string;
// Second line of the button, e.g. the supplied price.
actionPrice?: string;
// One reassurance line under the button (supplied facts only).
reassurance?: React.ReactNode;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled?: boolean;
state?: 'default' | 'hover' | 'active' | 'disabled';
retakeLabel?: string;
retakeHref?: string;
onRetake?: (event: React.MouseEvent<HTMLElement>) => void;
// Backdrop photo behind the band (an fx backdrop asset); a page scene image replaces it.
backdropImage?: string;
// Move focus to the result name on arrival so screen readers announce it.
focusResultOnMount?: boolean;
className?: string;
};
export function QuizResultHero(props: QuizResultHeroProps) {
const {
resultTitle = 'Your result is ready',
resultHighlight,
resultAnnounce = 'Your quiz result:',
resultSummary = 'Here’s what your answers say about you, and the one next step that fits you best.',
resultImage,
resultImageAlt = '',
traitsTitle = 'What you already do well',
traits = [],
holdbackTitle = 'The one thing holding you back',
holdback,
inboxTitle = 'Your full report is in your inbox',
sender = '',
fromTemplate = 'From {sender}',
subject = '',
subjectLabel = 'Subject:',
inboxNote = 'Not there yet? Check your promotions or spam folder.',
offerTitle = 'Your recommended next step',
offerBody,
offerAside,
offerImage,
offerImageAlt = '',
instruction = 'Click the button below to get instant access.',
actionLabel = 'Order now',
actionPrice = '',
reassurance,
href,
onAction,
disabled = false,
state = 'default',
retakeLabel = 'Retake the quiz',
retakeHref,
onRetake,
backdropImage = home,
focusResultOnMount = true,
className,
} = props;
const uid = React.useId();
const titleId = uid + '-result';
const rootRef = React.useRef<HTMLElement>(null);
const titleRef = React.useRef<HTMLHeadingElement>(null);
const [seen, setSeen] = React.useState(false);
// Tiles reveal once, in reading order, the first time the band is on screen.
React.useEffect(() => {
const el = rootRef.current;
if (!el || typeof IntersectionObserver === 'undefined') {
setSeen(true);
return;
}
const io = new IntersectionObserver(
(entries) => {
if (entries.some((e) => e.isIntersecting)) {
setSeen(true);
io.disconnect();
}
},
{ threshold: 0.1 },
);
io.observe(el);
return () => io.disconnect();
}, []);
React.useEffect(() => {
if (focusResultOnMount) titleRef.current?.focus({ preventScroll: true });
}, [focusResultOnMount]);
const hasTraits = traits.length > 0;
const hasHoldback = holdback != null && holdback !== '';
const hasInbox = inboxTitle != null && inboxTitle !== '';
const hasSide = hasTraits || hasHoldback || hasInbox;
const isDisabled = disabled || state === 'disabled';
const dataState = state === 'hover' || state === 'active' ? state : undefined;
let order = 0;
const reveal = () => ({ '--qrh-delay': Math.min(order++ * 0.07, 0.28) + 's' }) as React.CSSProperties;
const fromParts = fromTemplate.split('{sender}');
const fromLine = fromParts.map((part, i) => (
<React.Fragment key={i}>
{i > 0 ? <strong>{sender}</strong> : null}
{part}
</React.Fragment>
));
const btnInner = (
<>
<span className='cf-qrh__btn-label'>{actionLabel}</span>
{actionPrice ? <span className='cf-qrh__btn-sub'>{actionPrice}</span> : null}
</>
);
const action = isDisabled ? (
<button type='button' className='cf-qrh__btn' disabled aria-disabled='true'>
{btnInner}
</button>
) : href ? (
<a className='cf-qrh__btn' href={href} data-state={dataState} onClick={onAction}>
{btnInner}
</a>
) : (
<button type='button' className='cf-qrh__btn' data-state={dataState} onClick={onAction}>
{btnInner}
</button>
);
const retakeInner = (
<>
<RotateCcw className='cf-qrh__inline' size={16} strokeWidth={2.5} aria-hidden='true' />
{retakeLabel}
</>
);
const retake = retakeLabel ? (
retakeHref ? (
<a className='cf-qrh__retake' href={retakeHref} onClick={onRetake}>
{retakeInner}
</a>
) : (
<button type='button' className='cf-qrh__retake' onClick={onRetake}>
{retakeInner}
</button>
)
) : null;
return (
<section
ref={rootRef}
className={['cf-qrh', seen ? 'is-seen' : '', className].filter(Boolean).join(' ')}
style={FX_HOST}
aria-labelledby={titleId}
>
<style>{CSS}</style>
<Backdrop src={backdropImage} treatment='scrim-dark' />
<div className='cf-qrh__wrap'>
<div className={'cf-qrh__grid' + (hasSide ? '' : ' cf-qrh__grid--solo')}>
<div className={'cf-qrh__tile cf-qrh__result' + (resultImage ? '' : ' cf-qrh__result--noart')} style={reveal()}>
<div className='cf-qrh__result-copy'>
<h1 id={titleId} ref={titleRef} tabIndex={-1} className='cf-qrh__title'>
<span className='cf-qrh__sr'>{resultAnnounce} </span>
{emphasise(resultTitle, resultHighlight)}
</h1>
{resultSummary ? <p className='cf-qrh__summary'>{resultSummary}</p> : null}
</div>
{resultImage ? (
<div className='cf-qrh__art'>
<img src={resultImage} alt={resultImageAlt} width={720} height={720} loading='eager' decoding='async' />
</div>
) : null}
</div>
{hasSide ? (
<div className='cf-qrh__side'>
{hasTraits ? (
<div className='cf-qrh__tile' style={reveal()}>
<h2 className='cf-qrh__h'>{traitsTitle}</h2>
<ul className='cf-qrh__traits'>
{traits.map((t, i) => (
<li key={i} className='cf-qrh__trait'>
<span className='cf-qrh__badge' aria-hidden='true'>
<Check size={16} strokeWidth={3} />
</span>
<span className='cf-qrh__trait-text'>
<span className='cf-qrh__trait-title'>{t.title}</span>
{t.detail ? <span className='cf-qrh__trait-detail'>{t.detail}</span> : null}
</span>
</li>
))}
</ul>
</div>
) : null}
{hasHoldback ? (
<div className='cf-qrh__tile' style={reveal()}>
<h2 className='cf-qrh__h'>
<TriangleAlert className='cf-qrh__inline cf-qrh__inline--warn' size={20} strokeWidth={2.5} aria-hidden='true' />
{holdbackTitle}
</h2>
<p className='cf-qrh__text'>{holdback}</p>
</div>
) : null}
{hasInbox ? (
<div className='cf-qrh__tile' style={reveal()}>
<h2 className='cf-qrh__h'>
<Mail className='cf-qrh__inline cf-qrh__inline--accent' size={20} strokeWidth={2.5} aria-hidden='true' />
{inboxTitle}
</h2>
{sender ? <p className='cf-qrh__text'>{fromLine}</p> : null}
{subject ? (
<p className='cf-qrh__well'>
<span className='cf-qrh__well-label'>{subjectLabel}</span> {subject}
</p>
) : null}
{inboxNote ? <p className='cf-qrh__note'>{inboxNote}</p> : null}
</div>
) : null}
</div>
) : null}
<div className={'cf-qrh__tile cf-qrh__offer' + (offerImage ? '' : ' cf-qrh__offer--nocover')} style={reveal()}>
{offerImage ? (
<div className='cf-qrh__cover'>
<img src={offerImage} alt={offerImageAlt} width={480} height={480} loading='eager' decoding='async' />
</div>
) : null}
<div className='cf-qrh__offer-copy'>
<h2 className='cf-qrh__h'>{offerTitle}</h2>
{offerBody ? <p className='cf-qrh__text'>{offerBody}</p> : null}
{offerAside ? <p className='cf-qrh__aside'>{offerAside}</p> : null}
</div>
<div className='cf-qrh__act'>
{instruction ? <p className='cf-qrh__instruction'>{instruction}</p> : null}
{action}
{reassurance ? (
<p className='cf-qrh__reassure'>
<ShieldCheck className='cf-qrh__inline cf-qrh__inline--ok' size={16} strokeWidth={2.5} aria-hidden='true' />
{reassurance}
</p>
) : null}
</div>
</div>
</div>
{retake ? <p className='cf-qrh__retake-row'>{retake}</p> : null}
</div>
<Divider shape='wave' tone='surface' height={56} />
</section>
);
}
export default QuizResultHero;
function emphasise(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className='cf-qrh__em'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
const CSS = `
.cf-qrh{position:relative;overflow:hidden;background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) 0 calc(clamp(48px,6vw,88px) + 56px)}
.cf-qrh *,.cf-qrh *::before,.cf-qrh *::after{box-sizing:border-box}
.cf-qrh__wrap{position:relative;z-index:1;width:min(1120px,calc(100% - 2 * clamp(16px,5vw,48px)));margin-inline:auto}
.cf-qrh__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-qrh__grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:16px}
.cf-qrh__side{display:flex;flex-direction:column;gap:16px;min-width:0}
.cf-qrh__side>.cf-qrh__tile{flex:1 1 auto}
@keyframes cf-qrh-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
.cf-qrh__tile{position:relative;min-width:0;background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(0.22 0.03 260 / .22),0 4px 10px -2px oklch(0.22 0.03 260 / .2)));padding:clamp(20px,3vw,32px);animation:cf-qrh-rise .45s cubic-bezier(.2,.7,.2,1) var(--qrh-delay,0s) both;animation-play-state:paused}
.cf-qrh.is-seen .cf-qrh__tile{animation-play-state:running}
.cf-qrh__result{display:flex;flex-direction:column}
.cf-qrh__title{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.2vw,3.75rem);line-height:1.04;color:var(--ink);text-wrap:balance;overflow-wrap:break-word;scroll-margin-top:24px}
.cf-qrh__title:focus,.cf-qrh__title:focus-visible{outline:none}
.cf-qrh__em{color:var(--accent)}
.cf-qrh__summary{margin:16px 0 0;max-width:46ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-qrh__art{position:relative;margin-top:24px;flex:1 1 260px;min-height:260px;border-radius:12px;overflow:hidden}
.cf-qrh__art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.cf-qrh__grid--solo .cf-qrh__result{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,48px);align-items:start}
.cf-qrh__grid--solo .cf-qrh__result--noart{display:flex}
.cf-qrh__grid--solo .cf-qrh__art{margin-top:0;flex:none;min-height:0;aspect-ratio:4/3}
.cf-qrh__h{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;color:var(--ink);text-wrap:balance;overflow-wrap:break-word}
.cf-qrh__inline{display:inline-block;flex:none;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-qrh__h .cf-qrh__inline{vertical-align:-0.12em}
.cf-qrh__inline--accent{color:var(--accent)}
.cf-qrh__inline--warn{color:var(--warning)}
.cf-qrh__inline--ok{color:var(--success)}
.cf-qrh__text{margin:12px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty;overflow-wrap:break-word}
.cf-qrh__text strong{font-weight:800}
.cf-qrh__traits{list-style:none;margin:12px 0 0;padding:0}
.cf-qrh__trait{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;padding:12px 0;border-top:1px solid oklch(from var(--ink) l c h / .1)}
.cf-qrh__trait:first-child{border-top:0;padding-top:4px}
.cf-qrh__trait:last-child{padding-bottom:0}
.cf-qrh__badge{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-top:1px;border-radius:999px;background:var(--success);color:var(--qrh-badge-glyph,#fff)}
.cf-qrh__trait-title{display:block;font-size:1.0625rem;line-height:1.35;font-weight:700;color:var(--ink);text-wrap:pretty}
.cf-qrh__trait-detail{display:block;margin-top:2px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-qrh__well{margin:12px 0 0;padding:12px 16px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--ink);overflow-wrap:anywhere;text-wrap:pretty}
.cf-qrh__well-label{font-weight:800}
.cf-qrh__note{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-qrh__offer{grid-column:1/-1;display:grid;grid-template-columns:168px minmax(0,1fr) minmax(280px,340px);gap:clamp(24px,3vw,40px);align-items:start;padding:clamp(24px,3.5vw,40px);background:color-mix(in oklch,var(--accent) 6%,var(--card));border-color:color-mix(in oklch,var(--accent) 32%,var(--card));box-shadow:var(--card-shadow,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-qrh__offer--nocover{grid-template-columns:minmax(0,1fr) minmax(280px,340px)}
.cf-qrh__cover img{display:block;width:100%;height:auto;max-height:240px;object-fit:contain;filter:drop-shadow(0 2px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3)) drop-shadow(0 12px 16px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .22))}
.cf-qrh__offer-copy{min-width:0}
.cf-qrh__aside{margin:12px 0 0;font-style:italic;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-qrh__act{display:flex;flex-direction:column;align-items:stretch;min-width:0;text-align:center}
.cf-qrh__instruction{margin:0 0 12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;font-weight:700;color:var(--ink);text-wrap:balance}
.cf-qrh__reassure{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--ink);text-wrap:pretty}
.cf-qrh__btn{appearance:none;border:0;margin:0;cursor:pointer;width:100%;min-height:72px;padding:12px 28px;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;text-decoration:none;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display));text-transform:var(--button-case,none);color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--button-bg,var(--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(--button-bg,var(--cta)) calc(l + 0.14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.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;-webkit-tap-highlight-color:transparent}
.cf-qrh__btn:hover:not(:disabled),.cf-qrh__btn[data-state='hover']{transform:translateY(-1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - 0.01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.12) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.18) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .32),0 12px 20px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .5))}
.cf-qrh__btn:active:not(:disabled),.cf-qrh__btn[data-state='active']{transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.10) c h));box-shadow:inset 0 2px 4px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .35),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.18) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3)}
.cf-qrh__btn:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.cf-qrh__btn: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-qrh__btn-label{font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;font-weight:var(--button-weight,800)}
.cf-qrh__btn-sub{font-family:var(--font-body);font-size:.9375rem;line-height:1.3;font-weight:600;text-transform:none}
.cf-qrh__retake-row{margin:24px 0 0;text-align:center}
.cf-qrh__retake{appearance:none;display:inline-block;min-height:44px;padding:12px 4px;border:0;background:none;cursor:pointer;font-family:var(--font-body);font-size:.9375rem;line-height:1.3;font-weight:600;color:var(--band-ink);text-decoration:underline;text-decoration-color:oklch(from var(--band-ink) l c h / .5);text-underline-offset:.18em}
.cf-qrh__retake:hover{text-decoration-color:currentColor}
.cf-qrh__retake:focus-visible{outline:3px solid oklch(from var(--band-ink) l c h / .6);outline-offset:2px;border-radius:4px}
@media (max-width:960px){
.cf-qrh__grid{grid-template-columns:minmax(0,1fr)}
.cf-qrh__side{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.cf-qrh__side>.cf-qrh__tile:last-child:nth-child(odd){grid-column:1/-1}
.cf-qrh__art,.cf-qrh__grid--solo .cf-qrh__art{margin-top:24px;flex:none;min-height:0;aspect-ratio:16/9}
.cf-qrh__grid--solo .cf-qrh__result{display:flex}
.cf-qrh__offer{grid-template-columns:140px minmax(0,1fr)}
.cf-qrh__offer--nocover{grid-template-columns:minmax(0,1fr)}
.cf-qrh__act{grid-column:1/-1;width:100%;max-width:32rem;margin-inline:auto}
}
@media (max-width:640px){
.cf-qrh__side{grid-template-columns:minmax(0,1fr)}
.cf-qrh__art,.cf-qrh__grid--solo .cf-qrh__art{aspect-ratio:4/3}
.cf-qrh__offer{grid-template-columns:minmax(0,1fr)}
.cf-qrh__cover{width:160px;margin-inline:auto}
.cf-qrh__act{max-width:none}
}
@media (prefers-reduced-motion:reduce){
.cf-qrh__tile{animation:none}
.cf-qrh__btn{transition:none}
.cf-qrh__btn:hover:not(:disabled),.cf-qrh__btn[data-state='hover'],.cf-qrh__btn:active:not(:disabled),.cf-qrh__btn[data-state='active']{transform:none}
}
`;
pieces/hero/quiz-result-hero/specimen.tsx 56 lines
import __studioImagea7691fbc from "../assets/a6098f55e5edc868.webp";
import __studioImagec379373a from "../assets/60c924392354c1d8.webp";
// Specimen: Ledger & Lantern’s ‘What kind of money builder are you?’ quiz, first screen of the result page.
import * as React from 'react';
import { QuizResultHero } from '../quiz-result-hero';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
type State = 'default' | 'hover' | 'active' | 'disabled';
export default function QuizResultHeroSpecimen({ state = 'default' }: { state?: State }) {
const sample = defaults.sample;
return (
<QuizResultHero
state={state}
resultAnnounce='Your result for “What kind of money builder are you?”:'
resultTitle='You’re a Steady Builder'
resultHighlight='Steady Builder'
resultSummary='You save on schedule and hate wasting a dollar. Your next leap isn’t saving harder. It’s putting that habit to work.'
resultImage={slot(
'scene',
__studioImagec379373a,
)}
resultImageAlt='Illustration of a calm woman stacking wooden blocks into a steady tower beside a lit lantern'
traits={[
{ title: 'You pay yourself first', detail: 'Savings leave your account before the bills do.' },
{ title: 'You keep promises to your budget', detail: 'Once a plan is set, you actually follow it.' },
{ title: 'You stay calm when markets wobble', detail: 'Scary headlines don’t push you into rash moves.' },
]}
holdback={
<>
Your money sits <strong>parked in savings</strong>, waiting for a “safe” moment to grow that never quite arrives.
</>
}
sender='Mara Ellison at Ledger & Lantern'
subject='Your Steady Builder report: start with page 3'
inboxNote='Not there in 5 minutes? Check your Promotions tab.'
offerImage={slot(
'product',
__studioImagea7691fbc,
)}
offerImageAlt='The Compound Plan workbook cover'
offerTitle='Put your steady habit to work with The Compound Plan'
offerBody='Six short weekly lessons that turn the money you already save into automatic, low-drama investing. Built for Steady Builders, one small step at a time.'
offerAside='(I know. “Investing” sounds like the opposite of steady. Stay with me.)'
actionLabel='Order now'
actionPrice={`${sample.price} · one payment`}
reassurance={sample.guarantee}
href='#order'
retakeHref='#quiz'
/>
);
}
| Name | Type | Details |
|---|---|---|
resultTitle OptionalQuizResultHero |
string |
|
resultHighlight OptionalQuizResultHero |
string |
|
resultAnnounce OptionalQuizResultHero |
string |
|
resultSummary OptionalQuizResultHero |
React.ReactNode |
|
resultImage OptionalQuizResultHero |
string |
|
resultImageAlt OptionalQuizResultHero |
string |
|
traitsTitle OptionalQuizResultHero |
React.ReactNode |
|
traits OptionalQuizResultHero |
QuizResultTrait[] |
|
holdbackTitle OptionalQuizResultHero |
React.ReactNode |
|
holdback OptionalQuizResultHero |
React.ReactNode |
|
inboxTitle OptionalQuizResultHero |
React.ReactNode |
|
sender OptionalQuizResultHero |
string |
|
fromTemplate OptionalQuizResultHero |
string |
|
subject OptionalQuizResultHero |
string |
|
subjectLabel OptionalQuizResultHero |
string |
|
inboxNote OptionalQuizResultHero |
React.ReactNode |
|
offerTitle OptionalQuizResultHero |
React.ReactNode |
|
offerBody OptionalQuizResultHero |
React.ReactNode |
|
offerAside OptionalQuizResultHero |
React.ReactNode |
|
offerImage OptionalQuizResultHero |
string |
|
offerImageAlt OptionalQuizResultHero |
string |
|
instruction OptionalQuizResultHero |
React.ReactNode |
|
actionLabel OptionalQuizResultHero |
string |
|
actionPrice OptionalQuizResultHero |
string |
|
reassurance OptionalQuizResultHero |
React.ReactNode |
|
href OptionalQuizResultHero |
string |
|
onAction OptionalQuizResultHero |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalQuizResultHero |
boolean |
|
state OptionalQuizResultHero |
'default' | 'hover' | 'active' | 'disabled' |
|
retakeLabel OptionalQuizResultHero |
string |
|
retakeHref OptionalQuizResultHero |
string |
|
onRetake OptionalQuizResultHero |
(event: React.MouseEvent<HTMLElement>) => void |
|
backdropImage OptionalQuizResultHero |
string |
|
focusResultOnMount OptionalQuizResultHero |
boolean |
|
className OptionalQuizResultHero |
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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
scene- A wide atmosphere photo behind or beside the copy.
-
4b82104bfd627615.webp
image/webp · 44.9 KB
-
60c924392354c1d8.webp
image/webp · 147 KB
-
a6098f55e5edc868.webp
image/webp · 40.2 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB