Is This You 11
Is this you? A dark lacquered clipboard with a brass clip. The visitor ticks the pains that fit, the sheet answers with their count, and the offer button under it comes alive.
Use it in a prompt
Use content/is-this-you-11 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-11.tsx. - Import it and pass your copy and images (Props tab):
import { IsThisYou11 } from "@/components/funneldna/content/is-this-you-11"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/is-this-you-11/component.tsx 719 lines
// layout: clipboard-checklist
// Is this you? A dark lacquered clipboard with a brass clip. The visitor ticks the pains that fit, the sheet answers with their count, and the offer button under it comes alive.
// Theme notes: every colour reads a theme token or an OKLCH recipe on one. The brass clip is a component-scoped detail (--clip-metal) that falls back to the theme's --warning hue with fixed metal lightness steps. The hidden native checkbox reads the field role tokens. The checkbox border reads --field-border, and disabled boxes use a neutral ink-into-card hairline. The tick glyph on the accent fill reads --card. The disabled button reads the secondary-button role tokens.
'use client'
import * as React from 'react'
import { AlertCircle, Check, Loader2, ShieldCheck } from 'lucide-react'
import { Mark } from '../marks/marks'
export type IsThisYou11State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type IsThisYou11Item = { name: string; image?: string; imageAlt?: string }
export type IsThisYou11Verdict = { line: React.ReactNode; punch?: string }
export type IsThisYou11Copy = {
/** Count line before anything is ticked. */
zeroLine: string
/** Count line; {tally} is replaced by the tally phrase, set in the accent colour. Without {tally}, {count} and {total} are filled as plain text. */
countLine: string
/** Tally phrase; uses {count} and {total}. */
tally: string
/** Tally phrase when every line is ticked; uses {total}. */
tallyAll: string
/** Punch line when fewer than half the lines are ticked. */
somePunch: string
/** Punch line when half or more, but not all, are ticked. */
manyPunch: string
/** Punch line when every line is ticked. */
allPunch: string
/** Label before the struck regular price. */
regularLabel: string
/** Label before today's price. */
todayLabel: string
/** Screen-reader price line; uses {regularLabel}, {regular}, {todayLabel} and {price}. */
priceSpoken: string
/** Screen-reader price line when there is no regular price; uses {todayLabel} and {price}. */
priceSpokenToday: string
/** Shown when requireTick is on and nothing is ticked. */
tickFirst: string
}
export type IsThisYou11Props = {
headline?: string
/** Line under the headline; also describes the checklist group. */
subhead?: string
/** The pains the visitor can tick. Record text is submitted as strings. */
statements?: Array<{ text: string } | string>
/** Indexes ticked on first render (leave empty on a live page). */
defaultChecked?: number[]
/** Generated lines, labels and messages; any key left out keeps its default. */
copy?: Partial<IsThisYou11Copy>
/** Overrides the generated verdict. */
verdict?: (count: number, total: number) => IsThisYou11Verdict
productName?: string
/** Short punch line under the product name. */
tagline?: string
/** Up to three item photos shown above the product name (page slots item-1 to item-3). */
items?: IsThisYou11Item[]
/** Regular price, struck with a marker cross; nothing renders when empty. */
regularPrice?: string
/** Today's price, set large. */
price?: string
/** Button label. */
label?: string
/** Button label while a promise returned by onAction is pending. */
loadingLabel?: string
/** One short line under the button; a guarantee line gets a shield. */
reassurance?: Array<{ text: string } | string>
/** Shown under the button when onAction rejects, and in the error state. */
errorText?: string
/** Ask for at least one tick before the action runs. */
requireTick?: boolean
disabled?: boolean
/** Navigation destination; the button renders as a link when set. */
href?: string
/** Receives the ticked lines. A returned promise shows the loading label; a rejection shows errorText. */
onAction?: (checked: string[]) => void | Promise<void>
/** Preview state: hover and active are forced looks, disabled and error are the real states. */
state?: IsThisYou11State
/** Root class for page-level placement. */
className?: string
/** Root inline style for page-level placement. */
style?: React.CSSProperties
}
type Status = 'idle' | 'loading' | 'error'
const DEFAULT_STATEMENTS = [
'I don’t know where to start.',
'My offer is still hard to explain.',
'Writing my page copy slows me down.',
'I’m unsure which pages I need.',
'I worry I’ll miss a step before launch.',
]
const DEFAULT_REASSURANCE = ['One payment · Lifetime access', '30-day money-back guarantee']
const DEFAULT_COPY: IsThisYou11Copy = {
zeroLine: 'Tick a line and see where you land.',
countLine: 'You checked {tally}.',
tally: '{count} of {total}',
tallyAll: 'all {total}',
somePunch: 'The kit covers each one.',
manyPunch: 'This was made for you.',
allPunch: 'This was made for you.',
regularLabel: 'Regular price',
todayLabel: 'Today',
priceSpoken: '{regularLabel} {regular}. {todayLabel} {price}.',
priceSpokenToday: '{todayLabel} {price}',
tickFirst: 'Tick at least one line that sounds like you.',
}
export function IsThisYou11({
headline = 'Is this you?',
subhead = 'Tick the things holding your funnel back.',
statements = DEFAULT_STATEMENTS,
defaultChecked = [],
copy,
verdict,
productName = 'The Funnel Starter Kit',
tagline = 'Plan it. Write it. Check it.',
items = [],
regularPrice = '$97',
price = '$47',
label = 'Yes! I Want The Funnel Starter Kit',
loadingLabel = 'One moment…',
reassurance = DEFAULT_REASSURANCE,
errorText = 'That didn’t go through. Please try again.',
requireTick = false,
disabled = false,
href,
onAction,
state = 'default',
className,
style,
}: IsThisYou11Props) {
const text = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const titleId = `${uid}-title`
const subId = `${uid}-sub`
const tickErrId = `${uid}-tick`
const assureId = `${uid}-assure`
const errId = `${uid}-err`
const rows = statements.map((s) => (typeof s === 'string' ? s : s.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 [tickError, setTickError] = React.useState(false)
const mounted = React.useRef(true)
const busy = React.useRef(false)
const firstBox = React.useRef<HTMLInputElement>(null)
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
React.useEffect(() => {
setStatus(state === 'error' ? 'error' : 'idle')
}, [state])
const isDisabled = disabled || state === 'disabled'
const count = rows.reduce((n, _, i) => n + (checked[i] ? 1 : 0), 0)
const level = count === 0 || total === 0 ? 0 : count === total ? 3 : count < Math.ceil(total / 2) ? 1 : 2
const force = state === 'hover' || state === 'active' ? state : undefined
const loading = status === 'loading'
const v = verdict ? verdict(count, total) : defaultVerdict(count, total, text)
const thumbs = items.filter((item) => !!item.image).slice(0, 3)
const assure = reassurance.map((item) => (typeof item === 'string' ? item : item.text)).filter(Boolean)
const spoken = regularPrice
? fill(text.priceSpoken, { regularLabel: text.regularLabel, regular: regularPrice, todayLabel: text.todayLabel, price })
: fill(text.priceSpokenToday, { todayLabel: text.todayLabel, price })
const showError = status === 'error' && !isDisabled
const describedBy = [assure.length ? assureId : '', showError ? errId : ''].filter(Boolean).join(' ') || undefined
const toggle = (index: number) => {
if (isDisabled || busy.current) return
setChecked((prev) => rows.map((_, i) => (i === index ? !prev[i] : !!prev[i])))
setTickError(false)
if (status === 'error') setStatus('idle')
}
const handleAction = async (event: React.MouseEvent<HTMLElement>) => {
if (isDisabled || busy.current) {
event.preventDefault()
return
}
if (requireTick && count === 0) {
event.preventDefault()
setTickError(true)
firstBox.current?.focus()
return
}
if (!onAction) return
const picked = rows.filter((_, i) => checked[i])
try {
const result = onAction(picked)
if (!result) return
busy.current = true
setStatus('loading')
await result
if (mounted.current) setStatus('idle')
} catch {
if (mounted.current) setStatus('error')
} finally {
busy.current = false
}
}
const ctaInner = (
<>
{level > 0 && !loading && !isDisabled ? <span className='itc-sheen' key={`sheen-${count}`} aria-hidden='true' /> : null}
{loading ? <Loader2 className='itc-spin' aria-hidden='true' /> : null}
<span className='itc-cta-label'>{loading ? loadingLabel : label}</span>
</>
)
return (
<section
className={`cf-is-this-you-11${className ? ` ${className}` : ''}`}
style={style}
data-level={level}
data-force={force}
data-disabled={isDisabled ? '' : undefined}
aria-labelledby={titleId}
>
<style>{CSS}</style>
<div className='itc-board'>
<header className='itc-head'>
<h2 className='itc-title' id={titleId}>{headline}</h2>
{subhead ? <p className='itc-sub' id={subId}>{subhead}</p> : null}
</header>
<div className='itc-stack'>
<span className='itc-under' aria-hidden='true' />
<span className='itc-clip' aria-hidden='true'>
<span className='itc-clip-tab' />
<span className='itc-clip-plate'>
<span className='itc-rivet itc-rivet--l' />
<span className='itc-rivet itc-rivet--r' />
</span>
</span>
<div className='itc-sheet'>
<div role='group' aria-labelledby={titleId} aria-describedby={subhead ? subId : undefined}>
<ul className='itc-list'>
{rows.map((row, i) => {
const on = !!checked[i]
return (
<li className='itc-item' key={i}>
<label className='itc-row' data-on={on ? '' : undefined}>
<input
ref={i === 0 ? firstBox : undefined}
className='itc-input'
type='checkbox'
checked={on}
disabled={isDisabled}
onChange={() => toggle(i)}
aria-invalid={tickError ? true : undefined}
aria-describedby={tickError ? tickErrId : undefined}
/>
<span className='itc-box' aria-hidden='true'>
<Check strokeWidth={3.5} />
</span>
<span className='itc-text'>{row}</span>
</label>
</li>
)
})}
</ul>
</div>
{tickError ? (
<p className='itc-alert itc-alert--tick' id={tickErrId} role='alert'>
<AlertCircle aria-hidden='true' />
<span>{text.tickFirst}</span>
</p>
) : null}
<div className='itc-verdict' aria-live='polite' aria-atomic='true'>
<p className='itc-verdict-line' key={`line-${count}`}>{v.line}</p>
{v.punch ? <p className='itc-punch' key={`punch-${level}`}>{v.punch}</p> : null}
</div>
<div className='itc-offer'>
<div className='itc-product'>
{thumbs.length ? (
<span className='itc-thumbs'>
{thumbs.map((item, i) => (
<img key={i} src={item.image} alt={item.imageAlt ?? item.name} width={160} height={160} loading='lazy' decoding='async' />
))}
</span>
) : null}
<h3 className='itc-name'>{productName}</h3>
</div>
{tagline ? <p className='itc-tagline'>{tagline}</p> : null}
<p className='itc-price'>
<span className='itc-sr'>{spoken}</span>
<span className='itc-price-row' aria-hidden='true'>
{regularPrice ? (
<span className='itc-reg'>
<span className='itc-reg-label'>{text.regularLabel}</span>
<span className='itc-reg-num'>
{regularPrice}
<span className='itc-slash'>
<Mark name='cross' width={46} height={32} />
</span>
</span>
</span>
) : null}
<span className='itc-today'>
<span className='itc-today-label'>{text.todayLabel}</span>
<span className='itc-today-num'>{price}</span>
</span>
</span>
</p>
<div className='itc-cta-wrap'>
{href && !isDisabled ? (
<a
className='itc-cta'
href={href}
onClick={handleAction}
data-alive={level > 0 ? '' : undefined}
aria-busy={loading || undefined}
aria-describedby={describedBy}
>
{ctaInner}
</a>
) : (
<button
type='button'
className='itc-cta'
onClick={handleAction}
disabled={isDisabled}
data-alive={level > 0 ? '' : undefined}
aria-busy={loading || undefined}
aria-describedby={describedBy}
>
{ctaInner}
</button>
)}
</div>
{showError ? (
<p className='itc-alert' id={errId} role='alert'>
<AlertCircle aria-hidden='true' />
<span>{errorText}</span>
</p>
) : null}
{assure.length ? (
<ul className='itc-assure' id={assureId}>
{assure.map((line, i) => (
<li key={i}>
{line.toLowerCase().includes('guarantee') ? <ShieldCheck className='itc-shield' aria-hidden='true' /> : null}
<span>{line}</span>
</li>
))}
</ul>
) : null}
</div>
</div>
</div>
</div>
</section>
)
}
export default IsThisYou11
/** Replaces each {key} in a copy template with its value. */
function fill(template: string, vars: Record<string, string | number>) {
return Object.keys(vars).reduce((out, key) => out.split('{' + key + '}').join(String(vars[key])), template)
}
/** Count line plus punch line for the current tally; the tally phrase is set in the accent colour. */
function defaultVerdict(count: number, total: number, text: IsThisYou11Copy): IsThisYou11Verdict {
if (count === 0 || total === 0) return { line: text.zeroLine }
const all = count === total
const tally = fill(all ? text.tallyAll : text.tally, { count, total })
const punch = all ? text.allPunch : count < Math.ceil(total / 2) ? text.somePunch : text.manyPunch
if (!text.countLine.includes('{tally}')) return { line: fill(text.countLine, { count, total }), punch }
const [before, after = ''] = text.countLine.split('{tally}')
return {
line: (
<>
{before}
<span className='itc-tally'>{tally}</span>
{after}
</>
),
punch,
}
}
// Scoped styles. The reduced-motion block keeps `!important`: its `.cf-is-this-you-11 *` reset must beat more specific
// animated selectors (the ticked box pop, verdict rise, sheen sweep, spinner), so dropping it would let motion through.
const CSS = `
.cf-is-this-you-11{
--itc-brass:var(--clip-metal,var(--warning,oklch(0.5 0.1 85)));
--itc-shade:var(--shadow,oklch(0.22 0.03 256));
--itc-band:var(--band,oklch(0.27 0.067 256));
--itc-btn:var(--button-bg,var(--cta,oklch(0.58 0.21 29)));
--itc-btn-2:var(--button-bg-2,var(--cta-2,oklch(0.51 0.21 29)));
--itc-btn2-bg:var(--button-2-bg,var(--secondary,oklch(0.93 0.015 263)));
--itc-focus:var(--field-focus,var(--accent,oklch(0.5 0.17 257)));
--itc-box:32px;
--itc-metal:linear-gradient(180deg,oklch(from var(--itc-brass) 0.94 calc(c * 0.5) h) 0%,oklch(from var(--itc-brass) 0.82 c h) 34%,oklch(from var(--itc-brass) 0.63 c h) 52%,oklch(from var(--itc-brass) 0.74 c h) 70%,oklch(from var(--itc-brass) 0.9 calc(c * 0.6) h) 100%);
--itc-brush:repeating-linear-gradient(90deg,oklch(from var(--itc-brass) 0.99 0.02 h / 0.16) 0 1px,transparent 1px 3px,oklch(from var(--itc-brass) 0.35 0.05 h / 0.08) 3px 4px,transparent 4px 7px);
container-type:inline-size;
display:block;
width:100%;
max-width:780px;
margin-inline:auto;
font-family:var(--font-body,Arial,sans-serif);
color:var(--ink,oklch(0.21 0.034 263));
}
.cf-is-this-you-11 *,.cf-is-this-you-11 *::before,.cf-is-this-you-11 *::after{box-sizing:border-box}
.cf-is-this-you-11 p,.cf-is-this-you-11 h2,.cf-is-this-you-11 h3,.cf-is-this-you-11 ul{margin:0}
.cf-is-this-you-11 .itc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cf-is-this-you-11 .itc-board{
position:relative;
padding:46px 40px 40px;
border-radius:calc(var(--radius,12px) + 16px);
background:var(--itc-band);
color:var(--band-ink,oklch(1 0 0));
box-shadow:inset 0 1px 0 oklch(from var(--itc-band) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--itc-band) calc(l - 0.08) c h),var(--shadow-lg,0 2px 4px oklch(0.22 0.03 256 / 0.22),0 12px 24px -8px oklch(0.22 0.03 256 / 0.32));
}
.cf-is-this-you-11 .itc-board::before{
content:'';
position:absolute;
inset:8px;
border-radius:calc(var(--radius,12px) + 10px);
border:1px solid oklch(from var(--itc-band) calc(l + 0.08) c h / 0.8);
pointer-events:none;
}
.cf-is-this-you-11 .itc-head{position:relative;text-align:center;margin:0 0 56px}
.cf-is-this-you-11 .itc-title{
font-family:var(--font-display,Arial,sans-serif);
font-weight:var(--display-weight,900);
letter-spacing:var(--display-tracking,-0.035em);
text-transform:var(--display-case,none);
font-size:clamp(2.75rem,1.2rem + 8cqi,5.5rem);
line-height:0.95;
color:var(--band-ink,oklch(1 0 0));
text-wrap:balance;
}
.cf-is-this-you-11 .itc-sub{
margin-top:18px;
font-size:clamp(1.08rem,0.9rem + 1.3cqi,1.45rem);
font-weight:500;
line-height:1.35;
color:var(--band-ink,oklch(1 0 0));
text-wrap:pretty;
}
.cf-is-this-you-11 .itc-stack{position:relative}
.cf-is-this-you-11 .itc-under{
position:absolute;
inset:14px 10px -10px;
border-radius:var(--card-radius,calc(var(--radius,12px) + 4px));
background:color-mix(in oklch,var(--ink,oklch(0.21 0.034 263)) 8%,var(--card,oklch(1 0 0)));
transform:rotate(-1.3deg);
box-shadow:var(--shadow-sm,0 1px 1px oklch(0.22 0.03 256 / 0.18),0 1px 3px oklch(0.22 0.03 256 / 0.14));
}
.cf-is-this-you-11 .itc-sheet{
position:relative;
z-index:1;
padding:50px clamp(18px,6cqi,44px) 34px;
background:var(--card,oklch(1 0 0));
color:var(--ink,oklch(0.21 0.034 263));
border:1px solid var(--card-border,color-mix(in oklch,var(--ink,oklch(0.21 0.034 263)) 12%,transparent));
border-radius:var(--card-radius,calc(var(--radius,12px) + 4px));
box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(0.22 0.03 256 / 0.22),0 4px 10px -2px oklch(0.22 0.03 256 / 0.2)));
}
.cf-is-this-you-11 .itc-clip{position:absolute;z-index:3;top:-30px;left:50%;width:clamp(150px,30cqi,230px);height:56px;transform:translateX(-50%);pointer-events:none}
.cf-is-this-you-11 .itc-clip-tab{
position:absolute;top:0;left:50%;width:46%;height:28px;transform:translateX(-50%);
border-radius:14px 14px 3px 3px;
background:var(--itc-brush),var(--itc-metal);
box-shadow:inset 0 1px 0 oklch(from var(--itc-brass) 0.97 0.03 h / 0.8),inset 0 -2px 0 oklch(from var(--itc-brass) 0.5 c h / 0.7),0 1px 2px oklch(from var(--itc-shade) l c h / 0.35);
}
.cf-is-this-you-11 .itc-clip-plate{
position:absolute;left:0;right:0;top:18px;bottom:0;
border-radius:12px 12px 16px 16px;
background:var(--itc-brush),var(--itc-metal);
box-shadow:inset 0 1px 0 oklch(from var(--itc-brass) 0.97 0.03 h / 0.85),inset 0 -3px 0 oklch(from var(--itc-brass) 0.48 c h),0 2px 2px oklch(from var(--itc-shade) l c h / 0.4),0 8px 12px -4px oklch(from var(--itc-shade) l c h / 0.4);
}
.cf-is-this-you-11 .itc-rivet{
position:absolute;top:50%;width:12px;height:12px;margin-top:-6px;border-radius:50%;
background:radial-gradient(circle at 35% 30%,oklch(from var(--itc-brass) 0.97 0.03 h) 0 1.5px,oklch(from var(--itc-brass) 0.66 c h) 3px,oklch(from var(--itc-brass) 0.42 c h) 6px);
box-shadow:inset 0 -1px 0 oklch(from var(--itc-brass) 0.32 c h);
}
.cf-is-this-you-11 .itc-rivet--l{left:16px}
.cf-is-this-you-11 .itc-rivet--r{right:16px}
.cf-is-this-you-11 .itc-list{list-style:none;padding:0}
.cf-is-this-you-11 .itc-item{position:relative}
.cf-is-this-you-11 .itc-row{
position:relative;
display:grid;
grid-template-columns:var(--itc-box) minmax(0,1fr);
align-items:start;
gap:16px;
padding:14px;
border-radius:12px;
cursor:pointer;
font-size:clamp(1.06rem,0.9rem + 1.3cqi,1.4rem);
transition:background-color 180ms ease;
}
.cf-is-this-you-11 .itc-item + .itc-item .itc-row::before{
content:'';position:absolute;top:0;left:14px;right:14px;height:1px;
background:oklch(from var(--ink,oklch(0.21 0.034 263)) l c h / 0.12);
}
.cf-is-this-you-11 .itc-row[data-on]{background:color-mix(in oklch,var(--accent-fill,var(--accent,oklch(0.5 0.17 257))) 8%,var(--card,oklch(1 0 0)))}
.cf-is-this-you-11 .itc-input{
position:absolute;width:1px;height:1px;opacity:0;margin:0;pointer-events:none;
background:var(--field,oklch(1 0 0));
color:var(--field-ink,var(--ink,oklch(0.21 0.034 263)));
accent-color:var(--field-focus,var(--accent,oklch(0.5 0.17 257)));
}
.cf-is-this-you-11 .itc-box{
display:grid;place-items:center;
width:var(--itc-box);height:var(--itc-box);
margin-top:calc(0.65em - var(--itc-box) / 2);
border-radius:9px;
border:2px solid var(--field-border,oklch(from var(--ink,oklch(0.21 0.034 263)) l c h / 0.32));
background:var(--field,oklch(1 0 0));
color:var(--card,oklch(1 0 0));
transition:background-color 160ms ease,border-color 160ms ease;
}
.cf-is-this-you-11 .itc-box svg{width:62%;height:62%;opacity:0;transform:scale(0.4);transition:opacity 140ms ease,transform 200ms cubic-bezier(0.34,1.56,0.64,1)}
.cf-is-this-you-11 .itc-row[data-on] .itc-box{
border-color:oklch(from var(--accent,oklch(0.5 0.17 257)) calc(l - 0.08) c h);
background:linear-gradient(oklch(from var(--accent,oklch(0.5 0.17 257)) calc(l + 0.05) c h),oklch(from var(--accent,oklch(0.5 0.17 257)) calc(l - 0.04) c h));
color:var(--card,oklch(1 0 0));
box-shadow:inset 0 1px 0 oklch(from var(--accent,oklch(0.5 0.17 257)) calc(l + 0.14) c h / 0.6),var(--shadow-sm,0 1px 1px oklch(0.22 0.03 256 / 0.18),0 1px 3px oklch(0.22 0.03 256 / 0.14));
animation:itc-pop 260ms ease-out;
}
.cf-is-this-you-11 .itc-row[data-on] .itc-box svg{opacity:1;transform:scale(1)}
.cf-is-this-you-11 .itc-input:focus-visible + .itc-box{outline:3px solid var(--itc-focus);outline-offset:3px}
.cf-is-this-you-11 .itc-text{
font-family:var(--font-display,Arial,sans-serif);
font-weight:700;
line-height:1.3;
color:var(--ink,oklch(0.21 0.034 263));
text-wrap:pretty;
}
.cf-is-this-you-11 .itc-row[data-on] .itc-text{font-weight:800}
.cf-is-this-you-11[data-disabled] .itc-row{cursor:not-allowed}
.cf-is-this-you-11[data-disabled] .itc-text{color:var(--muted,oklch(0.45 0.03 258))}
.cf-is-this-you-11[data-disabled] .itc-box{border-color:color-mix(in oklch,var(--ink,oklch(0.21 0.034 263)) 18%,var(--card,oklch(1 0 0)));background:color-mix(in oklch,var(--ink,oklch(0.21 0.034 263)) 5%,var(--field,oklch(1 0 0)))}
.cf-is-this-you-11[data-disabled] .itc-row[data-on] .itc-box{background:var(--secondary,oklch(0.93 0.015 263));border-color:color-mix(in oklch,var(--ink,oklch(0.21 0.034 263)) 18%,var(--card,oklch(1 0 0)));color:var(--secondary-ink,oklch(0.21 0.034 263));box-shadow:none}
.cf-is-this-you-11 .itc-alert{
display:flex;align-items:flex-start;gap:10px;
max-width:500px;margin:14px auto 0;padding:12px 14px;
border-radius:var(--radius,12px);
background:var(--danger-soft,oklch(0.93 0.024 27));
color:var(--danger,oklch(0.5 0.17 27));
font-size:15px;font-weight:600;line-height:1.4;text-align:left;text-wrap:pretty;
}
.cf-is-this-you-11 .itc-alert svg{flex:0 0 auto;width:18px;height:18px;margin-top:1px}
.cf-is-this-you-11 .itc-alert--tick{max-width:none}
.cf-is-this-you-11 .itc-verdict{margin-top:26px;text-align:center;display:grid;gap:4px}
.cf-is-this-you-11 .itc-verdict-line,.cf-is-this-you-11 .itc-punch{
font-family:var(--font-display,Arial,sans-serif);
font-weight:800;
font-size:clamp(1.35rem,1rem + 2.4cqi,2rem);
line-height:1.15;
letter-spacing:-0.015em;
color:var(--ink,oklch(0.21 0.034 263));
text-wrap:balance;
}
.cf-is-this-you-11[data-level='0'] .itc-verdict-line{font-size:clamp(1.15rem,0.95rem + 1.6cqi,1.5rem);font-weight:700;color:var(--muted,oklch(0.45 0.03 258))}
.cf-is-this-you-11 .itc-tally{color:var(--accent,oklch(0.5 0.17 257));white-space:nowrap}
.cf-is-this-you-11 .itc-offer{margin-top:34px;text-align:center}
.cf-is-this-you-11 .itc-product{display:flex;flex-direction:column;align-items:center;gap:18px}
.cf-is-this-you-11 .itc-thumbs{display:inline-flex;align-items:flex-end;justify-content:center;gap:12px}
.cf-is-this-you-11 .itc-thumbs img{
display:block;width:84px;height:84px;object-fit:cover;object-position:center;border-radius:12px;
filter:drop-shadow(0 1px 1px oklch(from var(--itc-shade) l c h / 0.3)) drop-shadow(0 4px 5px oklch(from var(--itc-shade) l c h / 0.2));
}
.cf-is-this-you-11 .itc-thumbs img:nth-child(1){transform:rotate(-6deg)}
.cf-is-this-you-11 .itc-thumbs img:nth-child(2){transform:translateY(-6px)}
.cf-is-this-you-11 .itc-thumbs img:nth-child(3){transform:rotate(6deg)}
.cf-is-this-you-11 .itc-name{
font-family:var(--font-display,Arial,sans-serif);
font-weight:var(--display-weight,800);
text-transform:var(--display-case,none);
letter-spacing:var(--display-tracking,-0.02em);
font-size:clamp(1.5rem,1.1rem + 2.6cqi,2.25rem);
line-height:1.08;
color:var(--ink,oklch(0.21 0.034 263));
text-wrap:balance;
}
.cf-is-this-you-11 .itc-tagline{margin-top:10px;font-size:17px;font-weight:600;line-height:1.4;color:var(--muted,oklch(0.45 0.03 258));text-wrap:pretty}
.cf-is-this-you-11 .itc-price{margin-top:18px}
.cf-is-this-you-11 .itc-price-row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:6px 22px}
.cf-is-this-you-11 .itc-reg,.cf-is-this-you-11 .itc-today{display:inline-flex;align-items:baseline;gap:8px}
.cf-is-this-you-11 .itc-reg-label,.cf-is-this-you-11 .itc-today-label{font-size:1.15rem;font-weight:700;color:var(--ink,oklch(0.21 0.034 263))}
.cf-is-this-you-11 .itc-reg-num{position:relative;display:inline-block;padding-inline:2px;font-size:1.3rem;font-weight:800;color:var(--muted,oklch(0.45 0.03 258))}
.cf-is-this-you-11 .itc-slash{position:absolute;left:50%;top:50%;width:1.95em;height:1.35em;transform:translate(-50%,-48%);color:var(--danger,oklch(0.5 0.17 27));pointer-events:none}
.cf-is-this-you-11 .itc-slash > *{display:block;width:100%;height:100%}
.cf-is-this-you-11 .itc-today-num{
display:inline-block;
font-family:var(--font-display,Arial,sans-serif);
font-weight:900;
font-size:clamp(2.4rem,1.6rem + 4cqi,3.4rem);
line-height:1;
letter-spacing:-0.02em;
color:var(--ink,oklch(0.21 0.034 263));
transform:rotate(-4deg);
}
.cf-is-this-you-11 .itc-cta-wrap{max-width:500px;margin:22px auto 0}
.cf-is-this-you-11 .itc-cta{
position:relative;isolation:isolate;overflow:hidden;
display:flex;align-items:center;justify-content:center;gap:10px;
width:100%;min-height:68px;padding:14px 22px;
border:0;
border-radius:var(--button-radius,var(--radius,12px));
background:linear-gradient(oklch(from var(--itc-btn) calc(l + 0.04) c h),oklch(from var(--itc-btn-2) l c h));
color:var(--button-ink,var(--cta-ink,oklch(1 0 0)));
font-family:var(--button-font,var(--font-display,Arial,sans-serif));
font-weight:var(--button-weight,800);
text-transform:var(--button-case,none);
font-size:clamp(1.08rem,0.9rem + 1.6cqi,1.45rem);
line-height:1.15;
text-align:center;
text-decoration:none;
text-wrap:balance;
text-shadow:var(--button-text-shadow,none);
box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--itc-btn) calc(l + 0.12) c h / 0.6),inset 0 -3px 0 oklch(from var(--itc-btn) calc(l - 0.16) c h),0 2px 3px oklch(from var(--itc-shade) l c h / 0.35),0 8px 14px -6px oklch(from var(--itc-shade) l c h / 0.45));
cursor:pointer;
transition:transform 160ms ease,background 160ms ease;
}
.cf-is-this-you-11 .itc-cta[data-alive]{transform:translateY(-2px)}
.cf-is-this-you-11 .itc-cta-label{position:relative;z-index:1}
.cf-is-this-you-11 .itc-sheen{
position:absolute;inset:0;z-index:0;pointer-events:none;
background:linear-gradient(105deg,transparent 35%,oklch(from var(--itc-btn) calc(l + 0.25) calc(c * 0.5) h / 0.55) 50%,transparent 65%);
transform:translateX(-120%);
animation:itc-sweep 900ms ease-out 80ms 1 forwards;
}
.cf-is-this-you-11 .itc-cta:focus-visible{outline:3px solid var(--itc-focus);outline-offset:3px}
@media (hover:hover){
.cf-is-this-you-11 .itc-row:hover{background:color-mix(in oklch,var(--ink,oklch(0.21 0.034 263)) 4%,var(--card,oklch(1 0 0)))}
.cf-is-this-you-11 .itc-row[data-on]:hover{background:color-mix(in oklch,var(--accent-fill,var(--accent,oklch(0.5 0.17 257))) 12%,var(--card,oklch(1 0 0)))}
.cf-is-this-you-11[data-disabled] .itc-row:hover{background:transparent}
.cf-is-this-you-11 .itc-cta:not(:disabled):hover{transform:translateY(-3px);background:linear-gradient(oklch(from var(--itc-btn) calc(l + 0.08) c h),oklch(from var(--itc-btn-2) calc(l + 0.04) c h))}
}
.cf-is-this-you-11[data-force='hover'] .itc-cta:not(:disabled){transform:translateY(-3px);background:linear-gradient(oklch(from var(--itc-btn) calc(l + 0.08) c h),oklch(from var(--itc-btn-2) calc(l + 0.04) c h))}
.cf-is-this-you-11 .itc-cta:not(:disabled):active,.cf-is-this-you-11[data-force='active'] .itc-cta:not(:disabled){
transform:translateY(1px);
background:linear-gradient(oklch(from var(--itc-btn) calc(l - 0.04) c h),oklch(from var(--itc-btn-2) calc(l - 0.06) c h));
box-shadow:inset 0 2px 4px oklch(from var(--itc-btn) calc(l - 0.22) c h / 0.55),var(--shadow-sm,0 1px 1px oklch(0.22 0.03 256 / 0.18),0 1px 3px oklch(0.22 0.03 256 / 0.14));
}
.cf-is-this-you-11 .itc-cta[aria-busy='true']{cursor:progress}
.cf-is-this-you-11 .itc-cta:disabled{
cursor:not-allowed;transform:none;
padding:13px 21px;
border:1px solid var(--button-2-border,transparent);
background:var(--itc-btn2-bg);
color:var(--button-2-ink,var(--secondary-ink,oklch(0.21 0.034 263)));
text-shadow:none;
box-shadow:var(--button-2-shadow, var(--shadow-sm));
}
.cf-is-this-you-11 .itc-spin{position:relative;z-index:1;flex:0 0 auto;width:1.1em;height:1.1em;animation:itc-spin 900ms linear infinite}
.cf-is-this-you-11 .itc-assure{
list-style:none;padding:0;margin-top:14px;
display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px;
font-size:15px;font-weight:600;line-height:1.4;color:var(--muted,oklch(0.45 0.03 258));
}
.cf-is-this-you-11 .itc-assure li{display:inline-flex;align-items:center;gap:6px}
.cf-is-this-you-11 .itc-assure li + li::before{content:'·';margin-right:4px}
.cf-is-this-you-11 .itc-shield{width:17px;height:17px;flex:0 0 auto;color:var(--success,oklch(0.5 0.14 150))}
@keyframes itc-pop{0%{transform:scale(0.78)}60%{transform:scale(1.1)}100%{transform:scale(1)}}
@keyframes itc-rise{from{opacity:0.4;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes itc-sweep{from{transform:translateX(-120%)}to{transform:translateX(120%)}}
@keyframes itc-spin{to{transform:rotate(360deg)}}
.cf-is-this-you-11 .itc-verdict-line,.cf-is-this-you-11 .itc-punch{animation:itc-rise 280ms ease-out}
@container (max-width: 560px){
.cf-is-this-you-11 .itc-board{padding:30px 12px 18px;border-radius:calc(var(--radius,12px) + 10px)}
.cf-is-this-you-11 .itc-board::before{inset:5px;border-radius:calc(var(--radius,12px) + 6px)}
.cf-is-this-you-11 .itc-head{margin-bottom:50px}
.cf-is-this-you-11 .itc-sub{margin-top:14px}
.cf-is-this-you-11 .itc-sheet{padding:44px 14px 24px}
.cf-is-this-you-11 .itc-under{inset:12px 6px -8px}
.cf-is-this-you-11 .itc-row{--itc-box:28px;gap:12px;padding:12px 8px}
.cf-is-this-you-11 .itc-item + .itc-item .itc-row::before{left:8px;right:8px}
.cf-is-this-you-11 .itc-product{gap:14px}
.cf-is-this-you-11 .itc-thumbs{gap:10px}
.cf-is-this-you-11 .itc-thumbs img{width:68px;height:68px;border-radius:10px}
.cf-is-this-you-11 .itc-cta{min-height:62px;padding:13px 16px}
.cf-is-this-you-11 .itc-cta:disabled{padding:12px 15px}
}
@media (prefers-reduced-motion: reduce){
.cf-is-this-you-11 *,.cf-is-this-you-11 *::before,.cf-is-this-you-11 *::after{animation:none !important;transition:none !important}
.cf-is-this-you-11 .itc-sheen{display:none}
.cf-is-this-you-11 .itc-cta[data-alive],.cf-is-this-you-11 .itc-cta:not(:disabled):hover,.cf-is-this-you-11[data-force='hover'] .itc-cta:not(:disabled){transform:none}
}
`
pieces/content/is-this-you-11/specimen.tsx 28 lines
// Specimen: the clipboard hand-raiser with three of five lines ticked, so the live verdict and the awake button show.
import { IsThisYou11, type IsThisYou11State } from '../is-this-you-11'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states: IsThisYou11State[] = ['default', 'hover', 'active', 'disabled', 'error']
export default function IsThisYou11Specimen({ state = 'default' }: { state?: IsThisYou11State }) {
const sample = defaults.sample
const items = sample.items.map((item, i) => ({
name: item.name,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}))
return (
<IsThisYou11
state={state}
defaultChecked={[0, 2, 4]}
productName={sample.name}
items={items}
regularPrice={sample.regularPrice}
price={sample.price}
label={`Yes! I Want ${sample.name}`}
reassurance={[sample.note, sample.guarantee]}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalIsThisYou11 |
string |
Default 'Is this you?'
|
subhead OptionalIsThisYou11 |
string |
Default 'Tick the things holding your funnel back.'
|
statements OptionalIsThisYou11 |
Array<{ text: string } | string> |
Default DEFAULT_STATEMENTS
|
defaultChecked OptionalIsThisYou11 |
number[] |
Default []
|
copy OptionalIsThisYou11 |
Partial<IsThisYou11Copy> |
|
verdict OptionalIsThisYou11 |
(count: number, total: number) => IsThisYou11Verdict |
|
productName OptionalIsThisYou11 |
string |
Default 'The Funnel Starter Kit'
|
tagline OptionalIsThisYou11 |
string |
Default 'Plan it. Write it. Check it.'
|
items OptionalIsThisYou11 |
IsThisYou11Item[] |
Default []
|
regularPrice OptionalIsThisYou11 |
string |
Default '$97'
|
price OptionalIsThisYou11 |
string |
Default '$47'
|
label OptionalIsThisYou11 |
string |
Default 'Yes! I Want The Funnel Starter Kit'
|
loadingLabel OptionalIsThisYou11 |
string |
Default 'One moment…'
|
reassurance OptionalIsThisYou11 |
Array<{ text: string } | string> |
Default DEFAULT_REASSURANCE
|
errorText OptionalIsThisYou11 |
string |
Default 'That didn’t go through. Please try again.'
|
requireTick OptionalIsThisYou11 |
boolean |
Default false
|
disabled OptionalIsThisYou11 |
boolean |
Default false
|
href OptionalIsThisYou11 |
string |
|
onAction OptionalIsThisYou11 |
(checked: string[]) => void | Promise<void> |
|
state OptionalIsThisYou11 |
IsThisYou11State |
Default 'default'
|
className OptionalIsThisYou11 |
string |
|
style OptionalIsThisYou11 |
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-border--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--field-border--field-focus--field-ink- 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.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB