Questions Checklist 1
Questions checklist: the presenter's one-line challenge over three self-qualifying questions. The visitor answers
Use it in a prompt
Use content/questions-checklist 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/questions-checklist.tsx. - Import it and pass your copy and images (Props tab):
import { QuestionsChecklist } from "@/components/funneldna/content/questions-checklist"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/questions-checklist/component.tsx 502 lines
// layout: quote-led
// Questions checklist: the presenter's one-line challenge over three self-qualifying questions. The visitor answers
// each one honestly, every answer leads to a piece of the kit, and a ledger close totals the value before the one action.
import * as React from "react"
import { Check, ShieldCheck, X } from "lucide-react"
import { FX_HOST, Glow } from "../fx/fx"
export type QuestionsChecklistAnswer = "yes" | "no" | null
export type QuestionsChecklistQuestion = {
/** The question the visitor asks themselves. */
question: React.ReactNode
/** The honest answer shown before answering and after "yes"; it leads to the offer. */
answer: React.ReactNode
/** The honest answer shown after "not yet". Falls back to `answer`. */
notYet?: React.ReactNode
}
export type QuestionsChecklistItem = {
name: string
value: string
/** Item thumbnail (slot item-n); decorative, the name sits beside it. */
image?: string
}
export type QuestionsChecklistProps = {
/** The one huge line, in the presenter's own words. */
quote?: string
/** A phrase inside `quote` that gets the marker stroke. */
quoteEmphasis?: string
/** Italic aside in the presenter's voice, under the quote. */
aside?: React.ReactNode
/** Presenter cut-out on a transparent background (slot presenter-cutout). */
presenterImage?: string
presenterAlt?: string
presenterName?: string
presenterRole?: string
questions?: QuestionsChecklistQuestion[]
yesLabel?: string
noLabel?: string
/** Tally line before any answer. */
tallyIdle?: string
/** Tally line once answering; placeholders {yes} and {total}. */
tallyTemplate?: string
closeHeadline?: React.ReactNode
/** Close headline when every answer is yes. */
closeHeadlineAllYes?: React.ReactNode
/** Close headline when any answer is "not yet". */
closeHeadlineSomeNo?: React.ReactNode
items?: QuestionsChecklistItem[]
totalLabel?: string
/** The regular value the ledger adds up to. */
totalValue?: string
todayLabel?: string
price?: string
priceNote?: string
label?: string
reassurance?: string
/** The quiet line under the button. */
secondaryLabel?: string
/** Where the quiet line goes; defaults to the questions above. */
secondaryHref?: string
href?: string
onAction?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void
onAnswersChange?: (answers: QuestionsChecklistAnswer[]) => void
/** Answers to start with (specimens); real pages start unanswered. */
defaultAnswers?: QuestionsChecklistAnswer[]
state?: "default" | "hover" | "active" | "disabled"
className?: string
}
export function QuestionsChecklist(props: QuestionsChecklistProps) {
const {
quote = "Before you buy anything, ask yourself these three questions.",
quoteEmphasis = "these three questions",
aside = "(I asked myself the same three before my first launch. My answers were not pretty.)",
presenterImage,
presenterAlt,
presenterName = "",
presenterRole = "",
questions = DEFAULT_QUESTIONS,
yesLabel = "Yes, that’s me",
noLabel = "Not yet",
tallyIdle = "Answer all three, honestly",
tallyTemplate = "{yes} of {total} answered yes",
closeHeadline = "Three honest yeses? Here’s your next step.",
closeHeadlineAllYes = "Three yeses. Your first funnel starts here.",
closeHeadlineSomeNo = "Not three yeses? Start with the plan first.",
items = DEFAULT_ITEMS,
totalLabel = "Total value",
totalValue = "$97",
todayLabel = "Yours today for",
price = "$47",
priceNote = "One payment · Lifetime access",
label = "Send Me The Starter Kit",
reassurance = "30-day money-back guarantee · Instant download",
secondaryLabel = "or read the three questions again",
secondaryHref,
href,
onAction,
onAnswersChange,
defaultAnswers,
state = "default",
className,
} = props
const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, "")
const [answers, setAnswers] = React.useState<QuestionsChecklistAnswer[]>(() =>
questions.map((_, i) => defaultAnswers?.[i] ?? null),
)
const choose = (index: number, value: "yes" | "no") => {
const next = questions.map((_, n) => (n === index ? value : answers[n] ?? null))
setAnswers(next)
onAnswersChange?.(next)
}
const total = questions.length
const yes = answers.filter((a) => a === "yes").length
const no = answers.filter((a) => a === "no").length
const answered = yes + no
const headline =
no > 0 ? closeHeadlineSomeNo : total > 0 && yes === total ? closeHeadlineAllYes : closeHeadline
const tally =
answered === 0
? tallyIdle
: tallyTemplate.replace("{yes}", String(yes)).replace("{total}", String(total))
const disabled = state === "disabled"
const forced = state === "hover" || state === "active" ? state : undefined
const listId = `${uid}-questions`
const titleId = `${uid}-title`
const closeId = `${uid}-close`
const hasPortrait = Boolean(presenterImage)
const cta =
href && !disabled ? (
<a className="qc-cta" href={href} onClick={onAction} data-state={forced}>
{label}
</a>
) : (
<button className="qc-cta" type="button" onClick={onAction} disabled={disabled} data-state={forced}>
{label}
</button>
)
return (
<section
className={["cf-questions-checklist", className].filter(Boolean).join(" ")}
style={{ ...FX_HOST, overflow: "clip" }}
aria-labelledby={titleId}
>
<style dangerouslySetInnerHTML={{ __html: CSS }} />
<div className="qc-glow" aria-hidden="true">
<Glow />
</div>
<div className="qc-inner">
<div className={hasPortrait ? "qc-head has-portrait" : "qc-head"}>
{hasPortrait && (
<figure className="qc-portrait">
<img
src={presenterImage}
alt={presenterAlt ?? presenterName}
width={680}
height={680}
loading="lazy"
decoding="async"
/>
</figure>
)}
<figure className="qc-quote">
<blockquote>
<h2 id={titleId}>
<QuoteLine text={quote} emphasis={quoteEmphasis} />
</h2>
</blockquote>
{aside && <p className="qc-aside">{aside}</p>}
{(presenterName || presenterRole) && (
<figcaption className="qc-who">
{presenterName && <span className="qc-name">{presenterName}</span>}
{presenterRole && <span className="qc-role">{presenterRole}</span>}
</figcaption>
)}
</figure>
</div>
<div className="qc-body">
<ol className="qc-list" id={listId}>
{questions.map((q, i) => {
const a = answers[i] ?? null
const qid = `${uid}-q${i}`
const reply = a === "no" && q.notYet ? q.notYet : q.answer
return (
<li className="qc-q" key={i} style={{ "--i": i } as React.CSSProperties} data-answer={a ?? "none"}>
<span className="qc-num" aria-hidden="true">
{i + 1}
</span>
<div className="qc-q-body">
<h3 id={qid}>{q.question}</h3>
<div className="qc-choices" role="radiogroup" aria-labelledby={qid}>
<Choice
name={`${uid}-a${i}`}
value="yes"
label={yesLabel}
checked={a === "yes"}
onChange={() => choose(i, "yes")}
/>
<Choice
name={`${uid}-a${i}`}
value="no"
label={noLabel}
checked={a === "no"}
onChange={() => choose(i, "no")}
/>
</div>
<p className="qc-answer" aria-live="polite">
<span className="qc-reply" key={a ?? "none"}>
{reply}
</span>
</p>
</div>
</li>
)
})}
</ol>
<aside className="qc-close" aria-labelledby={closeId}>
<div className="qc-tally">
<span className="qc-pips" aria-hidden="true">
{answers.map((a, i) => (
<span key={i} className={a ? `qc-pip is-${a}` : "qc-pip"} />
))}
</span>
<span className="qc-tally-text" aria-live="polite">
{tally}
</span>
</div>
<h3 className="qc-close-title" id={closeId}>
{headline}
</h3>
{items.length > 0 && (
<ul className="qc-ledger">
{items.map((item) => (
<li className="qc-line" key={item.name}>
{item.image && (
<img
className="qc-thumb"
src={item.image}
alt=""
width={40}
height={40}
loading="lazy"
decoding="async"
/>
)}
<span className="qc-line-text">
<span className="qc-line-name">{item.name}</span>
<span className="qc-leader" aria-hidden="true" />
<span className="qc-line-value">{item.value}</span>
</span>
</li>
))}
</ul>
)}
{totalValue && (
<p className="qc-total">
<span>{totalLabel}</span>
<span className="qc-leader" aria-hidden="true" />
<span className="qc-total-value">{totalValue}</span>
</p>
)}
<div className="qc-today">
<p className="qc-today-label">{todayLabel}</p>
<p className="qc-price-row">
<span className="qc-price">{price}</span>
{priceNote && <span className="qc-price-note">{priceNote}</span>}
</p>
</div>
{cta}
{reassurance && (
<p className="qc-reassure">
<ShieldCheck size={16} strokeWidth={2.5} aria-hidden="true" />
{reassurance}
</p>
)}
{secondaryLabel && (
<a className="qc-quiet" href={secondaryHref ?? `#${listId}`}>
{secondaryLabel}
</a>
)}
</aside>
</div>
</div>
</section>
)
}
export default QuestionsChecklist
function QuoteLine({ text, emphasis }: { text: string; emphasis?: string }) {
const at = emphasis ? text.indexOf(emphasis) : -1
if (!emphasis || at < 0) return <>“{text}”</>
return (
<>
“{text.slice(0, at)}
<span className="qc-swipe">{emphasis}</span>
{text.slice(at + emphasis.length)}”
</>
)
}
function Choice({
name,
value,
label,
checked,
onChange,
}: {
name: string
value: "yes" | "no"
label: string
checked: boolean
onChange: () => void
}) {
return (
<label className={checked ? `qc-choice is-on is-${value}` : "qc-choice"}>
<input type="radio" name={name} value={value} checked={checked} onChange={onChange} />
<span className="qc-dot" aria-hidden="true">
{checked && (value === "yes" ? <Check size={14} strokeWidth={3} /> : <X size={14} strokeWidth={3} />)}
</span>
{label}
</label>
)
}
const DEFAULT_QUESTIONS: QuestionsChecklistQuestion[] = [
{
question: "Do you have something to sell, but no clear path from stranger to sale?",
answer: (
<>
<strong>Then your offer isn’t the problem. The missing map is.</strong> The Funnel Planning Guide lays out
every page your funnel needs, in the order you build them.
</>
),
notYet: (
<>
<strong>Then pick one offer first.</strong> The guide opens by helping you choose it, before you build a
single page.
</>
),
},
{
question: "Have you stared at a blank page, unsure what your headline should say?",
answer: (
<>
<strong>That’s where most first funnels stall.</strong> The Page Copy Workbook walks you through your
headline, offer and call to action, one prompt at a time.
</>
),
notYet: (
<>
<strong>Good. Use the workbook as your check</strong> that every page asks for one clear action.
</>
),
},
{
question: "Would you rather find a broken link before launch than after it?",
answer: (
<>
<strong>Then you’ll love the last piece.</strong> The Launch Checklist takes you through your links, forms
and next steps, so launch day stays calm.
</>
),
notYet: (
<>
<strong>Then this kit isn’t for you.</strong> It’s built for people who want to launch once and get it
right.
</>
),
},
]
const DEFAULT_ITEMS: QuestionsChecklistItem[] = [
{ name: "Funnel Planning Guide", value: "$49" },
{ name: "Page Copy Workbook", value: "$29" },
{ name: "Launch Checklist", value: "$19" },
]
const CSS = `
.cf-questions-checklist{
--qc-hair:oklch(from var(--band-ink) l c h / .16);
--qc-chip:oklch(from var(--band-ink) l c h / .12);
--qc-chip-hover:oklch(from var(--band-ink) l c h / .2);
--qc-swipe:oklch(from var(--accent-fill, var(--accent)) l c h / .62);
--qc-shade:var(--shadow, oklch(0.22 0.03 260));
--qc-btn:var(--button-bg, var(--cta));
--qc-btn-2:var(--button-bg-2, var(--cta-2));
position:relative;
background:var(--band);
color:var(--band-ink);
font-family:var(--font-body);
padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);
}
.cf-questions-checklist *,.cf-questions-checklist *::before,.cf-questions-checklist *::after{box-sizing:border-box}
.cf-questions-checklist .qc-glow{position:absolute;inset:0;z-index:0;opacity:.6;pointer-events:none}
.cf-questions-checklist .qc-inner{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-questions-checklist .qc-head{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin:0 0 clamp(48px,6vw,72px)}
.cf-questions-checklist .qc-portrait{margin:0;width:min(176px,46vw)}
.cf-questions-checklist .qc-portrait img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 2px 3px oklch(from var(--qc-shade) l c h / .4)) drop-shadow(0 14px 18px oklch(from var(--qc-shade) l c h / .35))}
.cf-questions-checklist .qc-quote{margin:0;min-width:0}
.cf-questions-checklist .qc-quote blockquote{margin:0}
.cf-questions-checklist .qc-quote h2{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.06;text-wrap:balance;color:var(--band-ink)}
.cf-questions-checklist .qc-swipe{background-image:linear-gradient(var(--qc-swipe),var(--qc-swipe));background-repeat:no-repeat;background-size:100% .4em;background-position:0 92%;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .1em;margin:0 -.05em;border-radius:.08em .14em .1em .06em}
.cf-questions-checklist .qc-aside{margin:24px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;font-style:italic;max-width:56ch;text-wrap:pretty;color:var(--band-ink)}
.cf-questions-checklist .qc-who{margin:20px 0 0;display:flex;flex-direction:column;gap:4px}
.cf-questions-checklist .qc-name{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.3}
.cf-questions-checklist .qc-role{font-size:.9375rem;font-weight:500;line-height:1.4}
@media (min-width:860px){
.cf-questions-checklist .qc-head.has-portrait{grid-template-columns:minmax(220px,.72fr) minmax(0,1.6fr);gap:clamp(32px,5vw,72px);align-items:start}
.cf-questions-checklist .qc-portrait{width:100%;max-width:340px}
}
.cf-questions-checklist .qc-body{display:grid;grid-template-columns:minmax(0,1fr);gap:48px}
@media (min-width:960px){
.cf-questions-checklist .qc-body{grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:clamp(32px,5vw,72px);align-items:start}
}
.cf-questions-checklist .qc-list{list-style:none;margin:0;padding:0}
.cf-questions-checklist .qc-q{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:clamp(16px,2.4vw,28px);padding:32px 0;animation:qc-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * .07s)}
.cf-questions-checklist .qc-q:first-child{padding-top:0}
.cf-questions-checklist .qc-q:last-child{padding-bottom:0}
.cf-questions-checklist .qc-q + .qc-q{border-top:1px solid var(--qc-hair)}
.cf-questions-checklist .qc-num{font-family:var(--font-display);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;min-width:.7em;text-align:center;color:var(--band-ink)}
.cf-questions-checklist .qc-q-body{min-width:0;padding-top:.25rem}
.cf-questions-checklist .qc-q h3{margin:0 0 16px;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-transform:var(--display-case,none);text-wrap:balance;color:var(--band-ink)}
.cf-questions-checklist .qc-choices{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.cf-questions-checklist .qc-choice{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px 0 12px;border-radius:999px;background:var(--qc-chip);color:var(--band-ink);font-size:1rem;font-weight:700;line-height:1.2;cursor:pointer;user-select:none;transition:background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
.cf-questions-checklist .qc-choice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.cf-questions-checklist .qc-choice:hover{background:var(--qc-chip-hover)}
.cf-questions-checklist .qc-choice:active{transform:translateY(1px)}
.cf-questions-checklist .qc-choice:has(input:focus-visible){outline:3px solid oklch(from var(--band-ink) l c h / .75);outline-offset:2px}
.cf-questions-checklist .qc-choice.is-on{background:var(--band-ink);color:var(--band);box-shadow:var(--shadow-sm, 0 1px 2px oklch(0.22 0.03 260 / .25))}
.cf-questions-checklist .qc-dot{flex:none;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:999px;border:2px solid oklch(from var(--band-ink) l c h / .55)}
.cf-questions-checklist .qc-choice.is-on .qc-dot{border:0;color:var(--qc-badge-ink,#fff)}
.cf-questions-checklist .qc-choice.is-yes .qc-dot{background:var(--success)}
.cf-questions-checklist .qc-choice.is-no .qc-dot{background:var(--danger)}
.cf-questions-checklist .qc-dot svg{animation:qc-pop .3s ease both}
.cf-questions-checklist .qc-answer{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;max-width:60ch;text-wrap:pretty;color:var(--band-ink)}
.cf-questions-checklist .qc-reply{display:block;animation:qc-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-questions-checklist .qc-answer strong{font-weight:800}
.cf-questions-checklist .qc-close{background:var(--card);color:var(--ink);border:1px solid var(--card-border, color-mix(in oklch, var(--accent) 26%, var(--card)));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 / .22), 0 12px 24px -8px oklch(0.22 0.03 260 / .32)));padding:clamp(20px,3vw,32px);animation:qc-rise .45s cubic-bezier(.2,.7,.2,1) .14s both}
@media (min-width:960px) and (min-height:760px){
.cf-questions-checklist .qc-close{position:sticky;top:24px}
}
.cf-questions-checklist .qc-tally{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.cf-questions-checklist .qc-pips{display:flex;gap:6px;flex:0 0 112px}
.cf-questions-checklist .qc-pip{flex:1;height:8px;border-radius:999px;background:color-mix(in oklch,var(--ink) 10%,var(--card));transition:background .3s ease}
.cf-questions-checklist .qc-pip.is-yes{background:var(--accent-fill,var(--accent))}
.cf-questions-checklist .qc-pip.is-no{background:color-mix(in oklch,var(--ink) 36%,var(--card))}
.cf-questions-checklist .qc-tally-text{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted)}
.cf-questions-checklist .qc-close-title{margin:0 0 20px;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-transform:var(--display-case,none);text-wrap:balance;color:var(--ink)}
.cf-questions-checklist .qc-ledger{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.cf-questions-checklist .qc-line{display:flex;align-items:flex-start;gap:12px}
.cf-questions-checklist .qc-line .qc-line-text{padding-top:9px}
.cf-questions-checklist .qc-thumb{flex:none;display:block;width:40px;height:40px;border-radius:8px;object-fit:cover}
.cf-questions-checklist .qc-line-text,.cf-questions-checklist .qc-total{flex:1;min-width:0;display:flex;align-items:flex-end;gap:8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;color:var(--ink)}
.cf-questions-checklist .qc-line-name{min-width:0;font-weight:600;text-wrap:pretty}
.cf-questions-checklist .qc-leader{flex:1 1 16px;min-width:16px;height:2px;margin-bottom:.32em;background-image:radial-gradient(circle,oklch(from var(--ink) l c h / .42) 0 1px,transparent 1.4px);background-size:6px 2px;background-repeat:repeat-x}
.cf-questions-checklist .qc-line-value,.cf-questions-checklist .qc-total-value{flex:none;font-weight:700;font-variant-numeric:tabular-nums}
.cf-questions-checklist .qc-total{margin:12px 0 0;padding:12px 14px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));font-weight:800}
.cf-questions-checklist .qc-total-value{font-weight:800}
.cf-questions-checklist .qc-today{margin:24px 0 20px}
.cf-questions-checklist .qc-today-label{margin:0 0 8px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted)}
.cf-questions-checklist .qc-price-row{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:12px}
.cf-questions-checklist .qc-price{font-family:var(--font-display);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)}
.cf-questions-checklist .qc-price-note{font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted)}
.cf-questions-checklist .qc-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--qc-btn) calc(l + .04) c h),oklch(from var(--qc-btn-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);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--qc-btn) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--qc-btn) calc(l - .16) c h),0 1px 2px oklch(from var(--qc-shade) l c h / .35),0 8px 16px -6px oklch(from var(--qc-shade) l c h / .45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease;-webkit-tap-highlight-color:transparent}
.cf-questions-checklist .qc-cta:hover:not(:disabled),.cf-questions-checklist .qc-cta[data-state="hover"]{background:linear-gradient(oklch(from var(--qc-btn) calc(l - .01) c h),oklch(from var(--qc-btn-2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--qc-btn) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--qc-btn) calc(l - .2) c h),0 1px 2px oklch(from var(--qc-shade) l c h / .4),0 10px 18px -6px oklch(from var(--qc-shade) l c h / .55));transform:translateY(-1px)}
.cf-questions-checklist .qc-cta:active:not(:disabled),.cf-questions-checklist .qc-cta[data-state="active"]{background:linear-gradient(oklch(from var(--qc-btn) calc(l - .05) c h),oklch(from var(--qc-btn-2) calc(l - .09) c h));box-shadow:var(--button-shadow,inset 0 2px 4px oklch(from var(--qc-btn) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--qc-btn) calc(l - .18) c h),0 1px 2px oklch(from var(--qc-shade) l c h / .35));transform:translateY(1px)}
.cf-questions-checklist .qc-cta:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:3px}
.cf-questions-checklist .qc-cta:disabled{background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:var(--button-2-shadow,var(--shadow-sm));text-shadow:none;cursor:not-allowed;transform:none}
.cf-questions-checklist .qc-reassure{margin:14px 0 0;text-align:center;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-questions-checklist .qc-reassure svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em;color:var(--success)}
.cf-questions-checklist .qc-quiet{display:block;width:fit-content;max-width:100%;margin:8px auto 0;text-align:center;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-decoration:underline;text-decoration-color:oklch(from var(--muted) l c h / .45);text-underline-offset:.18em;border-radius:4px}
.cf-questions-checklist .qc-quiet:hover{color:var(--ink);text-decoration-color:currentColor}
.cf-questions-checklist .qc-quiet:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:2px}
@media (max-width:599px){
.cf-questions-checklist .qc-q-body{display:contents}
.cf-questions-checklist .qc-num{align-self:start}
.cf-questions-checklist .qc-q h3{padding-top:.25rem}
.cf-questions-checklist .qc-choices,.cf-questions-checklist .qc-answer{grid-column:1/-1}
.cf-questions-checklist .qc-leader{display:none}
.cf-questions-checklist .qc-line-text,.cf-questions-checklist .qc-total{align-items:baseline;gap:12px}
.cf-questions-checklist .qc-line-name,.cf-questions-checklist .qc-total > span:first-child{flex:1}
.cf-questions-checklist .qc-cta{padding:12px 16px;font-size:1.0625rem}
}
@keyframes qc-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes qc-pop{from{transform:scale(.9)}to{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){
.cf-questions-checklist .qc-q,.cf-questions-checklist .qc-reply,.cf-questions-checklist .qc-close,.cf-questions-checklist .qc-dot svg{animation:none}
.cf-questions-checklist .qc-choice,.cf-questions-checklist .qc-pip,.cf-questions-checklist .qc-cta{transition:none}
.cf-questions-checklist .qc-choice:active{transform:none}
.cf-questions-checklist .qc-cta:hover:not(:disabled),.cf-questions-checklist .qc-cta[data-state="hover"],.cf-questions-checklist .qc-cta:active:not(:disabled),.cf-questions-checklist .qc-cta[data-state="active"]{transform:none}
}
`
pieces/content/questions-checklist/specimen.tsx 32 lines
import __studioImage7175a8e7 from "../assets/40dbbeae5e635af7.webp";
import QuestionsChecklist, { type QuestionsChecklistProps } from "../questions-checklist"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
export const states = ["default", "hover", "active", "disabled"]
export default function QuestionsChecklistSpecimen({ state }: { state?: QuestionsChecklistProps["state"] }) {
const sample = defaults.sample
return (
<QuestionsChecklist
state={state}
presenterImage={slot(
"presenter-cutout",
__studioImage7175a8e7,
)}
presenterAlt="Maya Ellis, creator of The Funnel Starter Kit"
presenterName="Maya Ellis"
presenterRole={`Creator of ${sample.name}`}
items={sample.items.map((item, n) => ({
name: item.name,
value: item.value,
image: slot(`item-${n + 1}`, item.image),
}))}
totalValue={sample.regularPrice}
price={sample.price}
priceNote={sample.note}
reassurance={`${sample.guarantee} · Instant download`}
defaultAnswers={["yes", null, null]}
/>
)
}
| Name | Type | Details |
|---|---|---|
quote OptionalQuestionsChecklist |
string |
|
quoteEmphasis OptionalQuestionsChecklist |
string |
|
aside OptionalQuestionsChecklist |
React.ReactNode |
|
presenterImage OptionalQuestionsChecklist |
string |
|
presenterAlt OptionalQuestionsChecklist |
string |
|
presenterName OptionalQuestionsChecklist |
string |
|
presenterRole OptionalQuestionsChecklist |
string |
|
questions OptionalQuestionsChecklist |
QuestionsChecklistQuestion[] |
|
yesLabel OptionalQuestionsChecklist |
string |
|
noLabel OptionalQuestionsChecklist |
string |
|
tallyIdle OptionalQuestionsChecklist |
string |
|
tallyTemplate OptionalQuestionsChecklist |
string |
|
closeHeadline OptionalQuestionsChecklist |
React.ReactNode |
|
closeHeadlineAllYes OptionalQuestionsChecklist |
React.ReactNode |
|
closeHeadlineSomeNo OptionalQuestionsChecklist |
React.ReactNode |
|
items OptionalQuestionsChecklist |
QuestionsChecklistItem[] |
|
totalLabel OptionalQuestionsChecklist |
string |
|
totalValue OptionalQuestionsChecklist |
string |
|
todayLabel OptionalQuestionsChecklist |
string |
|
price OptionalQuestionsChecklist |
string |
|
priceNote OptionalQuestionsChecklist |
string |
|
label OptionalQuestionsChecklist |
string |
|
reassurance OptionalQuestionsChecklist |
string |
|
secondaryLabel OptionalQuestionsChecklist |
string |
|
secondaryHref OptionalQuestionsChecklist |
string |
|
href OptionalQuestionsChecklist |
string |
|
onAction OptionalQuestionsChecklist |
(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void |
|
onAnswersChange OptionalQuestionsChecklist |
(answers: QuestionsChecklistAnswer[]) => void |
|
defaultAnswers OptionalQuestionsChecklist |
QuestionsChecklistAnswer[] |
|
state OptionalQuestionsChecklist |
"default" | "hover" | "active" | "disabled" |
|
className OptionalQuestionsChecklist |
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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
presenter-cutout- The presenter on a transparent background.
-
40dbbeae5e635af7.webp
image/webp · 236 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB