Is This You 9
Interactive hand-raiser: visitors tick the pains that fit them on a night-desk stage, and the overlapping offer card answers live with their count and brings the button alive.
Use it in a prompt
Use content/is-this-you-9 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-9.tsx. - Import it and pass your copy and images (Props tab):
import { IsThisYou9 } from "@/components/funneldna/content/is-this-you-9"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/is-this-you-9/component.tsx 510 lines
// layout: photo-overlap-card
// Interactive hand-raiser: visitors tick the pains that fit them on a night-desk stage, and the overlapping offer card answers live with their count and brings the button alive.
// Theme: all colours read contract tokens; the only literal outside a var() fallback is none. The success badge glyph is white per the status-badge rule (var(--status-glyph, #fff)), and the subhead's band backing keeps band-ink at 4.5:1.
'use client'
import * as React from 'react'
import { AlertCircle, Check, CheckCircle2, Loader2, Lock, ShieldCheck } from 'lucide-react'
export type IsThisYou9State = 'default' | 'hover' | 'active' | 'disabled' | 'error' | 'success'
export type IsThisYou9Item = {
name: string
/** Item photo (page slot: item-n). */
image?: string
/** Alt text for the photo; falls back to the name. */
imageAlt?: string
}
export type IsThisYou9Copy = {
/** Count line before anything is ticked. */
emptyLine: string
/** Verdict heading before anything is ticked. */
emptyTitle: string
/** Uses {count} and {total}; {count} is set bold in the accent colour. */
countLine: string
/** Count line when every statement is ticked; uses {count}. */
allLine: string
/** Verdict heading when fewer than half are ticked. */
someTitle: string
/** Verdict heading when half or more are ticked. */
strongTitle: string
/** Label before the struck regular price. */
regularLabel: string
/** Label before today's price. */
todayLabel: string
/** Label before the computed savings amount. */
saveLabel: string
}
export type IsThisYou9Props = {
headline?: string
/** Phrase inside the headline set in the highlight colour. */
emphasis?: string
subhead?: string
/** The pain statements the visitor can tick. */
statements?: Array<{ text: string } | string>
/** Indexes ticked on first render (leave empty on a live page). */
defaultChecked?: number[]
/** Live count, verdict and price labels; see IsThisYou9Copy. */
copy?: Partial<IsThisYou9Copy>
/** Photographic stage behind the list (page slot: scene). */
sceneImage?: string
/** Alt text for the scene; leave empty when it is decorative. */
sceneAlt?: string
productName?: string
tagline?: string
/** Item photos shown as a small overlapping cluster beside the product name (first three with an image). */
items?: IsThisYou9Item[]
/** Struck regular price; the savings amount is computed from it and price. */
regularPrice?: string
price?: string
/** Small terms line under the price. */
note?: string
/** Button text. */
label?: string
/** Button text while onAction is pending. */
loadingLabel?: string
/** Lines under the button; a line mentioning guarantee/refund/money gets a shield icon, others a lock. */
reassurance?: string[]
/** Shown in place of the button once onAction resolves. */
successText?: string
/** Shown above the button if onAction throws. */
errorText?: string
disabled?: boolean
/** Called with the ticked statements' text when the button is clicked. */
onAction?: (checked: string[]) => void | Promise<void>
/** Preview state; default runs live. */
state?: IsThisYou9State
className?: string
style?: React.CSSProperties
}
export function IsThisYou9(props: IsThisYou9Props) {
const {
headline = 'Is this you?',
emphasis = 'you?',
subhead = 'Tick the things holding your funnel back.',
statements = DEFAULT_STATEMENTS,
defaultChecked = [],
copy,
sceneImage,
sceneAlt = '',
productName = 'The Funnel Starter Kit',
tagline = 'The guide, workbook and checklist in one download.',
items = [],
regularPrice = '$97',
price = '$47',
note = 'One payment · Lifetime access',
label = 'Yes! Give Me Instant Access',
loadingLabel = 'One moment…',
reassurance = ['Secure checkout · Instant download', '30-day money-back guarantee'],
successText = 'Your kit is ready to download.',
errorText = 'That didn’t go through. Please try again.',
disabled = false,
onAction,
state = 'default',
className,
style,
} = props
const text = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const titleId = `${uid}-title`
const subId = `${uid}-sub`
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 [pulse, setPulse] = React.useState(0)
const mounted = React.useRef(true)
const busy = React.useRef(false)
const timer = React.useRef<ReturnType<typeof setTimeout> | undefined>(undefined)
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
clearTimeout(timer.current)
}
}, [])
React.useEffect(() => {
setStatus(statusFromState(state))
}, [state])
const isDisabled = disabled || state === 'disabled'
const count = statements.reduce((n: number, _, i) => n + (checked[i] ? 1 : 0), 0)
const level = count === 0 || total === 0 ? 0 : count < Math.ceil(total / 2) ? 1 : 2
const force = state === 'hover' || state === 'active' ? state : undefined
const loading = status === 'loading'
const save = savings(regularPrice, price)
const thumbs = items.filter((item) => !!item.image).slice(0, 3)
const line = count === 0 ? text.emptyLine : count === total ? text.allLine : text.countLine
const title = level === 0 ? text.emptyTitle : level === 1 ? text.someTitle : text.strongTitle
const toggle = (index: number) => {
if (isDisabled || busy.current) return
const turningOn = !checked[index]
setChecked((prev) => statements.map((_, i) => (i === index ? !prev[i] : !!prev[i])))
if (turningOn) setPulse((p) => p + 1)
if (status === 'error' || status === 'success') setStatus('idle')
}
const handleAction = async (event: React.MouseEvent<HTMLButtonElement>) => {
event.preventDefault()
if (isDisabled || busy.current) return
busy.current = true
setStatus('loading')
const picked = statements
.filter((_, i) => checked[i])
.map((item) => (typeof item === 'string' ? item : item.text))
try {
await Promise.all([
Promise.resolve().then(() => onAction?.(picked)),
new Promise<void>((resolve) => {
clearTimeout(timer.current)
timer.current = setTimeout(resolve, 750)
}),
])
if (mounted.current) setStatus('success')
} catch {
if (mounted.current) setStatus('error')
} finally {
busy.current = false
}
}
return (
<section
className={`cf-is-this-you-9${className ? ` ${className}` : ''}`}
style={style}
data-level={level}
data-status={status}
data-force={force}
data-disabled={isDisabled ? '' : undefined}
aria-labelledby={titleId}
>
<style>{CSS}</style>
<div className='itn-stage' aria-hidden={sceneAlt ? undefined : true}>
{sceneImage ? (
<img className='itn-scene' src={sceneImage} alt={sceneAlt} width={1600} height={900} decoding='async' />
) : null}
<span className='itn-scrim' />
</div>
<div className='itn-copy'>
<h2 className='itn-title' id={titleId}>
<Title text={headline} emphasis={emphasis} />
</h2>
{subhead ? (
<p className='itn-sub' id={subId}>
{subhead}
</p>
) : null}
<div role='group' aria-labelledby={titleId} aria-describedby={subhead ? subId : undefined}>
<ul className='itn-list'>
{statements.map((item, i) => {
const on = !!checked[i]
const words = typeof item === 'string' ? item : item.text
return (
<li key={i} style={{ '--i': i } as React.CSSProperties}>
<label className='itn-row' data-on={on ? '' : undefined}>
<input
type='checkbox'
className='itn-input'
checked={on}
disabled={isDisabled}
onChange={() => toggle(i)}
/>
<span className='itn-tick' aria-hidden='true'>
<Check strokeWidth={3.5} />
</span>
<span className='itn-row-text'>{words}</span>
</label>
</li>
)
})}
</ul>
</div>
</div>
<div className='itn-card' data-live={count > 0 ? '' : undefined}>
<div className='itn-meter' aria-hidden='true'>
{statements.map((_, i) => (
<span key={i} className='itn-seg' data-on={i < count ? '' : undefined} />
))}
</div>
<div className='itn-verdict' aria-live='polite' aria-atomic='true'>
<div key={count} className='itn-verdict-in'>
<p className='itn-count-line'>
<CountLine template={line} count={count} total={total} />
</p>
<h3 className='itn-verdict-title'>{title}</h3>
</div>
</div>
<div className='itn-product'>
{thumbs.length ? (
<div className='itn-thumbs'>
{thumbs.map((item, i) => (
<img
key={i}
src={item.image}
alt={item.imageAlt ?? item.name}
width={96}
height={96}
loading='lazy'
decoding='async'
/>
))}
</div>
) : null}
<div className='itn-product-copy'>
<p className='itn-product-name'>{productName}</p>
{tagline ? <p className='itn-product-tag'>{tagline}</p> : null}
</div>
</div>
<div className='itn-price'>
{regularPrice ? (
<p className='itn-regular'>
{text.regularLabel} <s>{regularPrice}</s>
</p>
) : null}
<div className='itn-today'>
<span className='itn-today-label'>{text.todayLabel}</span>
<span className='itn-amount'>{price}</span>
{save ? (
<span className='itn-save'>
{text.saveLabel} {save}
</span>
) : null}
</div>
{note ? <p className='itn-note'>{note}</p> : null}
</div>
<div className='itn-action'>
{status === 'success' ? (
<div className='itn-success' role='status'>
<CheckCircle2 aria-hidden='true' />
<span>{successText}</span>
</div>
) : (
<>
{status === 'error' ? (
<p className='itn-alert' role='alert'>
<AlertCircle aria-hidden='true' />
<span>{errorText}</span>
</p>
) : null}
<button
type='button'
className='itn-btn'
onClick={handleAction}
disabled={isDisabled || loading}
aria-busy={loading || undefined}
aria-describedby={reassurance.length ? assureId : undefined}
>
{count > 0 && !isDisabled ? <span key={pulse} className='itn-sheen' aria-hidden='true' /> : null}
{loading ? <Loader2 className='itn-spin' aria-hidden='true' /> : null}
<span className='itn-btn-label'>{loading ? loadingLabel : label}</span>
</button>
</>
)}
{reassurance.length ? (
<ul className='itn-assure' id={assureId}>
{reassurance.map((lineText, i) => {
const guard = /guarantee|refund|money/i.test(lineText)
const Icon = guard ? ShieldCheck : Lock
return (
<li key={i} data-guard={guard ? '' : undefined}>
<Icon aria-hidden='true' />
<span>{lineText}</span>
</li>
)
})}
</ul>
) : null}
</div>
</div>
</section>
)
}
export default IsThisYou9
type Status = 'idle' | 'loading' | 'success' | 'error'
const DEFAULT_COPY: IsThisYou9Copy = {
emptyLine: 'Tick every line that sounds like you',
emptyTitle: 'See if this was made for you.',
countLine: 'You checked {count} of {total}:',
allLine: 'You checked all {count}:',
someTitle: 'The kit covers that, step by step.',
strongTitle: 'This was made for you.',
regularLabel: 'Regular price',
todayLabel: 'Today',
saveLabel: 'You save',
}
const DEFAULT_STATEMENTS = [
'I don’t know where to start.',
'My offer needs a clearer plan.',
'I’m stuck on what to write.',
'I’m worried I’ll miss a launch step.',
'I want everything in one place.',
]
function statusFromState(state: IsThisYou9State): Status {
return state === 'error' ? 'error' : state === 'success' ? 'success' : 'idle'
}
function money(value: string) {
const match = value.replace(/,/g, '').match(/[0-9]+(?:[.][0-9]+)?/)
return match ? Number(match[0]) : NaN
}
function savings(regular?: string, today?: string) {
if (!regular || !today) return ''
const a = money(regular)
const b = money(today)
if (!Number.isFinite(a) || !Number.isFinite(b) || a <= b) return ''
const prefix = (regular.match(/^[^0-9]*/)?.[0] ?? '').trim()
const diff = a - b
return prefix + (Number.isInteger(diff) ? String(diff) : diff.toFixed(2))
}
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='itn-title-em'>{emphasis}</span>
{text.slice(at + emphasis.length)}
</>
)
}
function CountLine({ template, count, total }: { template: string; count: number; total: number }) {
const parts = template.split('{total}').join(String(total)).split('{count}')
return (
<>
{parts.map((part, i) => (
<React.Fragment key={i}>
{i > 0 ? <span className='itn-count'>{count}</span> : null}
{part}
</React.Fragment>
))}
</>
)
}
// Scoped under .cf-is-this-you-9. Child selectors use :where(.cf-is-this-you-9) so each rule keeps the
// specificity it was approved with and the cascade (including forced hover/active states) is unchanged.
const CSS = `
.cf-is-this-you-9{--itn-card-w:400px;--itn-over:64px;--itn-drop:56px;--itn-r:var(--radius,12px);--itn-band:var(--band,oklch(0.27 0.07 256));--itn-bink:var(--band-ink,oklch(1 0 0));--itn-card:var(--card,oklch(1 0 0));--itn-ink:var(--ink,oklch(0.21 0.03 263));--itn-muted:var(--muted,oklch(0.45 0.03 258));--itn-accent:var(--accent,oklch(0.5 0.17 257));--itn-btn:var(--button-bg,var(--cta,oklch(0.58 0.21 29)));--itn-btn2:var(--button-bg-2,var(--cta-2,oklch(0.51 0.21 29)));--itn-btn-ink:var(--button-ink,var(--cta-ink,oklch(1 0 0)));--itn-sh:var(--shadow,oklch(0.22 0.03 260));--itn-success:var(--success,oklch(0.5 0.14 150));--itn-glyph:var(--status-glyph,#fff);--itn-btn2-bg:var(--button-2-bg,var(--secondary,oklch(0.93 0.015 263)));--itn-hi:var(--headline-emphasis,oklch(from var(--warning,oklch(0.5 0.1 85)) 0.87 0.17 h));position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) var(--itn-card-w);width:100%;max-width:1200px;margin-inline:auto;font-family:var(--font-body,system-ui,sans-serif);color:var(--itn-ink);-webkit-font-smoothing:antialiased}
.cf-is-this-you-9 *,.cf-is-this-you-9 *::before,.cf-is-this-you-9 *::after{box-sizing:border-box}
.cf-is-this-you-9 :where(h2,h3,p,ul,li){margin:0;padding:0}
.cf-is-this-you-9 ul{list-style:none}
:where(.cf-is-this-you-9) .itn-stage{grid-column:1/-1;grid-row:1;position:relative;z-index:0;margin:0 var(--itn-over) var(--itn-drop) 0;overflow:hidden;border-radius:calc(var(--itn-r) + 10px);background:var(--itn-band);box-shadow:var(--shadow-lg,0 2px 3px oklch(from var(--itn-sh) l c h / 0.24),0 12px 24px -8px oklch(from var(--itn-sh) l c h / 0.32))}
:where(.cf-is-this-you-9) .itn-scene{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:78% 40%}
:where(.cf-is-this-you-9) .itn-scrim{position:absolute;inset:0;background:linear-gradient(90deg,oklch(from var(--itn-band) l c h / 0.95) 0%,oklch(from var(--itn-band) l c h / 0.9) 50%,oklch(from var(--itn-band) l c h / 0.6) 74%,oklch(from var(--itn-band) l c h / 0.3) 100%)}
:where(.cf-is-this-you-9) .itn-copy{grid-column:1;grid-row:1;position:relative;z-index:1;min-width:0;margin-bottom:var(--itn-drop);padding:clamp(36px,4.6vw,64px) 48px clamp(36px,4.6vw,60px) clamp(28px,4.6vw,64px);color:var(--itn-bink)}
:where(.cf-is-this-you-9) .itn-title{padding-bottom:0.06em;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:calc(var(--display-tracking,-0.02em) - 0.015em);font-size:clamp(3rem,6.2vw,5.5rem);line-height:0.95;color:var(--itn-bink);text-wrap:balance}
:where(.cf-is-this-you-9) .itn-title-em{display:inline-block;color:var(--itn-hi)}
:where(.cf-is-this-you-9) .itn-sub{margin-top:clamp(16px,1.8vw,24px);max-width:34ch;font-size:clamp(1.125rem,1.7vw,1.4rem);font-weight:500;line-height:1.35;color:color-mix(in oklab,var(--itn-bink) 88%,var(--itn-band));background:oklch(from var(--itn-band) l c h / 0.9);text-wrap:pretty}
:where(.cf-is-this-you-9) .itn-list{display:grid;gap:10px;margin-top:clamp(24px,3vw,32px)}
:where(.cf-is-this-you-9) .itn-row{position:relative;display:flex;align-items:center;gap:16px;min-height:62px;padding:14px 20px 14px 16px;border:1px solid oklch(from var(--itn-bink) l c h / 0.14);border-radius:var(--itn-r);background:oklch(from var(--itn-band) calc(l + 0.05) c h / 0.8);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:inset 0 1px 0 oklch(from var(--itn-bink) l c h / 0.06);color:var(--itn-bink);cursor:pointer;user-select:none;transition:background-color .18s ease,border-color .18s ease,transform .18s cubic-bezier(.2,.8,.2,1)}
:where(.cf-is-this-you-9) .itn-input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;opacity:0;accent-color:var(--field-focus,var(--accent,oklch(0.5 0.17 257)))}
:where(.cf-is-this-you-9) .itn-tick{display:grid;place-items:center;flex:0 0 auto;width:30px;height:30px;border:2px solid oklch(from var(--itn-bink) l c h / 0.62);border-radius:8px;background:oklch(from var(--itn-band) calc(l - 0.04) c h / 0.6);transition:background-color .18s ease,border-color .18s ease}
:where(.cf-is-this-you-9) .itn-tick svg{width:18px;height:18px;color:var(--itn-accent);opacity:0;transform:scale(.5);transition:opacity .16s ease,transform .22s cubic-bezier(.3,1.6,.5,1)}
:where(.cf-is-this-you-9) .itn-row-text{min-width:0;font-size:clamp(1.0625rem,1.35vw,1.1875rem);font-weight:600;line-height:1.3;text-wrap:pretty}
:where(.cf-is-this-you-9) .itn-row[data-on]{background:color-mix(in oklab,var(--accent-fill,var(--itn-accent)) 26%,var(--itn-band));border-color:oklch(from var(--accent-fill, var(--itn-accent)) calc(l + 0.2) c h / 0.8)}
:where(.cf-is-this-you-9) .itn-row[data-on] .itn-tick{background:var(--card,oklch(1 0 0));border-color:var(--card,oklch(1 0 0))}
:where(.cf-is-this-you-9) .itn-row[data-on] .itn-tick svg{opacity:1;transform:none}
.cf-is-this-you-9:not([data-disabled]) .itn-row:hover{background:oklch(from var(--itn-band) calc(l + 0.09) c h / 0.88);transform:translateY(-1px)}
.cf-is-this-you-9:not([data-disabled]) .itn-row[data-on]:hover{background:color-mix(in oklab,var(--accent-fill,var(--itn-accent)) 32%,var(--itn-band))}
.cf-is-this-you-9:not([data-disabled]) .itn-row:active{transform:scale(.99)}
:where(.cf-is-this-you-9) .itn-row:has(.itn-input:focus-visible){outline:3px solid var(--itn-bink);outline-offset:3px}
.cf-is-this-you-9[data-disabled] .itn-row{cursor:not-allowed}
.cf-is-this-you-9[data-disabled] .itn-tick{border-style:dashed}
:where(.cf-is-this-you-9) .itn-card{grid-column:2;grid-row:1;align-self:end;position:relative;z-index:2;min-width:0;padding:28px 28px 24px;border:1px solid var(--card-border,color-mix(in oklch,var(--itn-ink) 12%,transparent));border-radius:var(--card-radius,calc(var(--itn-r) + 6px));background:var(--itn-card);color:var(--itn-ink);box-shadow:var(--card-shadow,inset 0 1px 0 oklch(from var(--itn-card) calc(l + 0.04) c h / 0.6),0 2px 3px oklch(from var(--itn-sh) l c h / 0.26),0 22px 40px -16px oklch(from var(--itn-sh) l c h / 0.5));transition:border-color .25s ease}
:where(.cf-is-this-you-9) .itn-card[data-live]{border-color:oklch(from var(--accent-fill, var(--itn-accent)) l c h / 0.5)}
:where(.cf-is-this-you-9) .itn-meter{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px;margin-bottom:20px}
:where(.cf-is-this-you-9) .itn-seg{height:8px;overflow:hidden;border-radius:99px;background:color-mix(in oklch,var(--itn-ink) 10%,var(--itn-card))}
:where(.cf-is-this-you-9) .itn-seg::after{content:'';display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,oklch(from var(--accent-fill, var(--itn-accent)) calc(l + 0.06) c h),var(--accent-fill,var(--itn-accent)));transform:scaleX(0);transform-origin:left center;transition:transform .4s cubic-bezier(.2,.8,.2,1)}
:where(.cf-is-this-you-9) .itn-seg[data-on]::after{transform:scaleX(1)}
:where(.cf-is-this-you-9) .itn-verdict{min-height:104px}
:where(.cf-is-this-you-9) .itn-count-line{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:1.1875rem;line-height:1.3;color:var(--itn-ink)}
:where(.cf-is-this-you-9) .itn-count{color:var(--itn-accent);font-variant-numeric:tabular-nums}
:where(.cf-is-this-you-9) .itn-verdict-title{margin-top:6px;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.02em);font-size:clamp(1.625rem,2.3vw,2rem);line-height:1.1;color:var(--itn-ink);text-wrap:balance}
:where(.cf-is-this-you-9) .itn-product{display:flex;align-items:flex-start;gap:14px;margin-top:18px;padding:12px 14px;border-radius:var(--itn-r);background:color-mix(in oklch,var(--itn-ink) 4%,var(--itn-card))}
:where(.cf-is-this-you-9) .itn-thumbs{display:flex;flex:0 0 auto;padding-left:2px}
:where(.cf-is-this-you-9) .itn-thumbs img{display:block;width:48px;height:48px;border-radius:10px;object-fit:cover;outline:2px solid var(--itn-card);filter:drop-shadow(0 1px 2px oklch(from var(--itn-sh) l c h / 0.3))}
:where(.cf-is-this-you-9) .itn-thumbs img + img{margin-left:-14px}
:where(.cf-is-this-you-9) .itn-product-copy{min-width:0}
:where(.cf-is-this-you-9) .itn-product-name{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:1.0625rem;line-height:1.25;color:var(--itn-ink);text-wrap:balance}
:where(.cf-is-this-you-9) .itn-product-tag{margin-top:3px;font-size:0.9375rem;line-height:1.4;color:var(--itn-muted);text-wrap:pretty}
:where(.cf-is-this-you-9) .itn-price{margin-top:20px}
:where(.cf-is-this-you-9) .itn-regular{font-size:0.9375rem;line-height:1.4;color:var(--itn-muted)}
:where(.cf-is-this-you-9) .itn-regular s{margin-left:2px;font-weight:700;color:var(--itn-muted);text-decoration-line:line-through;text-decoration-color:var(--danger,oklch(0.5 0.17 27));text-decoration-thickness:2px}
:where(.cf-is-this-you-9) .itn-today{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-top:4px}
:where(.cf-is-this-you-9) .itn-today-label{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:1.25rem;color:var(--itn-ink)}
:where(.cf-is-this-you-9) .itn-amount{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(2.75rem,4.2vw,3.5rem);line-height:1.05;letter-spacing:-0.03em;color:var(--itn-ink);font-variant-numeric:tabular-nums}
:where(.cf-is-this-you-9) .itn-save{align-self:center;display:inline-flex;align-items:center;padding:5px 12px;border-radius:999px;background:var(--success-soft,oklch(0.93 0.02 150));color:var(--itn-success);font-size:0.875rem;font-weight:700;line-height:1.3;white-space:nowrap}
:where(.cf-is-this-you-9) .itn-note{margin-top:12px;font-size:0.9375rem;line-height:1.4;color:var(--itn-muted)}
:where(.cf-is-this-you-9) .itn-action{margin-top:22px}
:where(.cf-is-this-you-9) .itn-btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:64px;padding:14px 20px;border:1px solid oklch(from var(--itn-btn) calc(l - 0.14) c h);border-radius:var(--button-radius,var(--itn-r));background:linear-gradient(180deg,oklch(from var(--itn-btn) calc(l + 0.04) c h),var(--itn-btn2));color:var(--itn-btn-ink);font-family:var(--button-font,var(--font-display,inherit));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.0625rem,1.5vw,1.25rem);line-height:1.15;text-align:center;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--itn-btn) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--itn-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--itn-sh) l c h / 0.35),0 6px 14px -4px oklch(from var(--itn-sh) l c h / 0.4));cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .15s ease,background .15s ease,box-shadow .15s ease}
:where(.cf-is-this-you-9) .itn-btn-label{position:relative;text-wrap:balance}
:where(.cf-is-this-you-9) .itn-sheen{position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 30%,oklch(from var(--itn-btn) calc(l + 0.3) c h / 0.45) 50%,transparent 70%);transform:translateX(-120%)}
:where(.cf-is-this-you-9) .itn-btn:hover:not(:disabled),.cf-is-this-you-9[data-force=hover] .itn-btn:not(:disabled){background:linear-gradient(180deg,oklch(from var(--itn-btn) calc(l - 0.01) c h),oklch(from var(--itn-btn2) calc(l - 0.05) c h));transform:translateY(-1px)}
:where(.cf-is-this-you-9) .itn-btn:active:not(:disabled),.cf-is-this-you-9[data-force=active] .itn-btn:not(:disabled){transform:translateY(1px);background:linear-gradient(180deg,oklch(from var(--itn-btn) calc(l - 0.06) c h),oklch(from var(--itn-btn2) calc(l - 0.08) c h));box-shadow:inset 0 2px 5px oklch(from var(--itn-btn) calc(l - 0.24) c h / 0.6),0 1px 1px oklch(from var(--itn-sh) l c h / 0.3)}
:where(.cf-is-this-you-9) .itn-btn:focus-visible{outline:3px solid var(--itn-accent);outline-offset:3px}
:where(.cf-is-this-you-9) .itn-btn[aria-busy]{cursor:progress}
:where(.cf-is-this-you-9) .itn-btn:disabled:not([aria-busy]){border-color:transparent;background:var(--itn-btn2-bg);color:var(--button-2-ink,var(--secondary-ink,oklch(0.21 0.03 263)));text-shadow:none;box-shadow:var(--button-2-shadow, var(--shadow-sm));cursor:not-allowed}
:where(.cf-is-this-you-9) .itn-spin{flex:0 0 auto;width:20px;height:20px}
:where(.cf-is-this-you-9) .itn-assure{display:grid;justify-items:center;gap:6px;margin-top:14px}
:where(.cf-is-this-you-9) .itn-assure li{display:inline-flex;align-items:center;gap:7px;font-size:0.875rem;line-height:1.4;color:var(--itn-muted);text-align:center;text-wrap:pretty}
:where(.cf-is-this-you-9) .itn-assure svg{flex:0 0 auto;width:16px;height:16px}
:where(.cf-is-this-you-9) .itn-assure li[data-guard] svg{color:var(--itn-success)}
:where(.cf-is-this-you-9) .itn-alert{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px;padding:12px 14px;border-radius:var(--itn-r);background:var(--danger-soft,oklch(0.93 0.024 27));color:var(--danger,oklch(0.5 0.17 27));font-size:0.9375rem;font-weight:600;line-height:1.4}
:where(.cf-is-this-you-9) .itn-alert svg{flex:0 0 auto;width:18px;height:18px;margin-top:1px}
:where(.cf-is-this-you-9) .itn-success{display:flex;align-items:center;gap:12px;min-height:64px;padding:14px 18px;border-radius:var(--button-radius,var(--itn-r));background:var(--success-soft,oklch(0.93 0.02 150));color:var(--itn-success);font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:1.0625rem;line-height:1.3}
:where(.cf-is-this-you-9) .itn-success svg{flex:0 0 auto;width:24px;height:24px}
:where(.cf-is-this-you-9) .itn-success svg circle{fill:var(--itn-success);stroke:var(--itn-success)}
:where(.cf-is-this-you-9) .itn-success svg path{stroke:var(--itn-glyph);stroke-width:3}
@media (prefers-reduced-motion:no-preference){
:where(.cf-is-this-you-9) .itn-scene{animation:itn-push 1.8s cubic-bezier(.2,.8,.2,1) both}
:where(.cf-is-this-you-9) .itn-title-em{animation:itn-word .7s cubic-bezier(.2,.8,.2,1) .1s both}
:where(.cf-is-this-you-9) .itn-list li{animation:itn-rise .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(min(var(--i,0),4) * 60ms + 120ms)}
:where(.cf-is-this-you-9) .itn-verdict-in{animation:itn-rise .32s cubic-bezier(.2,.8,.2,1) both}
:where(.cf-is-this-you-9) .itn-sheen{animation:itn-sheen .9s cubic-bezier(.3,.7,.3,1) .05s 1 both}
:where(.cf-is-this-you-9) .itn-spin{animation:itn-spin .8s linear infinite}
}
@keyframes itn-push{from{transform:scale(1.07)}to{transform:scale(1)}}
@keyframes itn-word{from{opacity:.82;transform:translateY(0.12em) rotate(-2deg)}to{opacity:1;transform:none}}
@keyframes itn-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes itn-sheen{from{transform:translateX(-120%)}to{transform:translateX(120%)}}
@keyframes itn-spin{to{transform:rotate(360deg)}}
@media (max-width:959px){
.cf-is-this-you-9{grid-template-columns:minmax(0,1fr)}
:where(.cf-is-this-you-9) .itn-stage{grid-column:1;grid-row:1;margin:0}
:where(.cf-is-this-you-9) .itn-scrim{background:linear-gradient(180deg,oklch(from var(--itn-band) l c h / 0.9) 0%,oklch(from var(--itn-band) l c h / 0.86) 60%,oklch(from var(--itn-band) l c h / 0.72) 100%)}
:where(.cf-is-this-you-9) .itn-scene{object-position:75% 30%}
:where(.cf-is-this-you-9) .itn-copy{grid-column:1;grid-row:1;margin:0;padding:clamp(28px,6vw,48px) clamp(18px,5vw,40px) 92px}
:where(.cf-is-this-you-9) .itn-title{font-size:clamp(2.75rem,10vw,4.5rem)}
:where(.cf-is-this-you-9) .itn-card{grid-column:1;grid-row:2;align-self:start;justify-self:center;width:calc(100% - 24px);max-width:540px;margin-top:-60px}
}
@media (max-width:479px){
:where(.cf-is-this-you-9) .itn-card{padding:22px 18px 20px}
:where(.cf-is-this-you-9) .itn-row{gap:14px;min-height:58px;padding:13px 14px}
:where(.cf-is-this-you-9) .itn-sub{font-size:1.125rem}
:where(.cf-is-this-you-9) .itn-verdict{min-height:96px}
}
@media (prefers-reduced-motion:reduce){
.cf-is-this-you-9 *,.cf-is-this-you-9 *::before,.cf-is-this-you-9 *::after{animation:none!important;transition:none!important}
}
`
pieces/content/is-this-you-9/specimen.tsx 32 lines
import __studioImage1e19e1af from "../assets/817abf69114f51f1.webp";
import * as React from 'react'
import { IsThisYou9 } from '../is-this-you-9'
import type { IsThisYou9State, IsThisYou9Item } from '../is-this-you-9'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states: IsThisYou9State[] = ['default', 'hover', 'active', 'disabled', 'error', 'success']
export default function IsThisYou9Specimen({ state = 'default' }: { state?: IsThisYou9State }) {
const sample = defaults.sample
const items: IsThisYou9Item[] = (sample.items as IsThisYou9Item[]).map((item, i) => ({
...item,
image: item.image ? slot(`item-${i + 1}`, item.image) : item.image,
}))
return (
<IsThisYou9
state={state}
defaultChecked={[0, 1, 3]}
sceneImage={slot('scene', __studioImage1e19e1af)}
productName={sample.name}
tagline='The guide, workbook and checklist in one download.'
items={items}
regularPrice={sample.regularPrice}
price={sample.price}
note={sample.note}
label={sample.label}
reassurance={[sample.sublabel, sample.guarantee]}
successText={sample.actionStatus}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalIsThisYou9 |
string |
|
emphasis OptionalIsThisYou9 |
string |
|
subhead OptionalIsThisYou9 |
string |
|
statements OptionalIsThisYou9 |
Array<{ text: string } | string> |
|
defaultChecked OptionalIsThisYou9 |
number[] |
|
copy OptionalIsThisYou9 |
Partial<IsThisYou9Copy> |
|
sceneImage OptionalIsThisYou9 |
string |
|
sceneAlt OptionalIsThisYou9 |
string |
|
productName OptionalIsThisYou9 |
string |
|
tagline OptionalIsThisYou9 |
string |
|
items OptionalIsThisYou9 |
IsThisYou9Item[] |
|
regularPrice OptionalIsThisYou9 |
string |
|
price OptionalIsThisYou9 |
string |
|
note OptionalIsThisYou9 |
string |
|
label OptionalIsThisYou9 |
string |
|
loadingLabel OptionalIsThisYou9 |
string |
|
reassurance OptionalIsThisYou9 |
string[] |
|
successText OptionalIsThisYou9 |
string |
|
errorText OptionalIsThisYou9 |
string |
|
disabled OptionalIsThisYou9 |
boolean |
|
onAction OptionalIsThisYou9 |
(checked: string[]) => void | Promise<void> |
|
state OptionalIsThisYou9 |
IsThisYou9State |
|
className OptionalIsThisYou9 |
string |
|
style OptionalIsThisYou9 |
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--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
scene- A wide atmosphere photo behind or beside the copy.
-
817abf69114f51f1.webp
image/webp · 45.6 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB