Is This You 10
Is this you? Each pain the visitor ticks lights a route that runs into their live match score and wakes the button waiting at the end of it.
Use it in a prompt
Use content/is-this-you-10 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/is-this-you-10.tsx. - Import it and pass your copy and images (Props tab):
import { IsThisYou10 } from "@/components/funneldna/content/is-this-you-10"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/is-this-you-10/component.tsx 485 lines
// layout: route-map
// Is this you? Each pain the visitor ticks lights a route that runs into their live match score and wakes the button waiting at the end of it.
'use client'
import * as React from 'react'
import { AlertCircle, Check, Loader2, ShieldCheck } from 'lucide-react'
export type IsThisYou10State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type IsThisYou10Item = {
name?: string
/** Product photo src (page slots item-1 to item-3). */
image?: string
/** Alt text; falls back to name. */
imageAlt?: string
}
export type IsThisYou10Verdict = { line: string; title: string }
export type IsThisYou10Copy = {
/** Score line before anything is ticked. */
zeroLine: string
/** Score title before anything is ticked. */
zeroTitle: string
/** Uses {count} and {total}. */
countLine: string
/** Uses {total}; shown when every line is ticked. */
allLine: string
/** Title while fewer than half the lines are ticked. */
someTitle: string
/** Title once half or more are ticked. */
strongTitle: string
}
export type IsThisYou10Props = {
headline?: string
/** Phrase inside the headline that gets the marker stroke. */
emphasis?: string
lead?: string
/** The pains the visitor can tick. Their text is what onAction receives. */
statements?: Array<{ text: string } | string>
/** Indexes ticked on first render (leave empty on a live page). */
defaultChecked?: number[]
/** Score lines and titles; any key left out keeps its approved default. */
copy?: Partial<IsThisYou10Copy>
/** Overrides the generated score line and title. */
verdict?: (count: number, total: number) => IsThisYou10Verdict
productName?: string
/** Up to three product photos beside the product name (page slots item-1 to item-3). */
items?: IsThisYou10Item[]
/** One-sentence lines; the last one is set as the single-word punch. */
punch?: string[]
/** Outcome-led first line of the button. */
label?: string
/** Replaces {price} in sublabel. */
price?: string
/** Second line of the button; uses {price}. */
sublabel?: string
/** Button label while a returned onAction promise is pending. */
loadingLabel?: string
/** One reassurance line under the button (e.g. the guarantee); hidden when empty. */
reassurance?: string
/** Shown when onAction rejects or state is 'error'. */
errorText?: string
/** Locks the checklist and the button. */
disabled?: boolean
/** Navigation destination; the button renders as a link when set. */
href?: string
/** Receives the ticked lines. A returned promise shows loadingLabel; a rejection shows errorText. */
onAction?: (checked: string[]) => void | Promise<void>
state?: IsThisYou10State
className?: string
/** Inline style on the root, for page-level placement. */
style?: React.CSSProperties
}
type Status = 'idle' | 'loading' | 'error'
const DEFAULT_STATEMENTS = [
'I don’t know where to start.',
'My offer still feels unclear.',
'Writing page copy slows me down.',
'I’m unsure which pages I need.',
'I worry I’ll miss a launch step.',
]
const DEFAULT_PUNCH = ['Plan your funnel.', 'Write your page copy.', 'Check every step.', 'Launch.']
const DEFAULT_COPY: IsThisYou10Copy = {
zeroLine: 'Tick every line that sounds like you.',
zeroTitle: 'See if this was made for you.',
countLine: 'You checked {count} of {total}:',
allLine: 'You checked all {total}:',
someTitle: 'The kit covers that, step by step.',
strongTitle: 'This was made for you.',
}
export function IsThisYou10({
headline = 'Is this you?',
emphasis = 'you?',
lead = 'Tick the ones that sound familiar.',
statements = DEFAULT_STATEMENTS,
defaultChecked = [],
copy,
verdict,
productName = 'The Funnel Starter Kit',
items = [],
punch = DEFAULT_PUNCH,
label = 'Start planning my funnel',
price = '$47',
sublabel = '{price} · One payment · Lifetime access',
loadingLabel = 'One moment…',
reassurance = '',
errorText = 'That didn’t go through. Please try again.',
disabled = false,
href,
onAction,
state = 'default',
className,
style,
}: IsThisYou10Props) {
const text = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const titleId = `${uid}-title`
const leadId = `${uid}-lead`
const rows = statements.map((item) => (typeof item === 'string' ? item : item.text))
const total = rows.length
const [checked, setChecked] = React.useState<boolean[]>(() => rows.map((_, i) => defaultChecked.includes(i)))
const [status, setStatus] = React.useState<Status>(state === 'error' ? 'error' : 'idle')
const mounted = React.useRef(true)
const busy = React.useRef(false)
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
React.useEffect(() => {
setStatus(state === 'error' ? 'error' : 'idle')
}, [state])
const isDisabled = disabled || state === 'disabled'
const on = rows.map((_, i) => !!checked[i])
const count = on.filter(Boolean).length
const first = on.indexOf(true)
const level = count === 0 || total === 0 ? 0 : count < Math.ceil(total / 2) ? 1 : 2
const force = state === 'hover' || state === 'active' ? state : undefined
const v = verdict ? verdict(count, total) : defaultVerdict(count, total, text)
const loading = status === 'loading'
const thumbs = items.filter((item) => !!item.image).slice(0, 3)
const lines = punch.filter(Boolean)
const lastLine = lines.length > 1 ? lines[lines.length - 1] : undefined
const bodyLines = lastLine ? lines.slice(0, -1) : lines
const sub = sublabel ? sublabel.split('{price}').join(price) : ''
const toggle = (index: number) => {
if (isDisabled || busy.current) return
setChecked((prev) => rows.map((_, i) => (i === index ? !prev[i] : !!prev[i])))
if (status === 'error') setStatus('idle')
}
const handleAction = async (event: React.MouseEvent<HTMLElement>) => {
if (isDisabled || busy.current) {
event.preventDefault()
return
}
if (status === 'error') setStatus('idle')
if (!onAction) return
const picked = rows.filter((_, i) => on[i])
try {
const maybe = onAction(picked) as Promise<void> | undefined
if (!maybe || typeof maybe.then !== 'function') return
busy.current = true
setStatus('loading')
await maybe
if (mounted.current) setStatus('idle')
} catch {
if (mounted.current) setStatus('error')
} finally {
busy.current = false
}
}
const inner = (
<>
<span className='itv-btn-label'>
{loading ? <Loader2 className='itv-spin' aria-hidden='true' /> : null}
<span>{loading ? loadingLabel : label}</span>
</span>
{sub ? <span className='itv-btn-sub'>{sub}</span> : null}
</>
)
const button = href ? (
<a
className='itv-btn'
href={isDisabled ? undefined : href}
aria-disabled={isDisabled ? true : undefined}
aria-busy={loading || undefined}
onClick={handleAction}
>
{inner}
</a>
) : (
<button
type='button'
className='itv-btn'
disabled={isDisabled}
aria-busy={loading || undefined}
onClick={handleAction}
>
{inner}
</button>
)
return (
<section
className={`cf-is-this-you-10${className ? ` ${className}` : ''}`}
style={style}
data-level={level}
data-status={status}
data-force={force}
data-disabled={isDisabled ? '' : undefined}
aria-labelledby={titleId}
>
<style>{CSS}</style>
<header className='itv-head'>
<h2 className='itv-title' id={titleId}>
<Title text={headline} emphasis={emphasis} />
</h2>
{lead ? (
<p className='itv-lead' id={leadId}>
{lead}
</p>
) : null}
</header>
<div role='group' aria-labelledby={titleId} aria-describedby={lead ? leadId : undefined}>
<ul className='itv-route'>
{rows.map((row, i) => {
const upLit = first >= 0 && first < i
const downLit = first >= 0 && first <= i
return (
<li
key={i}
className='itv-stop'
style={{ '--i': i } as React.CSSProperties}
data-on={on[i] ? '' : undefined}
data-pass={upLit && !on[i] ? '' : undefined}
>
{i > 0 ? (
<span
className='itv-seg itv-seg-up'
data-lit={upLit ? '' : undefined}
style={segmentDelay((i - first) * 2 - 1)}
aria-hidden='true'
/>
) : null}
<span
className='itv-seg itv-seg-down'
data-lit={downLit ? '' : undefined}
style={segmentDelay((i - first) * 2)}
aria-hidden='true'
/>
<label className='itv-row'>
<input
type='checkbox'
className='itv-input'
checked={on[i]}
disabled={isDisabled}
onChange={() => toggle(i)}
/>
<span className='itv-node' aria-hidden='true'>
<Check strokeWidth={3.25} />
</span>
<span className='itv-text'>{row}</span>
</label>
</li>
)
})}
</ul>
</div>
<div className='itv-link' data-lit={count > 0 ? '' : undefined} aria-hidden='true'>
<span className='itv-seg' data-lit={count > 0 ? '' : undefined} style={segmentDelay((total - first) * 2)} />
<span className='itv-port' />
</div>
<div className='itv-panel'>
<div className='itv-verdict'>
<p className='itv-score' aria-hidden='true'>
<span key={count} className='itv-score-n'>
{count}
</span>
<span className='itv-score-of'>/{total}</span>
</p>
<div className='itv-vtext' aria-live='polite' aria-atomic='true'>
<p className='itv-vline'>{v.line}</p>
<p className='itv-vtitle'>{v.title}</p>
</div>
</div>
<div className='itv-offer'>
<div className='itv-copy'>
{thumbs.length ? (
<div className='itv-thumbs'>
{thumbs.map((item, i) => (
<img
key={i}
className='itv-thumb'
src={item.image}
alt={item.imageAlt ?? item.name ?? ''}
width={112}
height={112}
loading='lazy'
decoding='async'
/>
))}
</div>
) : null}
<h3 className='itv-name'>{productName}</h3>
{lines.length ? (
<div className='itv-punch'>
{bodyLines.map((line, i) => (
<p key={i}>{line}</p>
))}
{lastLine ? <p className='itv-punch-word'>{lastLine}</p> : null}
</div>
) : null}
</div>
<div className='itv-action'>
{button}
{status === 'error' ? (
<p className='itv-error' role='alert'>
<AlertCircle aria-hidden='true' />
<span>{errorText}</span>
</p>
) : null}
{reassurance ? (
<p className='itv-assure'>
<ShieldCheck aria-hidden='true' />
<span>{reassurance}</span>
</p>
) : null}
</div>
</div>
</div>
</section>
)
}
export default IsThisYou10
/** Staggers the route light: 45ms per segment step, capped at 360ms. */
function segmentDelay(steps: number): React.CSSProperties {
return { '--itv-d': `${Math.min(Math.max(steps, 0) * 45, 360)}ms` } as React.CSSProperties
}
function defaultVerdict(count: number, total: number, t: IsThisYou10Copy): IsThisYou10Verdict {
if (count === 0 || total === 0) return { line: t.zeroLine, title: t.zeroTitle }
const template = count === total ? t.allLine : t.countLine
const line = template.split('{count}').join(String(count)).split('{total}').join(String(total))
return { line, title: count < Math.ceil(total / 2) ? t.someTitle : t.strongTitle }
}
function Title({ text, emphasis }: { text: string; emphasis?: string }) {
const at = emphasis ? text.lastIndexOf(emphasis) : -1
if (!emphasis || at < 0) return <>{text}</>
return (
<>
{text.slice(0, at)}
<span className='itv-em'>{emphasis}</span>
{text.slice(at + emphasis.length)}
</>
)
}
// Theme notes: every colour reads a contract token (hex only as the last var() fallback; #fae37c is the documented
// marker default). Faces come from --font-display / --font-body only. Shadows are built on --shadow (via --itv-shade).
// The native checkbox is visually hidden behind .itv-node; it still reads the field role (--field-focus) for its
// accent colour and the focus ring, so a theme that styles fields reaches it.
// The reduced-motion block keeps !important: its `.cf-is-this-you-10 *` selector (0,1,0) is weaker than the
// per-element transition rules (0,2,0+), so dropping it would let transitions and their delays run again.
const CSS = `
.cf-is-this-you-10{--itv-col:52px;--itv-accent:var(--accent,#2457d6);--itv-line:oklch(from var(--ink,#101828) l c h / 0.13);--itv-ring:oklch(from var(--ink,#101828) l c h / 0.34);--itv-shade:var(--shadow,oklch(0.22 0.03 260));--itv-marker:color-mix(in oklch,var(--marker,#fae37c) 72%,var(--surface,#ffffff));container-type:inline-size;box-sizing:border-box;width:100%;max-width:880px;margin-inline:auto;color:var(--ink,#101828);font-family:var(--font-body,system-ui,sans-serif);text-align:left;-webkit-font-smoothing:antialiased}
.cf-is-this-you-10 *,.cf-is-this-you-10 *::before,.cf-is-this-you-10 *::after{box-sizing:border-box}
.cf-is-this-you-10 p,.cf-is-this-you-10 h2,.cf-is-this-you-10 h3,.cf-is-this-you-10 ul{margin:0}
.cf-is-this-you-10 .itv-head{margin-bottom:clamp(1.75rem,4.5cqi,2.75rem)}
.cf-is-this-you-10 .itv-title{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.035em);font-size:clamp(2.75rem,9.5cqi,5.5rem);line-height:.96;color:var(--ink,#101828);text-wrap:balance}
.cf-is-this-you-10 .itv-em{background:linear-gradient(var(--itv-marker),var(--itv-marker)) 0 86%/100% .42em no-repeat;padding-inline:.08em;margin-inline:-.04em;border-radius:.12em .32em .18em .26em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-is-this-you-10 .itv-lead{margin-top:clamp(.875rem,2.6cqi,1.5rem);max-width:60ch;font-size:clamp(1.125rem,2.4cqi,1.375rem);font-weight:500;line-height:1.4;color:var(--muted,#475467);text-wrap:pretty}
.cf-is-this-you-10 .itv-route{list-style:none;padding:0}
.cf-is-this-you-10 .itv-stop{position:relative;padding-block:.3125rem}
.cf-is-this-you-10 .itv-seg{position:absolute;left:calc(var(--itv-col) / 2 - 1.5px);width:3px;border-radius:2px;background:var(--itv-line);overflow:hidden;pointer-events:none}
.cf-is-this-you-10 .itv-seg::after{content:'';position:absolute;inset:0;background:var(--accent-fill,var(--itv-accent));transform:scaleY(0);transform-origin:top;transition:transform .14s cubic-bezier(.3,.7,.3,1) var(--itv-d,0ms)}
.cf-is-this-you-10 .itv-seg[data-lit]::after{transform:scaleY(1)}
.cf-is-this-you-10 .itv-seg-up{top:0;height:50%}
.cf-is-this-you-10 .itv-seg-down{top:50%;bottom:0}
.cf-is-this-you-10 .itv-row{position:relative;display:grid;grid-template-columns:var(--itv-col) minmax(0,1fr);align-items:center;min-height:3.5rem;cursor:pointer}
.cf-is-this-you-10 .itv-input{position:absolute;z-index:2;left:calc(var(--itv-col) / 2 - 22px);top:50%;width:44px;height:44px;margin:0;opacity:0;transform:translateY(-50%);cursor:inherit;accent-color:var(--field-focus,var(--accent,#2457d6))}
.cf-is-this-you-10 .itv-node{position:relative;z-index:1;grid-column:1;grid-row:1;justify-self:center;display:grid;place-items:center;width:30px;height:30px;border-radius:999px;border:2px solid var(--itv-ring);background:var(--card,#ffffff);color:var(--card,#ffffff);transition:background .18s ease,border-color .18s ease,transform .18s cubic-bezier(.2,.8,.2,1)}
.cf-is-this-you-10 .itv-node svg{width:17px;height:17px;opacity:0;transform:scale(.4);transition:opacity .16s ease,transform .2s cubic-bezier(.2,.9,.3,1.3)}
.cf-is-this-you-10 .itv-stop[data-pass] .itv-node{border-color:var(--itv-accent)}
.cf-is-this-you-10 .itv-stop[data-on] .itv-node{background:var(--itv-accent);border-color:var(--itv-accent)}
.cf-is-this-you-10 .itv-stop[data-on] .itv-node svg{opacity:1;transform:scale(1)}
.cf-is-this-you-10 .itv-input:focus-visible ~ .itv-node{outline:3px solid var(--field-focus,var(--accent,#2457d6));outline-offset:3px}
.cf-is-this-you-10 .itv-text{grid-column:2;grid-row:1;display:flex;align-items:center;min-height:3.25rem;padding:.875rem 1.125rem;border-radius:var(--radius,10px);background:color-mix(in oklch,var(--ink,#101828) 3.5%,var(--surface,#ffffff));font-family:var(--font-display,inherit);font-weight:700;font-size:clamp(1.0625rem,2.5cqi,1.375rem);line-height:1.25;letter-spacing:-.01em;color:var(--ink,#101828);text-wrap:pretty;transition:background .18s ease,box-shadow .18s ease}
.cf-is-this-you-10:not([data-disabled]) .itv-row:hover .itv-text{background:color-mix(in oklch,var(--ink,#101828) 6.5%,var(--surface,#ffffff))}
.cf-is-this-you-10:not([data-disabled]) .itv-row:hover .itv-node{transform:scale(1.06)}
.cf-is-this-you-10 .itv-stop[data-on] .itv-text,.cf-is-this-you-10:not([data-disabled]) .itv-stop[data-on] .itv-row:hover .itv-text{background:color-mix(in oklch,var(--accent-fill,var(--itv-accent)) 11%,var(--surface,#ffffff));box-shadow:inset 0 0 0 1.5px oklch(from var(--accent-fill, var(--itv-accent)) l c h / 0.32)}
.cf-is-this-you-10 .itv-row:active .itv-node{transform:scale(.94)}
.cf-is-this-you-10[data-disabled] .itv-row{cursor:not-allowed}
.cf-is-this-you-10[data-disabled] .itv-stop:not([data-on]) .itv-node{background:var(--secondary,#e9ecf2);border-color:var(--itv-line)}
.cf-is-this-you-10 .itv-link{position:relative;z-index:2;width:var(--itv-col);height:2.25rem}
.cf-is-this-you-10 .itv-link .itv-seg{top:0;bottom:0}
.cf-is-this-you-10 .itv-port{position:absolute;left:50%;bottom:0;width:16px;height:16px;border-radius:999px;transform:translate(-50%,50%);background:var(--card,#ffffff);border:3px solid var(--itv-ring);transition:background .2s ease,border-color .2s ease}
.cf-is-this-you-10 .itv-link[data-lit] .itv-port{background:var(--accent-fill,var(--itv-accent));border-color:var(--card,#ffffff);outline:2px solid var(--accent-fill, var(--itv-accent))}
.cf-is-this-you-10 .itv-panel{position:relative;z-index:1;overflow:hidden;border-radius:calc(var(--card-radius,var(--radius,12px)) + 4px);background:var(--card,#ffffff);border:1px solid var(--card-border,color-mix(in oklch,var(--ink,#101828) 12%,transparent));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--itv-shade) l c h / .22),0 12px 24px -8px oklch(from var(--itv-shade) l c h / .32)))}
.cf-is-this-you-10 .itv-verdict{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:clamp(.875rem,3.4cqi,1.75rem);padding:clamp(1.25rem,4cqi,1.875rem) clamp(1.25rem,4.5cqi,2.25rem);background:var(--band,#1b2a4a);color:var(--band-ink,#ffffff);box-shadow:inset 0 1px 0 oklch(from var(--band,#1b2a4a) calc(l + 0.08) c h)}
.cf-is-this-you-10 .itv-score{display:flex;align-items:baseline;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(3.25rem,11cqi,5.75rem);line-height:.82;letter-spacing:-.045em;font-variant-numeric:tabular-nums;color:var(--band-ink,#ffffff)}
.cf-is-this-you-10 .itv-score-n{display:inline-block}
.cf-is-this-you-10 .itv-score-of{margin-left:.08em;font-size:.4em;letter-spacing:-.01em}
.cf-is-this-you-10 .itv-vline{font-size:clamp(1rem,2.2cqi,1.1875rem);font-weight:600;line-height:1.3;text-wrap:pretty}
.cf-is-this-you-10 .itv-vtitle{margin-top:.3rem;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.5rem,4.6cqi,2.375rem);line-height:1.04;letter-spacing:-.02em;text-wrap:balance}
.cf-is-this-you-10 .itv-offer{display:grid;gap:1.5rem;padding:clamp(1.375rem,4.5cqi,2.25rem)}
.cf-is-this-you-10 .itv-thumbs{display:flex;margin-bottom:1rem}
.cf-is-this-you-10 .itv-thumb{display:block;width:58px;height:58px;object-fit:cover;object-position:center;border-radius:12px;border:3px solid var(--card,#ffffff);background:var(--card,#ffffff);filter:drop-shadow(0 1px 2px oklch(from var(--itv-shade) l c h / 0.28)) drop-shadow(0 4px 6px oklch(from var(--itv-shade) l c h / 0.14))}
.cf-is-this-you-10 .itv-thumb + .itv-thumb{margin-left:-14px}
.cf-is-this-you-10 .itv-name{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.5rem,3.8cqi,2.125rem);line-height:1.06;letter-spacing:-.02em;color:var(--ink,#101828);text-wrap:balance}
.cf-is-this-you-10 .itv-punch{display:grid;gap:.15rem;margin-top:.875rem}
.cf-is-this-you-10 .itv-punch p{font-size:1.0625rem;font-weight:500;line-height:1.45;color:var(--ink,#101828);text-wrap:pretty}
.cf-is-this-you-10 .itv-punch .itv-punch-word{margin-top:.35rem;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:1.625rem;line-height:1.1;letter-spacing:-.02em;color:var(--itv-accent)}
.cf-is-this-you-10 .itv-action{display:grid;gap:.875rem;align-content:start}
.cf-is-this-you-10 .itv-btn{--b:var(--button-bg,var(--cta,#d92d20));--b2:var(--button-bg-2,var(--cta-2,#b42318));position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;width:100%;min-height:4.25rem;margin:0;padding:.8rem 1.25rem .85rem;border:0;border-radius:var(--button-radius,var(--radius,10px));background:linear-gradient(oklch(from var(--b) calc(l + 0.04) c h),oklch(from var(--b2) calc(l + 0.01) c h));color:var(--button-ink,var(--cta-ink,#ffffff));font-family:var(--button-font,var(--font-display,inherit));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);text-align:center;text-decoration:none;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--b2) calc(l - 0.1) c h),0 1px 2px oklch(from var(--itv-shade) l c h / 0.3),0 6px 14px -4px oklch(from var(--itv-shade) l c h / 0.38));transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .16s ease,background .25s ease;-webkit-tap-highlight-color:transparent}
.cf-is-this-you-10 .itv-btn::after{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(100deg,transparent 30%,oklch(from var(--b) calc(l + 0.22) c h / 0.5) 50%,transparent 70%);transform:translateX(-120%);pointer-events:none}
.cf-is-this-you-10 .itv-btn-label{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-size:clamp(1.125rem,2.7cqi,1.3125rem);line-height:1.15;letter-spacing:-.005em;text-wrap:balance}
.cf-is-this-you-10 .itv-btn-sub{font-family:var(--font-body,inherit);font-size:.875rem;font-weight:600;line-height:1.25;letter-spacing:0;text-transform:none;text-wrap:pretty}
.cf-is-this-you-10 .itv-spin{width:20px;height:20px;flex:none;animation:itv-spin .9s linear infinite}
.cf-is-this-you-10[data-level='0'] .itv-btn{background:oklch(from var(--b) l calc(c * 0.55) h);box-shadow:inset 0 -2px 0 oklch(from var(--b) calc(l - 0.1) calc(c * 0.55) h),0 1px 2px oklch(from var(--itv-shade) l c h / 0.25)}
.cf-is-this-you-10 .itv-btn:hover:not(:disabled):not([aria-disabled='true']),.cf-is-this-you-10[data-force='hover'] .itv-btn{transform:translateY(-2px);background:linear-gradient(oklch(from var(--b) l c h),oklch(from var(--b2) calc(l - 0.03) c h));box-shadow:inset 0 1px 0 oklch(from var(--b) calc(l + 0.12) c h / 0.6),inset 0 -3px 0 oklch(from var(--b2) calc(l - 0.12) c h),0 2px 3px oklch(from var(--itv-shade) l c h / 0.32),0 10px 18px -6px oklch(from var(--itv-shade) l c h / 0.42)}
.cf-is-this-you-10 .itv-btn:active:not(:disabled):not([aria-disabled='true']),.cf-is-this-you-10[data-force='active'] .itv-btn{transform:translateY(1px) scale(.995);background:linear-gradient(oklch(from var(--b) calc(l - 0.06) c h),oklch(from var(--b2) calc(l - 0.08) c h));box-shadow:inset 0 2px 3px oklch(from var(--b2) calc(l - 0.18) c h / 0.5),inset 0 -1px 0 oklch(from var(--b2) calc(l - 0.12) c h),0 1px 1px oklch(from var(--itv-shade) l c h / 0.3)}
.cf-is-this-you-10 .itv-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent,#2457d6));outline-offset:3px}
.cf-is-this-you-10 .itv-btn:is(:disabled,[aria-disabled='true']){transform:none;background:var(--button-2-bg,var(--secondary,#e9ecf2));color:var(--button-2-ink,var(--secondary-ink,#101828));text-shadow:none;box-shadow:none;cursor:not-allowed}
.cf-is-this-you-10 .itv-error{display:flex;align-items:flex-start;gap:.5rem;padding:.625rem .875rem;border-radius:var(--radius,10px);background:var(--danger-soft,#fde8e6);color:var(--danger,#b42318);font-size:.9375rem;font-weight:600;line-height:1.35;text-wrap:pretty}
.cf-is-this-you-10 .itv-error svg{width:18px;height:18px;flex:none;margin-top:1px}
.cf-is-this-you-10 .itv-assure{display:flex;align-items:center;justify-content:center;gap:.5rem;font-size:.9375rem;font-weight:600;line-height:1.35;color:var(--ink,#101828);text-align:center;text-wrap:pretty}
.cf-is-this-you-10 .itv-assure svg{width:20px;height:20px;flex:none;color:var(--success,#15803d)}
@container (min-width: 640px){
.cf-is-this-you-10 .itv-offer{grid-template-columns:minmax(0,1fr) minmax(17.5rem,21.5rem);column-gap:clamp(1.75rem,4cqi,2.75rem);align-items:start}
}
@container (max-width: 479px){
.cf-is-this-you-10 .itv-route,.cf-is-this-you-10 .itv-link{--itv-col:42px}
.cf-is-this-you-10 .itv-node{width:26px;height:26px}
.cf-is-this-you-10 .itv-node svg{width:15px;height:15px}
.cf-is-this-you-10 .itv-text{padding:.75rem .875rem}
.cf-is-this-you-10 .itv-thumb{width:50px;height:50px}
}
@media (prefers-reduced-motion: no-preference){
.cf-is-this-you-10 .itv-stop{animation:itv-in .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--i) * 55ms),300ms)}
.cf-is-this-you-10 .itv-score-n{animation:itv-pop .32s cubic-bezier(.2,.9,.3,1.2) both}
.cf-is-this-you-10:not([data-level='0']):not([data-disabled]) .itv-btn{animation:itv-wake .5s cubic-bezier(.2,.8,.2,1) 1}
.cf-is-this-you-10:not([data-level='0']):not([data-disabled]) .itv-btn::after{animation:itv-sheen .9s ease .2s 1 both}
}
@media (prefers-reduced-motion: reduce){
.cf-is-this-you-10 *,.cf-is-this-you-10 *::before,.cf-is-this-you-10 *::after{transition-duration:.01ms !important;transition-delay:0s !important}
}
@keyframes itv-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes itv-pop{0%{transform:translateY(.12em) scale(.9);opacity:.6}100%{transform:none;opacity:1}}
@keyframes itv-wake{0%{transform:scale(.98)}55%{transform:scale(1.02)}100%{transform:scale(1)}}
@keyframes itv-sheen{from{transform:translateX(-120%)}to{transform:translateX(120%)}}
@keyframes itv-spin{to{transform:rotate(360deg)}}
`
pieces/content/is-this-you-10/specimen.tsx 24 lines
import { IsThisYou10, type IsThisYou10State } from '../is-this-you-10'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states: IsThisYou10State[] = ['default', 'hover', 'active', 'disabled', 'error']
export default function IsThisYou10Specimen({ state = 'default' }: { state?: IsThisYou10State }) {
const sample = defaults.sample
return (
<IsThisYou10
state={state}
productName={sample.name}
price={sample.price}
sublabel={`{price} · ${sample.note}`}
reassurance={sample.guarantee}
items={sample.items.map((item, i) => ({
name: item.name,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}))}
defaultChecked={[0, 2, 4]}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalIsThisYou10 |
string |
Default 'Is this you?'
|
emphasis OptionalIsThisYou10 |
string |
Default 'you?'
|
lead OptionalIsThisYou10 |
string |
Default 'Tick the ones that sound familiar.'
|
statements OptionalIsThisYou10 |
Array<{ text: string } | string> |
Default DEFAULT_STATEMENTS
|
defaultChecked OptionalIsThisYou10 |
number[] |
Default []
|
copy OptionalIsThisYou10 |
Partial<IsThisYou10Copy> |
|
verdict OptionalIsThisYou10 |
(count: number, total: number) => IsThisYou10Verdict |
|
productName OptionalIsThisYou10 |
string |
Default 'The Funnel Starter Kit'
|
items OptionalIsThisYou10 |
IsThisYou10Item[] |
Default []
|
punch OptionalIsThisYou10 |
string[] |
Default DEFAULT_PUNCH
|
label OptionalIsThisYou10 |
string |
Default 'Start planning my funnel'
|
price OptionalIsThisYou10 |
string |
Default '$47'
|
sublabel OptionalIsThisYou10 |
string |
Default '{price} · One payment · Lifetime access'
|
loadingLabel OptionalIsThisYou10 |
string |
Default 'One moment…'
|
reassurance OptionalIsThisYou10 |
string |
Default ''
|
errorText OptionalIsThisYou10 |
string |
Default 'That didn’t go through. Please try again.'
|
disabled OptionalIsThisYou10 |
boolean |
Default false
|
href OptionalIsThisYou10 |
string |
|
onAction OptionalIsThisYou10 |
(checked: string[]) => void | Promise<void> |
|
state OptionalIsThisYou10 |
IsThisYou10State |
Default 'default'
|
className OptionalIsThisYou10 |
string |
|
style OptionalIsThisYou10 |
React.CSSProperties |
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- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB