Is This You 7
Lets readers identify their needs before taking the next offer action.
Use it in a prompt
Use content/is-this-you-7 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-7.tsx. - Import it and pass your copy and images (Props tab):
import { IsThisYou7 } from "@/components/funneldna/content/is-this-you-7"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/is-this-you-7/component.tsx 400 lines
// Lets readers identify their needs before taking the next offer action.
"use client"
import * as React from 'react'
import { AlertCircle, Check, Download, Loader2, ShieldCheck } from 'lucide-react'
export type IsThisYou7Props = {
headline?: string
emphasis?: string
lead?: string
/** Record text is submitted as strings; legacy string lists remain supported. */
statements?: Array<{ text: string } | string>
defaultChecked?: number[]
/** Default verdict templates use {count} and {total}. */
copy?: Partial<IsThisYou7Copy>
/** Overrides the generated verdict. */
verdict?: (count: number, total: number) => ReplyVerdict
presenterCutoutImage?: string
/** Legacy alias for presenterCutoutImage. */
presenterSrc?: string
presenterAlt?: string
/** Guarantee seal shown beside the reassurance under the button (transparent art). */
sealGuaranteeImage?: string
/** Legacy alias for sealGuaranteeImage. */
stampSrc?: string
/** Knock near-white pixels out of the seal image (art on a white backdrop). Off by default: it also erases white parts of the art. */
matteWhite?: boolean
productName?: string
items?: ReplyItem[]
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
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?: IsThisYouReplyState
className?: string
style?: React.CSSProperties
}
export function IsThisYou7({
headline = 'Is this you?',
emphasis = 'you?',
lead = 'Tick the statements that sound familiar.',
statements = DEFAULT_STATEMENTS,
defaultChecked = [],
verdict,
copy,
presenterCutoutImage,
presenterSrc,
presenterAlt = '',
sealGuaranteeImage,
matteWhite = false,
stampSrc,
productName = 'The Funnel Starter Kit',
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.',
disabled = false,
href,
onAction,
state = 'default',
className,
style,
}: IsThisYou7Props) {
const text = { ...DEFAULT_COPY, ...copy }
const seal = sealGuaranteeImage !== undefined ? sealGuaranteeImage : stampSrc
const reassuranceLines = reassurance.map(item => typeof item === 'string' ? item : item.text)
const presenter = presenterCutoutImage !== undefined ? presenterCutoutImage : presenterSrc
const uid = React.useId()
const titleId = `${uid}-title`
const leadId = `${uid}-lead`
const assureId = `${uid}-assure`
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)
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) : replyVerdict(count, total, text)
const toggle = (index: number) => {
if (isDisabled) 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 || status === 'loading') {
event.preventDefault()
return
}
if (!onAction) return
const picked = statements.filter((_, i) => checked[i]).map(item => typeof item === 'string' ? item : item.text)
try {
const result = onAction(picked)
if (!result) return
setStatus('loading')
await result
if (mounted.current) setStatus('idle')
} catch {
if (mounted.current) setStatus('error')
}
}
const thumbs = items.slice(0, 3)
const includes = thumbs.map((item) => item.name).filter(Boolean).join(' · ')
const ctaContent = status === 'loading'
? <><Loader2 className='ity-spin' aria-hidden='true' /><span className='ity-cta-label'>{loadingLabel}</span></>
: <span className='ity-cta-label'>{label}</span>
return (
<section
className={`cf-is-this-you-7 ity7${className ? ` ${className}` : ''}`}
style={style}
data-level={level}
data-force={force}
data-disabled={isDisabled ? '' : undefined}
data-has-stage={presenter ? '' : undefined}
aria-labelledby={titleId}
>
<style>{CSS}</style>
{presenter ? (
<div className='ity-stage' aria-hidden={presenterAlt ? undefined : true}>
<div className='ity-portrait'>
<img src={presenter} alt={presenterAlt} width={800} height={1000} decoding='async' />
</div>
</div>
) : null}
<div className='ity-card'>
<header className='ity-head'>
<h2 className='ity-title' id={titleId}><Title text={headline} emphasis={emphasis} /></h2>
{lead ? <p className='ity-lead' id={leadId}>{lead}</p> : null}
</header>
<div role='group' aria-labelledby={titleId} aria-describedby={lead ? leadId : undefined}>
<ul className='ity-list'>
{statements.map((item, i) => (
<li key={i}>
<label className='ity-row' data-on={checked[i] ? '' : undefined}>
<input type='checkbox' className='ity-input' checked={!!checked[i]} onChange={() => toggle(i)} disabled={isDisabled} />
<span className='ity-checkbox' aria-hidden='true'><Check strokeWidth={3} /></span>
<span className='ity-text'>{typeof item === 'string' ? item : item.text}</span>
</label>
</li>
))}
</ul>
</div>
<div className='ity-verdict' aria-live='polite'>
<p className='ity-vlead'>
{v.count ? <>{v.before}<span className='ity-count'>{v.count}</span>{v.after}</> : null}
</p>
<p className='ity-vline' key={`line-${level}`}>{v.line}</p>
</div>
<div className='ity-slip'>
<div className='ity-offer'>
<div className='ity-prod'>
{thumbs.length ? (
<div className='ity-thumbs'>
{thumbs.map((item, i) => <img key={i} src={item.itemImage !== undefined ? item.itemImage : item.image} alt={item.imageAlt || item.name || ''} width={128} height={128} loading='lazy' decoding='async' />)}
</div>
) : null}
<div className='ity-prod-copy'>
<h3 className='ity-name'>{productName}</h3>
{includes ? <p className='ity-incl'>{includes}</p> : null}
</div>
</div>
<div className='ity-price'>
{priceLabel ? <p className='ity-plabel'>{priceLabel}</p> : null}
<p className='ity-prow'>
<span className='ity-now'>{price}</span>
{regularPrice ? <span className='ity-was'>{regularLabel} <s>{regularPrice}</s></span> : null}
</p>
{note ? <p className='ity-pnote'>{note}</p> : null}
</div>
</div>
<div className='ity-ctawrap'>
{href && !isDisabled ? (
<a href={href} className='ity-cta' onClick={handleAction} aria-busy={status === 'loading' || undefined} aria-describedby={reassurance.length ? assureId : undefined}>
{ctaContent}
</a>
) : (
<button type='button' className='ity-cta' onClick={handleAction} disabled={isDisabled} aria-busy={status === 'loading' || undefined} aria-describedby={reassurance.length ? assureId : undefined}>
{ctaContent}
</button>
)}
</div>
{status === 'error' ? <p className='ity-err' role='alert'><AlertCircle aria-hidden='true' />{errorText}</p> : null}
{reassurance.length || seal ? (
<div className='ity-trust' data-seal={seal ? '' : undefined}>
{seal ? <img className='ity-seal' src={seal} alt='' aria-hidden='true' width={240} height={240} data-matte={matteWhite ? '' : undefined} /> : null}
{reassurance.length ? (
<ul className='ity-assure' id={assureId}>
{reassuranceLines.map((line) => {
const Icon = /guarantee|refund|money/i.test(line) ? ShieldCheck : Download
return <li key={line}><Icon aria-hidden='true' strokeWidth={2.5} />{line}</li>
})}
</ul>
) : null}
</div>
) : null}
</div>
</div>
</section>
)
}
export default IsThisYou7
/** "success" is accepted for older callers and renders as default. */
export type IsThisYouReplyState = 'default' | 'hover' | 'active' | 'disabled' | 'error' | 'success'
export type ReplyItem = { itemImage?: string; /** Legacy alias for itemImage. */ image?: string; imageAlt?: string; name?: string }
export type ReplyVerdict = { before?: string; count?: string; after?: string; line: string }
type Status = 'idle' | 'loading' | 'error'
const DEFAULT_STATEMENTS = [
'I’m not sure where my funnel should start.',
'I struggle to put my offer into words.',
'I keep second-guessing my page copy.',
'I’m worried I’ll miss a step before launch.',
'I want one clear plan to follow.',
].map(text => ({ text }))
type IsThisYou7Copy = {
emptyVerdict: string
checkedBefore: string
checkedCount: string
checkedAfter: string
partialVerdict: string
fullVerdict: string
}
const DEFAULT_COPY: IsThisYou7Copy = {
emptyVerdict: 'Tick every line that sounds like you.',
checkedBefore: 'You checked ',
checkedCount: '{count} of {total}',
checkedAfter: ':',
partialVerdict: 'You’re in the right place.',
fullVerdict: 'This was made for you.',
}
function replyVerdict(count: number, total: number, copy: IsThisYou7Copy): ReplyVerdict {
if (count <= 0 || total <= 0) return { line: copy.emptyVerdict }
return {
before: copy.checkedBefore,
count: formatCopy(copy.checkedCount, { count, total }),
after: copy.checkedAfter,
line: count < Math.ceil(total / 2) ? copy.partialVerdict : copy.fullVerdict,
}
}
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='ity-hl'>{emphasis}</span>{text.slice(at + emphasis.length)}</>
}
const statusFromState = (state?: IsThisYouReplyState): Status =>
state === 'error' ? 'error' : 'idle'
export { IsThisYou7 as IsThisYouReplyCard }
export type IsThisYouReplyCardProps = IsThisYou7Props
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 SH_SM = 'var(--shadow-sm,0 1px 2px oklch(from var(--ity-shadow) l c h / 0.2),0 1px 3px oklch(from var(--ity-shadow) l c h / 0.12))'
const SH_MD = 'var(--shadow-md,0 1px 2px oklch(from var(--ity-shadow) l c h / 0.22),0 4px 10px -2px oklch(from var(--ity-shadow) l c h / 0.2))'
const SH_LG = 'var(--shadow-lg,0 2px 4px oklch(from var(--ity-shadow) l c h / 0.22),0 12px 24px -8px oklch(from var(--ity-shadow) l c h / 0.32))'
const MATTE = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='matte' color-interpolation-filters='sRGB'%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 -100 -100 -100 298 0'/%3E%3C/filter%3E%3C/svg%3E#matte")`
const CTA_HOVER = `background:linear-gradient(180deg,oklch(from var(--ity-btn) calc(l - 0.01) c h),oklch(from var(--ity-btn2) calc(l - 0.07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--ity-btn) calc(l + 0.1) c h / 0.6),inset 0 -3px 0 oklch(from var(--ity-btn) calc(l - 0.2) c h),0 1px 2px oklch(from var(--ity-shadow) l c h / 0.34),0 10px 20px -6px oklch(from var(--ity-shadow) l c h / 0.5))`
// The solid status badge glyph is white by contract (theme-contract: status icon badges); --ity-tick keeps it overridable.
const CSS = `
.cf-is-this-you-7{--ity-ink:var(--ink,#101828);--ity-muted:var(--muted,#4a5565);--ity-panel:color-mix(in oklch,var(--ink,#101828) 4%,var(--card,#ffffff));--ity-line:var(--card-border,oklch(from var(--ink,#101828) l c h / 0.12));--ity-marker:var(--marker,#fae37c);--ity-shadow:var(--shadow,oklch(0.22 0.03 260));--ity-btn:var(--button-bg,var(--cta,#d92d20));--ity-btn2:var(--button-bg-2,var(--cta-2,#b42318));--ity-btn-ink:var(--button-ink,var(--cta-ink,#ffffff));--ity-focus:var(--field-focus,var(--accent,#0f5fc2));--ity-radius:var(--card-radius,var(--radius,14px));--ity-ok:var(--success,#15803d);--ity-tick:var(--status-glyph,#ffffff);position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:24px;width:100%;max-width:1080px;margin-inline:auto;font-family:var(--font-body,Arial,sans-serif);color:var(--ity-ink);-webkit-font-smoothing:antialiased}
.cf-is-this-you-7 *,.cf-is-this-you-7 *::before,.cf-is-this-you-7 *::after{box-sizing:border-box}
:where(.cf-is-this-you-7) :is(p,h2,h3,ul,li){margin:0}
:where(.cf-is-this-you-7) :is(h2,h3){text-wrap:balance}
:where(.cf-is-this-you-7) :is(p,li){text-wrap:pretty}
.cf-is-this-you-7 .ity-stage{justify-self:center;width:min(64%,240px);min-width:0}
.cf-is-this-you-7 .ity-portrait{position:relative;isolation:isolate}
.cf-is-this-you-7 .ity-portrait::before{content:'';position:absolute;inset:22% 0 0;z-index:-1;background:var(--ity-panel);border:1px solid var(--ity-line);border-radius:var(--ity-radius)}
.cf-is-this-you-7 .ity-portrait img{display:block;width:100%;height:auto;border-radius:0 0 var(--ity-radius) var(--ity-radius);filter:drop-shadow(0 2px 3px oklch(from var(--ity-shadow) l c h / 0.18))}
.cf-is-this-you-7 .ity-card{position:relative;min-width:0;background:color-mix(in oklch,var(--ink,#101828) 4%,var(--card,#ffffff));border:1px solid var(--card-border,oklch(from var(--ink,#101828) l c h / 0.12));border-radius:var(--card-radius,var(--radius,14px));padding:clamp(24px,4.4vw,48px) clamp(16px,4.4vw,48px)}
.cf-is-this-you-7 .ity-title{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;letter-spacing:var(--display-tracking,-.025em);color:var(--ity-ink);margin:0 0 16px;text-transform:var(--display-case,none);text-wrap:balance}
.cf-is-this-you-7 .ity-hl{padding:0 .1em;margin:0 -.04em;border-radius:.2em .45em .28em .5em;background:linear-gradient(177deg,transparent 0 42%,var(--ity-marker) 42% 92%,transparent 92%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-is-this-you-7 .ity-lead{font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;color:var(--ity-muted);max-width:46ch}
.cf-is-this-you-7 .ity-list{list-style:none;padding:0;margin-top:28px;display:grid;gap:12px}
.cf-is-this-you-7 .ity-row{position:relative;display:flex;align-items:center;gap:16px;min-height:64px;padding:14px 20px;background:var(--card,#ffffff);border:1px solid var(--ity-line);border-radius:var(--radius,12px);box-shadow:${SH_SM};cursor:pointer;user-select:none;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
.cf-is-this-you-7 .ity-row[data-on]{border-color:var(--ity-ok);background:var(--success-soft,#e7f4ec);box-shadow:inset 0 0 0 1px var(--ity-ok),${SH_SM}}
.cf-is-this-you-7 .ity-input{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none;background:var(--field,#ffffff);color:var(--field-ink,#101828);accent-color:var(--field-focus,var(--accent,#0f5fc2))}
.cf-is-this-you-7 .ity-checkbox{flex:none;display:grid;place-items:center;width:28px;height:28px;border:2px solid oklch(from var(--ity-ink) l c h / 0.55);border-radius:calc(var(--field-radius,var(--radius,12px)) * .5);background:var(--field,#ffffff);transition:background-color .16s ease,border-color .16s ease}
.cf-is-this-you-7 .ity-checkbox svg{width:18px;height:18px;color:var(--ity-tick);transform:scale(0);transition:transform .2s cubic-bezier(.2,.7,.2,1)}
.cf-is-this-you-7 .ity-row[data-on] .ity-checkbox{background:var(--ity-ok);border-color:var(--ity-ok);animation:ity7-pop .3s ease-out}
.cf-is-this-you-7 .ity-row[data-on] .ity-checkbox svg{transform:scale(1)}
.cf-is-this-you-7 .ity-text{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:600;line-height:1.4;color:var(--label-ink,var(--ity-ink))}
.cf-is-this-you-7 .ity-row:has(.ity-input:focus-visible){outline:3px solid var(--ity-focus);outline-offset:2px}
.cf-is-this-you-7 .ity-verdict{margin-top:40px;text-align:center}
.cf-is-this-you-7 .ity-vlead{min-height:1.4em;margin-bottom:12px;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:700;line-height:1.4;color:var(--ity-muted)}
.cf-is-this-you-7 .ity-count{color:var(--ity-ink);font-weight:800}
.cf-is-this-you-7 .ity-vline{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);color:var(--ity-ink);text-transform:var(--display-case,none);text-wrap:balance;animation:ity7-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-is-this-you-7 .ity-slip{container:ity-offer / inline-size;position:relative;min-width:0;margin-top:28px;background:var(--card,#ffffff);border:1px solid oklch(from var(--accent-fill, var(--accent,#0f5fc2)) l c h / 0.38);border-radius:var(--ity-radius);padding:clamp(16px,3vw,32px);box-shadow:${SH_LG}}
.cf-is-this-you-7 .ity-offer{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.cf-is-this-you-7 .ity-prod{display:flex;gap:20px;align-items:flex-start;min-width:0}
.cf-is-this-you-7 .ity-thumbs{display:flex;flex:none;gap:8px}
.cf-is-this-you-7 .ity-thumbs img{display:block;width:64px;height:64px;object-fit:cover;border-radius:8px;filter:drop-shadow(0 1px 2px oklch(from var(--ity-shadow) l c h / 0.22)) drop-shadow(0 4px 6px oklch(from var(--ity-shadow) l c h / 0.12))}
.cf-is-this-you-7 .ity-prod-copy{min-width:0;flex:1}
.cf-is-this-you-7 .ity-name{margin-bottom:8px;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:-.01em;color:var(--ity-ink);text-transform:var(--display-case,none)}
.cf-is-this-you-7 .ity-incl{font-size:.9375rem;font-weight:500;line-height:1.45;color:var(--ity-muted)}
.cf-is-this-you-7 .ity-price{display:grid;justify-items:center;min-width:0;width:100%;padding:20px 24px;border-radius:10px;background:color-mix(in oklch,var(--ink,#101828) 4%,var(--card,#ffffff));text-align:center}
.cf-is-this-you-7 .ity-plabel{margin-bottom:8px;font-size:.9375rem;font-weight:700;line-height:1.4;color:var(--ity-muted)}
.cf-is-this-you-7 .ity-prow{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:8px 16px;max-width:100%}
.cf-is-this-you-7 .ity-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;color:var(--ity-ink);overflow-wrap:anywhere;text-transform:var(--display-case,none)}
.cf-is-this-you-7 .ity-was{font-size:1.0625rem;font-weight:600;line-height:1.4;color:var(--ity-muted);white-space:nowrap}
.cf-is-this-you-7 .ity-was s{text-decoration-thickness:2px;color:var(--danger,#b42318)}
.cf-is-this-you-7 .ity-pnote{margin-top:12px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--ity-muted)}
@container ity-offer (max-width:420px){.cf-is-this-you-7 .ity-prod{flex-direction:column;align-items:center;gap:16px;text-align:center}.cf-is-this-you-7 .ity-incl{max-width:32ch;margin-inline:auto}.cf-is-this-you-7 .ity-price{padding:20px 16px}}
@container ity-offer (min-width:720px){.cf-is-this-you-7 .ity-offer{grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:28px}.cf-is-this-you-7 .ity-prod{flex-direction:column;gap:16px}.cf-is-this-you-7 .ity-thumbs img{width:80px;height:80px}}
.cf-is-this-you-7 .ity-ctawrap{margin-top:24px}
.cf-is-this-you-7 .ity-cta{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:64px;padding:14px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(180deg,oklch(from var(--ity-btn) calc(l + 0.04) c h),oklch(from var(--ity-btn2) calc(l - 0.02) c h));color:var(--ity-btn-ink);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;letter-spacing:-.005em;text-align:center;text-decoration:none;text-transform:var(--button-case,none);text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--ity-btn) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--ity-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--ity-shadow) l c h / 0.3),0 8px 16px -6px oklch(from var(--ity-shadow) l c h / 0.45));transition:transform .16s ease,box-shadow .16s ease}
.cf-is-this-you-7 .ity-cta-label{text-wrap:balance;min-width:0}
.cf-is-this-you-7 .ity-cta svg{flex:none;width:20px;height:20px}
.cf-is-this-you-7[data-force='hover'] .ity-cta:not(:disabled){${CTA_HOVER}}
.cf-is-this-you-7 .ity-cta:not(:disabled):active,.cf-is-this-you-7[data-force='active'] .ity-cta:not(:disabled){transform:translateY(1px);background:linear-gradient(180deg,oklch(from var(--ity-btn) calc(l - 0.06) c h),oklch(from var(--ity-btn2) calc(l - 0.08) c h));box-shadow:var(--button-shadow,inset 0 2px 4px oklch(from var(--ity-btn) calc(l - 0.24) c h / 0.45),inset 0 -2px 0 oklch(from var(--ity-btn) calc(l - 0.16) c h),0 1px 1px oklch(from var(--ity-shadow) l c h / 0.3))}
.cf-is-this-you-7 .ity-cta:focus-visible{outline:3px solid var(--ity-focus);outline-offset:3px}
.cf-is-this-you-7 .ity-cta[aria-busy]{cursor:progress}
.cf-is-this-you-7[data-disabled] .ity-cta,.cf-is-this-you-7 .ity-cta:disabled{background:var(--button-2-bg,var(--secondary,#e5e7eb));color:var(--button-2-ink,var(--secondary-ink,#101828));text-shadow:none;box-shadow:none;cursor:not-allowed;transform:none}
.cf-is-this-you-7[data-disabled] .ity-row{cursor:not-allowed;background:var(--card,#ffffff);box-shadow:none}
.cf-is-this-you-7[data-disabled] .ity-checkbox{border-color:var(--ity-muted)}
.cf-is-this-you-7[data-disabled] .ity-row[data-on]{border-color:var(--ity-line);box-shadow:none}
.cf-is-this-you-7[data-disabled] .ity-row[data-on] .ity-checkbox{background:var(--ity-muted);border-color:var(--ity-muted)}
.cf-is-this-you-7 .ity-spin{animation:ity7-rot .8s linear infinite}
.cf-is-this-you-7 .ity-err{margin-top:12px;padding:10px 14px;border-radius:10px;background:var(--danger-soft,#fbeaea);border:1px solid var(--danger,#b42318);color:var(--danger,#b42318);font-size:.9375rem;font-weight:600;line-height:1.4;text-align:center}
.cf-is-this-you-7 .ity-err svg{display:inline-block;width:18px;height:18px;vertical-align:-.2em;margin-inline-end:.4em}
.cf-is-this-you-7 .ity-trust{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:16px}
.cf-is-this-you-7 .ity-seal{flex:none;width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 2px 3px oklch(from var(--ity-shadow) l c h / 0.25))}
.cf-is-this-you-7 .ity-seal[data-matte]{filter:${MATTE} drop-shadow(0 2px 3px oklch(from var(--ity-shadow) l c h / 0.25))}
.cf-is-this-you-7 .ity-assure{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 20px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--ity-muted)}
.cf-is-this-you-7 .ity-trust[data-seal] .ity-assure{flex-direction:column;align-items:flex-start;text-align:left}
.cf-is-this-you-7 .ity-assure svg{display:inline-block;width:16px;height:16px;vertical-align:-.15em;margin-inline-end:.4em;color:var(--ity-ok)}
@container ity-offer (max-width:420px){.cf-is-this-you-7 .ity-cta{font-size:1.0625rem;padding-inline:14px}.cf-is-this-you-7 .ity-trust{flex-direction:column;gap:10px}.cf-is-this-you-7 .ity-trust[data-seal] .ity-assure{align-items:center;text-align:center}.cf-is-this-you-7 .ity-seal{width:64px;height:64px}}
@media (hover:hover) and (pointer:fine){
.cf-is-this-you-7:not([data-disabled]) .ity-row:hover{border-color:oklch(from var(--ity-ink) l c h / 0.34);box-shadow:${SH_MD}}
.cf-is-this-you-7:not([data-disabled]) .ity-row[data-on]:hover{border-color:var(--ity-ok);box-shadow:inset 0 0 0 1px var(--ity-ok),${SH_MD}}
.cf-is-this-you-7 .ity-cta:not(:disabled):not(:active):hover{${CTA_HOVER}}
}
@media (min-width:880px){.cf-is-this-you-7[data-has-stage]{grid-template-columns:minmax(240px,.78fr) minmax(0,1.7fr);gap:clamp(32px,4vw,56px);align-items:start}.cf-is-this-you-7 .ity-stage{position:sticky;top:24px;justify-self:stretch;width:100%;margin-top:32px}}
@keyframes ity7-pop{from{transform:scale(.9)}to{transform:scale(1)}}
@keyframes ity7-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes ity7-rot{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.cf-is-this-you-7 *,.cf-is-this-you-7 *::before,.cf-is-this-you-7 *::after{animation:none !important;transition:none !important}}
`
pieces/content/is-this-you-7/specimen.tsx 28 lines
import __studioImage2c3770ac from "../assets/3036073cdeba54dd.webp";
import __studioImagebe8f3e6f from '../assets/1c902f79369b3509.webp'
import * as React from 'react'
import { slot } from '../../slots'
import defaults from '../../studio-defaults.json'
import { IsThisYou7, type IsThisYouReplyState } from '../is-this-you-7'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function IsThisYou7Specimen({ state = 'default' }: { state?: string }) {
const s = defaults.sample
return (
<IsThisYou7
state={state as IsThisYouReplyState}
defaultChecked={[0, 1, 2]}
presenterCutoutImage={slot('presenter-cutout', __studioImagebe8f3e6f)}
sealGuaranteeImage={slot('seal-guarantee', __studioImage2c3770ac)}
productName={s.name}
items={s.items.map((item, i) => ({ itemImage: slot(`item-${i + 1}`, item.image), imageAlt: item.imageAlt, name: item.name }))}
priceLabel={s.todayLabel}
price={s.price}
regularPrice={s.regularPrice}
note={s.note}
label={s.label}
reassurance={s.reassurance.map(text => ({ text }))}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalIsThisYou7 |
string |
Default 'Is this you?'
|
emphasis OptionalIsThisYou7 |
string |
Default 'you?'
|
lead OptionalIsThisYou7 |
string |
Default 'Tick the statements that sound familiar.'
|
statements OptionalIsThisYou7 |
Array<{ text: string } | string> |
Default DEFAULT_STATEMENTS
|
defaultChecked OptionalIsThisYou7 |
number[] |
Default []
|
copy OptionalIsThisYou7 |
Partial<IsThisYou7Copy> |
|
verdict OptionalIsThisYou7 |
(count: number, total: number) => ReplyVerdict |
|
presenterCutoutImage OptionalIsThisYou7 |
string |
|
presenterSrc OptionalIsThisYou7 |
string |
|
presenterAlt OptionalIsThisYou7 |
string |
Default ''
|
sealGuaranteeImage OptionalIsThisYou7 |
string |
|
stampSrc OptionalIsThisYou7 |
string |
|
matteWhite OptionalIsThisYou7 |
boolean |
Default false
|
productName OptionalIsThisYou7 |
string |
Default 'The Funnel Starter Kit'
|
items OptionalIsThisYou7 |
ReplyItem[] |
Default []
|
priceLabel OptionalIsThisYou7 |
string |
Default 'Get the complete kit for'
|
price OptionalIsThisYou7 |
string |
Default '$47'
|
regularPrice OptionalIsThisYou7 |
string |
|
regularLabel OptionalIsThisYou7 |
string |
Default 'Value'
|
note OptionalIsThisYou7 |
string |
|
label OptionalIsThisYou7 |
string |
Default 'Yes! Give Me Access'
|
loadingLabel OptionalIsThisYou7 |
string |
Default 'One moment…'
|
reassurance OptionalIsThisYou7 |
Array<{ text: string } | string> |
Default []
|
successText OptionalIsThisYou7 |
string |
|
errorText OptionalIsThisYou7 |
string |
Default 'That didn’t go through. Please try again.'
|
disabled OptionalIsThisYou7 |
boolean |
Default false
|
href OptionalIsThisYou7 |
string |
|
onAction OptionalIsThisYou7 |
(checked: string[]) => void | Promise<void> |
|
state OptionalIsThisYou7 |
IsThisYouReplyState |
Default 'default'
|
className OptionalIsThisYou7 |
string |
|
style OptionalIsThisYou7 |
React.CSSProperties |
|
headline OptionalIsThisYouReplyCard |
string |
|
emphasis OptionalIsThisYouReplyCard |
string |
|
lead OptionalIsThisYouReplyCard |
string |
|
statements OptionalIsThisYouReplyCard |
Array<{ text: string } | string> |
|
defaultChecked OptionalIsThisYouReplyCard |
number[] |
|
copy OptionalIsThisYouReplyCard |
Partial<IsThisYou7Copy> |
|
verdict OptionalIsThisYouReplyCard |
(count: number, total: number) => ReplyVerdict |
|
presenterCutoutImage OptionalIsThisYouReplyCard |
string |
|
presenterSrc OptionalIsThisYouReplyCard |
string |
|
presenterAlt OptionalIsThisYouReplyCard |
string |
|
sealGuaranteeImage OptionalIsThisYouReplyCard |
string |
|
stampSrc OptionalIsThisYouReplyCard |
string |
|
matteWhite OptionalIsThisYouReplyCard |
boolean |
|
productName OptionalIsThisYouReplyCard |
string |
|
items OptionalIsThisYouReplyCard |
ReplyItem[] |
|
priceLabel OptionalIsThisYouReplyCard |
string |
|
price OptionalIsThisYouReplyCard |
string |
|
regularPrice OptionalIsThisYouReplyCard |
string |
|
regularLabel OptionalIsThisYouReplyCard |
string |
|
note OptionalIsThisYouReplyCard |
string |
|
label OptionalIsThisYouReplyCard |
string |
|
loadingLabel OptionalIsThisYouReplyCard |
string |
|
reassurance OptionalIsThisYouReplyCard |
Array<{ text: string } | string> |
|
successText OptionalIsThisYouReplyCard |
string |
|
errorText OptionalIsThisYouReplyCard |
string |
|
disabled OptionalIsThisYouReplyCard |
boolean |
|
href OptionalIsThisYouReplyCard |
string |
|
onAction OptionalIsThisYouReplyCard |
(checked: string[]) => void | Promise<void> |
|
state OptionalIsThisYouReplyCard |
IsThisYouReplyState |
|
className OptionalIsThisYouReplyCard |
string |
|
style OptionalIsThisYouReplyCard |
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- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--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.
presenter-cutout- The presenter on a transparent background.
seal-guarantee- The money-back guarantee seal, on a transparent background.
-
1c902f79369b3509.webp
image/webp · 160 KB
-
3036073cdeba54dd.webp
image/webp · 325 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB