Is This You 6
Lets readers identify their needs before taking the next offer action.
Use it in a prompt
Use content/is-this-you-6 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-6.tsx. - Import it and pass your copy and images (Props tab):
import { IsThisYou6 } from "@/components/funneldna/content/is-this-you-6"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/is-this-you-6/component.tsx 440 lines
// Lets readers identify their needs before taking the next offer action.
"use client"
import * as React from 'react'
import { AlertCircle, CornerDownRight, Download, Loader2, ShieldCheck } from 'lucide-react'
import { Mark } from '../marks/marks'
export type IsThisYou6Props = {
headline?: string
lead?: string
statements?: ItpStatement[]
defaultChecked?: number[]
/** Default verdict templates use {count} and {total}; orderCardLabel uses {productName}. */
copy?: Partial<IsThisYou6Copy>
/** Overrides the generated verdict. */
verdict?: (count: number, total: number) => ItpVerdict
cue?: string
productName?: string
tagline?: string
items?: ItpItem[]
priceLabel?: string
price?: string
/** Struck comparison price; nothing renders when omitted. */
regularPrice?: string
regularLabel?: string
note?: string
label?: string
loadingLabel?: string
/** Record text keeps the existing reassurance icon selection; strings are legacy. */
reassurance?: Array<{ text: string } | string>
/** @deprecated No longer rendered: the builder wires what happens after the click. */
successText?: string
errorText?: string
/** Transparent or white-ground check stamp; white is removed when rendered. */
sealGuaranteeImage?: string
/** Legacy alias for sealGuaranteeImage. */
stampSrc?: string
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>
/** "success" is accepted for older callers and renders as default. */
state?: IsThisYouCardState
className?: string
style?: React.CSSProperties
}
export function IsThisYou6({
headline = 'Is this you?',
lead = 'Tick the statements that sound familiar.',
statements = DEFAULT_STATEMENTS,
defaultChecked = [],
verdict,
copy,
cue = 'Every line you tick is handled inside the kit.',
productName = 'The Funnel Starter Kit',
tagline = 'Build your first funnel with a clear plan.',
items = [],
priceLabel = 'Get the complete kit for',
price = '$47',
regularPrice,
regularLabel = 'Value',
note,
label = 'Yes! Give Me Access',
loadingLabel = 'One moment…',
reassurance = [],
errorText = 'That didn’t go through. Please try again.',
sealGuaranteeImage,
stampSrc,
disabled = false,
href,
onAction,
state = 'default',
className,
style,
}: IsThisYou6Props) {
const text = { ...DEFAULT_COPY, ...copy }
const stamp = sealGuaranteeImage !== undefined ? sealGuaranteeImage : stampSrc
const reassuranceLines = reassurance.map(item => typeof item === 'string' ? item : item.text)
const uid = React.useId()
const titleId = `${uid}-title`
const assureId = `${uid}-assure`
const stampFilterId = `itp-stamp-${uid.replace(/[^a-zA-Z0-9_-]/g, '')}`
const total = statements.length
const [checked, setChecked] = React.useState<boolean[]>(() => statements.map((_, i) => defaultChecked.includes(i)))
const [status, setStatus] = React.useState<Status>(() => statusFromState(state))
const mounted = React.useRef(true)
const busy = React.useRef(false)
React.useEffect(() => {
mounted.current = true
return () => { mounted.current = false }
}, [])
React.useEffect(() => { setStatus(statusFromState(state)) }, [state])
const isDisabled = disabled || state === 'disabled'
const count = statements.filter((_, i) => checked[i]).length
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 fan = items.slice(0, 3)
const stampFilter = `url(#${stampFilterId}) drop-shadow(0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.25))`
const buttonContent = status === 'loading' ? (
<>
<Loader2 className='itp-icon itp-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
<span className='itp-label'>{loadingLabel}</span>
<span className='itp-icon itp-bal' aria-hidden='true' />
</>
) : (
<span className='itp-label'>{label}</span>
)
const toggle = (index: number) => {
if (isDisabled || busy.current) return
setChecked(prev => statements.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 (!onAction) return
const picked = statements.filter((_, i) => checked[i]).map(s => s.text)
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
}
}
return (
<section
className={`cf-is-this-you-6 itp${className ? ` ${className}` : ''}`}
style={style}
data-level={level}
data-status={status}
data-force={force}
data-disabled={isDisabled ? '' : undefined}
aria-labelledby={titleId}
>
<style>{CSS}</style>
{stamp ? (
<svg className='itp-filter-defs' width='0' height='0' aria-hidden='true' focusable='false'>
<defs>
<filter id={stampFilterId} x='-5%' y='-5%' width='110%' height='110%' colorInterpolationFilters='sRGB'>
{/* Extract the printed ink while discarding white stock and pale baked-in shadows. */}
<feColorMatrix in='SourceGraphic' type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 -.333 -.333 -.334 0 1' />
<feComponentTransfer>
<feFuncA type='linear' slope='2' intercept='-.16' />
</feComponentTransfer>
<feComposite in2='SourceAlpha' operator='in' result='stampInk' />
<feFlood floodColor='currentColor' />
<feComposite in2='stampInk' operator='in' />
</filter>
</defs>
</svg>
) : null}
<div className='itp-grid'>
<div className='itp-main'>
<h2 className='itp-title' id={titleId}>{headline}</h2>
{lead ? <p className='itp-lead'>{lead}</p> : null}
<fieldset className='itp-set' disabled={isDisabled || status === 'loading'}>
<legend className='itp-sr'>{lead || headline}</legend>
<ul className='itp-list'>
{statements.map((s, i) => {
const on = !!checked[i]
return (
<li key={i}>
<label className='itp-row' data-on={on ? '' : undefined}>
<input type='checkbox' className='itp-input' checked={on} onChange={() => toggle(i)} />
<span className='itp-checkbox' aria-hidden='true'>
<span className='itp-tick'><Mark name='check' width={48} height={48} /></span>
</span>
<span className='itp-copy'>
<span className='itp-stmt'>{s.text}</span>
{s.answer ? (
<span className='itp-ans' aria-hidden={!on}>
<span><span className='itp-ans-inner'>
<CornerDownRight size={16} strokeWidth={2.5} aria-hidden='true' />
{s.answer}
</span></span>
</span>
) : null}
</span>
</label>
</li>
)
})}
</ul>
</fieldset>
{cue ? <p className='itp-cue'>{cue}</p> : null}
</div>
<aside className='itp-card' aria-label={formatCopy(text.orderCardLabel, { productName })}>
<div className='itp-meter' aria-hidden='true'>
{statements.map((_, i) => <span key={i} className='itp-seg' data-on={i < count ? '' : undefined} />)}
</div>
<p className='itp-verdict' aria-live='polite' aria-atomic='true'>
{v.text}
{v.emphasis ? <> <span key={level} className={level === 2 ? 'itp-hl' : 'itp-em'}>{v.emphasis}</span></> : null}
</p>
{fan.length || stamp ? (
<div className='itp-visual' data-solo={fan.length ? undefined : ''}>
{fan.length ? (
<div className='itp-fan'>
{fan.map((item, i) => <img key={i} src={item.itemImage !== undefined ? item.itemImage : item.image} alt={item.imageAlt || ''} width={92} height={104} loading='lazy' decoding='async' />)}
</div>
) : null}
{stamp ? <img className='itp-stamp' src={stamp} alt='' aria-hidden='true' width={76} height={76} style={{ filter: stampFilter }} /> : null}
</div>
) : null}
<p className='itp-name'>{productName}</p>
{tagline ? <p className='itp-tag'>{tagline}</p> : null}
<div className='itp-price'>
<p className='itp-price-label'>{priceLabel}</p>
<p className='itp-price-row'>
<span className='itp-now'>{price}</span>
{regularPrice ? <span className='itp-was'><span className='itp-was-cap'>{regularLabel}</span><s>{regularPrice}</s></span> : null}
</p>
{note ? <p className='itp-note'>{note}</p> : null}
</div>
<div className='itp-act'>
{href && !isDisabled ? (
<a
href={href}
className='itp-btn'
onClick={handleAction}
aria-disabled={status === 'loading' || undefined}
aria-busy={status === 'loading' || undefined}
aria-describedby={reassurance.length ? assureId : undefined}
>
{buttonContent}
</a>
) : (
<button
type='button'
className='itp-btn'
onClick={handleAction}
disabled={isDisabled}
aria-disabled={status === 'loading' || undefined}
aria-busy={status === 'loading' || undefined}
aria-describedby={reassurance.length ? assureId : undefined}
>
{buttonContent}
</button>
)}
</div>
<div role='status' aria-live='polite'>
{status === 'error' ? <p className='itp-status' data-kind='error'><AlertCircle size={18} strokeWidth={2.5} aria-hidden='true' />{errorText}</p> : null}
</div>
{reassurance.length ? (
<ul className='itp-assure' id={assureId}>
{reassuranceLines.map(line => <li key={line}>{/guarantee|money|refund/i.test(line) ? <ShieldCheck size={16} strokeWidth={2.5} aria-hidden='true' /> : <Download size={16} strokeWidth={2.5} aria-hidden='true' />}{line}</li>)}
</ul>
) : null}
</aside>
</div>
</section>
)
}
export default IsThisYou6
/** "success" is accepted for older callers and renders as default. */
export type IsThisYouCardState = 'default' | 'hover' | 'active' | 'disabled' | 'error' | 'success'
export type ItpStatement = { text: string; answer?: string }
export type ItpItem = { itemImage?: string; /** Legacy alias for itemImage. */ image?: string; imageAlt?: string }
export type ItpVerdict = { text: string; emphasis?: string }
type Status = 'idle' | 'loading' | 'error'
const DEFAULT_STATEMENTS: ItpStatement[] = [
{ text: 'I’m not sure which pages my funnel needs.', answer: 'Mapped out in the Funnel Planning Guide' },
{ text: 'I get stuck writing my page copy.', answer: 'Drafted step by step in the Page Copy Workbook' },
{ text: 'I keep second-guessing my offer.', answer: 'Pinned down in the Funnel Planning Guide' },
{ text: 'I’m worried I’ll miss a step before launch.', answer: 'Caught by the Launch Checklist' },
{ text: 'I need a clear plan to get started.', answer: 'The whole kit is built around one clear plan' },
]
type IsThisYou6Copy = {
emptyVerdict: string
checkedVerdict: string
partialEmphasis: string
fullEmphasis: string
orderCardLabel: string
}
const DEFAULT_COPY: IsThisYou6Copy = {
emptyVerdict: 'Tick each line that sounds like you.',
checkedVerdict: 'You checked {count} of {total}:',
partialEmphasis: 'you’re in the right place',
fullEmphasis: 'this was made for you',
orderCardLabel: '{productName} order card',
}
function defaultVerdict(count: number, total: number, copy: IsThisYou6Copy): ItpVerdict {
if (count <= 0) return { text: copy.emptyVerdict }
return {
text: formatCopy(copy.checkedVerdict, { count, total }),
emphasis: count < Math.ceil(total / 2) ? copy.partialEmphasis : copy.fullEmphasis,
}
}
const statusFromState = (state?: IsThisYouCardState): Status =>
state === 'error' ? 'error' : 'idle'
export { IsThisYou6 as IsThisYouOrderCard }
export type IsThisYouOrderCardProps = IsThisYou6Props
function formatCopy(template: string, values: Record<string, string | number>) {
return template.replace(/\{(\w+)\}/g, (match, key: string) => key in values ? String(values[key]) : match)
}
const CSS = `
.cf-is-this-you-6{--itp-shadow:var(--shadow,oklch(0.22 0.03 260));--itp-rule:oklch(from var(--ink,#101828) l c h / 0.14);--itp-ease:cubic-bezier(.2,.7,.2,1);position:relative;box-sizing:border-box;width:100%;max-width:1120px;margin-inline:auto;color:var(--ink,#101828);font-family:var(--font-body,Arial,sans-serif)}
.cf-is-this-you-6 *,.cf-is-this-you-6 *::before,.cf-is-this-you-6 *::after{box-sizing:border-box}
.cf-is-this-you-6 :where(p,h2,ul){margin:0}
:where(.cf-is-this-you-6) .itp-filter-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none;color:var(--success)}
:where(.cf-is-this-you-6) .itp-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
:where(.cf-is-this-you-6) .itp-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:clamp(32px,5vw,72px);align-items:start}
:where(.cf-is-this-you-6) .itp-main{min-width:0}
:where(.cf-is-this-you-6) .itp-title{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;letter-spacing:var(--display-tracking,-.025em);text-transform:var(--display-case,none);text-wrap:balance}
:where(.cf-is-this-you-6) .itp-lead{margin-top:16px;max-width:60ch;color:var(--muted,#4a5565);font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty}
:where(.cf-is-this-you-6) .itp-set{margin:32px 0 0;padding:0;border:0;min-width:0}
:where(.cf-is-this-you-6) .itp-list{list-style:none;padding:0}
:where(.cf-is-this-you-6) .itp-list>li+li{border-top:1px solid var(--itp-rule)}
:where(.cf-is-this-you-6) .itp-list>li:last-child{border-bottom:1px solid var(--itp-rule)}
:where(.cf-is-this-you-6) .itp-row{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);gap:16px;align-items:start;padding:20px 12px;border-radius:10px;cursor:pointer;transition:background-color .16s ease}
:where(.cf-is-this-you-6) .itp-input{position:absolute;opacity:0;width:1px;height:1px;margin:0;background:var(--field,#fff);color:var(--field-ink,#101828);accent-color:var(--field-focus,var(--accent,#0f5fc2))}
:where(.cf-is-this-you-6) .itp-checkbox{position:relative;display:block;width:36px;height:36px;border:2px solid var(--field-border,oklch(from var(--ink,#101828) l c h / 0.55));border-radius:var(--field-radius,var(--radius,8px));background:var(--field,#fff);box-shadow:inset 0 1px 2px oklch(from var(--itp-shadow) l c h / .1);transition:transform .16s ease,border-color .16s ease,background-color .16s ease}
:where(.cf-is-this-you-6) .itp-tick{position:absolute;left:-3px;bottom:3px;display:block;width:48px;height:48px;color:var(--success);opacity:0;transform:rotate(-6deg);pointer-events:none}
:where(.cf-is-this-you-6) .itp-tick>*{display:block;width:100%;height:100%}
:where(.cf-is-this-you-6) .itp-row[data-on] .itp-tick{opacity:1}
:where(.cf-is-this-you-6) .itp-row[data-on] .itp-checkbox{border-color:var(--success);background:var(--success-soft)}
:where(.cf-is-this-you-6) .itp-input:focus-visible+.itp-checkbox{outline:3px solid var(--field-focus,var(--accent,#0f5fc2));outline-offset:4px}
:where(.cf-is-this-you-6) .itp-copy{display:block;min-width:0}
:where(.cf-is-this-you-6) .itp-stmt{display:block;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:700;line-height:1.35;color:var(--label-ink,var(--ink,#101828));text-wrap:pretty}
:where(.cf-is-this-you-6) .itp-ans{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s var(--itp-ease)}
:where(.cf-is-this-you-6) .itp-ans>span{min-height:0;overflow:hidden}
:where(.cf-is-this-you-6) .itp-row[data-on] .itp-ans{grid-template-rows:1fr}
:where(.cf-is-this-you-6) .itp-ans-inner{display:flex;gap:8px;align-items:flex-start;padding-top:8px;color:var(--success);font-size:1rem;font-weight:600;line-height:1.45;text-wrap:pretty}
:where(.cf-is-this-you-6) .itp-ans-inner svg{flex:0 0 auto;margin-top:3px}
.cf-is-this-you-6[data-disabled] .itp-row{cursor:not-allowed}
.cf-is-this-you-6[data-disabled] .itp-checkbox{background:oklch(from var(--field,#fff) calc(l - 0.03) c h);border-color:var(--muted,#4a5565)}
:where(.cf-is-this-you-6) .itp-row:active .itp-checkbox{transform:scale(.96)}
.cf-is-this-you-6[data-disabled] .itp-row:active .itp-checkbox{transform:none}
:where(.cf-is-this-you-6) .itp-cue{max-width:60ch;margin-top:24px;color:var(--accent,#0f5fc2);font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.4;text-wrap:pretty}
:where(.cf-is-this-you-6) .itp-card{position:sticky;top:24px;min-width:0;padding:clamp(24px,3vw,32px) clamp(20px,3vw,32px);background:var(--card,#fff);color:var(--ink,#101828);border:1px solid var(--card-border,oklch(from var(--accent-fill, var(--accent,#0f5fc2)) l c h / 0.28));border-radius:var(--card-radius,var(--radius,14px));text-align:center;box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--itp-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--itp-shadow) l c h / .32)))}
:where(.cf-is-this-you-6) .itp-meter{display:flex;gap:6px;width:min(100%,180px);margin-inline:auto}
:where(.cf-is-this-you-6) .itp-seg{flex:1 1 0;height:8px;border-radius:999px;background:color-mix(in oklch,var(--ink,#101828) 12%,var(--card,#fff));transition:background-color .25s ease}
:where(.cf-is-this-you-6) .itp-seg[data-on]{background:var(--success)}
:where(.cf-is-this-you-6) .itp-verdict{margin-top:16px;min-height:2.3em;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:var(--display-tracking,-.01em);text-transform:var(--display-case,none);text-wrap:balance}
.cf-is-this-you-6[data-level='0'] .itp-verdict{color:var(--muted,#4a5565)}
:where(.cf-is-this-you-6) .itp-hl{padding:0 .12em;margin:0 -.04em;background-image:linear-gradient(transparent 38%,var(--marker,#fae37c) 38%,var(--marker,#fae37c) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
:where(.cf-is-this-you-6) .itp-em{color:var(--success)}
:where(.cf-is-this-you-6) .itp-visual{position:relative;width:fit-content;max-width:100%;margin:24px auto 0}
:where(.cf-is-this-you-6) .itp-visual[data-solo]{width:auto}
:where(.cf-is-this-you-6) .itp-fan{display:flex;align-items:flex-end;justify-content:center;padding-top:8px}
:where(.cf-is-this-you-6) .itp-fan img{display:block;width:92px;height:104px;object-fit:cover;border-radius:8px;filter:drop-shadow(0 1px 2px oklch(from var(--itp-shadow) l c h / .3)) drop-shadow(0 6px 8px oklch(from var(--itp-shadow) l c h / .2))}
:where(.cf-is-this-you-6) .itp-fan img+img{margin-left:-14px}
:where(.cf-is-this-you-6) .itp-fan img:nth-child(2){position:relative;z-index:1;transform:translateY(-8px)}
:where(.cf-is-this-you-6) .itp-stamp{position:absolute;top:-18px;right:-34px;z-index:2;display:block;width:76px;height:76px;object-fit:contain;opacity:0;transform:rotate(10deg) scale(.9);transition:opacity .3s ease,transform .3s var(--itp-ease);pointer-events:none}
:where(.cf-is-this-you-6) .itp-visual[data-solo] .itp-stamp{position:relative;top:auto;right:auto;margin-inline:auto}
.cf-is-this-you-6[data-level='2'] .itp-stamp{opacity:1;transform:rotate(10deg) scale(1)}
:where(.cf-is-this-you-6) .itp-name{margin-top:20px;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:var(--display-tracking,-.01em);text-transform:var(--display-case,none);text-wrap:balance}
:where(.cf-is-this-you-6) .itp-tag{margin-top:8px;color:var(--muted,#4a5565);font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:500;line-height:1.5;text-wrap:pretty}
:where(.cf-is-this-you-6) .itp-price{margin-top:24px;padding:20px 16px;border-radius:10px;background:color-mix(in oklch,var(--ink,#101828) 4%,var(--card,#fff))}
:where(.cf-is-this-you-6) .itp-price-label{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:600;line-height:1.4;text-wrap:pretty}
:where(.cf-is-this-you-6) .itp-price-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px;margin-top:12px}
:where(.cf-is-this-you-6) .itp-now{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;text-transform:var(--display-case,none)}
:where(.cf-is-this-you-6) .itp-was{display:flex;flex-direction:column;align-items:flex-start;gap:4px;line-height:1.1;text-align:left}
:where(.cf-is-this-you-6) .itp-was-cap{font-size:.875rem;font-weight:700;color:var(--muted,#4a5565)}
:where(.cf-is-this-you-6) .itp-was s{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-variant-numeric:tabular-nums;color:var(--danger);text-decoration-thickness:2px;text-transform:var(--display-case,none)}
:where(.cf-is-this-you-6) .itp-note{margin-top:12px;color:var(--muted,#4a5565);font-size:.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty}
:where(.cf-is-this-you-6) .itp-act{margin-top:24px}
:where(.cf-is-this-you-6) .itp-btn{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:64px;padding:12px 24px;border:1px solid transparent;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);font-family:var(--button-font,var(--font-display,Arial,sans-serif));font-weight:var(--button-weight,800);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-decoration:none;text-transform:var(--button-case,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--itp-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--itp-shadow) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease;-webkit-tap-highlight-color:transparent}
:where(.cf-is-this-you-6) .itp-label{min-width:0;text-wrap:balance;overflow-wrap:anywhere}
:where(.cf-is-this-you-6) .itp-icon{flex:0 0 20px;width:20px;height:20px}
:where(.cf-is-this-you-6) .itp-bal{display:block}
:where(.cf-is-this-you-6) .itp-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent,#0f5fc2));outline-offset:3px}
.cf-is-this-you-6[data-force='hover']:not([data-disabled]) .itp-btn{transform:translateY(-1px);background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .1) c h / .6),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--itp-shadow) l c h / .32),0 10px 18px -6px oklch(from var(--itp-shadow) l c h / .5))}
.cf-is-this-you-6:not([data-disabled]):not([data-status='loading']) .itp-btn:active,.cf-is-this-you-6[data-force='active']:not([data-disabled]) .itp-btn{transform:translateY(1px);background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) calc(l - .03) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 2px 3px oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h / .5),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--itp-shadow) l c h / .3))}
.cf-is-this-you-6[data-status='loading'] .itp-btn{cursor:progress;transform:none}
.cf-is-this-you-6[data-disabled] .itp-btn{cursor:not-allowed;background:var(--button-2-bg,var(--secondary,#e5e7eb));border-color:var(--button-2-border,transparent);color:var(--button-2-ink,var(--secondary-ink,#101828));text-shadow:none;box-shadow:var(--button-2-shadow, var(--shadow-sm));transform:none}
:where(.cf-is-this-you-6) .itp-status{margin-top:12px;padding:12px 16px;border-radius:10px;font-size:.9375rem;font-weight:600;line-height:1.4;text-align:center;text-wrap:pretty}
:where(.cf-is-this-you-6) .itp-status svg{display:inline-block;vertical-align:-.2em;margin-inline-end:.4em}
:where(.cf-is-this-you-6) .itp-status[data-kind='error']{background:var(--danger-soft);color:var(--danger)}
:where(.cf-is-this-you-6) .itp-assure{display:grid;gap:8px;margin-top:16px;padding:0;list-style:none;font-size:.9375rem;font-weight:600;line-height:1.4}
:where(.cf-is-this-you-6) .itp-assure li{text-align:center;text-wrap:pretty}
:where(.cf-is-this-you-6) .itp-assure svg{display:inline-block;vertical-align:-.2em;margin-inline-end:.4em;color:var(--success)}
@media (hover:hover) and (pointer:fine){
.cf-is-this-you-6:not([data-disabled]):not([data-status='loading']) .itp-row:hover{background:oklch(from var(--ink,#101828) l c h / .04)}
.cf-is-this-you-6:not([data-disabled]):not([data-status='loading']) .itp-row:not([data-on]):hover .itp-checkbox{border-color:oklch(from var(--ink,#101828) l c h / .8);transform:scale(1.04)}
.cf-is-this-you-6:not([data-disabled]):not([data-status='loading']) .itp-btn:not(:active):hover{transform:translateY(-1px);background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .1) c h / .6),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--itp-shadow) l c h / .32),0 10px 18px -6px oklch(from var(--itp-shadow) l c h / .5))}
}
@media (prefers-reduced-motion:no-preference){
:where(.cf-is-this-you-6) .itp-list>li{animation:itp-rise .45s var(--itp-ease) both}
:where(.cf-is-this-you-6) .itp-list>li:nth-child(2){animation-delay:.07s}
:where(.cf-is-this-you-6) .itp-list>li:nth-child(3){animation-delay:.14s}
:where(.cf-is-this-you-6) .itp-list>li:nth-child(4){animation-delay:.21s}
:where(.cf-is-this-you-6) .itp-list>li:nth-child(n+5){animation-delay:.28s}
:where(.cf-is-this-you-6) .itp-card{animation:itp-rise .45s var(--itp-ease) .14s both}
:where(.cf-is-this-you-6) .itp-row[data-on] .itp-tick{animation:itp-draw .3s ease-out both}
:where(.cf-is-this-you-6) .itp-spin{animation:itp-spin .8s linear infinite}
}
@media (prefers-reduced-motion:reduce){.cf-is-this-you-6 *,.cf-is-this-you-6 *::before,.cf-is-this-you-6 *::after{transition:none!important;animation:none!important}}
@keyframes itp-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes itp-draw{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes itp-spin{to{transform:rotate(360deg)}}
@media (max-width:880px){
:where(.cf-is-this-you-6) .itp-grid{grid-template-columns:minmax(0,1fr)}
:where(.cf-is-this-you-6) .itp-card{position:relative;top:auto;width:100%;max-width:520px;margin-inline:auto}
}
@media (max-width:480px){
:where(.cf-is-this-you-6) .itp-set{margin-top:24px}
:where(.cf-is-this-you-6) .itp-row{grid-template-columns:34px minmax(0,1fr);gap:14px;padding:16px 4px}
:where(.cf-is-this-you-6) .itp-checkbox{width:32px;height:32px}
:where(.cf-is-this-you-6) .itp-tick{width:42px;height:42px}
:where(.cf-is-this-you-6) .itp-fan img{width:76px;height:88px}
:where(.cf-is-this-you-6) .itp-fan img+img{margin-left:-12px}
:where(.cf-is-this-you-6) .itp-stamp{width:64px;height:64px;top:-14px;right:-28px}
:where(.cf-is-this-you-6) .itp-btn{padding:12px 16px}
:where(.cf-is-this-you-6) .itp-btn .itp-bal{display:none}
}
`
pieces/content/is-this-you-6/specimen.tsx 40 lines
import __studioImagee9b25d70 from '../assets/e618730b748addf9.webp'
import * as React from 'react'
import { slot } from '../../slots'
import defaults from '../../studio-defaults.json'
import { IsThisYou6, type IsThisYouCardState } from '../is-this-you-6'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function IsThisYou6Specimen({ state = 'default' }: { state?: string }) {
const s = defaults.sample
const [guide, workbook, checklist] = s.items
return (
<IsThisYou6
state={state as IsThisYouCardState}
headline='Is this you?'
lead='Tick the statements that sound familiar.'
statements={[
{ text: 'I’m not sure which pages my funnel needs.', answer: `Mapped out in the ${guide.name}` },
{ text: 'I get stuck writing my page copy.', answer: `Drafted step by step in the ${workbook.name}` },
{ text: 'I keep second-guessing my offer.', answer: `Pinned down in the ${guide.name}` },
{ text: 'I’m worried I’ll miss a step before launch.', answer: `Caught by the ${checklist.name}` },
{ text: 'I need a clear plan to get started.', answer: 'The whole kit is built around one clear plan' },
]}
defaultChecked={[0, 1, 3]}
cue='Every line you tick is handled inside the kit.'
productName={s.name}
tagline={s.headline + '.'}
items={s.items.map((item, i) => ({ itemImage: slot(`item-${i + 1}`, item.image), imageAlt: item.imageAlt }))}
priceLabel={s.todayLabel}
price={s.price}
regularPrice={s.regularPrice}
regularLabel='Value'
note={s.note}
label={s.label}
reassurance={s.reassurance.map(text => ({ text }))}
sealGuaranteeImage={slot('seal-guarantee', __studioImagee9b25d70)}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalIsThisYou6 |
string |
Default 'Is this you?'
|
lead OptionalIsThisYou6 |
string |
Default 'Tick the statements that sound familiar.'
|
statements OptionalIsThisYou6 |
ItpStatement[] |
Default DEFAULT_STATEMENTS
|
defaultChecked OptionalIsThisYou6 |
number[] |
Default []
|
copy OptionalIsThisYou6 |
Partial<IsThisYou6Copy> |
|
verdict OptionalIsThisYou6 |
(count: number, total: number) => ItpVerdict |
|
cue OptionalIsThisYou6 |
string |
Default 'Every line you tick is handled inside the kit.'
|
productName OptionalIsThisYou6 |
string |
Default 'The Funnel Starter Kit'
|
tagline OptionalIsThisYou6 |
string |
Default 'Build your first funnel with a clear plan.'
|
items OptionalIsThisYou6 |
ItpItem[] |
Default []
|
priceLabel OptionalIsThisYou6 |
string |
Default 'Get the complete kit for'
|
price OptionalIsThisYou6 |
string |
Default '$47'
|
regularPrice OptionalIsThisYou6 |
string |
|
regularLabel OptionalIsThisYou6 |
string |
Default 'Value'
|
note OptionalIsThisYou6 |
string |
|
label OptionalIsThisYou6 |
string |
Default 'Yes! Give Me Access'
|
loadingLabel OptionalIsThisYou6 |
string |
Default 'One moment…'
|
reassurance OptionalIsThisYou6 |
Array<{ text: string } | string> |
Default []
|
successText OptionalIsThisYou6 |
string |
|
errorText OptionalIsThisYou6 |
string |
Default 'That didn’t go through. Please try again.'
|
sealGuaranteeImage OptionalIsThisYou6 |
string |
|
stampSrc OptionalIsThisYou6 |
string |
|
disabled OptionalIsThisYou6 |
boolean |
Default false
|
href OptionalIsThisYou6 |
string |
|
onAction OptionalIsThisYou6 |
(checked: string[]) => void | Promise<void> |
|
state OptionalIsThisYou6 |
IsThisYouCardState |
Default 'default'
|
className OptionalIsThisYou6 |
string |
|
style OptionalIsThisYou6 |
React.CSSProperties |
|
headline OptionalIsThisYouOrderCard |
string |
|
lead OptionalIsThisYouOrderCard |
string |
|
statements OptionalIsThisYouOrderCard |
ItpStatement[] |
|
defaultChecked OptionalIsThisYouOrderCard |
number[] |
|
copy OptionalIsThisYouOrderCard |
Partial<IsThisYou6Copy> |
|
verdict OptionalIsThisYouOrderCard |
(count: number, total: number) => ItpVerdict |
|
cue OptionalIsThisYouOrderCard |
string |
|
productName OptionalIsThisYouOrderCard |
string |
|
tagline OptionalIsThisYouOrderCard |
string |
|
items OptionalIsThisYouOrderCard |
ItpItem[] |
|
priceLabel OptionalIsThisYouOrderCard |
string |
|
price OptionalIsThisYouOrderCard |
string |
|
regularPrice OptionalIsThisYouOrderCard |
string |
|
regularLabel OptionalIsThisYouOrderCard |
string |
|
note OptionalIsThisYouOrderCard |
string |
|
label OptionalIsThisYouOrderCard |
string |
|
loadingLabel OptionalIsThisYouOrderCard |
string |
|
reassurance OptionalIsThisYouOrderCard |
Array<{ text: string } | string> |
|
successText OptionalIsThisYouOrderCard |
string |
|
errorText OptionalIsThisYouOrderCard |
string |
|
sealGuaranteeImage OptionalIsThisYouOrderCard |
string |
|
stampSrc OptionalIsThisYouOrderCard |
string |
|
disabled OptionalIsThisYouOrderCard |
boolean |
|
href OptionalIsThisYouOrderCard |
string |
|
onAction OptionalIsThisYouOrderCard |
(checked: string[]) => void | Promise<void> |
|
state OptionalIsThisYouOrderCard |
IsThisYouCardState |
|
className OptionalIsThisYouOrderCard |
string |
|
style OptionalIsThisYouOrderCard |
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--field-radius- 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.
seal-guarantee- The money-back guarantee seal, on a transparent background.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
e618730b748addf9.webp
image/webp · 198 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB