Start Here Quiz 1
Start here, one question: the visitor says where they are right now, and the matching free resource steps into a spotlight beside that answer with one action to it.
Use it in a prompt
Use content/start-here-quiz from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/content/start-here-quiz.tsx. - Import it and pass your copy and images (Props tab):
import { StartHereQuiz } from "@/components/funneldna/content/start-here-quiz"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/start-here-quiz/component.tsx 420 lines
// layout: interview-qa
// Start here, one question: the visitor says where they are right now, and the matching free resource steps into a spotlight beside that answer with one action to it.
import React from 'react';
import { Check } from 'lucide-react';
import { FX_HOST, Spotlight } from '../fx/fx';
export type StartHerePath = {
id: string;
// Text on the large answer button.
answer: string;
// Short line under the answer that helps the visitor recognise themselves.
answerDetail?: string;
// Headline of the revealed path: the short promise.
promise: React.ReactNode;
body?: React.ReactNode;
// Up to three short numbered reasons to start here.
points?: string[];
resourceName?: string;
// Small chip beside the resource name (its format), only if supplied.
resourceTag?: string;
// Resource image (slot item-n); transparent background works best.
resourceImage?: string;
resourceAlt?: string;
// The one action for this path; no button renders without it.
actionLabel?: string;
// One short reassurance line under the button.
actionNote?: string;
href?: string;
};
export type StartHereQuizCopy = {
pickAgain: string;
// Shown on the empty stage on desktop before an answer is picked.
idleHint: string;
// Read by screen readers when a path opens; {answer} is replaced with the answer text.
announce: string;
};
export type StartHereQuizProps = {
question?: React.ReactNode;
lead?: React.ReactNode;
paths?: StartHerePath[];
// Opens this path on first render.
defaultPathId?: string;
copy?: Partial<StartHereQuizCopy>;
// Called when the revealed path's button is clicked.
onAction?: (path: StartHerePath, event: React.MouseEvent<HTMLElement>) => void;
// Called when an answer is picked, or with null when the visitor picks again.
onChoose?: (path: StartHerePath | null) => void;
disabled?: boolean;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
const DEFAULT_COPY: StartHereQuizCopy = {
pickAgain: 'Not quite? Pick again',
idleHint: 'Pick the answer that fits and your starting point steps into the light.',
announce: 'Showing your starting point for: {answer}.',
};
const DEFAULT_PATHS: StartHerePath[] = [
{
id: 'starting',
answer: 'I’m just starting',
answerDetail: 'New to this and want a simple first step.',
promise: 'Start with one simple plan',
body: 'A short, clear first step, so you know exactly what to do this week.',
actionLabel: 'Show me my first step',
},
{
id: 'returning',
answer: 'I’m getting back into it',
answerDetail: 'I’ve done this before and want to restart.',
promise: 'Pick up where you left off',
body: 'Restart with a plan built for where you are now, not where you were.',
actionLabel: 'Restart my plan',
},
{
id: 'already',
answer: 'I’m already doing it',
answerDetail: 'I want more from what I do now.',
promise: 'Get more from what you already do',
body: 'Find the one change that moves you forward fastest.',
actionLabel: 'Find my next step',
},
];
export function StartHereQuiz(props: StartHereQuizProps) {
const {
question = 'Where are you right now?',
lead = 'Pick the one that sounds most like you. We’ll show you the one place to start.',
paths = DEFAULT_PATHS,
defaultPathId,
copy,
onAction,
onChoose,
disabled = false,
state = 'default',
className,
} = props;
const text: StartHereQuizCopy = { ...DEFAULT_COPY, ...copy };
const uid = React.useId();
const questionId = `${uid}-q`;
const replyId = `${uid}-path`;
const firstId = paths[0]?.id ?? null;
const initialId = defaultPathId ?? (state === 'active' ? firstId : null);
const [chosenId, setChosenId] = React.useState<string | null>(initialId);
const [previewId, setPreviewId] = React.useState<string | null>(null);
const pickedByUser = React.useRef(false);
const answerRefs = React.useRef<Array<HTMLButtonElement | null>>([]);
const replyRef = React.useRef<HTMLDivElement>(null);
React.useEffect(() => {
setChosenId(initialId);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [state, defaultPathId]);
// On phones the path opens below the answers: bring it into view after a real pick.
React.useEffect(() => {
if (!pickedByUser.current || !chosenId) return;
pickedByUser.current = false;
const el = replyRef.current;
if (!el || typeof window === 'undefined' || !window.matchMedia) return;
if (!window.matchMedia('(max-width: 899px)').matches) return;
const still = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
el.scrollIntoView({ behavior: still ? 'auto' : 'smooth', block: 'start' });
}, [chosenId]);
const isDisabled = disabled || state === 'disabled';
const chosen = paths.find((p) => p.id === chosenId) ?? null;
const chosenIndex = chosen ? paths.indexOf(chosen) : -1;
const litId = previewId ?? (state === 'hover' ? firstId : null);
const lineup = paths.filter((p) => p.resourceImage);
const choose = (path: StartHerePath) => {
if (isDisabled) return;
pickedByUser.current = true;
setChosenId(path.id);
onChoose?.(path);
};
const pickAgain = () => {
const index = chosenIndex >= 0 ? chosenIndex : 0;
setChosenId(null);
onChoose?.(null);
answerRefs.current[index]?.focus();
};
const rootClass = ['cf-start-here-quiz', chosen ? 'is-chosen' : '', className].filter(Boolean).join(' ');
return (
<section className={rootClass} style={FX_HOST} aria-labelledby={questionId}>
<style>{CSS}</style>
<div className='shq-light' aria-hidden='true' style={{ ...FX_HOST, position: 'absolute' }}>
<Spotlight />
</div>
<div className='shq-inner'>
<div className='shq-ask'>
<h2 id={questionId} className='shq-question'>{question}</h2>
{lead ? <p className='shq-lead'>{lead}</p> : null}
{paths.length ? (
<div className='shq-answers' role='group' aria-labelledby={questionId}>
{paths.map((path, i) => {
const on = path.id === chosenId;
const cls = [
'shq-answer',
on ? 'is-on' : '',
state === 'hover' && i === 0 && !on ? 'is-hover' : '',
].filter(Boolean).join(' ');
return (
<button
key={path.id}
ref={(el) => {
answerRefs.current[i] = el;
}}
type='button'
className={cls}
aria-pressed={on}
aria-controls={replyId}
disabled={isDisabled}
onClick={() => choose(path)}
onPointerEnter={() => setPreviewId(path.id)}
onPointerLeave={() => setPreviewId(null)}
onFocus={() => setPreviewId(path.id)}
onBlur={() => setPreviewId(null)}
>
<span className='shq-answer-text'>
<span className='shq-answer-label'>{path.answer}</span>
{path.answerDetail ? <span className='shq-answer-detail'>{path.answerDetail}</span> : null}
</span>
<span className='shq-tick' aria-hidden='true'>
{on ? <Check size={16} strokeWidth={3} /> : null}
</span>
</button>
);
})}
</div>
) : null}
<p className='shq-sr' aria-live='polite'>
{chosen ? text.announce.replace('{answer}', chosen.answer) : ''}
</p>
</div>
<div className='shq-reply' id={replyId} ref={replyRef}>
{chosen ? (
<PathPanel
key={chosen.id}
path={chosen}
uid={uid}
disabled={isDisabled}
pickAgainLabel={text.pickAgain}
onAction={onAction}
onPickAgain={pickAgain}
/>
) : paths.length ? (
<div className='shq-idle'>
{lineup.length ? (
<div className={`shq-lineup${litId && lineup.some((p) => p.id === litId) ? ' has-lit' : ''}`}>
<span className='shq-floor shq-floor-wide' aria-hidden='true' />
{lineup.map((p) => (
<img
key={p.id}
src={p.resourceImage}
alt=''
className={p.id === litId ? 'is-lit' : ''}
loading='lazy'
/>
))}
</div>
) : null}
<p className='shq-hint'>{text.idleHint}</p>
</div>
) : null}
</div>
</div>
</section>
);
}
export default StartHereQuiz;
function PathPanel({
path,
uid,
disabled,
pickAgainLabel,
onAction,
onPickAgain,
}: {
path: StartHerePath;
uid: string;
disabled: boolean;
pickAgainLabel: string;
onAction?: StartHereQuizProps['onAction'];
onPickAgain: () => void;
}) {
const promiseId = `${uid}-promise`;
const hasCaption = Boolean(path.resourceName || path.resourceTag);
const points = (path.points ?? []).filter(Boolean).slice(0, 3);
const caption = hasCaption ? (
<span className='shq-caption'>
{path.resourceName ? <span className='shq-res-name'>{path.resourceName}</span> : null}
{path.resourceTag ? <span className='shq-tag'>{path.resourceTag}</span> : null}
</span>
) : null;
let cta: React.ReactNode = null;
if (path.actionLabel) {
cta = path.href ? (
<a
className={`shq-cta${disabled ? ' is-disabled' : ''}`}
href={disabled ? undefined : path.href}
aria-disabled={disabled || undefined}
onClick={(e) => {
if (disabled) {
e.preventDefault();
return;
}
onAction?.(path, e);
}}
>
{path.actionLabel}
</a>
) : (
<button type='button' className='shq-cta' disabled={disabled} onClick={(e) => onAction?.(path, e)}>
{path.actionLabel}
</button>
);
}
return (
<div className='shq-path' role='region' aria-labelledby={promiseId}>
{path.resourceImage ? (
<figure className='shq-stage'>
<div className='shq-pedestal'>
<span className='shq-floor' aria-hidden='true' />
<img src={path.resourceImage} alt={path.resourceAlt ?? path.resourceName ?? ''} />
</div>
{caption ? <figcaption>{caption}</figcaption> : null}
</figure>
) : caption ? (
<p className='shq-stage shq-stage-plain'>{caption}</p>
) : null}
<div className='shq-copy'>
<h3 id={promiseId} className='shq-promise'>{path.promise}</h3>
{path.body ? <p className='shq-body'>{path.body}</p> : null}
{points.length ? (
<ol className='shq-points'>
{points.map((pt, i) => (
<li key={pt}>
<span className='shq-num' aria-hidden='true'>{i + 1}</span>
<span>{pt}</span>
</li>
))}
</ol>
) : null}
<div className='shq-actions'>
{cta}
{path.actionNote ? <p className='shq-note'>{path.actionNote}</p> : null}
<button type='button' className='shq-again' onClick={onPickAgain}>
{pickAgainLabel}
</button>
</div>
</div>
</div>
);
}
const SH = 'var(--shadow, oklch(0.22 0.03 260))';
const CSS = `
.cf-start-here-quiz{--shq-pad-top:clamp(56px,8vw,112px);--shq-stage-h:clamp(220px,22vw,290px);position:relative;overflow:hidden;isolation:isolate;background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:var(--shq-pad-top) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-start-here-quiz *,.cf-start-here-quiz *::before,.cf-start-here-quiz *::after{box-sizing:border-box}
.cf-start-here-quiz .shq-light{top:0;right:0;bottom:auto;left:auto;width:58%;height:calc(var(--shq-pad-top) + var(--shq-stage-h) + 72px);pointer-events:none;z-index:0}
.cf-start-here-quiz .shq-inner{position:relative;z-index:1;max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(32px,5vw,72px);align-items:start}
.cf-start-here-quiz .shq-question{margin:0;color:var(--band-ink);font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance}
.cf-start-here-quiz .shq-lead{margin:22px 0 0;max-width:34rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty}
.cf-start-here-quiz .shq-answers{display:grid;gap:12px;margin-top:32px}
.cf-start-here-quiz .shq-answer{appearance:none;font:inherit;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;width:100%;min-height:84px;margin:0;padding:16px 20px 16px 24px;text-align:left;color:var(--band-ink);background:oklch(from var(--band-ink) l c h / .08);border:1px solid oklch(from var(--band-ink) l c h / .22);border-radius:var(--card-radius, var(--radius, 14px));cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease,color .16s ease}
.cf-start-here-quiz .shq-answer-text{display:grid;gap:4px;min-width:0}
.cf-start-here-quiz .shq-answer-label{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-start-here-quiz .shq-answer-detail{font-size:.9375rem;line-height:1.4;font-weight:500;text-wrap:pretty}
.cf-start-here-quiz .shq-tick{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:999px;border:2px solid oklch(from var(--band-ink) l c h / .5);transition:background .16s ease,border-color .16s ease}
.cf-start-here-quiz .shq-answer:hover,.cf-start-here-quiz .shq-answer.is-hover{background:oklch(from var(--band-ink) l c h / .14);border-color:oklch(from var(--band-ink) l c h / .42);transform:translateY(-1px)}
.cf-start-here-quiz .shq-answer:hover .shq-tick,.cf-start-here-quiz .shq-answer.is-hover .shq-tick{border-color:var(--band-ink)}
.cf-start-here-quiz .shq-answer:active{background:oklch(from var(--band-ink) l c h / .18);transform:translateY(0)}
.cf-start-here-quiz .shq-answer:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-start-here-quiz .shq-answer.is-on{background:var(--card);color:var(--ink);border-color:transparent;box-shadow:inset 0 0 0 2px var(--accent-fill, var(--accent)),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-start-here-quiz .shq-answer.is-on .shq-answer-detail{color:var(--muted)}
.cf-start-here-quiz .shq-answer.is-on .shq-tick{background:var(--accent-fill, var(--accent));border-color:var(--accent-fill, var(--accent));color:var(--accent-fill-ink, var(--card))}
.cf-start-here-quiz .shq-answer:disabled{cursor:not-allowed;opacity:.55;transform:none}
.cf-start-here-quiz .shq-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-start-here-quiz .shq-idle{display:flex;flex-direction:column;align-items:center;gap:24px;padding-top:0;text-align:center}
.cf-start-here-quiz .shq-lineup{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:clamp(8px,1.5vw,20px);width:100%;height:var(--shq-stage-h)}
.cf-start-here-quiz .shq-lineup img{position:relative;z-index:1;height:100%;width:auto;max-width:31%;object-fit:contain;object-position:center bottom;filter:brightness(.92) drop-shadow(0 2px 3px oklch(from ${SH} calc(l - .08) c h / .5)) drop-shadow(0 12px 16px oklch(from ${SH} calc(l - .08) c h / .35));transition:transform .25s cubic-bezier(.2,.7,.2,1),filter .25s ease}
.cf-start-here-quiz .shq-lineup.has-lit img{filter:brightness(.62) saturate(.85) drop-shadow(0 2px 3px oklch(from ${SH} calc(l - .08) c h / .45))}
.cf-start-here-quiz .shq-lineup img.is-lit,.cf-start-here-quiz .shq-lineup.has-lit img.is-lit{transform:translateY(-10px) scale(1.04);filter:brightness(1) saturate(1) drop-shadow(0 2px 3px oklch(from ${SH} calc(l - .08) c h / .5)) drop-shadow(0 16px 18px oklch(from ${SH} calc(l - .08) c h / .42))}
.cf-start-here-quiz .shq-hint{margin:0;max-width:24rem;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--band-ink);text-wrap:balance}
.cf-start-here-quiz .shq-path{animation:cf-shq-in-x .45s cubic-bezier(.2,.7,.2,1) both}
.cf-start-here-quiz .shq-stage{margin:0;display:flex;flex-direction:column;align-items:center;gap:20px}
.cf-start-here-quiz .shq-stage-plain{margin:0 0 4px}
.cf-start-here-quiz .shq-pedestal{position:relative;display:flex;justify-content:center;align-items:flex-end;width:100%;height:var(--shq-stage-h)}
.cf-start-here-quiz .shq-pedestal img{position:relative;z-index:1;height:100%;width:auto;max-width:min(100%,320px);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 2px 3px oklch(from ${SH} calc(l - .08) c h / .5)) drop-shadow(0 14px 16px oklch(from ${SH} calc(l - .08) c h / .4));animation:cf-shq-step .5s cubic-bezier(.2,.7,.2,1) .07s both}
.cf-start-here-quiz .shq-floor{position:absolute;left:50%;bottom:-12px;width:min(78%,300px);height:36px;transform:translateX(-50%);border-radius:50%;pointer-events:none;background:radial-gradient(closest-side,oklch(from ${SH} calc(l - .1) c h / .7),oklch(from ${SH} calc(l - .1) c h / 0))}
.cf-start-here-quiz .shq-floor::before{content:'';position:absolute;inset:-28px -32%;border-radius:50%;background:radial-gradient(closest-side,oklch(from var(--band-ink) l c h / .12),oklch(from var(--band-ink) l c h / 0))}
.cf-start-here-quiz .shq-floor-wide{width:min(92%,440px)}
.cf-start-here-quiz .shq-caption{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 12px;text-align:center}
.cf-start-here-quiz .shq-res-name{font-size:.9375rem;line-height:1.4;font-weight:700;text-wrap:balance}
.cf-start-here-quiz .shq-tag{display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .12);color:var(--band-ink);font-size:.875rem;line-height:1.2;font-weight:800;white-space:nowrap}
.cf-start-here-quiz .shq-copy{max-width:32rem;margin:28px auto 0}
.cf-start-here-quiz .shq-copy > *{animation:cf-shq-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-start-here-quiz .shq-copy > :nth-child(2){animation-delay:.07s}
.cf-start-here-quiz .shq-copy > :nth-child(3){animation-delay:.14s}
.cf-start-here-quiz .shq-copy > :nth-child(4){animation-delay:.21s}
.cf-start-here-quiz .shq-promise{margin:0;color:var(--band-ink);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;text-wrap:balance}
.cf-start-here-quiz .shq-body{margin:12px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cf-start-here-quiz .shq-points{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:8px}
.cf-start-here-quiz .shq-points li{display:grid;grid-template-columns:1.5rem minmax(0,1fr);gap:10px;align-items:baseline;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;font-weight:500;text-wrap:pretty}
.cf-start-here-quiz .shq-num{font-family:var(--font-display);font-weight:var(--display-weight,800);font-variant-numeric:tabular-nums}
.cf-start-here-quiz .shq-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:28px}
.cf-start-here-quiz .shq-cta{appearance:none;display:inline-flex;align-items:center;justify-content:center;width:100%;max-width:26rem;min-height:64px;margin:0;padding:12px 28px;border:0;border-radius:var(--button-radius, var(--radius, 12px));background:linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .02) c h));color:var(--button-ink, var(--cta-ink));font-family:var(--button-font, var(--font-display));font-weight:var(--button-weight, 800);text-transform:var(--button-case, none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-wrap:balance;text-decoration:none;text-shadow:var(--button-text-shadow, none);cursor:pointer;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .16) c h), 0 1px 2px oklch(from ${SH} calc(l - .06) c h / .45), 0 8px 16px -6px oklch(from ${SH} calc(l - .06) c h / .55));transition:background .16s ease,box-shadow .16s ease,transform .16s ease}
.cf-start-here-quiz .shq-cta: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))}
.cf-start-here-quiz .shq-cta:active{transform:translateY(1px);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)}
.cf-start-here-quiz .shq-cta:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-start-here-quiz .shq-cta:disabled,.cf-start-here-quiz .shq-cta.is-disabled{cursor:not-allowed;opacity:.55;transform:none}
.cf-start-here-quiz .shq-note{margin:0;font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-start-here-quiz .shq-again{appearance:none;background:none;border:0;margin:0;padding:10px 0;min-height:44px;font-family:var(--font-body);font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--band-ink);text-decoration:underline;text-decoration-color:oklch(from var(--band-ink) l c h / .45);text-underline-offset:.18em;cursor:pointer}
.cf-start-here-quiz .shq-again:hover{text-decoration-color:var(--band-ink)}
.cf-start-here-quiz .shq-again:focus-visible{outline:3px solid var(--band-ink);outline-offset:2px;border-radius:4px}
@keyframes cf-shq-in-x{from{opacity:.82;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes cf-shq-in-y{from{opacity:.82;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes cf-shq-step{from{opacity:.6;transform:translateY(10px) scale(.94)}to{opacity:1;transform:none}}
@keyframes cf-shq-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (min-width:900px){
.cf-start-here-quiz .shq-answer.is-on{transform:translateX(8px)}
}
@media (max-width:899px){
.cf-start-here-quiz .shq-light{width:100%;left:0;bottom:0;height:auto}
.cf-start-here-quiz .shq-inner{grid-template-columns:minmax(0,1fr);gap:40px}
.cf-start-here-quiz .shq-idle{gap:16px}
.cf-start-here-quiz .shq-lineup{height:150px}
.cf-start-here-quiz .shq-lead{margin-top:16px}
.cf-start-here-quiz .shq-answers{margin-top:28px}
.cf-start-here-quiz .shq-answer{min-height:76px;padding:16px 18px 16px 20px}
.cf-start-here-quiz .shq-path{animation-name:cf-shq-in-y;scroll-margin-top:16px}
.cf-start-here-quiz .shq-pedestal{height:210px}
.cf-start-here-quiz .shq-copy{margin-top:24px}
.cf-start-here-quiz .shq-cta{max-width:none}
}
@media (prefers-reduced-motion: reduce){
.cf-start-here-quiz .shq-path,.cf-start-here-quiz .shq-pedestal img,.cf-start-here-quiz .shq-copy > *{animation:none}
.cf-start-here-quiz .shq-answer,.cf-start-here-quiz .shq-tick,.cf-start-here-quiz .shq-cta,.cf-start-here-quiz .shq-lineup img{transition:none}
.cf-start-here-quiz .shq-answer:hover,.cf-start-here-quiz .shq-answer.is-hover,.cf-start-here-quiz .shq-answer.is-on,.cf-start-here-quiz .shq-lineup img.is-lit,.cf-start-here-quiz .shq-lineup.has-lit img.is-lit,.cf-start-here-quiz .shq-cta:active{transform:none}
}
`;
pieces/content/start-here-quiz/specimen.tsx 65 lines
import __studioImage0b2978b9 from "../assets/7a2571cb403d9dc2.webp";
import __studioImage62bc8c31 from "../assets/b0b2a8b21a33b518.webp";
import __studioImage2d29a4bd from "../assets/d51b42405c542624.webp";
import React from 'react';
import { StartHereQuiz, type StartHerePath } from '../start-here-quiz';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
export default function StartHereQuizSpecimen({ state }: { state?: 'default' | 'hover' | 'active' | 'disabled' }) {
const paths: StartHerePath[] = [
{
id: 'starting',
answer: 'Just starting',
answerDetail: 'New to strength training, or it’s been years.',
promise: 'Your first three weeks, already planned',
body: 'Short home sessions with one pair of dumbbells, so you build strength without guessing or getting hurt.',
points: ['Six 25-minute home sessions', 'Joint-friendly warm-ups for every day', 'Every move shown step by step'],
resourceName: 'The First 3 Weeks Plan',
resourceTag: 'Free PDF',
resourceImage: slot('item-1', __studioImage0b2978b9),
resourceAlt: 'The First 3 Weeks Plan, a spiral-bound workout planner',
actionLabel: 'Start my first week',
actionNote: 'Free download, sent straight to your inbox',
},
{
id: 'returning',
answer: 'Getting back into it',
answerDetail: 'You trained before. Life got in the way.',
promise: 'Come back strong without starting over',
body: 'Find your safe starting weights and ramp up over two weeks, so the old aches stay away.',
points: ['A 10-minute test for your starting weights', 'A two-week ramp-up you can follow', 'Mobility for stiff hips and shoulders'],
resourceName: 'The Comeback Guide',
resourceTag: 'Free guide',
resourceImage: slot('item-2', __studioImage62bc8c31),
resourceAlt: 'The Comeback Guide, a softcover training guide',
actionLabel: 'Plan my comeback',
actionNote: 'Free download, sent straight to your inbox',
},
{
id: 'training',
answer: 'Training already',
answerDetail: 'You lift each week and want more from it.',
promise: 'Break your plateau with a smarter week',
body: 'Swap your routine for a four-day split that keeps you progressing well past forty.',
points: ['A four-day split for steady gains', 'Recovery days that actually recover', 'A log to track every lift'],
resourceName: 'The Plateau Breaker Log',
resourceTag: 'Free workout log',
resourceImage: slot('item-3', __studioImage2d29a4bd),
resourceAlt: 'The Plateau Breaker Log, a hardback workout notebook',
actionLabel: 'Break my plateau',
actionNote: 'Free download, sent straight to your inbox',
},
];
return (
<StartHereQuiz
question='Where are you right now?'
lead='Tap the one that sounds like you. We’ll hand you the free plan built for exactly that spot.'
paths={paths}
copy={{ idleHint: 'Pick your answer and your free plan steps into the light.' }}
state={state}
/>
);
}
| Name | Type | Details |
|---|---|---|
question OptionalStartHereQuiz |
React.ReactNode |
|
lead OptionalStartHereQuiz |
React.ReactNode |
|
paths OptionalStartHereQuiz |
StartHerePath[] |
|
defaultPathId OptionalStartHereQuiz |
string |
|
copy OptionalStartHereQuiz |
Partial<StartHereQuizCopy> |
|
onAction OptionalStartHereQuiz |
(path: StartHerePath, event: React.MouseEvent<HTMLElement>) => void |
|
onChoose OptionalStartHereQuiz |
(path: StartHerePath | null) => void |
|
disabled OptionalStartHereQuiz |
boolean |
|
state OptionalStartHereQuiz |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalStartHereQuiz |
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.
--card-radius- 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.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-3- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
7a2571cb403d9dc2.webp
image/webp · 58.9 KB
-
b0b2a8b21a33b518.webp
image/webp · 15 KB
-
d51b42405c542624.webp
image/webp · 88.9 KB