Is This You 3
Is this you? The coach asks one honest question on a dark stage. The reader taps the inner-voice lines that fit, each line turns solid, and the coach's reply under them changes with the count and ends on the action.
Use it in a prompt
Use content/is-this-you-3 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-3.tsx. - Import it and pass your copy and images (Props tab):
import { IsThisYou3 } from "@/components/funneldna/content/is-this-you-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/is-this-you-3/component.tsx 822 lines
// layout: interview-qa
// Is this you? The coach asks one honest question on a dark stage. The reader taps the inner-voice lines that fit, each line turns solid, and the coach's reply under them changes with the count and ends on the action.
// Theme notes: every colour reads a theme token or an OKLCH recipe on one. The only hex is the marker default (#fae37c) inside its var() fallback. The presenter is a transparent cut-out with a token-tinted drop-shadow.
'use client'
import * as React from 'react'
import { AlertCircle, Check, Loader2, Plus, ShieldCheck } from 'lucide-react'
import { FX_HOST, Spotlight } from '../fx/fx'
export type IsThisYou3State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type IsThisYou3Line = { text: string }
export type IsThisYou3Copy = {
/** Toggle label on every line. */
toggleLabel: string
/** Tally in the reply card; uses {count} and {total}. */
countLine: string
/** Shown under the locked button before any line is tapped. */
lockedNote: string
/** Inline error when the commit box is unticked at click time. */
commitError: string
}
export type IsThisYou3Props = {
/** The coach's question. */
headline?: string
/** Phrase inside the headline that gets the marker stroke. */
emphasis?: string
lead?: string
/** The reader's inner-voice lines. Their text is what onAction receives. */
lines?: Array<IsThisYou3Line | string>
/** Indexes tapped on first render (leave empty on a live page). */
defaultPressed?: number[]
/** The coach's replies, keyed by how many lines are tapped: replies[0] before any tap, replies[n] after n. The last one is reused for higher counts. */
replies?: React.ReactNode[]
/** Wrap each line in curly quotes. */
quoteMarks?: boolean
/** Coach cut-out on a transparent background (page slot: presenter-cutout). */
presenterCutoutImage?: string
presenterAlt?: string
/** Shown at the top of the reply card. */
coachName?: string
coachRole?: string
/** Generated labels and messages; any key left out keeps its default. */
copy?: Partial<IsThisYou3Copy>
/** Acknowledgement line with a checkbox above the button; hidden when empty. */
commitLabel?: string
/** Whether the commit box starts ticked. */
commitDefault?: boolean
/** Button label. */
label?: string
/** Button label while a promise returned by onAction is pending. */
loadingLabel?: string
/** One reassurance line under the button; hidden when empty. */
reassurance?: string
/** Shown under the button when onAction rejects, and in the error state. */
errorText?: string
/** Locks every line and the button. */
disabled?: boolean
/** Navigation destination; the live button renders as a link when set. */
href?: string
/** Receives the tapped lines. A returned promise shows loadingLabel; a rejection shows errorText. */
onAction?: (lines: string[]) => void | Promise<void>
/** Preview state: hover and active force the button look; disabled and error are the real states. */
state?: IsThisYou3State
className?: string
style?: React.CSSProperties
}
type Status = 'idle' | 'loading' | 'error'
type Stage = 'still' | 'armed' | 'in'
const DEFAULT_LINES = [
'It’s 11pm and I’m still in my inbox.',
'If I take a week off, everything stalls.',
'I started this to be free. Now I’m the bottleneck.',
'I say yes to every client in case next month is slow.',
'I can’t remember the last time I enjoyed the work.',
]
const DEFAULT_REPLIES: React.ReactNode[] = [
'Take your time. Tap the lines you’ve really thought, not the ones you think you should.',
'One is enough to start. That thought has a cause, and the cause can be fixed.',
'Two of them. You’re not failing. You built a business that runs on you, and that can be rebuilt.',
'Three. I hear you. That’s the whole business sitting on your calendar.',
'Four. That’s a heavy week, every week. Let’s find what comes off your plate first.',
'All five. You don’t need another hack. You need someone in your corner. Let’s talk.',
]
const DEFAULT_COPY: IsThisYou3Copy = {
toggleLabel: 'That’s me',
countLine: '{count} of {total} sound like you',
lockedNote: 'Tap “That’s me” on any line to continue.',
commitError: 'Tick the box to continue.',
}
export function IsThisYou3({
headline = 'Be honest. Have you said any of these lately?',
emphasis = 'any of these',
lead = 'Tap every line that sounds like the voice in your head. I’ll answer you right here.',
lines = DEFAULT_LINES,
defaultPressed = [],
replies = DEFAULT_REPLIES,
quoteMarks = true,
presenterCutoutImage,
presenterAlt = '',
coachName = '',
coachRole = '',
copy,
commitLabel = '',
commitDefault = true,
label = 'Book my intro call',
loadingLabel = 'One moment…',
reassurance = '',
errorText = 'That didn’t go through. Please try again.',
disabled = false,
href,
onAction,
state = 'default',
className,
style,
}: IsThisYou3Props) {
const text = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const titleId = `${uid}-title`
const leadId = `${uid}-lead`
const noteId = `${uid}-note`
const commitErrId = `${uid}-commit-err`
const rows = lines.map((item) => (typeof item === 'string' ? item : item.text))
const total = rows.length
const [pressed, setPressed] = React.useState<boolean[]>(() => rows.map((_, i) => defaultPressed.includes(i)))
const [status, setStatus] = React.useState<Status>(state === 'error' ? 'error' : 'idle')
const [committed, setCommitted] = React.useState(commitDefault)
const [commitError, setCommitError] = React.useState(false)
const [stage, setStage] = React.useState<Stage>('still')
const rootRef = React.useRef<HTMLElement>(null)
const commitRef = React.useRef<HTMLInputElement>(null)
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])
// Signature: the lines arrive one by one the first time the stack comes into view.
React.useEffect(() => {
const root = rootRef.current
if (!root || typeof window === 'undefined') return
const reduce = window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)').matches : false
if (reduce || !('IntersectionObserver' in window)) return
const list = root.querySelector('.ity3-lines')
if (!list) return
setStage('armed')
const io = new IntersectionObserver(
(entries) => {
if (entries.some((entry) => entry.isIntersecting)) {
setStage('in')
io.disconnect()
}
},
{ threshold: 0.2 },
)
io.observe(list)
return () => io.disconnect()
}, [])
const isDisabled = disabled || state === 'disabled'
const on = rows.map((_, i) => !!pressed[i])
const count = on.filter(Boolean).length
const locked = isDisabled || count === 0
const loading = status === 'loading'
const force = state === 'hover' || state === 'active' ? state : undefined
const bucket = replies.length ? Math.min(count, replies.length - 1) : -1
const reply = bucket >= 0 ? replies[bucket] : null
const noteText = count === 0 && !isDisabled ? text.lockedNote : reassurance
const showShield = !(count === 0 && !isDisabled)
const toggle = (index: number) => {
if (isDisabled || busy.current) return
setPressed((prev) => rows.map((_, i) => (i === index ? !prev[i] : !!prev[i])))
if (status === 'error') setStatus('idle')
}
const handleAction = async (event: React.MouseEvent<HTMLElement>) => {
if (locked || busy.current) {
event.preventDefault()
return
}
if (commitLabel && !committed) {
event.preventDefault()
setCommitError(true)
commitRef.current?.focus()
return
}
if (!onAction) return
const picked = rows.filter((_, i) => on[i])
try {
const result = onAction(picked)
if (!result || typeof (result as Promise<void>).then !== 'function') 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='ity3-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
<span>{loadingLabel}</span>
</>
) : (
<span>{label}</span>
)
const describedBy = noteText ? noteId : undefined
return (
<section
ref={rootRef}
className={`cf-is-this-you-3${className ? ` ${className}` : ''}`}
style={{ ...FX_HOST, ...style }}
data-stage={stage}
data-force={force}
data-disabled={isDisabled ? '' : undefined}
data-has-presenter={presenterCutoutImage ? '' : undefined}
aria-labelledby={titleId}
>
<style>{CSS}</style>
<Spotlight />
<div className='ity3-grid'>
<div className='ity3-head'>
<h2 className='ity3-title' id={titleId}>
<Title text={headline} emphasis={emphasis} />
</h2>
{lead ? (
<p className='ity3-lead' id={leadId}>
{lead}
</p>
) : null}
</div>
{presenterCutoutImage ? (
<figure className='ity3-stage'>
<img
src={presenterCutoutImage}
alt={presenterAlt}
width={800}
height={800}
decoding='async'
aria-hidden={presenterAlt ? undefined : true}
/>
</figure>
) : null}
<div className='ity3-talk'>
<ul className='ity3-lines' role='list' aria-describedby={lead ? leadId : undefined}>
{rows.map((line, i) => (
<li key={i} className='ity3-line' style={{ '--i': i } as React.CSSProperties}>
<button
type='button'
className='ity3-say'
aria-pressed={on[i]}
disabled={isDisabled}
onClick={() => toggle(i)}
>
<span className='ity3-say-text'>{quoteMarks ? `“${line}”` : line}</span>
<span className='ity3-chip'>
{on[i] ? (
<Check size={16} strokeWidth={2.5} aria-hidden='true' />
) : (
<Plus size={16} strokeWidth={2.5} aria-hidden='true' />
)}
<span>{text.toggleLabel}</span>
</span>
</button>
</li>
))}
</ul>
<div className='ity3-reply'>
{coachName ? (
<p className='ity3-who'>
<strong>{coachName}</strong>
{coachRole ? <span>{coachRole}</span> : null}
</p>
) : null}
{total > 0 ? (
<div className='ity3-score'>
<span className='ity3-tally'>{fill(text.countLine, count, total)}</span>
<span className='ity3-meter' aria-hidden='true' style={{ '--n': total } as React.CSSProperties}>
{rows.map((_, i) => (
<span key={i} className='ity3-pip' data-on={i < count ? '' : undefined} />
))}
</span>
</div>
) : null}
<div className='ity3-answer-wrap' aria-live='polite' aria-atomic='true'>
{reply ? (
<p key={bucket} className='ity3-answer'>
{reply}
</p>
) : null}
</div>
<div className='ity3-actions'>
{commitLabel ? (
<div>
<label className='ity3-commit' data-invalid={commitError ? '' : undefined}>
<input
ref={commitRef}
type='checkbox'
className='ity3-commit-input'
checked={committed}
disabled={isDisabled}
aria-invalid={commitError || undefined}
aria-describedby={commitError ? commitErrId : undefined}
onChange={(event) => {
setCommitted(event.target.checked)
if (event.target.checked) setCommitError(false)
}}
/>
<span className='ity3-box' aria-hidden='true'>
<Check size={16} strokeWidth={3} />
</span>
<span className='ity3-commit-text'>{commitLabel}</span>
</label>
{commitError ? (
<p className='ity3-field-error' id={commitErrId}>
<AlertCircle className='ity3-inline-icon' size={16} strokeWidth={2.5} aria-hidden='true' />
{text.commitError}
</p>
) : null}
</div>
) : null}
{href && !locked ? (
<a
className='ity3-cta'
href={href}
onClick={handleAction}
aria-describedby={describedBy}
aria-busy={loading || undefined}
>
{ctaInner}
</a>
) : (
<button
type='button'
className='ity3-cta'
disabled={locked}
onClick={handleAction}
aria-describedby={describedBy}
aria-busy={loading || undefined}
>
{ctaInner}
</button>
)}
{noteText ? (
<p className='ity3-note' id={noteId}>
{showShield ? (
<ShieldCheck className='ity3-inline-icon ity3-shield' size={16} strokeWidth={2.5} aria-hidden='true' />
) : null}
{noteText}
</p>
) : null}
{status === 'error' ? (
<p className='ity3-error' role='alert'>
<AlertCircle className='ity3-inline-icon' size={16} strokeWidth={2.5} aria-hidden='true' />
{errorText}
</p>
) : null}
</div>
</div>
</div>
</div>
</section>
)
}
export default IsThisYou3
function Title({ 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='ity3-mark'>{emphasis}</span>
{text.slice(at + emphasis.length)}
</>
)
}
function fill(template: string, count: number, total: number) {
return template.split('{count}').join(String(count)).split('{total}').join(String(total))
}
const CSS = `
.cf-is-this-you-3 {
--ity3-pt: clamp(56px, 8vw, 112px);
--ity3-pb: clamp(64px, 8.5vw, 120px);
--ity3-shade: var(--shadow, oklch(0.22 0.03 260));
--ity3-ease: cubic-bezier(.2, .7, .2, 1);
position: relative;
overflow: hidden;
box-sizing: border-box;
background: var(--band);
color: var(--band-ink);
font-family: var(--font-body);
padding: var(--ity3-pt) clamp(16px, 5vw, 48px) var(--ity3-pb);
}
.cf-is-this-you-3 *, .cf-is-this-you-3 *::before, .cf-is-this-you-3 *::after { box-sizing: border-box; }
.cf-is-this-you-3 :where(h2, p, ul, figure) { margin: 0; }
.cf-is-this-you-3 .ity3-grid {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-areas: "head" "talk";
row-gap: 32px;
max-width: 46rem;
margin-inline: auto;
}
.cf-is-this-you-3[data-has-presenter] .ity3-grid {
max-width: 1120px;
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
grid-template-rows: auto 1fr;
grid-template-areas: "head talk" "stage talk";
column-gap: clamp(32px, 5vw, 72px);
align-items: start;
}
.cf-is-this-you-3 .ity3-stage {
grid-area: stage;
align-self: stretch;
min-width: 0;
display: flex;
align-items: flex-end;
justify-content: center;
margin-bottom: calc(-1 * var(--ity3-pb));
}
.cf-is-this-you-3 .ity3-stage img {
display: block;
width: 100%;
max-width: 520px;
height: auto;
max-height: 680px;
object-fit: contain;
object-position: 50% 100%;
filter: drop-shadow(0 2px 3px oklch(from var(--ity3-shade) l c h / .4)) drop-shadow(0 16px 24px oklch(from var(--ity3-shade) l c h / .35));
}
.cf-is-this-you-3 .ity3-head { grid-area: head; min-width: 0; }
.cf-is-this-you-3 .ity3-talk { grid-area: talk; min-width: 0; }
.cf-is-this-you-3 .ity3-title {
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
letter-spacing: var(--display-tracking, -0.025em);
text-transform: var(--display-case, none);
font-size: clamp(2rem, 3.6vw, 3.25rem);
line-height: 1.06;
color: var(--band-ink);
text-wrap: balance;
}
/* On a dark band a translucent marker turns muddy, so the stroke is the marker hue made opaque and light,
and the words on it take a deep shade of the same hue (readable on every theme's marker). */
.cf-is-this-you-3 .ity3-mark {
--ity3-marker: oklch(from var(--marker, #fae37c) max(l, 0.86) c h / 1);
color: oklch(from var(--marker, #fae37c) 0.24 min(c, 0.06) h);
padding: 0 .12em;
margin-inline: -.02em;
border-radius: .16em .34em .2em .3em;
background-image: linear-gradient(to bottom, transparent 6%, var(--ity3-marker) 6%, var(--ity3-marker) 96%, transparent 96%);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.cf-is-this-you-3 .ity3-lead {
margin-top: 16px;
max-width: 60ch;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 500;
color: color-mix(in oklch, var(--band-ink) 86%, var(--band));
text-wrap: pretty;
}
.cf-is-this-you-3 .ity3-lines {
list-style: none;
padding: 0;
display: grid;
gap: 12px;
}
.cf-is-this-you-3 .ity3-say {
appearance: none;
width: 100%;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 16px;
min-height: 64px;
padding: 12px 16px 12px 20px;
border-radius: var(--card-radius, var(--radius, 14px));
border: 1px solid oklch(from var(--band-ink) l c h / .18);
background: oklch(from var(--band-ink) l c h / .05);
color: color-mix(in oklch, var(--band-ink) 84%, var(--band));
font: inherit;
text-align: left;
cursor: pointer;
transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .16s ease;
}
.cf-is-this-you-3 .ity3-say-text {
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.35;
font-weight: 500;
text-wrap: pretty;
}
.cf-is-this-you-3 .ity3-chip {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 32px;
padding: 4px 12px;
border-radius: 999px;
border: 1px solid oklch(from var(--band-ink) l c h / .24);
background: oklch(from var(--band-ink) l c h / .12);
color: var(--band-ink);
font-size: .875rem;
font-weight: 800;
line-height: 1.2;
white-space: nowrap;
transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.cf-is-this-you-3 .ity3-chip svg { flex: 0 0 auto; }
@media (hover: hover) {
.cf-is-this-you-3 .ity3-say:not(:disabled):hover {
background: oklch(from var(--band-ink) l c h / .1);
border-color: oklch(from var(--band-ink) l c h / .34);
color: var(--band-ink);
}
.cf-is-this-you-3 .ity3-say:not(:disabled):hover .ity3-chip { background: oklch(from var(--band-ink) l c h / .2); }
}
.cf-is-this-you-3 .ity3-say:not(:disabled):active { transform: translateY(1px) scale(.995); }
.cf-is-this-you-3 .ity3-say:focus-visible { outline: 3px solid var(--band-ink); outline-offset: 3px; }
.cf-is-this-you-3 .ity3-say:disabled { cursor: not-allowed; }
.cf-is-this-you-3 .ity3-say[aria-pressed='true'] {
background: var(--card);
border-color: var(--accent-fill, var(--accent));
color: var(--ink);
box-shadow: inset 0 0 0 1px var(--accent-fill, var(--accent)), var(--shadow-md, 0 1px 2px oklch(from var(--ity3-shade) l c h / .22), 0 4px 10px -2px oklch(from var(--ity3-shade) l c h / .2));
}
.cf-is-this-you-3 .ity3-say[aria-pressed='true'] .ity3-say-text { font-weight: 600; }
.cf-is-this-you-3 .ity3-say[aria-pressed='true'] .ity3-chip {
background: var(--accent-fill, var(--accent));
border-color: var(--accent-fill, var(--accent));
color: var(--accent-fill-ink, var(--card));
}
@media (hover: hover) {
.cf-is-this-you-3 .ity3-say[aria-pressed='true']:not(:disabled):hover {
background: var(--card);
border-color: var(--accent-fill, var(--accent));
color: var(--ink);
transform: translateY(-1px);
box-shadow: inset 0 0 0 1px var(--accent-fill, var(--accent)), var(--shadow-lg, 0 2px 4px oklch(from var(--ity3-shade) l c h / .22), 0 12px 24px -8px oklch(from var(--ity3-shade) l c h / .32));
}
.cf-is-this-you-3 .ity3-say[aria-pressed='true']:not(:disabled):hover .ity3-chip { background: oklch(from var(--accent-fill, var(--accent)) calc(l - .05) c h); }
}
.cf-is-this-you-3 .ity3-say[aria-pressed='true']:focus-visible { outline-color: var(--band-ink); }
.cf-is-this-you-3 .ity3-reply {
margin-top: 24px;
padding: clamp(20px, 3vw, 32px);
background: var(--card);
color: var(--ink);
border: 1px solid var(--card-border, oklch(from var(--ink) l c h / .12));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--ity3-shade) l c h / .22), 0 12px 24px -8px oklch(from var(--ity3-shade) l c h / .32)));
}
.cf-is-this-you-3 .ity3-reply > * + * { margin-top: 16px; }
.cf-is-this-you-3 .ity3-who { display: grid; gap: 4px; font-size: 1rem; line-height: 1.3; }
.cf-is-this-you-3 .ity3-who strong { font-weight: 800; color: var(--ink); }
.cf-is-this-you-3 .ity3-who span { font-size: .9375rem; font-weight: 500; color: var(--muted); text-wrap: pretty; }
.cf-is-this-you-3 .ity3-score {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 16px;
}
.cf-is-this-you-3 .ity3-tally {
color: var(--ink);
font-size: .875rem;
font-weight: 800;
line-height: 1.2;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.cf-is-this-you-3 .ity3-meter {
flex: 1 1 140px;
display: grid;
grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
gap: 4px;
}
.cf-is-this-you-3 .ity3-pip {
height: 8px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink) 10%, var(--card));
transition: background .2s ease;
}
.cf-is-this-you-3 .ity3-pip[data-on] { background: var(--accent-fill, var(--accent)); }
.cf-is-this-you-3 .ity3-answer {
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.25;
letter-spacing: -0.01em;
color: var(--ink);
text-wrap: pretty;
}
.cf-is-this-you-3 .ity3-actions { margin-top: 24px; display: grid; gap: 16px; }
.cf-is-this-you-3 .ity3-commit {
position: relative;
display: grid;
grid-template-columns: 24px minmax(0, 1fr);
gap: 12px;
align-items: start;
padding: 12px 16px;
border-radius: 10px;
background: color-mix(in oklch, var(--ink) 4%, var(--card));
color: var(--ink);
font-size: .9375rem;
font-weight: 600;
line-height: 1.4;
cursor: pointer;
}
.cf-is-this-you-3 .ity3-commit-input {
position: absolute;
left: 16px;
top: 12px;
width: 24px;
height: 24px;
margin: 0;
opacity: 0;
cursor: pointer;
}
.cf-is-this-you-3 .ity3-commit-input:disabled { cursor: not-allowed; }
.cf-is-this-you-3 .ity3-box {
width: 24px;
height: 24px;
display: grid;
place-items: center;
border-radius: 6px;
background: var(--field);
border: 1.5px solid var(--field-border, color-mix(in oklch, var(--ink) 22%, transparent));
color: transparent;
transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.cf-is-this-you-3 .ity3-commit-text { text-wrap: pretty; padding-top: 1px; }
@media (hover: hover) {
.cf-is-this-you-3 .ity3-commit:hover .ity3-commit-input:not(:disabled):not(:checked) + .ity3-box {
border-color: color-mix(in oklch, var(--ink) 45%, transparent);
}
}
.cf-is-this-you-3 .ity3-commit:has(.ity3-commit-input:disabled) { cursor: not-allowed; }
.cf-is-this-you-3 .ity3-commit-input:checked + .ity3-box {
background: var(--accent-fill, var(--accent));
border-color: var(--accent-fill, var(--accent));
color: var(--accent-fill-ink, var(--card));
}
.cf-is-this-you-3 .ity3-commit-input:focus-visible + .ity3-box {
outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / .55);
outline-offset: 2px;
}
.cf-is-this-you-3 .ity3-commit[data-invalid] .ity3-box { border-color: var(--danger); }
.cf-is-this-you-3 .ity3-field-error {
margin-top: 8px;
color: var(--danger);
font-size: .9375rem;
font-weight: 600;
line-height: 1.4;
}
.cf-is-this-you-3 .ity3-cta {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
min-height: 64px;
padding: 0 28px;
border: 0;
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-decoration: none;
text-wrap: balance;
color: var(--button-ink, var(--cta-ink));
text-shadow: var(--button-text-shadow, none);
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l + .04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .02) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .16) c h), 0 1px 2px oklch(from var(--ity3-shade) l c h / .3), 0 8px 16px -6px oklch(from var(--ity3-shade) l c h / .45));
cursor: pointer;
transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
@media (hover: hover) {
.cf-is-this-you-3 .ity3-cta:not(:disabled):hover {
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - .01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .07) c h));
box-shadow: inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + .1) c h / .6), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .2) c h), 0 1px 2px oklch(from var(--ity3-shade) l c h / .32), 0 10px 18px -6px oklch(from var(--ity3-shade) l c h / .5);
}
}
.cf-is-this-you-3[data-force='hover'] .ity3-cta:not(:disabled) {
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - .01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .07) c h));
box-shadow: inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + .1) c h / .6), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .2) c h), 0 1px 2px oklch(from var(--ity3-shade) l c h / .32), 0 10px 18px -6px oklch(from var(--ity3-shade) l c h / .5);
}
.cf-is-this-you-3 .ity3-cta:not(:disabled):active,
.cf-is-this-you-3[data-force='active'] .ity3-cta:not(:disabled) {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - .04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .08) c h));
box-shadow: inset 0 2px 4px oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .16) c h / .55), inset 0 -2px 0 oklch(from var(--button-bg, var(--cta)) calc(l - .16) c h), 0 1px 1px oklch(from var(--ity3-shade) l c h / .3);
}
.cf-is-this-you-3 .ity3-cta:focus-visible { outline: 3px solid var(--field-focus, var(--accent)); outline-offset: 3px; }
.cf-is-this-you-3 .ity3-cta:disabled {
background: var(--button-2-bg, var(--secondary));
color: var(--button-2-ink, var(--secondary-ink));
border: 1px solid var(--button-2-border, transparent);
box-shadow: var(--button-2-shadow, var(--shadow-sm));
text-shadow: none;
cursor: not-allowed;
}
.cf-is-this-you-3 .ity3-cta[aria-busy='true'] { cursor: progress; }
.cf-is-this-you-3 .ity3-note {
font-size: .9375rem;
line-height: 1.4;
font-weight: 600;
color: var(--muted);
text-align: center;
text-wrap: pretty;
}
.cf-is-this-you-3 .ity3-shield { color: var(--success); }
.cf-is-this-you-3 .ity3-inline-icon { display: inline-block; vertical-align: -0.15em; margin-inline-end: .4em; }
.cf-is-this-you-3 .ity3-error {
padding: 10px 12px;
border-radius: 10px;
background: var(--danger-soft);
color: var(--danger);
font-size: .9375rem;
font-weight: 600;
line-height: 1.4;
}
.cf-is-this-you-3[data-stage='armed'] .ity3-line { opacity: .82; transform: translateY(8px); }
.cf-is-this-you-3[data-stage='in'] .ity3-line {
animation: ity3-arrive .45s var(--ity3-ease) both;
animation-delay: min(calc(var(--i, 0) * .07s), .28s);
}
.cf-is-this-you-3 .ity3-answer { animation: ity3-reply .4s var(--ity3-ease) both; }
.cf-is-this-you-3 .ity3-say[aria-pressed='true'] .ity3-chip svg { animation: ity3-pop .3s ease both; }
.cf-is-this-you-3 .ity3-spin { animation: ity3-spin .8s linear infinite; }
@keyframes ity3-arrive { from { opacity: .82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ity3-reply { from { opacity: .82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ity3-pop { from { transform: scale(.9); } to { transform: scale(1); } }
@keyframes ity3-spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
.cf-is-this-you-3[data-has-presenter] .ity3-grid {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: none;
grid-template-areas: "stage" "head" "talk";
max-width: 46rem;
}
.cf-is-this-you-3 .ity3-stage {
margin-bottom: 0;
border-bottom: 1px solid oklch(from var(--band-ink) l c h / .18);
}
.cf-is-this-you-3 .ity3-stage img { width: auto; max-width: 72%; height: 200px; max-height: none; }
}
@media (max-width: 480px) {
.cf-is-this-you-3 .ity3-say {
grid-template-columns: minmax(0, 1fr);
gap: 10px;
padding: 14px 16px;
}
.cf-is-this-you-3 .ity3-chip { justify-self: start; }
.cf-is-this-you-3 .ity3-cta { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
.cf-is-this-you-3 .ity3-line,
.cf-is-this-you-3 .ity3-answer,
.cf-is-this-you-3 .ity3-chip svg {
animation: none !important;
opacity: 1 !important;
transform: none !important;
}
.cf-is-this-you-3 .ity3-spin { animation: none; }
.cf-is-this-you-3 *, .cf-is-this-you-3 *::before, .cf-is-this-you-3 *::after { transition: none !important; }
}
`
pieces/content/is-this-you-3/specimen.tsx 46 lines
import __studioImage69eb7260 from "../assets/1f4917e13f54dbe1.webp";
import * as React from 'react'
import { IsThisYou3, type IsThisYou3State } from '../is-this-you-3'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
const REPLIES = [
'Take your time. Tap the lines you’ve actually thought, not the ones you think you should.',
'One is enough. That thought has a cause, and we can find it together, one to one.',
'Two. You’re not failing. You built an agency that runs on you, and that can be rebuilt.',
'Three. I hear you. Your whole agency is sitting on your calendar right now.',
'Four. That’s a heavy week, every week. Let’s decide what comes off your plate first.',
'All five. You don’t need another productivity hack. You need someone in your corner. Let’s talk.',
]
export default function IsThisYou3Specimen({ state = 'default' }: { state?: IsThisYou3State }) {
return (
<IsThisYou3
state={state}
headline='Be honest. Which of these did you say this week?'
emphasis='this week?'
lead='Tap every line that sounds like the voice in your head. I’ll answer you right here.'
lines={[
'It’s 11pm and I’m still in my inbox.',
'If I take a week off, the agency stalls.',
'I started this to be free. Now I’m the bottleneck.',
'I say yes to every client in case next month is slow.',
'I can’t remember the last time I enjoyed the work.',
]}
defaultPressed={[0, 2]}
replies={REPLIES}
presenterCutoutImage={slot(
'presenter-cutout',
__studioImage69eb7260,
)}
presenterAlt='Rhea Calder, founder of Ember & Oak'
coachName='Rhea Calder'
coachRole='Founder, Ember & Oak · 1:1 coaching for agency owners'
commitLabel={`I understand coaching is covered by a ${defaults.sample.guarantee}.`}
label='Apply for 1:1 coaching'
reassurance='Short application · Rhea reads every one herself'
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalIsThisYou3 |
string |
Default 'Be honest. Have you said any of these lately?'
|
emphasis OptionalIsThisYou3 |
string |
Default 'any of these'
|
lead OptionalIsThisYou3 |
string |
Default 'Tap every line that sounds like the voice in your head. I’ll answer you right here.'
|
lines OptionalIsThisYou3 |
Array<IsThisYou3Line | string> |
Default DEFAULT_LINES
|
defaultPressed OptionalIsThisYou3 |
number[] |
Default []
|
replies OptionalIsThisYou3 |
React.ReactNode[] |
Default DEFAULT_REPLIES
|
quoteMarks OptionalIsThisYou3 |
boolean |
Default true
|
presenterCutoutImage OptionalIsThisYou3 |
string |
|
presenterAlt OptionalIsThisYou3 |
string |
Default ''
|
coachName OptionalIsThisYou3 |
string |
Default ''
|
coachRole OptionalIsThisYou3 |
string |
Default ''
|
copy OptionalIsThisYou3 |
Partial<IsThisYou3Copy> |
|
commitLabel OptionalIsThisYou3 |
string |
Default ''
|
commitDefault OptionalIsThisYou3 |
boolean |
Default true
|
label OptionalIsThisYou3 |
string |
Default 'Book my intro call'
|
loadingLabel OptionalIsThisYou3 |
string |
Default 'One moment…'
|
reassurance OptionalIsThisYou3 |
string |
Default ''
|
errorText OptionalIsThisYou3 |
string |
Default 'That didn’t go through. Please try again.'
|
disabled OptionalIsThisYou3 |
boolean |
Default false
|
href OptionalIsThisYou3 |
string |
|
onAction OptionalIsThisYou3 |
(lines: string[]) => void | Promise<void> |
|
state OptionalIsThisYou3 |
IsThisYou3State |
Default 'default'
|
className OptionalIsThisYou3 |
string |
|
style OptionalIsThisYou3 |
React.CSSProperties |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus- 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.
presenter-cutout- The presenter on a transparent background.
-
1f4917e13f54dbe1.webp
image/webp · 104 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB