Is This You 4
Is this you? A day in the life. Three photo moments, each one big line in the parent's own words, that the visitor confirms one by one. Every yes washes its photo in the accent, and the turn adds the day up into one bold number above the offer.
Use it in a prompt
Use content/is-this-you-4 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-4.tsx. - Import it and pass your copy and images (Props tab):
import { IsThisYou4 } from "@/components/funneldna/content/is-this-you-4"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/is-this-you-4/component.tsx 577 lines
// layout: quote-led
// Is this you? A day in the life. Three photo moments, each one big line in the parent's own words, that the visitor confirms one by one. Every yes washes its photo in the accent, and the turn adds the day up into one bold number above the offer.
// Theme: every colour reads a theme token or an OKLCH recipe on one; the only literal is the documented #fae37c marker fallback. Moment photos arrive as src props (proposed slot family moment-1 … moment-n); the product shot is the product slot.
'use client'
import * as React from 'react'
import { AlertCircle, Check, Clock, Loader2, Scissors, ShieldCheck } from 'lucide-react'
export type IsThisYou4State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type IsThisYou4Moment = {
/** Clock time above the line, e.g. 7:40 a.m. */
time?: string
/** Short name of the moment: shown under its thumbnail in the turn and sent to onAction. */
label: string
/** The one pain line, in the parent's own words. */
line: React.ReactNode
/** Moment photo src (proposed page slots moment-1 … moment-n). */
image?: string
imageAlt?: string
/** CSS object-position for the photo crop. */
focus?: string
}
export type IsThisYou4Copy = {
/** Beside the big count; uses {total}. */
tallyOf: string
/** Count line with nothing confirmed. */
lineZero: string
/** Count line with one moment confirmed. */
lineOne: string
/** Count line with some moments confirmed. */
lineSome: string
/** Count line with every moment confirmed. */
lineAll: string
/** Under the locked button before anything is confirmed. */
hintZero: string
/** Coupon saving; uses {amount}. */
couponSave: string
/** Coupon tail; {regular} becomes the struck regular price. */
couponTail: string
/** Screen-reader note on a confirmed thumbnail. */
thumbOn: string
}
export type IsThisYou4Props = {
headline?: string
/** Phrase inside the headline that gets the marker stroke. */
emphasis?: string
lead?: string
/** The moments of the day, in order. */
moments?: IsThisYou4Moment[]
/** Indexes confirmed on first render (leave empty on a live page). */
defaultConfirmed?: number[]
/** The toggle under every moment. */
toggleLabel?: string
/** Heading of the turn panel. */
turnHeadline?: string
/** Italic aside in the founder's voice under the count; hidden when empty. */
aside?: string
/** Generated lines and labels; any key left out keeps its default. */
copy?: Partial<IsThisYou4Copy>
/** Risk reversal that leads the offer card (from the supplied guarantee); falls back to the product name. */
riskHeadline?: string
productName?: string
productLine?: string
/** Transparent product shot (page slot: product); hidden when empty. */
productImage?: string
productAlt?: string
/** Short names of what is in the box. */
includes?: string[]
/** Regular price; the coupon shows only when it is above price. */
regularPrice?: string
price?: string
/** One short line beside the price. */
priceNote?: string
/** Button label; {price} is replaced. */
label?: string
loadingLabel?: string
/** One reassurance line under the button (e.g. the guarantee); hidden when empty. */
reassurance?: string
/** Shown when onAction rejects, and in the error state. */
errorText?: string
/** Locks the toggles and the button. */
disabled?: boolean
/** Navigation destination; the live button renders as a link when set. */
href?: string
/** Receives the labels of the confirmed moments. A returned promise shows loadingLabel; a rejection shows errorText. */
onAction?: (confirmed: string[]) => void | Promise<void>
/** Preview state: hover and active force the button look, disabled and error are real states. */
state?: IsThisYou4State
className?: string
style?: React.CSSProperties
}
type Status = 'idle' | 'loading' | 'error'
const DEFAULT_MOMENTS: IsThisYou4Moment[] = [
{ time: '7:40 a.m.', label: 'Morning rush', line: '“One shoe on, one shoe missing, and we’re already late.”' },
{ time: '5:15 p.m.', label: 'After pickup', line: '“Snack, meltdown, snack again. Dinner hasn’t even started.”' },
{ time: '8:50 p.m.', label: 'Bedtime', line: '“Two more books, one more water, and lights out slips again.”' },
]
const DEFAULT_INCLUDES = ['Routine cards', 'Night light', 'Storybook']
const DEFAULT_COPY: IsThisYou4Copy = {
tallyOf: 'of {total}',
lineZero: 'Tap “Yep” on any moment that happens at your house.',
lineOne: 'moment happens at your house.',
lineSome: 'moments happen at your house.',
lineAll: 'moments. That’s your whole day.',
hintZero: 'Tap “Yep” on at least one moment above to continue.',
couponSave: 'Save {amount}',
couponTail: 'off the regular {regular}',
thumbOn: 'yes, that’s our house',
}
export function IsThisYou4({
headline = 'Is this your day?',
emphasis = 'your day?',
lead = 'Three moments from a long day with a toddler. Tap “Yep” on every one that happens at your house.',
moments = DEFAULT_MOMENTS,
defaultConfirmed = [],
toggleLabel = 'Yep, that’s our house',
turnHeadline = 'Your day, added up.',
aside = '',
copy,
riskHeadline = '',
productName = 'The Hushbloom Bedtime Kit',
productLine = 'Picture routine cards, a dimmable night light and a wind-down storybook in one box.',
productImage = '',
productAlt = '',
includes = DEFAULT_INCLUDES,
regularPrice = '',
price = '$49',
priceNote = 'One payment · One box',
label = 'Get my kit for {price}',
loadingLabel = 'One moment…',
reassurance = '',
errorText = 'That didn’t go through. Please try again.',
disabled = false,
href,
onAction,
state = 'default',
className,
style,
}: IsThisYou4Props) {
const text = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const titleId = `${uid}-title`
const hintId = `${uid}-hint`
const errId = `${uid}-err`
const total = moments.length
const [confirmed, setConfirmed] = React.useState<boolean[]>(() => moments.map((_, i) => defaultConfirmed.includes(i)))
const [status, setStatus] = React.useState<Status>(state === 'error' ? 'error' : 'idle')
const mounted = React.useRef(true)
const busy = React.useRef(false)
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
React.useEffect(() => {
setStatus(state === 'error' ? 'error' : 'idle')
}, [state])
const isDisabled = disabled || state === 'disabled'
const on = moments.map((_, i) => !!confirmed[i])
const count = on.filter(Boolean).length
const live = count > 0 && !isDisabled
const loading = status === 'loading'
const force = live && (state === 'hover' || state === 'active') ? state : undefined
const lineText = count === 0 ? text.lineZero : count === total ? text.lineAll : count === 1 ? text.lineOne : text.lineSome
const save = savings(regularPrice, price)
const tailParts = text.couponTail.split('{regular}')
const thumbs = moments.map((m, i) => ({ m, i })).filter(({ m }) => !!m.image)
const buttonText = label.split('{price}').join(price)
const showHint = count === 0 && !isDisabled
const describedBy = [showHint ? hintId : '', status === 'error' ? errId : ''].filter(Boolean).join(' ') || undefined
const toggle = (index: number) => {
if (isDisabled || busy.current) return
setConfirmed((prev) => moments.map((_, i) => (i === index ? !prev[i] : !!prev[i])))
if (status === 'error') setStatus('idle')
}
const handleAction = async (event: React.MouseEvent<HTMLElement>) => {
if (!live || busy.current) {
event.preventDefault()
return
}
if (!onAction) return
const picked = moments.filter((_, i) => on[i]).map((m) => m.label)
try {
const result = onAction(picked)
if (!result) return
busy.current = true
setStatus('loading')
await result
if (mounted.current) setStatus('idle')
} catch {
if (mounted.current) setStatus('error')
} finally {
busy.current = false
}
}
const ctaInner = loading ? (
<>
<Loader2 className='dl-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
<span>{loadingLabel}</span>
</>
) : (
<span>{buttonText}</span>
)
const cta = href && live && !loading ? (
<a className='dl-cta' href={href} onClick={handleAction} data-force={force} aria-describedby={describedBy}>
{ctaInner}
</a>
) : (
<button
type='button'
className='dl-cta'
onClick={handleAction}
disabled={!live}
aria-busy={loading || undefined}
data-force={force}
aria-describedby={describedBy}
>
{ctaInner}
</button>
)
return (
<section
className={`cf-is-this-you-4${className ? ` ${className}` : ''}`}
style={style}
data-disabled={isDisabled ? '' : undefined}
aria-labelledby={titleId}
>
<style>{CSS}</style>
<div className='dl-day'>
<div className='dl-wrap'>
<header className='dl-head'>
<h2 className='dl-title' id={titleId}>
<Headline text={headline} emphasis={emphasis} />
</h2>
{lead ? <p className='dl-lead'>{lead}</p> : null}
</header>
<ol className='dl-panels'>
{moments.map((m, i) => {
const lineId = `${uid}-m${i}`
return (
<li key={i} className='dl-panel' data-on={on[i] ? '' : undefined} data-noimg={m.image ? undefined : ''}>
{m.image ? (
<figure className='dl-photo'>
<img
src={m.image}
alt={m.imageAlt ?? ''}
width={1536}
height={1024}
loading='eager'
decoding='async'
style={m.focus ? { objectPosition: m.focus } : undefined}
/>
</figure>
) : null}
<div className='dl-copy'>
{m.time ? (
<p className='dl-time'>
<Clock className='dl-inline' size={16} strokeWidth={2.5} aria-hidden='true' />
{m.time}
</p>
) : null}
<h3 className='dl-line' id={lineId}>{m.line}</h3>
<button
type='button'
className='dl-toggle'
aria-pressed={on[i]}
aria-describedby={lineId}
disabled={isDisabled}
onClick={() => toggle(i)}
>
<span className='dl-box' aria-hidden='true'>
<Check size={18} strokeWidth={3} />
</span>
<span>{toggleLabel}</span>
</button>
</div>
</li>
)
})}
</ol>
</div>
</div>
<div className='dl-turn'>
<div className='dl-wrap'>
<div className='dl-turn-top' data-thumbs={thumbs.length ? '' : undefined}>
<div className='dl-tally-block'>
<h3 className='dl-turn-title'>{turnHeadline}</h3>
<div className='dl-tally-live' aria-live='polite' aria-atomic='true'>
<p className='dl-tally'>
<span className='dl-num'>{count}</span>
<span className='dl-of'>{fill(text.tallyOf, { total: String(total) })}</span>
</p>
<p className='dl-tally-line'>{lineText}</p>
</div>
{aside ? <p className='dl-aside'>{aside}</p> : null}
</div>
{thumbs.length ? (
<ul className='dl-thumbs'>
{thumbs.map(({ m, i }) => (
<li key={i} className='dl-thumb' data-on={on[i] ? '' : undefined}>
<span className='dl-thumb-photo'>
<img
src={m.image}
alt=''
width={480}
height={360}
loading='eager'
decoding='async'
style={m.focus ? { objectPosition: m.focus } : undefined}
/>
</span>
<span className='dl-thumb-cap'>
{on[i] ? (
<span className='dl-tick' aria-hidden='true'>
<Check size={14} strokeWidth={3} />
</span>
) : null}
{m.label}
{on[i] ? <span className='dl-sr'>, {text.thumbOn}</span> : null}
</span>
</li>
))}
</ul>
) : null}
</div>
<div className='dl-card'>
<div className='dl-card-main'>
{productImage ? (
<img className='dl-product' src={productImage} alt={productAlt} width={480} height={480} loading='lazy' decoding='async' />
) : null}
<div className='dl-card-copy'>
<h3 className='dl-card-title'>{riskHeadline || productName}</h3>
<p className='dl-card-name'>
{riskHeadline ? (
<>
<strong>{productName}</strong>{' '}
</>
) : null}
{productLine}
</p>
{includes.length ? (
<ul className='dl-chips'>
{includes.map((item, n) => (
<li key={`${item}-${n}`} className='dl-chip'>
<Check size={16} strokeWidth={2.5} aria-hidden='true' />
{item}
</li>
))}
</ul>
) : null}
</div>
</div>
<div className='dl-buy'>
{save ? (
<p className='dl-coupon'>
<Scissors className='dl-coupon-icon' size={20} strokeWidth={2.5} aria-hidden='true' />
<span>
<strong>{fill(text.couponSave, { amount: save })}</strong> {tailParts[0]}
{tailParts.length > 1 ? (
<>
<s>{regularPrice}</s>
{tailParts.slice(1).join(regularPrice)}
</>
) : null}
</span>
</p>
) : null}
<p className='dl-price'>
<span className='dl-price-num'>{price}</span>
{priceNote ? <span className='dl-price-note'>{priceNote}</span> : null}
</p>
{cta}
{showHint ? <p className='dl-hint' id={hintId}>{text.hintZero}</p> : null}
{status === 'error' ? (
<p className='dl-error' id={errId} role='alert'>
<AlertCircle className='dl-inline' size={16} strokeWidth={2.5} aria-hidden='true' />
{errorText}
</p>
) : null}
{reassurance ? (
<p className='dl-assure'>
<ShieldCheck className='dl-inline' size={18} strokeWidth={2.5} aria-hidden='true' />
{reassurance}
</p>
) : null}
</div>
</div>
</div>
</div>
</section>
)
}
export default IsThisYou4
function Headline({ text, emphasis }: { text: string; emphasis?: string }) {
const at = emphasis ? text.indexOf(emphasis) : -1
if (!emphasis || at < 0) return <>{text}</>
return (
<>
{text.slice(0, at)}
<span className='dl-mark'>{emphasis}</span>
{text.slice(at + emphasis.length)}
</>
)
}
function fill(template: string, values: Record<string, string>) {
return Object.keys(values).reduce((out, key) => out.split(`{${key}}`).join(values[key]), template)
}
function toNumber(value?: string) {
if (!value) return NaN
return parseFloat(value.replace(/[^0-9.]/g, ''))
}
function savings(regular: string, price: string) {
const was = toNumber(regular)
const now = toNumber(price)
if (!isFinite(was) || !isFinite(now) || was <= now) return null
const diff = was - now
const prefix = (price.match(/^[^0-9]*/)?.[0] ?? '').trim()
return prefix + (Number.isInteger(diff) ? String(diff) : diff.toFixed(2))
}
const CSS = `
.cf-is-this-you-4 { --dl-gutter: clamp(16px, 5vw, 48px); --dl-shadow: var(--shadow, oklch(0.22 0.03 260)); --dl-marker: var(--marker, #fae37c); display: block; background: var(--surface); color: var(--ink); font-family: var(--font-body); }
.cf-is-this-you-4 *, .cf-is-this-you-4 *::before, .cf-is-this-you-4 *::after { box-sizing: border-box; }
.cf-is-this-you-4 :is(h2, h3, p, figure, ul, ol) { margin: 0; }
.cf-is-this-you-4 .dl-wrap { width: min(calc(100% - 2 * var(--dl-gutter)), 1120px); margin-inline: auto; }
.cf-is-this-you-4 .dl-day { padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8.5vw, 120px); }
.cf-is-this-you-4 .dl-head { max-width: 46rem; margin-inline: auto; text-align: center; }
.cf-is-this-you-4 .dl-title { font-family: var(--font-display); font-weight: var(--display-weight, 800); text-transform: var(--display-case, none); letter-spacing: var(--display-tracking, -0.025em); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.06; text-wrap: balance; color: var(--ink); }
.cf-is-this-you-4 .dl-mark { background: linear-gradient(transparent 56%, color-mix(in oklch, var(--dl-marker) 80%, transparent) 56% 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; border-radius: .14em .3em .2em .12em; }
.cf-is-this-you-4 .dl-lead { margin-top: 16px; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; font-weight: 500; color: var(--muted); text-wrap: pretty; }
/* Each moment is a stop: its box is exactly its photo plus its copy, never reserved height. */
.cf-is-this-you-4 .dl-panels { list-style: none; padding: 0; margin-top: clamp(40px, 6vw, 72px); display: grid; gap: clamp(56px, 7vw, 96px); align-content: start; }
.cf-is-this-you-4 .dl-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; align-content: start; height: auto; min-height: 0; opacity: 1; visibility: visible; }
.cf-is-this-you-4 .dl-panel:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.cf-is-this-you-4 .dl-panel:nth-child(even) .dl-copy { order: -1; }
.cf-is-this-you-4 .dl-panel[data-noimg] { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
.cf-is-this-you-4 .dl-photo { position: relative; isolation: isolate; overflow: hidden; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 12px; background: color-mix(in oklch, var(--ink) 6%, var(--surface)); }
.cf-is-this-you-4 .dl-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cf-is-this-you-4 .dl-thumb-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cf-is-this-you-4 .dl-photo::after, .cf-is-this-you-4 .dl-thumb-photo::after { content: ''; position: absolute; inset: 0; background: var(--accent-fill, var(--accent)); mix-blend-mode: color; opacity: 0; pointer-events: none; }
.cf-is-this-you-4 .dl-panel[data-on] .dl-photo img, .cf-is-this-you-4 .dl-thumb[data-on] .dl-thumb-photo img { filter: grayscale(1) contrast(1.06) brightness(1.04); }
.cf-is-this-you-4 .dl-panel[data-on] .dl-photo::after, .cf-is-this-you-4 .dl-thumb[data-on] .dl-thumb-photo::after { opacity: .82; }
.cf-is-this-you-4 .dl-copy { min-width: 0; padding-top: 8px; display: block; opacity: 1; visibility: visible; }
.cf-is-this-you-4 .dl-time { margin-bottom: 12px; font-size: .9375rem; line-height: 1.4; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.cf-is-this-you-4 .dl-inline { display: inline-block; vertical-align: -0.15em; margin-inline-end: .4em; }
.cf-is-this-you-4 .dl-line { font-family: var(--font-display); font-weight: var(--display-weight, 800); text-transform: var(--display-case, none); letter-spacing: var(--display-tracking, -0.025em); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; text-wrap: balance; color: var(--ink); }
.cf-is-this-you-4 .dl-toggle { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 12px; border: 1px solid oklch(from var(--ink) l c h / .18); border-radius: var(--radius, 12px); background: var(--card); color: var(--ink); font-family: var(--font-body); font-size: clamp(1.0625rem, 1.25vw, 1.125rem); font-weight: 700; line-height: 1.2; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm, 0 1px 2px oklch(from var(--dl-shadow) l c h / .2)); }
.cf-is-this-you-4 .dl-box { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--field-border, color-mix(in oklch, var(--ink) 30%, transparent)); background: var(--field, var(--card)); color: var(--accent-fill-ink, var(--card)); }
.cf-is-this-you-4 .dl-box svg { opacity: 0; transform: scale(.6); }
.cf-is-this-you-4 .dl-toggle:not(:disabled):active { transform: translateY(1px); box-shadow: none; }
.cf-is-this-you-4 .dl-toggle:focus-visible { outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / .6); outline-offset: 3px; }
.cf-is-this-you-4 .dl-toggle[aria-pressed='true'] { background: color-mix(in oklch, var(--accent) 10%, var(--card)); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-sm, 0 1px 2px oklch(from var(--dl-shadow) l c h / .2)); }
.cf-is-this-you-4 .dl-toggle[aria-pressed='true'] .dl-box { background: var(--accent-fill, var(--accent)); border-color: var(--accent-fill, var(--accent)); }
.cf-is-this-you-4 .dl-toggle[aria-pressed='true'] .dl-box svg { opacity: 1; transform: scale(1); }
.cf-is-this-you-4 .dl-toggle:disabled { cursor: not-allowed; background: var(--secondary); color: var(--secondary-ink); border-color: transparent; box-shadow: none; }
.cf-is-this-you-4 .dl-toggle:disabled .dl-box { border-color: oklch(from var(--secondary-ink) l c h / .25); background: transparent; }
.cf-is-this-you-4 .dl-toggle:disabled[aria-pressed='true'] .dl-box { background: oklch(from var(--secondary-ink) l c h / .55); border-color: transparent; color: var(--secondary); }
@media (hover: hover) {
.cf-is-this-you-4 .dl-toggle:not(:disabled):hover { border-color: oklch(from var(--ink) l c h / .34); background: color-mix(in oklch, var(--ink) 4%, var(--card)); }
.cf-is-this-you-4 .dl-toggle[aria-pressed='true']:not(:disabled):hover { background: color-mix(in oklch, var(--accent) 15%, var(--card)); border-color: var(--accent); }
}
.cf-is-this-you-4 .dl-turn { background: var(--band); color: var(--band-ink); padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8.5vw, 120px); }
.cf-is-this-you-4 .dl-turn-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cf-is-this-you-4 .dl-turn-top:not([data-thumbs]) { grid-template-columns: minmax(0, 1fr); }
.cf-is-this-you-4 .dl-turn-title { font-family: var(--font-display); font-weight: var(--display-weight, 800); text-transform: var(--display-case, none); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--band-ink); text-wrap: balance; }
.cf-is-this-you-4 .dl-tally-live { margin-top: 20px; }
.cf-is-this-you-4 .dl-tally { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; color: var(--band-ink); }
.cf-is-this-you-4 .dl-num { font-family: var(--font-display); font-weight: var(--display-weight, 800); font-size: clamp(4.5rem, 10vw, 8rem); line-height: 1.14; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cf-is-this-you-4 .dl-of { font-family: var(--font-display); font-weight: var(--display-weight, 800); font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.cf-is-this-you-4 .dl-tally-line { margin-top: 24px; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; font-weight: 500; color: var(--band-ink); text-wrap: pretty; }
.cf-is-this-you-4 .dl-aside { margin-top: 16px; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.5; font-style: italic; color: var(--band-ink); text-wrap: pretty; }
.cf-is-this-you-4 .dl-thumbs { list-style: none; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
.cf-is-this-you-4 .dl-thumb { min-width: 0; }
.cf-is-this-you-4 .dl-thumb-photo { position: relative; isolation: isolate; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 8px; background: oklch(from var(--band-ink) l c h / .1); }
.cf-is-this-you-4 .dl-thumb:not([data-on]) .dl-thumb-photo img { filter: grayscale(1); opacity: .5; }
.cf-is-this-you-4 .dl-thumb-cap { position: relative; display: block; margin-top: 12px; padding-left: 2px; font-size: .9375rem; line-height: 1.4; font-weight: 700; color: var(--band-ink); text-wrap: pretty; }
.cf-is-this-you-4 .dl-tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; margin-inline-end: .4em; vertical-align: -0.28em; background: var(--success); color: var(--dl-badge-glyph, #fff); box-shadow: 0 0 0 2px oklch(from var(--band-ink) l c h / .9); }
.cf-is-this-you-4 .dl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cf-is-this-you-4 .dl-card { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding: clamp(20px, 3vw, 32px); background: var(--card); color: var(--ink); border: 1px solid var(--card-border, color-mix(in oklch, var(--accent) 24%, var(--card))); border-radius: var(--card-radius, var(--radius, 14px)); box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--dl-shadow) l c h / .22), 0 12px 24px -8px oklch(from var(--dl-shadow) l c h / .32))); }
.cf-is-this-you-4 .dl-card-main { display: flex; gap: 20px; align-items: flex-start; min-width: 0; }
.cf-is-this-you-4 .dl-product { flex: 0 0 auto; width: clamp(96px, 12vw, 140px); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 2px 3px oklch(from var(--dl-shadow) l c h / .3)) drop-shadow(0 12px 16px oklch(from var(--dl-shadow) l c h / .2)); }
.cf-is-this-you-4 .dl-card-copy { min-width: 0; }
.cf-is-this-you-4 .dl-card-title { font-family: var(--font-display); font-weight: var(--display-weight, 800); text-transform: var(--display-case, none); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.cf-is-this-you-4 .dl-card-name { margin-top: 12px; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.cf-is-this-you-4 .dl-card-name strong { color: var(--ink); font-weight: 700; }
.cf-is-this-you-4 .dl-chips { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-is-this-you-4 .dl-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: color-mix(in oklch, var(--ink) 6%, var(--card)); color: var(--ink); font-size: .9375rem; font-weight: 700; line-height: 1.2; }
.cf-is-this-you-4 .dl-chip svg { flex: 0 0 auto; color: var(--accent); }
.cf-is-this-you-4 .dl-buy { min-width: 0; }
.cf-is-this-you-4 .dl-coupon { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; background: color-mix(in oklch, var(--ink) 5%, var(--card)); color: var(--ink); font-size: .9375rem; line-height: 1.4; font-weight: 600; text-wrap: pretty; }
.cf-is-this-you-4 .dl-coupon-icon { flex: 0 0 auto; color: var(--accent); }
.cf-is-this-you-4 .dl-coupon strong { font-weight: 800; }
.cf-is-this-you-4 .dl-coupon s { color: var(--muted); text-decoration-color: var(--danger); text-decoration-thickness: 2px; }
.cf-is-this-you-4 .dl-price { margin: 16px 0 20px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.cf-is-this-you-4 .dl-price-num { font-family: var(--font-display); font-weight: var(--display-weight, 800); font-size: clamp(2.5rem, 4.2vw, 3.75rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.cf-is-this-you-4 .dl-price-note { font-size: .9375rem; line-height: 1.4; font-weight: 600; color: var(--muted); }
.cf-is-this-you-4 .dl-cta { --dl-b: var(--button-bg, var(--cta)); display: flex; width: 100%; min-height: 64px; padding: 10px 28px; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: var(--button-radius, var(--radius, 12px)); font-family: var(--button-font, var(--font-display)); font-weight: var(--button-weight, 800); text-transform: var(--button-case, none); font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.15; text-align: center; text-wrap: balance; text-decoration: none; color: var(--button-ink, var(--cta-ink)); text-shadow: var(--button-text-shadow, none); background: linear-gradient(oklch(from var(--dl-b) calc(l + .04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .02) c h)); box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--dl-b) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--dl-b) calc(l - .16) c h), 0 1px 2px oklch(from var(--dl-shadow) l c h / .3), 0 8px 16px -6px oklch(from var(--dl-shadow) l c h / .45)); cursor: pointer; }
.cf-is-this-you-4 .dl-cta[data-force='hover'] { transform: translateY(-1px); background: linear-gradient(oklch(from var(--dl-b) calc(l - .01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .07) c h)); box-shadow: inset 0 1px 0 oklch(from var(--dl-b) calc(l + .12) c h / .6), inset 0 -3px 0 oklch(from var(--dl-b) calc(l - .2) c h), 0 1px 2px oklch(from var(--dl-shadow) l c h / .35), 0 10px 18px -6px oklch(from var(--dl-shadow) l c h / .55); }
@media (hover: hover) {
.cf-is-this-you-4 .dl-cta:not(:disabled):not([aria-busy]):hover { transform: translateY(-1px); background: linear-gradient(oklch(from var(--dl-b) calc(l - .01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .07) c h)); box-shadow: inset 0 1px 0 oklch(from var(--dl-b) calc(l + .12) c h / .6), inset 0 -3px 0 oklch(from var(--dl-b) calc(l - .2) c h), 0 1px 2px oklch(from var(--dl-shadow) l c h / .35), 0 10px 18px -6px oklch(from var(--dl-shadow) l c h / .55); }
}
.cf-is-this-you-4 .dl-cta:not(:disabled):active, .cf-is-this-you-4 .dl-cta[data-force='active'] { transform: translateY(1px); background: linear-gradient(oklch(from var(--dl-b) calc(l - .04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .08) c h)); box-shadow: inset 0 2px 3px oklch(from var(--dl-b) calc(l - .22) c h / .45), inset 0 -2px 0 oklch(from var(--dl-b) calc(l - .16) c h), 0 1px 1px oklch(from var(--dl-shadow) l c h / .25); }
.cf-is-this-you-4 .dl-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cf-is-this-you-4 .dl-cta:disabled { cursor: not-allowed; transform: none; background: var(--button-2-bg, var(--secondary)); color: var(--button-2-ink, var(--secondary-ink)); border-color: var(--button-2-border, transparent); box-shadow: none; text-shadow: none; }
.cf-is-this-you-4 .dl-cta[aria-busy] { cursor: progress; }
.cf-is-this-you-4 .dl-hint, .cf-is-this-you-4 .dl-error, .cf-is-this-you-4 .dl-assure { margin-top: 12px; font-size: .9375rem; line-height: 1.4; text-align: center; text-wrap: pretty; }
.cf-is-this-you-4 .dl-hint { color: var(--muted); font-weight: 500; }
.cf-is-this-you-4 .dl-error { color: var(--danger); font-weight: 600; }
.cf-is-this-you-4 .dl-assure { color: var(--ink); font-weight: 600; }
.cf-is-this-you-4 .dl-assure svg { color: var(--accent); }
@media (max-width: 760px) {
.cf-is-this-you-4 .dl-panels { gap: 56px; }
.cf-is-this-you-4 .dl-panel, .cf-is-this-you-4 .dl-panel:nth-child(even) { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-auto-rows: auto; gap: 20px; }
.cf-is-this-you-4 .dl-panel:nth-child(even) .dl-copy { order: 0; }
.cf-is-this-you-4 .dl-copy { padding-top: 0; }
.cf-is-this-you-4 .dl-toggle { display: flex; width: 100%; margin-top: 24px; }
.cf-is-this-you-4 .dl-turn-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.cf-is-this-you-4 .dl-thumbs { gap: 12px; }
.cf-is-this-you-4 .dl-tally-line { margin-top: 24px; }
.cf-is-this-you-4 .dl-card { grid-template-columns: minmax(0, 1fr); }
.cf-is-this-you-4 .dl-cta { padding-inline: 20px; }
}
@media (max-width: 420px) {
.cf-is-this-you-4 .dl-card-main { flex-direction: column; }
}
/* Motion never hides a stop: the reveal only nudges position, so a still render or a stalled scroll timeline always shows the full panel. */
@media (prefers-reduced-motion: no-preference) {
.cf-is-this-you-4 .dl-photo img, .cf-is-this-you-4 .dl-thumb-photo img { transition: filter .6s ease, opacity .6s ease; }
.cf-is-this-you-4 .dl-photo::after, .cf-is-this-you-4 .dl-thumb-photo::after { transition: opacity .6s ease; }
.cf-is-this-you-4 .dl-toggle { transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.cf-is-this-you-4 .dl-box svg { transition: opacity .16s ease, transform .3s cubic-bezier(.2, .7, .2, 1); }
.cf-is-this-you-4 .dl-toggle[aria-pressed='true'] .dl-box { animation: dl-pop .3s ease both; }
.cf-is-this-you-4 .dl-cta { transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.cf-is-this-you-4 .dl-spin { animation: dl-spin .8s linear infinite; }
@supports (animation-timeline: view()) {
.cf-is-this-you-4 .dl-panel { animation: dl-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
.cf-is-this-you-4 .dl-thumb-photo { animation: dl-shrink linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
}
}
@keyframes dl-pop { from { transform: scale(.9); } to { transform: scale(1); } }
@keyframes dl-spin { to { transform: rotate(360deg); } }
@keyframes dl-rise { from { opacity: .82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dl-shrink { from { transform: scale(1.1); } to { transform: scale(1); } }
`
pieces/content/is-this-you-4/specimen.tsx 62 lines
import __studioImage2ae04c25 from "../assets/546e1ebf65007944.webp";
import __studioImagea096dc6d from "../assets/36291c276e68bfab.webp";
import __studioImagea22192ef from "../assets/75e53d320dbd3795.webp";
// Specimen: the fictional Hushbloom bedtime kit for parents of toddlers. Two of the three moments start confirmed so the accent wash and the live button show.
import { IsThisYou4, type IsThisYou4State } from '../is-this-you-4'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function IsThisYou4Specimen({ state = 'default' }: { state?: IsThisYou4State }) {
return (
<IsThisYou4
state={state}
headline='Is this your day?'
emphasis='your day?'
lead='Three moments from a long day with a toddler. Tap “Yep” on every one that happens at your house.'
moments={[
{
time: '7:40 a.m.',
label: 'Morning rush',
line: '“One shoe on, one shoe missing, and we’re already late.”',
image: slot('moment-1', __studioImage2ae04c25),
imageAlt: 'A parent kneels in a hallway helping a toddler into one shoe while the other lies on the floor',
focus: '50% 45%',
},
{
time: '5:15 p.m.',
label: 'After pickup',
line: '“Snack, meltdown, snack again. Dinner hasn’t even started.”',
image: slot('moment-2', __studioImagea096dc6d),
imageAlt: 'A parent in a coat crouches to comfort a crying toddler beside a spilled snack bowl in the kitchen',
focus: '50% 55%',
},
{
time: '8:50 p.m.',
label: 'Bedtime',
line: '“Two more books, one more water, and lights out slips again.”',
image: slot('moment-3', __studioImagea22192ef),
imageAlt: 'A tired parent on the edge of a toddler bed while the toddler holds up two more books',
focus: '50% 50%',
},
]}
defaultConfirmed={[0, 2]}
toggleLabel='Yep, that’s our house'
turnHeadline='Your day, added up.'
aside='(Ours was three for three most nights. That’s why we made Hushbloom.)'
riskHeadline='Try it for 30 days, risk free.'
productName='The Hushbloom Bedtime Kit'
productLine='Picture routine cards, a dimmable night light and a wind-down storybook in one box.'
productImage={slot('product', '')}
productAlt='The Hushbloom Bedtime Kit box'
includes={['Routine cards', 'Night light', 'Storybook']}
regularPrice='$69'
price='$49'
priceNote='One payment · One box'
label='Get my kit for {price}'
reassurance={defaults.sample.guarantee}
onAction={() => undefined}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalIsThisYou4 |
string |
Default 'Is this your day?'
|
emphasis OptionalIsThisYou4 |
string |
Default 'your day?'
|
lead OptionalIsThisYou4 |
string |
Default 'Three moments from a long day with a toddler. Tap “Yep” on every one that happens at your house.'
|
moments OptionalIsThisYou4 |
IsThisYou4Moment[] |
Default DEFAULT_MOMENTS
|
defaultConfirmed OptionalIsThisYou4 |
number[] |
Default []
|
toggleLabel OptionalIsThisYou4 |
string |
Default 'Yep, that’s our house'
|
turnHeadline OptionalIsThisYou4 |
string |
Default 'Your day, added up.'
|
aside OptionalIsThisYou4 |
string |
Default ''
|
copy OptionalIsThisYou4 |
Partial<IsThisYou4Copy> |
|
riskHeadline OptionalIsThisYou4 |
string |
Default ''
|
productName OptionalIsThisYou4 |
string |
Default 'The Hushbloom Bedtime Kit'
|
productLine OptionalIsThisYou4 |
string |
Default 'Picture routine cards, a dimmable night light and a wind-down storybook in one box.'
|
productImage OptionalIsThisYou4 |
string |
Default ''
|
productAlt OptionalIsThisYou4 |
string |
Default ''
|
includes OptionalIsThisYou4 |
string[] |
Default DEFAULT_INCLUDES
|
regularPrice OptionalIsThisYou4 |
string |
Default ''
|
price OptionalIsThisYou4 |
string |
Default '$49'
|
priceNote OptionalIsThisYou4 |
string |
Default 'One payment · One box'
|
label OptionalIsThisYou4 |
string |
Default 'Get my kit for {price}'
|
loadingLabel OptionalIsThisYou4 |
string |
Default 'One moment…'
|
reassurance OptionalIsThisYou4 |
string |
Default ''
|
errorText OptionalIsThisYou4 |
string |
Default 'That didn’t go through. Please try again.'
|
disabled OptionalIsThisYou4 |
boolean |
Default false
|
href OptionalIsThisYou4 |
string |
|
onAction OptionalIsThisYou4 |
(confirmed: string[]) => void | Promise<void> |
|
state OptionalIsThisYou4 |
IsThisYou4State |
Default 'default'
|
className OptionalIsThisYou4 |
string |
|
style OptionalIsThisYou4 |
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- 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- 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.
moment-1- An image this piece places.
moment-2- An image this piece places.
moment-3- An image this piece places.
product- The main product shot or cover (ebook, kit, bottle).
-
36291c276e68bfab.webp
image/webp · 60.6 KB
-
546e1ebf65007944.webp
image/webp · 49 KB
-
75e53d320dbd3795.webp
image/webp · 42.4 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB