Two Choices Close 2
The fork-in-the-road close: future-paces the road the reader is already on against the road with the offer, then lands the chosen route on price, action and risk reversal.
Use it in a prompt
Use content/two-choices-close-2 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/two-choices-close-2.tsx. - Import it and pass your copy and images (Props tab):
import { TwoChoicesClose2 } from "@/components/funneldna/content/two-choices-close-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/two-choices-close-2/component.tsx 453 lines
// layout: diagonal-split
// The fork-in-the-road close: future-paces the road the reader is already on against the road with the offer, then lands the chosen route on price, action and risk reversal.
'use client'
import * as React from 'react'
import { motion, useReducedMotion } from 'motion/react'
import { AlertCircle, Loader2, ShieldCheck, X } from 'lucide-react'
export type TwoChoicesClose2State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type TwoChoicesClose2Props = {
headline?: string
/** Phrase inside the headline that gets the one marker stroke. */
emphasis?: string
lead?: string
/** Scene slot: a road splitting into two routes (left fork = route one, right fork = route two). Omitted = no illustration column. */
sceneImage?: string
sceneImageAlt?: string
/** Caption under the left half of the illustration. */
oneCaption?: string
/** Caption under the right half; {product} is replaced with productName. */
twoCaption?: string
oneNumber?: string
oneTitle?: string
/** Where the current road leads: two short future-pacing pain lines. */
onePoints?: string[]
twoNumber?: string
twoTitle?: string
twoLead?: string
productName?: string
reasonsTitle?: string
/** Numbered reasons to choose route two today. */
reasons?: string[]
/** Short line beside the price saying what it buys. */
priceLabel?: string
price?: string
/** Set small under the price figure. */
priceNote?: string
ctaLabel?: string
loadingLabel?: string
/** The supplied guarantee; omitted = no risk-reversal line. */
guarantee?: string
/** Sentence after the guarantee in the risk-reversal line. */
riskCopy?: string
errorMessage?: string
state?: TwoChoicesClose2State
disabled?: boolean
/** Navigation destination; the action renders as a link when set. */
href?: string
/** A returned promise shows the loading label; false or a rejection shows errorMessage. */
onAction?: () => void | boolean | Promise<void | boolean>
id?: string
className?: string
}
export function TwoChoicesClose2({
headline = 'Two roads from here. Only one comes with a plan.',
emphasis = 'comes with a plan',
lead = 'Close this page or take the plan. Either way, you’re choosing a road today.',
sceneImage,
sceneImageAlt = 'A road splitting into two routes',
oneCaption = 'Keep doing it alone',
twoCaption = 'With {product}',
oneNumber = '1',
oneTitle = 'Keep doing it alone',
onePoints = DEFAULT_POINTS,
twoNumber = '2',
twoTitle = 'Build your first funnel with a clear plan',
twoLead = 'Plan your funnel, write your page copy, and check every step before you launch.',
productName = 'The Funnel Starter Kit',
reasonsTitle = 'Three reasons to start today',
reasons = DEFAULT_REASONS,
priceLabel = 'The complete kit: guide, workbook and checklist',
price = '$47',
priceNote = 'one-time payment',
ctaLabel = 'Yes! I want the Funnel Starter Kit',
loadingLabel = 'Opening secure checkout…',
guarantee,
riskCopy = 'If it isn’t the right road, you get your money back.',
errorMessage = 'We couldn’t open checkout. Please try again.',
state = 'default',
disabled = false,
href,
onAction,
id,
className = '',
}: TwoChoicesClose2Props) {
const reduce = useReducedMotion()
const uid = React.useId().replace(/:/g, '')
const headId = 'tcr-h-' + uid
const oneId = 'tcr-one-' + uid
const twoId = 'tcr-two-' + uid
const riskId = 'tcr-risk-' + uid
const [lit, setLit] = React.useState<Route | null>(null)
const [status, setStatus] = React.useState<Status>(state === 'error' ? 'error' : 'idle')
const alive = React.useRef(true)
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
React.useEffect(() => {
setStatus(state === 'error' ? 'error' : 'idle')
}, [state])
const isDisabled = disabled || state === 'disabled'
const loading = status === 'loading'
const shownLit: Route | 'none' = lit ?? (state === 'hover' || state === 'active' ? 'two' : 'none')
const hasImage = Boolean(sceneImage)
const parts = splitPrice(price)
const guaranteeText = guarantee ? guarantee.replace(/[.!]+ *$/, '') : ''
async function handle(event: React.MouseEvent<HTMLElement>) {
if (isDisabled || loading) {
event.preventDefault()
return
}
if (!onAction) return
try {
const result = onAction() as unknown
if (result === false) {
event.preventDefault()
setStatus('error')
return
}
if (result && typeof (result as PromiseLike<unknown>).then === 'function') {
setStatus('loading')
const value = await (result as PromiseLike<void | boolean>)
if (alive.current) setStatus(value === false ? 'error' : 'idle')
return
}
setStatus('idle')
} catch {
if (alive.current) setStatus('error')
}
}
const light = (route: Route) => ({
onMouseEnter: () => setLit(route),
onMouseLeave: () => setLit((current) => (current === route ? null : current)),
onFocus: () => setLit(route),
onBlur: (event: React.FocusEvent<HTMLElement>) => {
if (!event.currentTarget.contains(event.relatedTarget as Node | null)) {
setLit((current) => (current === route ? null : current))
}
},
})
const rise = (i: number) =>
reduce
? {}
: {
initial: { opacity: 0.82, y: 8 },
whileInView: { opacity: 1, y: 0 },
viewport: { once: true, amount: 0.2 },
transition: { duration: 0.45, delay: Math.min(i * 0.07, 0.28), ease: [0.2, 0.7, 0.2, 1] as [number, number, number, number] },
}
const btnClass = 'tcr-btn' + (state === 'hover' ? ' is-hover' : '') + (state === 'active' ? ' is-active' : '')
const btnInner = loading ? (
<>
<Loader2 className='tcr-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
<span>{loadingLabel}</span>
</>
) : (
<span>{ctaLabel}</span>
)
const describedBy = guaranteeText ? riskId : undefined
return (
<section
id={id}
className={('cf-two-choices-close-2 ' + className).trim()}
aria-labelledby={headId}
data-lit={shownLit}
>
<style>{CSS}</style>
<div className={'tcr-wrap' + (hasImage ? '' : ' is-solo')}>
{hasImage ? (
<div className='tcr-figcol'>
<figure className='tcr-figure'>
<div className='tcr-frame'>
<img src={sceneImage} alt={sceneImageAlt} width={1024} height={1280} loading='lazy' decoding='async' />
<span className='tcr-layer is-lit is-one' aria-hidden='true' />
<span className='tcr-layer is-lit is-two' aria-hidden='true' />
<span className='tcr-layer is-dim is-one' aria-hidden='true' />
<span className='tcr-layer is-dim is-two' aria-hidden='true' />
</div>
<figcaption className='tcr-legend'>
<span className='tcr-leg tcr-leg-one'>
<b aria-hidden='true'>{oneNumber}</b>
<span>{oneCaption}</span>
</span>
<span className='tcr-leg tcr-leg-two'>
<b aria-hidden='true'>{twoNumber}</b>
<span>{twoCaption.split('{product}').join(productName)}</span>
</span>
</figcaption>
</figure>
</div>
) : null}
<div className='tcr-main'>
<header className='tcr-header'>
<h2 id={headId} className='tcr-h'>
<Marked text={headline} phrase={emphasis} />
</h2>
{lead ? <p className='tcr-lead'>{lead}</p> : null}
</header>
<div className='tcr-routes'>
<motion.div className='tcr-rise' {...rise(0)}>
<article className='tcr-route tcr-one' tabIndex={0} aria-labelledby={oneId} {...light('one')}>
<div className='tcr-head'>
<span className='tcr-num' aria-hidden='true'>{oneNumber}</span>
<h3 id={oneId} className='tcr-h3'>{oneTitle}</h3>
</div>
{onePoints.length ? (
<ul className='tcr-pains'>
{onePoints.map((point) => (
<li key={point}>
<span className='tcr-x' aria-hidden='true'>
<X size={16} strokeWidth={3} />
</span>
<span>{point}</span>
</li>
))}
</ul>
) : null}
</article>
</motion.div>
<motion.div className='tcr-rise' {...rise(1)}>
<article className='tcr-route tcr-two' tabIndex={0} aria-labelledby={twoId} {...light('two')}>
<div className='tcr-head'>
<span className='tcr-num' aria-hidden='true'>{twoNumber}</span>
<h3 id={twoId} className='tcr-h3'>{twoTitle}</h3>
</div>
{twoLead ? <p className='tcr-two-lead'>{twoLead}</p> : null}
{reasons.length ? (
<div className='tcr-reasons'>
{reasonsTitle ? <p className='tcr-reasons-h'>{reasonsTitle}</p> : null}
<ol>
{reasons.map((reason, i) => (
<li key={reason}>
<span className='tcr-rn' aria-hidden='true'>{i + 1}.</span>
{reason}
</li>
))}
</ol>
</div>
) : null}
{price ? (
<div className='tcr-deal'>
<div className='tcr-price'>
<p className='tcr-fig'>
<span className='tcr-sr'>{price}</span>
<span className='tcr-fig-v' aria-hidden='true'>
{parts.sym ? <span className='tcr-sup'>{parts.sym}</span> : null}
<span>{parts.whole}</span>
{parts.cents ? <span className='tcr-sup'>{parts.cents}</span> : null}
</span>
</p>
{priceNote ? <p className='tcr-price-note'>{priceNote}</p> : null}
</div>
{priceLabel ? <p className='tcr-price-label'>{priceLabel}</p> : null}
</div>
) : null}
{href ? (
<a
className={btnClass}
href={isDisabled ? undefined : href}
role={isDisabled ? 'link' : undefined}
aria-disabled={isDisabled || undefined}
aria-busy={loading || undefined}
aria-describedby={describedBy}
onClick={handle}
>
{btnInner}
</a>
) : (
<button
type='button'
className={btnClass}
disabled={isDisabled}
aria-busy={loading || undefined}
aria-describedby={describedBy}
onClick={handle}
>
{btnInner}
</button>
)}
{guaranteeText ? (
<p id={riskId} className='tcr-risk'>
<ShieldCheck size={18} strokeWidth={2.5} aria-hidden='true' />
<strong>{guaranteeText}.</strong> {riskCopy}
</p>
) : null}
{status === 'error' ? (
<p className='tcr-err' role='alert'>
<AlertCircle size={18} strokeWidth={2.5} aria-hidden='true' />
{errorMessage}
</p>
) : null}
</article>
</motion.div>
</div>
</div>
</div>
</section>
)
}
export default TwoChoicesClose2
type Route = 'one' | 'two'
type Status = 'idle' | 'loading' | 'error'
const DEFAULT_POINTS = [
'Another week guessing which pages your funnel needs.',
'A month from now: the same blank page and no launch date.',
]
const DEFAULT_REASONS = [
'The guide, workbook and checklist come in one download.',
'One payment. Yours to keep.',
'Every step is checked before you launch.',
]
function splitPrice(value: string) {
const m = value.match(/^ *([^0-9 ]*) *([0-9.,]+)(.*)$/)
if (!m) return { sym: '', whole: value, cents: '' }
const sym = m[1]
let whole = m[2]
let cents = ''
const c = whole.match(/^(.*)[.]([0-9]{2})$/)
if (c) {
whole = c[1]
cents = c[2]
}
return { sym, whole, cents }
}
function Marked({ text, phrase }: { text: string; phrase?: string }) {
const i = phrase ? text.indexOf(phrase) : -1
if (!phrase || i < 0) return <>{text}</>
return (
<>
{text.slice(0, i)}
<span className='tcr-mark'>{phrase}</span>
{text.slice(i + phrase.length)}
</>
)
}
const R = '.cf-two-choices-close-2'
const CSS = `
${R}{--tcr-field:color-mix(in oklch,var(--ink,#101828) 5%,var(--surface,#fff));--tcr-well:color-mix(in oklch,var(--ink,#101828) 4%,var(--surface,#fff));--tcr-wellc:color-mix(in oklch,var(--ink,#101828) 4%,var(--card,#fff));--tcr-line:oklch(from var(--ink,#101828) l c h / .12);--tcr-shadow:var(--shadow,oklch(.22 .03 260));--tcr-marker:var(--marker,#fae37c);--tcr-glyph:var(--status-glyph,#fff);--tcr-bg:var(--button-bg,var(--cta,#d92d20));--tcr-bg2:var(--button-bg-2,var(--cta-2,#b42318));position:relative;isolation:isolate;overflow:clip;background:var(--surface,#fff);color:var(--ink,#101828);font-family:var(--font-body,system-ui,sans-serif);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
${R}::before{content:'';position:absolute;inset:0;z-index:-1;background:var(--tcr-field);clip-path:polygon(0 86%,100% 50%,100% 100%,0 100%);pointer-events:none}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} :where(h2,h3,p,ol,ul,figure){margin:0}
${R} :where(ol,ul){padding:0;list-style:none}
${R} .tcr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
${R} .tcr-wrap{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:clamp(32px,5vw,72px);align-items:start}
${R} .tcr-wrap.is-solo{grid-template-columns:minmax(0,46rem);justify-content:center}
${R} .tcr-figcol{position:sticky;top:24px}
${R} .tcr-frame{position:relative;overflow:hidden;border-radius:12px;aspect-ratio:4/5;background:var(--tcr-wellc)}
${R} .tcr-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 55%}
${R} .tcr-layer{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .32s cubic-bezier(.2,.7,.2,1)}
${R} .tcr-layer.is-one{clip-path:polygon(0 0,54% 0,46% 100%,0 100%)}
${R} .tcr-layer.is-two{clip-path:polygon(54% 0,100% 0,100% 100%,46% 100%)}
${R} .tcr-layer.is-lit{background:oklch(from var(--accent-fill,var(--accent,#2563eb)) l c h / .34);mix-blend-mode:screen}
${R} .tcr-layer.is-dim{background:oklch(from var(--band,#1e2a44) calc(l - .06) c h / .62)}
${R}[data-lit=one] .tcr-layer.is-lit.is-one,${R}[data-lit=one] .tcr-layer.is-dim.is-two,${R}[data-lit=two] .tcr-layer.is-lit.is-two,${R}[data-lit=two] .tcr-layer.is-dim.is-one{opacity:1}
${R} .tcr-legend{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:12px;font-size:.9375rem;line-height:1.4;font-weight:600}
${R} .tcr-leg{display:flex;align-items:baseline;gap:8px;color:var(--muted,#4a5565);transition:color .2s ease;text-wrap:pretty}
${R} .tcr-leg b{flex:none;font-family:var(--font-display,system-ui,sans-serif);font-weight:800;font-variant-numeric:tabular-nums}
${R} .tcr-leg-two{justify-content:flex-end;text-align:right;color:var(--ink,#101828)}
${R} .tcr-leg-two b{color:var(--accent,#2563eb)}
${R}[data-lit=one] .tcr-leg-one{color:var(--ink,#101828)}
${R}[data-lit=one] .tcr-leg-two{color:var(--muted,#4a5565)}
${R} .tcr-h{font-family:var(--font-display,system-ui,sans-serif);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;color:var(--ink,#101828);text-wrap:balance}
${R} .tcr-mark{background:linear-gradient(transparent 58%,oklch(from var(--tcr-marker) l c h / .72) 58%,oklch(from var(--tcr-marker) l c h / .72) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .08em;border-radius:.12em .3em .2em .35em}
${R} .tcr-lead{margin-top:16px;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted,#4a5565);text-wrap:pretty}
${R} .tcr-routes{display:grid;gap:16px;margin-top:32px}
${R} .tcr-route{position:relative;border-radius:var(--card-radius,var(--radius,14px));padding:clamp(20px,3vw,32px);outline:none;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
${R} .tcr-route:focus-visible{outline:3px solid var(--field-focus,var(--accent,#2563eb));outline-offset:3px}
${R} .tcr-one{background:var(--tcr-well);border:1px solid var(--tcr-line);color:var(--muted,#4a5565)}
${R}[data-lit=one] .tcr-one{border-color:oklch(from var(--ink,#101828) l c h / .28)}
${R} .tcr-two{background:var(--card,#fff);color:var(--ink,#101828);border:2px solid color-mix(in oklch,var(--accent,#2563eb) 38%,var(--card,#fff));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--tcr-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--tcr-shadow) l c h / .32)))}
${R}[data-lit=two] .tcr-two{border-color:color-mix(in oklch,var(--accent,#2563eb) 72%,var(--card,#fff));transform:translateY(-2px)}
${R} .tcr-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:baseline}
${R} .tcr-num{font-family:var(--font-display,system-ui,sans-serif);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:.9;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
${R} .tcr-one .tcr-num{color:var(--muted,#4a5565)}
${R} .tcr-two .tcr-num{color:var(--accent,#2563eb)}
${R} .tcr-h3{font-family:var(--font-display,system-ui,sans-serif);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:-.01em;text-wrap:balance}
${R} .tcr-one .tcr-h3{color:var(--muted,#4a5565)}
${R} .tcr-pains{display:grid;gap:12px;margin-top:16px}
${R} .tcr-pains li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty;color:var(--muted,#4a5565)}
${R} .tcr-x{display:grid;place-items:center;width:24px;height:24px;margin-top:1px;border-radius:999px;background:var(--danger,#b42318);color:var(--tcr-glyph)}
${R} .tcr-two-lead{margin-top:12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted,#4a5565);text-wrap:pretty}
${R} .tcr-reasons{margin-top:24px}
${R} .tcr-reasons-h{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;font-weight:800;color:var(--ink,#101828)}
${R} .tcr-reasons ol{display:grid;gap:8px;margin-top:8px}
${R} .tcr-reasons li{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
${R} .tcr-rn{font-family:var(--font-display,system-ui,sans-serif);font-weight:800;color:var(--accent,#2563eb);margin-inline-end:.4em;font-variant-numeric:tabular-nums}
${R} .tcr-deal{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:24px;padding:16px 20px;border-radius:10px;background:var(--tcr-wellc)}
${R} .tcr-price{flex:none}
${R} .tcr-fig{font-family:var(--font-display,system-ui,sans-serif);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink,#101828)}
${R} .tcr-fig-v{display:inline-flex;align-items:flex-start}
${R} .tcr-sup{font-size:.44em;line-height:1;margin-top:.12em;margin-inline:.02em .04em;letter-spacing:0}
${R} .tcr-price-note{margin-top:12px;font-size:.9375rem;line-height:1.2;font-weight:600;color:var(--muted,#4a5565)}
${R} .tcr-price-label{flex:1 1 160px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.35;font-weight:700;color:var(--ink,#101828);text-wrap:balance}
${R} .tcr-btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:72px;margin-top:20px;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));cursor:pointer;text-decoration:none;text-align:center;font-family:var(--button-font,var(--font-display,system-ui,sans-serif));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-wrap:balance;color:var(--button-ink,var(--cta-ink,#fff));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--tcr-bg) calc(l + .04) c h),oklch(from var(--tcr-bg2) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--tcr-bg) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--tcr-bg) calc(l - .16) c h),0 1px 2px oklch(from var(--tcr-shadow) l c h / .32),0 8px 16px -6px oklch(from var(--tcr-shadow) l c h / .42));transition:transform .16s ease,box-shadow .16s ease,background .16s ease;-webkit-tap-highlight-color:transparent}
${R} .tcr-btn:hover:not(:disabled):not([aria-disabled=true]),${R} .tcr-btn.is-hover{background:linear-gradient(oklch(from var(--tcr-bg) calc(l - .01) c h),oklch(from var(--tcr-bg2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--tcr-bg) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--tcr-bg) calc(l - .2) c h),0 1px 2px oklch(from var(--tcr-shadow) l c h / .36),0 10px 20px -6px oklch(from var(--tcr-shadow) l c h / .5));transform:translateY(-1px)}
${R} .tcr-btn:active:not(:disabled):not([aria-disabled=true]),${R} .tcr-btn.is-active{background:linear-gradient(oklch(from var(--tcr-bg) calc(l - .04) c h),oklch(from var(--tcr-bg2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--tcr-bg) calc(l - .22) c h / .45),inset 0 -2px 0 oklch(from var(--tcr-bg) calc(l - .18) c h),0 1px 2px oklch(from var(--tcr-shadow) l c h / .3);transform:translateY(1px)}
${R} .tcr-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent,#2563eb));outline-offset:3px}
${R} .tcr-btn:disabled,${R} .tcr-btn[aria-disabled=true]{background:var(--button-2-bg,var(--secondary,#e4e7ec));color:var(--button-2-ink,var(--secondary-ink,#101828));box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(from var(--tcr-shadow) l c h / .2)));text-shadow:none;cursor:not-allowed;transform:none}
${R} .tcr-btn[aria-busy=true]{cursor:progress}
${R} .tcr-spin{flex:none;animation:tcr-spin .8s linear infinite}
@keyframes tcr-spin{to{transform:rotate(360deg)}}
${R} .tcr-risk{margin-top:16px;text-align:center;font-size:.9375rem;line-height:1.45;font-weight:500;color:var(--muted,#4a5565);text-wrap:pretty}
${R} .tcr-risk svg{display:inline-block;vertical-align:-.2em;margin-inline-end:.4em;color:var(--success,#067647)}
${R} .tcr-risk strong{color:var(--ink,#101828);font-weight:800}
${R} .tcr-err{margin-top:12px;padding:12px 16px;border-radius:10px;background:var(--danger-soft,#fde8e7);color:var(--danger,#b42318);font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
${R} .tcr-err svg{display:inline-block;vertical-align:-.2em;margin-inline-end:.4em}
@media (max-width:860px){
${R}::before{clip-path:polygon(0 93%,100% 76%,100% 100%,0 100%)}
${R} .tcr-wrap{grid-template-columns:minmax(0,1fr);gap:28px}
${R} .tcr-figcol{position:static}
${R} .tcr-frame{aspect-ratio:16/9}
${R} .tcr-routes{margin-top:28px}
}
@media (max-width:480px){
${R} .tcr-head{gap:12px}
${R} .tcr-deal{padding:16px}
${R} .tcr-btn{padding:12px 20px}
}
@media (prefers-reduced-motion:reduce){
${R} .tcr-layer,${R} .tcr-leg,${R} .tcr-route,${R} .tcr-btn{transition:none}
${R}[data-lit=two] .tcr-two,${R} .tcr-btn:hover:not(:disabled),${R} .tcr-btn.is-hover,${R} .tcr-btn.is-active{transform:none}
${R} .tcr-spin{animation:none}
}
`
pieces/content/two-choices-close-2/specimen.tsx 42 lines
import __studioImage06337206 from "../assets/fb6c32fd7b641e56.webp";
import { TwoChoicesClose2, type TwoChoicesClose2State } from '../two-choices-close-2'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function TwoChoicesClose2Specimen({ state = 'default' }: { state?: TwoChoicesClose2State }) {
return (
<TwoChoicesClose2
state={state}
headline='Two roads from here. Only one has a coach on it.'
emphasis='has a coach on it'
lead='Twelve weeks from today you’ll be somewhere. Pick the road that decides where.'
sceneImage={slot("scene", __studioImage06337206)}
sceneImageAlt='A road splitting in two: a gravel track into fog on the left, a paved road climbing to a sunlit ridge on the right'
oneCaption='Keep doing it alone'
twoCaption='With {product}'
productName='IronOak Coaching'
oneTitle='Keep doing it alone'
onePoints={[
'Another Monday restarting a program you found online.',
'Twelve weeks from now: the same lifts, the same guesswork.',
]}
twoTitle='Train 12 weeks with a coach and a plan'
twoLead='IronOak 12-Week Strength Coaching: every session written for you, your lifts reviewed, your next step always clear.'
reasonsTitle='Three reasons to start today'
reasons={[
'Your first week of training is planned the day you join.',
'A coach reviews your lifts every week of the 12.',
'The 30-day guarantee carries the risk, not you.',
]}
priceLabel='All 12 weeks of IronOak Strength Coaching'
price='$1,497'
priceNote='one-time payment'
ctaLabel='Yes! I want IronOak Coaching'
guarantee={defaults.sample.guarantee}
riskCopy='Train with us for 30 days. Not the right road? Get your money back.'
onAction={() => undefined}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalTwoChoicesClose2 |
string |
Default 'Two roads from here. Only one comes with a plan.'
|
emphasis OptionalTwoChoicesClose2 |
string |
Default 'comes with a plan'
|
lead OptionalTwoChoicesClose2 |
string |
Default 'Close this page or take the plan. Either way, you’re choosing a road today.'
|
sceneImage OptionalTwoChoicesClose2 |
string |
|
sceneImageAlt OptionalTwoChoicesClose2 |
string |
Default 'A road splitting into two routes'
|
oneCaption OptionalTwoChoicesClose2 |
string |
Default 'Keep doing it alone'
|
twoCaption OptionalTwoChoicesClose2 |
string |
Default 'With {product}'
|
oneNumber OptionalTwoChoicesClose2 |
string |
Default '1'
|
oneTitle OptionalTwoChoicesClose2 |
string |
Default 'Keep doing it alone'
|
onePoints OptionalTwoChoicesClose2 |
string[] |
Default DEFAULT_POINTS
|
twoNumber OptionalTwoChoicesClose2 |
string |
Default '2'
|
twoTitle OptionalTwoChoicesClose2 |
string |
Default 'Build your first funnel with a clear plan'
|
twoLead OptionalTwoChoicesClose2 |
string |
Default 'Plan your funnel, write your page copy, and check every step before you launch.'
|
productName OptionalTwoChoicesClose2 |
string |
Default 'The Funnel Starter Kit'
|
reasonsTitle OptionalTwoChoicesClose2 |
string |
Default 'Three reasons to start today'
|
reasons OptionalTwoChoicesClose2 |
string[] |
Default DEFAULT_REASONS
|
priceLabel OptionalTwoChoicesClose2 |
string |
Default 'The complete kit: guide, workbook and checklist'
|
price OptionalTwoChoicesClose2 |
string |
Default '$47'
|
priceNote OptionalTwoChoicesClose2 |
string |
Default 'one-time payment'
|
ctaLabel OptionalTwoChoicesClose2 |
string |
Default 'Yes! I want the Funnel Starter Kit'
|
loadingLabel OptionalTwoChoicesClose2 |
string |
Default 'Opening secure checkout…'
|
guarantee OptionalTwoChoicesClose2 |
string |
|
riskCopy OptionalTwoChoicesClose2 |
string |
Default 'If it isn’t the right road, you get your money back.'
|
errorMessage OptionalTwoChoicesClose2 |
string |
Default 'We couldn’t open checkout. Please try again.'
|
state OptionalTwoChoicesClose2 |
TwoChoicesClose2State |
Default 'default'
|
disabled OptionalTwoChoicesClose2 |
boolean |
Default false
|
href OptionalTwoChoicesClose2 |
string |
|
onAction OptionalTwoChoicesClose2 |
() => void | boolean | Promise<void | boolean> |
|
id OptionalTwoChoicesClose2 |
string |
|
className OptionalTwoChoicesClose2 |
string |
Default ''
|
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-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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
fb6c32fd7b641e56.webp
image/webp · 165 KB