Two Choices Close 6
Leads the reader through the offer value, price, and protected next step.
Use it in a prompt
Use content/two-choices-close-6 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-6.tsx. - Import it and pass your copy and images (Props tab):
import { TwoChoicesClose6 } from "@/components/funneldna/content/two-choices-close-6"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/two-choices-close-6/component.tsx 441 lines
// Leads the reader through the offer value, price, and protected next step.
'use client'
import * as React from 'react'
import { motion, useReducedMotion } from 'motion/react'
import { AlertCircle, ArrowDown, CheckCircle2, Hourglass, Loader2, PackageCheck, ShieldCheck, Tag, X } from 'lucide-react'
export type TwoChoicesClose6Props = {
headline?: string
/** The phrase inside the headline that gets the marker stroke. */
emphasis?: string
lead?: string
oneLabel?: string
oneTitle?: string
oneBody?: string
onePoints?: (string | { text: string })[]
oneCostLabel?: string
oneCost?: string
/** Legacy alias for sceneImage. */
oneImage?: string
sceneImage?: string
/** Legacy alias for sceneImageAlt. */
oneImageAlt?: string
sceneImageAlt?: string
twoLabel?: string
twoTitle?: string
productName?: string
reason?: string
itemsTitle?: string
items?: ChoiceItem[]
totalLabel?: string
totalValue?: string
todayLabel?: string
regularPriceLabel?: string
todayPriceLabel?: string
/** Struck regular price; omitted = no struck price and no savings line. */
regularPrice?: string
price?: string
note?: string
stepLabel?: string
ctaLabel?: string
loadingLabel?: string
valueSuffix?: string
saveLabel?: string
guarantee?: string
/** Legacy alias for sealGuaranteeImage. */
sealImage?: string
sealGuaranteeImage?: string
/** Legacy alias for sealGuaranteeImageAlt. */
sealImageAlt?: string
sealGuaranteeImageAlt?: string
/** Knock near-white pixels out of the seal/stamp image (art on a white backdrop). Off by default: it also erases white parts of the art. */
matteWhite?: boolean
/** Legacy alias for textureImage. */
backgroundImage?: string
textureImage?: string
/** @deprecated No longer rendered: the builder wires what happens after the click. */
successTitle?: string
/** @deprecated No longer rendered: the builder wires what happens after the click. */
successMessage?: string
errorMessage?: string
/** "success" is accepted for older callers and renders as default. */
state?: TwoChoicesClose6State
disabled?: boolean
/** Navigation destination; the button 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 TwoChoicesClose6({
headline = 'You have two choices.',
emphasis = 'two choices',
lead = 'Close this page and nothing changes. Or take the plan and start building your first funnel today.',
oneLabel = 'Choice one',
oneTitle = 'Keep doing what you’re doing',
oneBody = 'Keep piecing together your funnel, your page copy and your launch steps on your own.',
onePoints: suppliedOnePoints = DEFAULT_POINTS,
oneCostLabel = 'The cost:',
oneCost = 'your funnel stays a someday project.',
oneImage,
sceneImage = oneImage,
oneImageAlt,
sceneImageAlt = oneImageAlt === undefined ? '' : oneImageAlt,
twoLabel = 'Choice two',
twoTitle = 'Build your first funnel with a clear plan',
productName = 'The Funnel Starter Kit',
reason = 'Get the guide, workbook, and checklist in one download.',
itemsTitle = 'Everything in the kit',
items = [],
totalLabel = 'Total value',
totalValue,
todayLabel = 'Get the complete kit for',
regularPriceLabel = 'Regular price ',
todayPriceLabel = 'Today ',
regularPrice,
price = '$47',
note,
stepLabel,
ctaLabel = 'Yes! Give Me Access',
loadingLabel = 'Opening secure checkout…',
valueSuffix = 'value',
saveLabel = 'Save',
guarantee,
sealImage,
sealGuaranteeImage = sealImage,
matteWhite = false,
sealImageAlt,
sealGuaranteeImageAlt = sealImageAlt === undefined ? '' : sealImageAlt,
backgroundImage,
textureImage = backgroundImage,
errorMessage = 'We couldn’t open checkout. Please try again.',
state = 'default',
disabled = false,
href,
onAction,
id,
className = '',
}: TwoChoicesClose6Props) {
const onePoints = suppliedOnePoints.map((entry) => typeof entry === 'string' ? entry : entry.text)
const reduce = useReducedMotion()
const headId = React.useId()
const guarId = React.useId()
const [status, setStatus] = React.useState<Status>(statusFor(state))
React.useEffect(() => {
setStatus(statusFor(state))
}, [state])
const alive = React.useRef(true)
React.useEffect(() => {
alive.current = true
return () => { alive.current = false }
}, [])
const isDisabled = disabled || state === 'disabled'
const loading = status === 'loading'
const handle = async (e: React.MouseEvent<HTMLElement>) => {
if (isDisabled || loading) { e.preventDefault(); return }
if (!onAction) return
try {
const result = onAction()
if (result === false) { e.preventDefault(); setStatus('error'); return }
if (!result || result === true) { setStatus('idle'); return }
setStatus('loading')
const value = await result
if (alive.current) setStatus(value === false ? 'error' : 'idle')
} catch {
if (alive.current) setStatus('error')
}
}
const sym = symbol(price)
const values = items.map((it) => amount(it.value))
const summed = items.length > 0 && values.every((v) => isFinite(v)) ? fmt(symbol(items[0].value) || sym, values.reduce((a, b) => a + b, 0)) : ''
const total = totalValue || summed || regularPrice || ''
const was = regularPrice || ''
const wasN = amount(was)
const nowN = amount(price)
const save = isFinite(wasN) && isFinite(nowN) && wasN > nowN ? fmt(sym, wasN - nowN) : ''
const rise = (i: number) =>
reduce
? {}
: {
initial: { opacity: 0.82, y: 8 },
whileInView: { opacity: 1, y: 0 },
viewport: { once: true, amount: 0.25 },
transition: { duration: 0.45, delay: Math.min(i * 0.07, 0.28), ease: [0.2, 0.7, 0.2, 1] as const },
}
const drawY = (i: number) =>
reduce
? {}
: {
initial: { clipPath: 'inset(0 0 100% 0)' },
whileInView: { clipPath: 'inset(0 0 0% 0)' },
viewport: { once: true, amount: 0.6 },
transition: { duration: 0.6, delay: 0.2 + i * 0.25, ease: 'linear' as const },
}
const btnClass = ['tcs-btn', state === 'hover' ? 'is-hover' : '', state === 'active' ? 'is-active' : ''].filter(Boolean).join(' ')
const btnInner = (
<>
<span className='tcs-btn-l'>{loading ? loadingLabel : ctaLabel}</span>
{loading ? <Loader2 className='tcs-spin' aria-hidden='true' strokeWidth={2.5} /> : null}
</>
)
return (
<section id={id} className={('cf-two-choices-close-6 tcs ' + className).trim()} aria-labelledby={headId}>
<style>{CSS}</style>
{textureImage ? <img className='tcs-bg' src={textureImage} alt='' aria-hidden='true' loading='lazy' /> : null}
<div className='tcs-scrim' aria-hidden='true' />
<div className='tcs-wrap'>
<header className='tcs-head'>
<h2 id={headId} className='tcs-h'><Emph text={headline} emphasis={emphasis} /></h2>
{lead ? <p className='tcs-lead'>{lead}</p> : null}
</header>
<div className='tcs-stage'>
<article className='tcs-one' aria-label={oneLabel}>
{sceneImage ? <figure className='tcs-one-fig'><img src={sceneImage} alt={sceneImageAlt} loading='lazy' /></figure> : null}
<span className='tcs-tag tcs-tag-one'><Hourglass aria-hidden='true' strokeWidth={2.5} />{oneLabel}</span>
<h3 className='tcs-one-title'>{oneTitle}</h3>
{oneBody ? <p className='tcs-one-body'>{oneBody}</p> : null}
{onePoints.length ? (
<ul className='tcs-one-list'>
{onePoints.map((p) => <li key={p}><span className='tcs-x' aria-hidden='true'><X strokeWidth={3} /></span><span>{p}</span></li>)}
</ul>
) : null}
{oneCost ? <p className='tcs-cost'><Hourglass aria-hidden='true' strokeWidth={2.5} /><span><strong>{oneCostLabel}</strong> {oneCost}</span></p> : null}
</article>
<article className='tcs-two' aria-label={twoLabel}>
<div className='tcs-card'>
<span className='tcs-tag tcs-tag-two'><CheckCircle2 aria-hidden='true' strokeWidth={2.5} />{twoLabel}</span>
<h3 className='tcs-two-title'>{twoTitle}</h3>
{productName ? <p className='tcs-prod'>{productName}</p> : null}
{reason ? <p className='tcs-reason'>{reason}</p> : null}
<ol className='tcs-rail'>
{items.length ? (
<motion.li className='tcs-stop' {...rise(0)}>
<span className='tcs-node' aria-hidden='true'><PackageCheck strokeWidth={2.5} /></span>
<motion.span className='tcs-seg' aria-hidden='true' {...drawY(0)} />
<div className='tcs-stop-body'>
<h4 className='tcs-stop-h'>{itemsTitle}</h4>
<ul className='tcs-items'>
{items.map((it) => {
const img = it.itemImage === undefined ? it.image : it.itemImage
return (
<li className={img ? 'tcs-item has-img' : 'tcs-item'} key={it.name}>
{img ? <img className='tcs-thumb' src={img} alt={it.imageAlt || it.name} width={56} height={56} loading='lazy' /> : null}
<div className='tcs-item-t'>
<p className='tcs-item-n'>{it.name}</p>
{it.detail ? <p className='tcs-item-d'>{it.detail}</p> : null}
</div>
{it.value ? <p className='tcs-item-v'><strong>{it.value}</strong><span>{valueSuffix}</span></p> : null}
</li>
)
})}
</ul>
{total ? <p className='tcs-total'><span>{totalLabel}</span><strong>{total}</strong></p> : null}
</div>
</motion.li>
) : null}
<motion.li className='tcs-stop' {...rise(1)}>
<span className='tcs-node' aria-hidden='true'><Tag strokeWidth={2.5} /></span>
<motion.span className='tcs-seg' aria-hidden='true' {...drawY(1)} />
<div className='tcs-stop-body'>
<h4 className='tcs-stop-h'>{todayLabel}</h4>
<div className='tcs-price'>
{was ? <s className='tcs-was'><span className='tcs-sr'>{regularPriceLabel}</span>{was}</s> : null}
<strong className='tcs-now'><span className='tcs-sr'>{todayPriceLabel}</span>{price}</strong>
</div>
{save || note ? (
<p className='tcs-terms'>
{save ? <span className='tcs-save'>{saveLabel} {save}</span> : null}
{note ? <span className='tcs-note'>{note}</span> : null}
</p>
) : null}
</div>
</motion.li>
<motion.li className='tcs-stop tcs-go' {...rise(2)}>
<span className='tcs-node tcs-node-go' aria-hidden='true'><ArrowDown strokeWidth={3} /></span>
{stepLabel ? <p className='tcs-go-label'>{stepLabel}</p> : <span />}
</motion.li>
</ol>
<div className='tcs-close'>
{href && !isDisabled ? (
<a
href={href}
className={btnClass}
onClick={handle}
aria-busy={loading ? true : undefined}
aria-describedby={guarantee ? guarId : undefined}
>
{btnInner}
</a>
) : (
<button
type='button'
className={btnClass}
onClick={handle}
disabled={isDisabled}
aria-busy={loading ? true : undefined}
aria-describedby={guarantee ? guarId : undefined}
>
{btnInner}
</button>
)}
{status === 'error' ? <p className='tcs-err' role='alert'><AlertCircle aria-hidden='true' strokeWidth={2.5} /><span>{errorMessage}</span></p> : null}
{guarantee ? (
<div className='tcs-guar' id={guarId}>
{sealGuaranteeImage ? <img src={sealGuaranteeImage} alt={sealGuaranteeImageAlt} width={56} height={56} loading='lazy' data-matte={matteWhite ? '' : undefined} /> : <span className='tcs-seal-f' aria-hidden='true'><ShieldCheck strokeWidth={2.5} /></span>}
<p>{guarantee}</p>
</div>
) : null}
</div>
</div>
</article>
</div>
</div>
</section>
)
}
export default TwoChoicesClose6
export type ChoiceItem = { name: string; detail?: string; value?: string; itemImage?: string; image?: string; imageAlt?: string }
export type TwoChoicesClose6State = 'default' | 'hover' | 'active' | 'disabled' | 'error' | 'success'
type Status = 'idle' | 'loading' | 'error'
const DEFAULT_POINTS = [
'Guess which pages your funnel actually needs',
'Stare at a blank page trying to write your headline',
'Launch, then find the broken link the hard way',
]
function statusFor(s: TwoChoicesClose6State): Status {
return s === 'error' ? 'error' : 'idle'
}
function amount(v?: string) {
if (!v) return NaN
return parseFloat(v.replace(/[^0-9.]/g, ''))
}
function symbol(v?: string) {
return (v || '').match(/^[^0-9]*/)?.[0] ?? ''
}
function fmt(sym: string, n: number) {
return sym + (Number.isInteger(n) ? String(n) : n.toFixed(2))
}
function Emph({ text, emphasis }: { text: string; emphasis?: string }) {
const i = emphasis ? text.indexOf(emphasis) : -1
if (!emphasis || i < 0) return <>{text}</>
return <>{text.slice(0, i)}<em className='tcs-em'>{emphasis}</em>{text.slice(i + emphasis.length)}</>
}
const CSS = `
.cf-two-choices-close-6{--tcs-quiet:color-mix(in oklch,var(--ink,#101828) 6%,var(--surface,#fff));--tcs-well:color-mix(in oklch,var(--ink,#101828) 5%,var(--card,#fff));--tcs-shadow:var(--shadow,oklch(0.22 0.03 260));--tcs-marker:var(--marker,#fae37c);--tcs-marker-ink:var(--band,#0f2747);--tcs-r:var(--card-radius,var(--radius,14px));--tcs-sm:var(--shadow-sm,0 1px 1px oklch(0.22 0.03 260 / .18),0 1px 3px oklch(0.22 0.03 260 / .14));position:relative;isolation:isolate;overflow:hidden;overflow:clip;background:var(--band,#0f2747);color:var(--band-ink,#fff);font-family:var(--font-body,Arial,sans-serif);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-two-choices-close-6 *,.cf-two-choices-close-6 *::before,.cf-two-choices-close-6 *::after{box-sizing:border-box}
.cf-two-choices-close-6 :where(h2,h3,h4,p,ul,ol,figure){margin:0}
.cf-two-choices-close-6 :where(ul,ol){padding:0;list-style:none}
:where(.cf-two-choices-close-6) .tcs-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:where(.cf-two-choices-close-6) .tcs-bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;opacity:.55}
:where(.cf-two-choices-close-6) .tcs-scrim{position:absolute;inset:0;z-index:-1;background:oklch(from var(--band,#0f2747) l c h / .82)}
:where(.cf-two-choices-close-6) .tcs-wrap{position:relative;max-width:1120px;margin:0 auto}
:where(.cf-two-choices-close-6) .tcs-head{max-width:960px;margin:0 auto;text-align:center}
:where(.cf-two-choices-close-6) .tcs-h{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(2.75rem,6vw,5.25rem);line-height:1.04;letter-spacing:var(--display-tracking,-.03em);color:var(--band-ink,#fff);text-wrap:balance;text-transform:var(--display-case,none)}
:where(.cf-two-choices-close-6) .tcs-em{font-style:normal;color:var(--tcs-marker-ink);background:linear-gradient(180deg,transparent 0 8%,var(--tcs-marker) 8% 94%,transparent 94%);padding:0 .1em;margin:0 -.04em;border-radius:.12em .35em .18em .4em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
:where(.cf-two-choices-close-6) .tcs-lead{margin:20px auto 0;max-width:44ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.45;font-weight:500;color:var(--band-ink,#fff);text-wrap:pretty}
:where(.cf-two-choices-close-6) .tcs-stage{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start;margin-top:clamp(40px,5vw,64px)}
:where(.cf-two-choices-close-6) .tcs-stage>article{min-width:0}
:where(.cf-two-choices-close-6) .tcs-tag{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:6px 12px;border-radius:999px;font-family:var(--font-body,Arial,sans-serif);font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;margin-bottom:16px}
:where(.cf-two-choices-close-6) .tcs-tag svg{width:16px;height:16px;flex:none}
:where(.cf-two-choices-close-6) .tcs-tag-one{background:color-mix(in oklch,var(--ink,#101828) 9%,var(--tcs-quiet));color:var(--ink,#101828)}
:where(.cf-two-choices-close-6) .tcs-tag-two{background:var(--accent-fill,var(--accent,#0f5fc2));color:var(--accent-fill-ink,var(--card,#fff));box-shadow:var(--tcs-sm)}
:where(.cf-two-choices-close-6) .tcs-one{--tcs-pad:clamp(20px,3vw,32px);position:relative;overflow:hidden;background:var(--tcs-quiet);color:var(--muted,#4a5565);border:1px solid var(--card-border,oklch(from var(--ink,#101828) l c h / .12));border-radius:var(--tcs-r);padding:var(--tcs-pad);box-shadow:var(--tcs-sm)}
:where(.cf-two-choices-close-6) .tcs-one-fig{position:relative;margin:calc(var(--tcs-pad) * -1) calc(var(--tcs-pad) * -1) 20px;height:clamp(150px,15vw,190px);overflow:hidden;background:color-mix(in oklch,var(--ink,#101828) 14%,var(--tcs-quiet))}
:where(.cf-two-choices-close-6) .tcs-one-fig img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:grayscale(.85) contrast(.92) brightness(.92)}
:where(.cf-two-choices-close-6) .tcs-one-fig::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,oklch(from var(--tcs-quiet) l c h / .7) 78%,var(--tcs-quiet) 100%)}
:where(.cf-two-choices-close-6) .tcs-one-title{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;color:var(--ink,#101828);text-wrap:balance;text-transform:var(--display-case,none)}
:where(.cf-two-choices-close-6) .tcs-one-body{margin-top:12px;font-size:1.0625rem;line-height:1.5;text-wrap:pretty}
:where(.cf-two-choices-close-6) .tcs-one-list{display:grid;gap:12px;margin-top:20px}
:where(.cf-two-choices-close-6) .tcs-one-list li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;font-size:1rem;line-height:1.45;text-wrap:pretty}
:where(.cf-two-choices-close-6) .tcs-x{display:grid;place-items:center;width:24px;height:24px;margin-top:-1px;border-radius:50%;background:var(--danger,#b42318);color:var(--danger-ink,#fff)}
:where(.cf-two-choices-close-6) .tcs-x svg{width:14px;height:14px}
:where(.cf-two-choices-close-6) .tcs-cost{display:flex;gap:10px;align-items:flex-start;margin-top:24px;padding:14px 16px;border-radius:10px;background:color-mix(in oklch,var(--ink,#101828) 7%,var(--tcs-quiet));color:var(--ink,#101828);font-size:1rem;line-height:1.45;text-wrap:pretty}
:where(.cf-two-choices-close-6) .tcs-cost svg{width:18px;height:18px;flex:none;margin-top:2px;color:var(--danger,#b42318)}
:where(.cf-two-choices-close-6) .tcs-cost strong{font-weight:800}
:where(.cf-two-choices-close-6) .tcs-card{background:var(--card,#fff);color:var(--ink,#101828);border:1px solid color-mix(in oklch,var(--accent-fill,var(--accent,#0f5fc2)) 32%,var(--card,#fff));border-radius:var(--tcs-r);padding:clamp(20px,3.4vw,40px);box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(0.22 0.03 260 / .22),0 12px 24px -8px oklch(0.22 0.03 260 / .32)))}
:where(.cf-two-choices-close-6) .tcs-two-title{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(1.875rem,3.2vw,2.625rem);line-height:1.06;letter-spacing:var(--display-tracking,-.025em);color:var(--ink,#101828);text-wrap:balance;text-transform:var(--display-case,none)}
:where(.cf-two-choices-close-6) .tcs-prod{margin-top:16px;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:1.1875rem;line-height:1.3;color:var(--ink,#101828);text-transform:var(--display-case,none)}
:where(.cf-two-choices-close-6) .tcs-reason{margin-top:6px;max-width:60ch;font-size:1.0625rem;line-height:1.5;font-weight:500;color:var(--muted,#4a5565);text-wrap:pretty}
:where(.cf-two-choices-close-6) .tcs-rail{--tcs-node:40px;position:relative;display:grid;gap:28px;margin-top:32px}
:where(.cf-two-choices-close-6) .tcs-stop{position:relative;display:grid;grid-template-columns:var(--tcs-node) minmax(0,1fr);gap:16px;align-items:start}
:where(.cf-two-choices-close-6) .tcs-node{position:relative;z-index:1;display:grid;place-items:center;width:var(--tcs-node);height:var(--tcs-node);border-radius:50%;background:var(--accent-fill,var(--accent,#0f5fc2));color:var(--accent-fill-ink,var(--card,#fff));box-shadow:inset 0 1px 0 oklch(from var(--accent-fill,var(--accent,#0f5fc2)) calc(l + .12) c h / .6),var(--tcs-sm)}
:where(.cf-two-choices-close-6) .tcs-node svg{width:20px;height:20px}
:where(.cf-two-choices-close-6) .tcs-node-go{background:var(--ink,#101828);color:var(--card,#fff);box-shadow:var(--tcs-sm)}
:where(.cf-two-choices-close-6) .tcs-seg{position:absolute;left:calc(var(--tcs-node) / 2 - 1px);top:calc(var(--tcs-node) + 6px);bottom:-22px;width:2px;border-radius:2px;background:oklch(from var(--accent-fill,var(--accent,#0f5fc2)) l c h / .55)}
:where(.cf-two-choices-close-6) .tcs-stop-body{min-width:0;padding-top:8px}
:where(.cf-two-choices-close-6) .tcs-stop-h{margin-bottom:12px;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:1.125rem;line-height:1.3;color:var(--ink,#101828);text-transform:var(--display-case,none)}
:where(.cf-two-choices-close-6) .tcs-items{display:grid;gap:8px}
:where(.cf-two-choices-close-6) .tcs-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start;padding:12px 16px 12px 12px;background:var(--tcs-well);border-radius:10px}
:where(.cf-two-choices-close-6) .tcs-item.has-img{grid-template-columns:56px minmax(0,1fr) auto}
:where(.cf-two-choices-close-6) .tcs-thumb{display:block;width:56px;height:56px;border-radius:8px;object-fit:cover}
:where(.cf-two-choices-close-6) .tcs-item-t{min-width:0;padding-top:2px}
:where(.cf-two-choices-close-6) .tcs-item-n{font-weight:700;font-size:1rem;line-height:1.3;color:var(--ink,#101828)}
:where(.cf-two-choices-close-6) .tcs-item-d{margin-top:4px;font-size:.9375rem;line-height:1.4;color:var(--muted,#4a5565);text-wrap:pretty}
:where(.cf-two-choices-close-6) .tcs-item-v{padding-top:2px;text-align:right;white-space:nowrap;line-height:1.2}
:where(.cf-two-choices-close-6) .tcs-item-v strong{display:block;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:1.0625rem;color:var(--ink,#101828);font-variant-numeric:tabular-nums;text-transform:var(--display-case,none)}
:where(.cf-two-choices-close-6) .tcs-item-v span{display:block;margin-top:2px;font-size:.875rem;color:var(--muted,#4a5565)}
:where(.cf-two-choices-close-6) .tcs-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:4px;padding:12px 16px 0 12px;color:var(--ink,#101828);font-weight:700;font-size:1rem}
:where(.cf-two-choices-close-6) .tcs-total strong{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:1.375rem;font-variant-numeric:tabular-nums;text-transform:var(--display-case,none)}
:where(.cf-two-choices-close-6) .tcs-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px}
:where(.cf-two-choices-close-6) .tcs-was{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(1.5rem,2.2vw,1.875rem);line-height:1;color:var(--danger,#b42318);text-decoration:line-through;text-decoration-color:currentColor;text-decoration-thickness:.09em;font-variant-numeric:tabular-nums;text-transform:var(--display-case,none)}
:where(.cf-two-choices-close-6) .tcs-now{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(3rem,5.2vw,4.25rem);line-height:1;letter-spacing:-.03em;color:var(--ink,#101828);font-variant-numeric:tabular-nums;text-transform:var(--display-case,none)}
:where(.cf-two-choices-close-6) .tcs-terms{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin-top:14px;font-size:1rem;line-height:1.4}
:where(.cf-two-choices-close-6) .tcs-save{font-weight:800;color:var(--success,#1d7a3a)}
:where(.cf-two-choices-close-6) .tcs-note{font-weight:600;color:var(--muted,#4a5565)}
:where(.cf-two-choices-close-6) .tcs-go{align-items:center}
:where(.cf-two-choices-close-6) .tcs-go-label{font-weight:700;font-size:1rem;line-height:1.35;color:var(--ink,#101828);text-wrap:pretty}
:where(.cf-two-choices-close-6) .tcs-close{margin-top:24px;text-align:center}
:where(.cf-two-choices-close-6) .tcs-btn{position:relative;display:flex;width:100%;min-height:72px;margin:0;align-items:center;justify-content:center;padding:14px 28px;border-radius:var(--button-radius,var(--radius,12px));border:1px solid oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l - .12) c h);background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l + .04) c h),oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l - .05) c h));color:var(--button-ink,var(--cta-ink,#fff));font-family:var(--button-font,var(--font-display,Arial,sans-serif));font-weight:var(--button-weight,800);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-decoration:none;text-transform:var(--button-case,none);text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l - .16) c h),0 1px 2px oklch(from var(--tcs-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--tcs-shadow) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
:where(.cf-two-choices-close-6) .tcs-btn-l{display:block;min-width:0;text-align:center;text-wrap:balance}
:where(.cf-two-choices-close-6) .tcs-btn.is-hover,:where(.cf-two-choices-close-6) .tcs-btn:not(:disabled):hover{transform:translateY(-1px);background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l - .01) c h),oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l - .10) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l - .2) c h),0 1px 2px oklch(from var(--tcs-shadow) l c h / .32),0 12px 20px -6px oklch(from var(--tcs-shadow) l c h / .5))}
:where(.cf-two-choices-close-6) .tcs-btn.is-active,:where(.cf-two-choices-close-6) .tcs-btn:not(:disabled):active{transform:translateY(1px);background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l - .06) c h),oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l - .10) c h));box-shadow:var(--button-shadow,inset 0 2px 3px oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l - .22) c h / .6),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta,#c8102e)) calc(l - .16) c h),0 1px 2px oklch(from var(--tcs-shadow) l c h / .3))}
:where(.cf-two-choices-close-6) .tcs-btn:focus-visible{outline:3px solid var(--accent,#0f5fc2);outline-offset:3px}
:where(.cf-two-choices-close-6) .tcs-btn[aria-busy='true']{cursor:progress}
:where(.cf-two-choices-close-6) .tcs-btn:disabled{cursor:not-allowed;background:var(--button-2-bg,var(--secondary,#e8ebf0));color:var(--button-2-ink,var(--secondary-ink,#101828));border-color:var(--button-2-border,transparent);text-shadow:none;transform:none;box-shadow:var(--button-2-shadow, var(--shadow-sm))}
:where(.cf-two-choices-close-6) .tcs-spin{position:absolute;right:20px;top:50%;width:22px;height:22px;margin-top:-11px;animation:tcs-spin .8s linear infinite}
@keyframes tcs-spin{to{transform:rotate(360deg)}}
:where(.cf-two-choices-close-6) .tcs-err{display:flex;gap:10px;align-items:flex-start;margin:12px 0 0;padding:12px 14px;border-radius:10px;background:var(--danger-soft,#fdecea);color:var(--danger,#b42318);font-size:1rem;font-weight:600;line-height:1.4;text-align:left}
:where(.cf-two-choices-close-6) .tcs-err svg{width:20px;height:20px;flex:none;margin-top:1px}
:where(.cf-two-choices-close-6) .tcs-guar{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:20px}
:where(.cf-two-choices-close-6) .tcs-guar img{width:56px;height:56px;object-fit:contain;flex:none;filter:drop-shadow(0 1px 2px oklch(from var(--tcs-shadow) l c h / .3)) drop-shadow(0 6px 8px oklch(from var(--tcs-shadow) l c h / .22))}
:where(.cf-two-choices-close-6) .tcs-guar img[data-matte]{filter:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='matte' color-interpolation-filters='sRGB'%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 -100 -100 -100 298 0'/%3E%3C/filter%3E%3C/svg%3E#matte") drop-shadow(0 1px 2px oklch(from var(--tcs-shadow) l c h / .3)) drop-shadow(0 6px 8px oklch(from var(--tcs-shadow) l c h / .22))}
:where(.cf-two-choices-close-6) .tcs-seal-f{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;background:var(--success,#1d7a3a);color:var(--success-ink,#fff);box-shadow:var(--tcs-sm)}
:where(.cf-two-choices-close-6) .tcs-seal-f svg{width:22px;height:22px}
:where(.cf-two-choices-close-6) .tcs-guar p{font-family:var(--font-body,Arial,sans-serif);font-weight:700;font-size:1rem;line-height:1.35;color:var(--ink,#101828);text-align:left;text-wrap:pretty}
@media(min-width:900px){:where(.cf-two-choices-close-6) .tcs-stage{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:clamp(32px,4vw,48px)}:where(.cf-two-choices-close-6) .tcs-one{position:sticky;top:32px}}
@media(max-width:520px){:where(.cf-two-choices-close-6) .tcs-rail{--tcs-node:34px;margin-top:28px}:where(.cf-two-choices-close-6) .tcs-stop{gap:12px}:where(.cf-two-choices-close-6) .tcs-node svg{width:18px;height:18px}:where(.cf-two-choices-close-6) .tcs-item{padding:12px}:where(.cf-two-choices-close-6) .tcs-item.has-img{grid-template-columns:48px minmax(0,1fr)}:where(.cf-two-choices-close-6) .tcs-thumb{width:48px;height:48px}:where(.cf-two-choices-close-6) .tcs-item.has-img .tcs-item-v{grid-column:2}:where(.cf-two-choices-close-6) .tcs-item-v{display:flex;gap:6px;align-items:baseline;text-align:left;padding-top:0}:where(.cf-two-choices-close-6) .tcs-item-v strong,:where(.cf-two-choices-close-6) .tcs-item-v span{display:inline;margin:0}:where(.cf-two-choices-close-6) .tcs-total{padding:12px 12px 0}:where(.cf-two-choices-close-6) .tcs-btn{min-height:64px;padding:14px 20px}:where(.cf-two-choices-close-6) .tcs-spin{right:12px;width:20px;height:20px;margin-top:-10px}}
@media(prefers-reduced-motion:reduce){:where(.cf-two-choices-close-6) .tcs-btn{transition:none}:where(.cf-two-choices-close-6) .tcs-btn.is-hover,:where(.cf-two-choices-close-6) .tcs-btn:not(:disabled):hover,:where(.cf-two-choices-close-6) .tcs-btn.is-active,:where(.cf-two-choices-close-6) .tcs-btn:not(:disabled):active{transform:none}:where(.cf-two-choices-close-6) .tcs-spin{animation:none}:where(.cf-two-choices-close-6) .tcs-seg{clip-path:none!important}}
`
export { TwoChoicesClose6 as TwoChoicesStage }
export type TwoChoicesStageProps = TwoChoicesClose6Props
export type TwoChoicesStageState = TwoChoicesClose6State
pieces/content/two-choices-close-6/specimen.tsx 34 lines
import __studioImage0c64213e from '../assets/9e1fca8675050557.webp'
import __studioImagebbc4229b from '../assets/53b478d22ed7e0a4.webp'
import __studioImage97a66d7b from '../assets/089b4e715a3c78ab.webp'
import * as React from 'react'
import { TwoChoicesClose6, type TwoChoicesClose6State } from '../two-choices-close-6'
import { slot } from '../../slots'
import defaults from '../../studio-defaults.json'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function TwoChoicesClose6Specimen({ state = 'default' }: { state?: string }) {
const s = defaults.sample
return (
<TwoChoicesClose6
state={state as TwoChoicesClose6State}
sceneImage={slot('scene', __studioImage0c64213e)}
sceneImageAlt='A cluttered desk at night with a blank document on the laptop'
twoTitle={s.headline}
productName={s.name}
reason='Get the guide, workbook, and checklist in one download.'
items={s.items.map((item, i) => ({ ...item, itemImage: slot(`item-${i + 1}`, item.image) }))}
todayLabel={s.todayLabel}
regularPrice={s.regularPrice}
price={s.price}
note={s.note}
stepLabel={s.sublabel}
ctaLabel={s.label}
guarantee={s.guarantee}
sealGuaranteeImage={slot('seal-guarantee', __studioImagebbc4229b)}
sealGuaranteeImageAlt=''
textureImage={slot('texture', __studioImage97a66d7b)}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalTwoChoicesClose6 |
string |
Default 'You have two choices.'
|
emphasis OptionalTwoChoicesClose6 |
string |
Default 'two choices'
|
lead OptionalTwoChoicesClose6 |
string |
Default 'Close this page and nothing changes. Or take the plan and start building your first funnel today.'
|
oneLabel OptionalTwoChoicesClose6 |
string |
Default 'Choice one'
|
oneTitle OptionalTwoChoicesClose6 |
string |
Default 'Keep doing what you’re doing'
|
oneBody OptionalTwoChoicesClose6 |
string |
Default 'Keep piecing together your funnel, your page copy and your launch steps on your own.'
|
onePoints OptionalTwoChoicesClose6 |
(string | { text: string })[] |
Default DEFAULT_POINTS
|
oneCostLabel OptionalTwoChoicesClose6 |
string |
Default 'The cost:'
|
oneCost OptionalTwoChoicesClose6 |
string |
Default 'your funnel stays a someday project.'
|
oneImage OptionalTwoChoicesClose6 |
string |
|
sceneImage OptionalTwoChoicesClose6 |
string |
Default oneImage
|
oneImageAlt OptionalTwoChoicesClose6 |
string |
|
sceneImageAlt OptionalTwoChoicesClose6 |
string |
Default oneImageAlt === undefined ? '' : oneImageAlt
|
twoLabel OptionalTwoChoicesClose6 |
string |
Default 'Choice two'
|
twoTitle OptionalTwoChoicesClose6 |
string |
Default 'Build your first funnel with a clear plan'
|
productName OptionalTwoChoicesClose6 |
string |
Default 'The Funnel Starter Kit'
|
reason OptionalTwoChoicesClose6 |
string |
Default 'Get the guide, workbook, and checklist in one download.'
|
itemsTitle OptionalTwoChoicesClose6 |
string |
Default 'Everything in the kit'
|
items OptionalTwoChoicesClose6 |
ChoiceItem[] |
Default []
|
totalLabel OptionalTwoChoicesClose6 |
string |
Default 'Total value'
|
totalValue OptionalTwoChoicesClose6 |
string |
|
todayLabel OptionalTwoChoicesClose6 |
string |
Default 'Get the complete kit for'
|
regularPriceLabel OptionalTwoChoicesClose6 |
string |
Default 'Regular price '
|
todayPriceLabel OptionalTwoChoicesClose6 |
string |
Default 'Today '
|
regularPrice OptionalTwoChoicesClose6 |
string |
|
price OptionalTwoChoicesClose6 |
string |
Default '$47'
|
note OptionalTwoChoicesClose6 |
string |
|
stepLabel OptionalTwoChoicesClose6 |
string |
|
ctaLabel OptionalTwoChoicesClose6 |
string |
Default 'Yes! Give Me Access'
|
loadingLabel OptionalTwoChoicesClose6 |
string |
Default 'Opening secure checkout…'
|
valueSuffix OptionalTwoChoicesClose6 |
string |
Default 'value'
|
saveLabel OptionalTwoChoicesClose6 |
string |
Default 'Save'
|
guarantee OptionalTwoChoicesClose6 |
string |
|
sealImage OptionalTwoChoicesClose6 |
string |
|
sealGuaranteeImage OptionalTwoChoicesClose6 |
string |
Default sealImage
|
sealImageAlt OptionalTwoChoicesClose6 |
string |
|
sealGuaranteeImageAlt OptionalTwoChoicesClose6 |
string |
Default sealImageAlt === undefined ? '' : sealImageAlt
|
matteWhite OptionalTwoChoicesClose6 |
boolean |
Default false
|
backgroundImage OptionalTwoChoicesClose6 |
string |
|
textureImage OptionalTwoChoicesClose6 |
string |
Default backgroundImage
|
successTitle OptionalTwoChoicesClose6 |
string |
|
successMessage OptionalTwoChoicesClose6 |
string |
|
errorMessage OptionalTwoChoicesClose6 |
string |
Default 'We couldn’t open checkout. Please try again.'
|
state OptionalTwoChoicesClose6 |
TwoChoicesClose6State |
Default 'default'
|
disabled OptionalTwoChoicesClose6 |
boolean |
Default false
|
href OptionalTwoChoicesClose6 |
string |
|
onAction OptionalTwoChoicesClose6 |
() => void | boolean | Promise<void | boolean> |
|
id OptionalTwoChoicesClose6 |
string |
|
className OptionalTwoChoicesClose6 |
string |
Default ''
|
headline OptionalTwoChoicesStage |
string |
|
emphasis OptionalTwoChoicesStage |
string |
|
lead OptionalTwoChoicesStage |
string |
|
oneLabel OptionalTwoChoicesStage |
string |
|
oneTitle OptionalTwoChoicesStage |
string |
|
oneBody OptionalTwoChoicesStage |
string |
|
onePoints OptionalTwoChoicesStage |
(string | { text: string })[] |
|
oneCostLabel OptionalTwoChoicesStage |
string |
|
oneCost OptionalTwoChoicesStage |
string |
|
oneImage OptionalTwoChoicesStage |
string |
|
sceneImage OptionalTwoChoicesStage |
string |
|
oneImageAlt OptionalTwoChoicesStage |
string |
|
sceneImageAlt OptionalTwoChoicesStage |
string |
|
twoLabel OptionalTwoChoicesStage |
string |
|
twoTitle OptionalTwoChoicesStage |
string |
|
productName OptionalTwoChoicesStage |
string |
|
reason OptionalTwoChoicesStage |
string |
|
itemsTitle OptionalTwoChoicesStage |
string |
|
items OptionalTwoChoicesStage |
ChoiceItem[] |
|
totalLabel OptionalTwoChoicesStage |
string |
|
totalValue OptionalTwoChoicesStage |
string |
|
todayLabel OptionalTwoChoicesStage |
string |
|
regularPriceLabel OptionalTwoChoicesStage |
string |
|
todayPriceLabel OptionalTwoChoicesStage |
string |
|
regularPrice OptionalTwoChoicesStage |
string |
|
price OptionalTwoChoicesStage |
string |
|
note OptionalTwoChoicesStage |
string |
|
stepLabel OptionalTwoChoicesStage |
string |
|
ctaLabel OptionalTwoChoicesStage |
string |
|
loadingLabel OptionalTwoChoicesStage |
string |
|
valueSuffix OptionalTwoChoicesStage |
string |
|
saveLabel OptionalTwoChoicesStage |
string |
|
guarantee OptionalTwoChoicesStage |
string |
|
sealImage OptionalTwoChoicesStage |
string |
|
sealGuaranteeImage OptionalTwoChoicesStage |
string |
|
sealImageAlt OptionalTwoChoicesStage |
string |
|
sealGuaranteeImageAlt OptionalTwoChoicesStage |
string |
|
matteWhite OptionalTwoChoicesStage |
boolean |
|
backgroundImage OptionalTwoChoicesStage |
string |
|
textureImage OptionalTwoChoicesStage |
string |
|
successTitle OptionalTwoChoicesStage |
string |
|
successMessage OptionalTwoChoicesStage |
string |
|
errorMessage OptionalTwoChoicesStage |
string |
|
state OptionalTwoChoicesStage |
TwoChoicesClose6State |
|
disabled OptionalTwoChoicesStage |
boolean |
|
href OptionalTwoChoicesStage |
string |
|
onAction OptionalTwoChoicesStage |
() => void | boolean | Promise<void | boolean> |
|
id OptionalTwoChoicesStage |
string |
|
className OptionalTwoChoicesStage |
string |
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-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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
scene- A wide atmosphere photo behind or beside the copy.
seal-guarantee- The money-back guarantee seal, on a transparent background.
texture- A subtle background texture.
-
089b4e715a3c78ab.webp
image/webp · 34.5 KB
-
53b478d22ed7e0a4.webp
image/webp · 277 KB
-
9e1fca8675050557.webp
image/webp · 40.7 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB