Bridge Page 2
Russell's two choices as a bridge: a quiet half holds the path the visitor is on now (a plain decline link),
Use it in a prompt
Use hero/bridge-page-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/hero/bridge-page-2.tsx. - Import it and pass your copy and images (Props tab):
import { BridgePage2 } from "@/components/funneldna/hero/bridge-page-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/bridge-page-2/component.tsx 468 lines
// layout: split-contrast
// Russell's two choices as a bridge: a quiet half holds the path the visitor is on now (a plain decline link),
// a bold action-colour half holds the host's reason, a coupon and the continue button, so the next click is the obvious one.
import * as React from 'react'
import { AlertCircle, Loader2, Scissors, ShieldCheck } from 'lucide-react'
import { FX_HOST, Pattern } from '../fx/fx'
/** States the piece implements; hover and active can be forced for previews and lean the split toward the action. */
export type BridgePage2State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
/** Which of the two choices the visitor took. */
export type BridgePage2Intent = 'continue' | 'decline'
export type BridgePage2Props = {
/** Headline over both halves; wrap the key phrase in **double asterisks** to set it in the accent colour */
headline?: string
/** One medium-weight line under the headline; supports **bold** */
lead?: string
/** Big numeral on the action half */
continueNumber?: string
/** Big numeral on the quiet half */
declineNumber?: string
/** Word in the disc between the halves (desktop only) */
orLabel?: string
/** Host portrait (src string, slot: presenter), shown small on the action half */
presenterImage?: string
/** Alt text for the host portrait */
presenterAlt?: string
/** Host name beside the portrait; empty hides it */
hostName?: string
/** Quiet line under the host name */
hostRole?: string
/** The question the action half asks; the button answers it. Supports **bold** */
question?: string
/** The host's two-line reason, one line per entry (the first two are used); supports **bold** */
reason?: string[]
/** Saving printed big on the dashed coupon; empty hides the coupon */
couponTitle?: string
/** Line beside the saving on the coupon */
couponText?: string
/** Words before today's price */
priceLabel?: string
/** Today's price under the coupon; empty hides it */
price?: string
/** Continue button label: the answer to the question, first person */
ctaLabel?: string
/** Shorter label for narrow phones so the button stays on one line */
ctaShortLabel?: string
/** One short line under the button */
ctaNote?: string
/** Show a shield beside ctaNote (use it when the note names a guarantee) */
noteIcon?: boolean
/** P.S. line under the action; supports **bold**; empty hides it */
psLine?: string
/** Heading on the quiet half (hidden on phones, where only the decline line shows) */
declineTitle?: string
/** Optional line under it; empty hides it */
declineText?: string
/** The plain decline link: the path the visitor is on now */
declineLabel?: string
/** Navigation destination of the continue button; without it the button only calls onAction */
href?: string
/** Navigation destination of the decline link; without it the link only calls onAction */
declineHref?: string
/** Button label while an onAction promise is pending */
loadingLabel?: string
/** Message under the button when the action fails */
errorText?: string
/** Turns the continue button into a quiet, inactive control */
disabled?: boolean
/** Line under the button while disabled */
disabledNote?: string
/** Stops the links navigating so onAction handles the click (previews, builders) */
preventNavigation?: boolean
/** Called with the intent of the click. When the continue click stays on the page, a returned promise shows loadingLabel; a rejection shows errorText. */
onAction?: (intent: BridgePage2Intent, event: React.MouseEvent<HTMLElement>) => void | Promise<void>
/** Force the split to lean toward one choice (previews) */
lean?: BridgePage2Intent
/** Forced visual state for previews */
state?: BridgePage2State
/** Section id for in-page anchors */
id?: string
/** Root class for page-level placement */
className?: string
}
export function BridgePage2(props: BridgePage2Props) {
const {
headline = 'Right now, you have **two choices**.',
lead = 'One keeps things exactly as they are. The other starts changing them today.',
continueNumber = '2',
declineNumber = '1',
orLabel = 'or',
presenterImage,
presenterAlt = 'Portrait of your host',
hostName = '',
hostRole = '',
question = 'Ready to do it the easier way?',
reason = ['The next page shows you the plan, step by step.', 'You can start on it today.'],
couponTitle = '',
couponText = '',
priceLabel = 'Your price today',
price = '',
ctaLabel = 'I’m ready, show me how',
ctaShortLabel,
ctaNote = 'Takes you straight to the next page',
noteIcon = false,
psLine = '',
declineTitle = 'Stay where you are',
declineText = '',
declineLabel = 'No thanks, I’ll close this tab and keep doing it the hard way',
href = '#continue',
declineHref,
loadingLabel = 'Opening…',
errorText = 'That page didn’t open. Tap the button to try again.',
disabled = false,
disabledNote = 'The next page opens here as soon as it’s ready.',
preventNavigation = false,
onAction,
lean,
state = 'default',
id,
className,
} = props
const uid = React.useId().replace(/:/g, '')
const headId = 'cfb2-h-' + uid
const msgId = 'cfb2-m-' + uid
const [phase, setPhase] = React.useState<'idle' | 'loading' | 'error'>('idle')
const [hoverLean, setHoverLean] = React.useState<BridgePage2Intent | null>(null)
const mounted = React.useRef(true)
React.useEffect(() => {
setPhase('idle')
}, [state])
React.useEffect(() => {
mounted.current = true
const reset = () => setPhase('idle')
window.addEventListener('pageshow', reset)
return () => {
mounted.current = false
window.removeEventListener('pageshow', reset)
}
}, [])
const isDisabled = disabled || state === 'disabled'
const loading = !isDisabled && phase === 'loading'
const failed = !isDisabled && !loading && (phase === 'error' || state === 'error')
const force = !isDisabled && (state === 'hover' || state === 'active') ? state : undefined
// Signature: the split leans toward the half the visitor is pointing at or focused in; the other half recedes.
const activeLean = lean ?? hoverLean ?? (force ? 'continue' : undefined)
const run = async (intent: BridgePage2Intent, event: React.MouseEvent<HTMLElement>) => {
const isLink = intent === 'continue' ? Boolean(href) : Boolean(declineHref)
if (intent === 'continue' && (isDisabled || loading)) {
event.preventDefault()
return
}
if (preventNavigation && isLink) event.preventDefault()
if (intent === 'decline' && !declineHref) event.preventDefault()
if (intent === 'continue') setPhase('idle')
try {
const result: unknown = onAction?.(intent, event)
if (!isThenable(result)) return
if (intent === 'continue' && (!isLink || event.defaultPrevented)) setPhase('loading')
await result
if (mounted.current && intent === 'continue') setPhase('idle')
} catch {
if (mounted.current && intent === 'continue') setPhase('error')
}
}
const enter = (intent: BridgePage2Intent) => (event: React.PointerEvent<HTMLDivElement>) => {
if (event.pointerType !== 'touch') setHoverLean(intent)
}
const leave = () => setHoverLean(null)
const focusIn = (intent: BridgePage2Intent) => () => setHoverLean(intent)
const focusOut = (event: React.FocusEvent<HTMLDivElement>) => {
if (!event.currentTarget.contains(event.relatedTarget as Node | null)) setHoverLean(null)
}
const message = isDisabled ? disabledNote : failed ? errorText : ctaNote
const showShield = noteIcon && !isDisabled && !failed
// Notes like "Instant access · 30-day money-back guarantee" wrap at the dot, never inside a phrase.
const noteParts = message ? message.split(' · ') : []
const noteIcons = (
<>
{failed ? <AlertCircle aria-hidden='true' strokeWidth={2.5} /> : null}
{showShield ? <ShieldCheck aria-hidden='true' strokeWidth={2.5} /> : null}
</>
)
const ctaInner = loading ? (
<>
<Loader2 className='cfb2-spin' aria-hidden='true' strokeWidth={2.5} />
<span>{loadingLabel}</span>
</>
) : ctaShortLabel ? (
<>
<span className='cfb2-full'>{ctaLabel}</span>
<span className='cfb2-short'>{ctaShortLabel}</span>
</>
) : (
<span>{ctaLabel}</span>
)
const ctaProps = {
'data-force': force,
'aria-disabled': isDisabled || undefined,
'aria-busy': loading || undefined,
'aria-describedby': message ? msgId : undefined,
onClick: (event: React.MouseEvent<HTMLElement>) => run('continue', event),
}
const declineProps = {
onClick: (event: React.MouseEvent<HTMLElement>) => run('decline', event),
}
const lines = reason.slice(0, 2).filter(Boolean)
const showHost = Boolean(presenterImage || hostName)
return (
<section
id={id}
className={['cf-bridge-page-2', className].filter(Boolean).join(' ')}
style={FX_HOST}
aria-labelledby={headId}
data-lean={activeLean}
data-disabled={isDisabled ? '' : undefined}
>
<style>{CSS}</style>
<Pattern name='grid' fade='top' />
<div className='cfb2-in'>
<header className='cfb2-head cfb2-rv'>
<h1 id={headId} className='cfb2-h1'>
{rich(headline)}
</h1>
{lead ? <p className='cfb2-lead'>{rich(lead)}</p> : null}
</header>
<div className='cfb2-split'>
<div
className='cfb2-pane cfb2-yes cfb2-rv'
style={{ '--i': 1 } as React.CSSProperties}
onPointerEnter={enter('continue')}
onPointerLeave={leave}
onFocus={focusIn('continue')}
onBlur={focusOut}
>
<div className='cfb2-top'>
<span className='cfb2-num' aria-hidden='true'>
{continueNumber}
</span>
{showHost ? (
<div className='cfb2-host'>
{presenterImage ? <img src={presenterImage} alt={presenterAlt} width={128} height={128} decoding='async' /> : null}
{hostName ? (
<span className='cfb2-host-t'>
<strong>{hostName}</strong>
{hostRole ? <span>{hostRole}</span> : null}
</span>
) : null}
</div>
) : null}
</div>
<h2 className='cfb2-q'>{rich(question)}</h2>
{lines.length ? (
<p className='cfb2-reason'>
{lines.map((line, index) => (
<React.Fragment key={index}>
{index ? ' ' : null}
{rich(line)}
</React.Fragment>
))}
</p>
) : null}
{price || couponTitle ? (
<div className='cfb2-price'>
{price && priceLabel ? <span className='cfb2-plabel'>{priceLabel}</span> : null}
<div className='cfb2-prow'>
{price ? <span className='cfb2-pnum'>{price}</span> : null}
{couponTitle ? (
<span className='cfb2-coupon'>
<Scissors aria-hidden='true' strokeWidth={2.5} />
<strong className='cfb2-ctitle'>{couponTitle}</strong>
{couponText ? <span className='cfb2-ctext'>{couponText}</span> : null}
</span>
) : null}
</div>
</div>
) : null}
{href ? (
<a href={href} className='cfb2-btn' {...ctaProps}>
{ctaInner}
</a>
) : (
<button type='button' className='cfb2-btn' {...ctaProps}>
{ctaInner}
</button>
)}
{message ? (
<p id={msgId} className='cfb2-note' data-tone={failed ? 'error' : undefined} role={failed ? 'alert' : undefined} aria-live='polite'>
{noteParts.length > 1 ? (
noteParts.map((part, index) => (
<React.Fragment key={index}>
{index ? ' · ' : null}
<span className='cfb2-seg'>
{index === 0 ? noteIcons : null}
{part}
</span>
</React.Fragment>
))
) : (
<>
{noteIcons}
{message}
</>
)}
</p>
) : null}
{psLine ? <p className='cfb2-ps'>{rich(psLine)}</p> : null}
</div>
<div
className='cfb2-pane cfb2-no cfb2-rv'
style={{ '--i': 2 } as React.CSSProperties}
onPointerEnter={enter('decline')}
onPointerLeave={leave}
onFocus={focusIn('decline')}
onBlur={focusOut}
>
{orLabel ? (
<span className='cfb2-or' aria-hidden='true'>
{orLabel}
</span>
) : null}
<span className='cfb2-num' aria-hidden='true'>
{declineNumber}
</span>
{declineTitle ? <h2 className='cfb2-dt'>{declineTitle}</h2> : null}
{declineText ? <p className='cfb2-dtext'>{declineText}</p> : null}
<div className='cfb2-dwrap'>
<a href={declineHref ?? '#'} className='cfb2-decline' {...declineProps}>
{declineLabel}
</a>
</div>
</div>
</div>
</div>
</section>
)
}
export default BridgePage2
function rich(text: string): React.ReactNode {
return text.split('**').map((part, index) =>
index % 2 ? <strong key={index}>{part}</strong> : <React.Fragment key={index}>{part}</React.Fragment>,
)
}
function isThenable(value: unknown): value is PromiseLike<unknown> {
return typeof value === 'object' && value !== null && typeof (value as { then?: unknown }).then === 'function'
}
// The action half is the action colour itself, so its button is the inverse pair (--cta-ink fill, --cta text):
// the same two tokens the theme already fits to 4.5:1, so the button stays readable under every theme.
// Errors on the action half use --cta-ink (status colours are not fitted to the action colour).
const CSS = `
.cf-bridge-page-2{--b2-act:var(--button-bg,var(--cta,oklch(0.576 0.209 29.5)));--b2-act-ink:var(--button-ink,var(--cta-ink,#ffffff));--b2-sh:var(--shadow,oklch(0.22 0.03 256));--b2-radius:var(--card-radius,var(--radius,14px));position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;background:var(--surface,#ffffff);color:var(--ink,#1a2233);font-family:var(--font-body,system-ui,sans-serif);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-bridge-page-2 *,.cf-bridge-page-2 *::before,.cf-bridge-page-2 *::after{box-sizing:border-box}
.cf-bridge-page-2 .cfb2-in{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-bridge-page-2 .cfb2-head{max-width:46rem;margin:0 auto clamp(32px,4.5vw,56px);text-align:center}
.cf-bridge-page-2 .cfb2-h1{margin:0;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;color:var(--ink,#1a2233);text-wrap:balance}
.cf-bridge-page-2 .cfb2-h1 strong{font-weight:inherit;color:var(--accent,#2557c7)}
.cf-bridge-page-2 .cfb2-lead{margin:clamp(14px,1.6vw,22px) auto 0;max-width:40rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted,#4b5563);text-wrap:pretty}
.cf-bridge-page-2 .cfb2-lead strong{color:var(--ink,#1a2233);font-weight:700}
.cf-bridge-page-2 .cfb2-split{position:relative;display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.3fr);gap:28px;align-items:stretch}
.cf-bridge-page-2 .cfb2-pane{position:relative;border-radius:var(--b2-radius);padding:clamp(24px,3.4vw,48px);transition:transform .32s cubic-bezier(.2,.7,.2,1),box-shadow .32s ease,background-color .32s ease,border-color .32s ease,filter .32s ease}
.cf-bridge-page-2 .cfb2-yes{grid-column:2;grid-row:1;z-index:1;display:flex;flex-direction:column;align-items:flex-start;background:var(--b2-act);color:var(--b2-act-ink);box-shadow:inset 0 1px 0 oklch(from var(--b2-act) calc(l + .1) c h / .6),var(--shadow-lg,0 2px 4px oklch(from var(--b2-sh) l c h / .22),0 12px 24px -8px oklch(from var(--b2-sh) l c h / .32))}
.cf-bridge-page-2 .cfb2-no{grid-column:1;grid-row:1;align-self:start;z-index:2;display:flex;flex-direction:column;align-items:flex-start;background:color-mix(in oklch,var(--ink,#1a2233) 4%,var(--surface,#ffffff));border:1px solid oklch(from var(--ink,#1a2233) l c h / .1)}
.cf-bridge-page-2 .cfb2-or{position:absolute;top:50%;right:-40px;z-index:3;display:grid;place-items:center;width:52px;height:52px;margin-top:-26px;border-radius:999px;background:var(--card,#ffffff);color:var(--ink,#1a2233);border:1px solid oklch(from var(--ink,#1a2233) l c h / .12);box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--b2-sh) l c h / .22),0 4px 10px -2px oklch(from var(--b2-sh) l c h / .2));font-family:var(--font-display,inherit);font-weight:800;font-size:.875rem;line-height:1;letter-spacing:.08em;text-transform:uppercase}
.cf-bridge-page-2 .cfb2-num{display:block;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.cf-bridge-page-2 .cfb2-no .cfb2-num{margin-bottom:16px;color:var(--muted,#4b5563)}
.cf-bridge-page-2 .cfb2-top{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;margin-bottom:20px}
.cf-bridge-page-2 .cfb2-host{display:flex;align-items:center;gap:12px;min-width:0}
.cf-bridge-page-2 .cfb2-host img{display:block;flex:0 0 auto;width:64px;height:64px;border-radius:12px;object-fit:cover;object-position:50% 30%}
.cf-bridge-page-2 .cfb2-host-t{display:flex;flex-direction:column;min-width:0;font-size:.9375rem;line-height:1.35;font-weight:500}
.cf-bridge-page-2 .cfb2-host-t strong{font-weight:800}
.cf-bridge-page-2 .cfb2-q{margin:0 0 16px;font-family:var(--font-display,inherit);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;text-wrap:balance}
.cf-bridge-page-2 .cfb2-q strong{font-weight:inherit}
.cf-bridge-page-2 .cfb2-reason{max-width:38rem;margin:0 0 28px;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty}
.cf-bridge-page-2 .cfb2-reason strong{font-weight:800}
.cf-bridge-page-2 .cfb2-price{display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:100%;margin:0 0 24px}
.cf-bridge-page-2 .cfb2-plabel{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-bridge-page-2 .cfb2-prow{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;max-width:100%}
.cf-bridge-page-2 .cfb2-pnum{font-family:var(--font-display,inherit);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.cf-bridge-page-2 .cfb2-coupon{display:inline-block;max-width:100%;padding:6px 14px;border:1.5px solid oklch(from var(--b2-act-ink) l c h / .55);border-radius:18px;font-size:.9375rem;line-height:1.35;font-weight:600;text-wrap:pretty}
.cf-bridge-page-2 .cfb2-coupon svg{display:inline-block;width:16px;height:16px;vertical-align:-.15em;margin-inline-end:.4em}
.cf-bridge-page-2 .cfb2-ctitle{font-family:var(--font-display,inherit);font-weight:800;font-size:1.0625rem;letter-spacing:-.01em;margin-inline-end:.3em}
.cf-bridge-page-2 .cfb2-btn{--bb:var(--button-ink,var(--cta-ink,#ffffff));--bi:var(--button-bg,var(--cta,oklch(0.576 0.209 29.5)));appearance:none;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:72px;margin:0;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:var(--bb);color:var(--bi);font-family:var(--button-font,var(--font-display,inherit));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-decoration:none;text-wrap:balance;text-shadow:none;cursor:pointer;box-shadow:inset 0 1px 0 oklch(from var(--bb) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--bb) calc(l - .09) c h / .9),0 1px 2px oklch(from var(--b2-sh) l c h / .32),0 8px 16px -6px oklch(from var(--b2-sh) l c h / .45);transition:transform .16s ease,box-shadow .16s ease;-webkit-tap-highlight-color:transparent}
.cf-bridge-page-2 .cfb2-btn svg{flex:0 0 auto;width:20px;height:20px}
.cf-bridge-page-2 .cfb2-btn:hover,.cf-bridge-page-2 .cfb2-btn[data-force=hover]{transform:translateY(-2px);box-shadow:inset 0 0 0 2px oklch(from var(--bi) l c h / .22),inset 0 -3px 0 oklch(from var(--bb) calc(l - .09) c h / .9),0 1px 2px oklch(from var(--b2-sh) l c h / .34),0 12px 22px -8px oklch(from var(--b2-sh) l c h / .55)}
.cf-bridge-page-2 .cfb2-btn:active,.cf-bridge-page-2 .cfb2-btn[data-force=active]{transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--b2-sh) l c h / .28),inset 0 -2px 0 oklch(from var(--bb) calc(l - .09) c h / .9),0 1px 2px oklch(from var(--b2-sh) l c h / .3)}
.cf-bridge-page-2 .cfb2-btn:focus-visible{outline:3px solid var(--bb);outline-offset:4px}
.cf-bridge-page-2 .cfb2-btn[aria-disabled=true]{cursor:not-allowed;filter:grayscale(1);transform:none;box-shadow:inset 0 0 0 1px oklch(from var(--bb) calc(l - .2) c h / .4)}
.cf-bridge-page-2 .cfb2-btn[aria-busy=true]{cursor:progress}
.cf-bridge-page-2 .cfb2-short{display:none}
.cf-bridge-page-2 .cfb2-note{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-bridge-page-2 .cfb2-note svg{display:inline-block;width:16px;height:16px;vertical-align:-.15em;margin-inline-end:.4em}
.cf-bridge-page-2 .cfb2-note[data-tone=error]{font-weight:800}
.cf-bridge-page-2 .cfb2-seg{white-space:nowrap}
.cf-bridge-page-2 .cfb2-ps{margin:20px 0 0;font-size:.9375rem;line-height:1.45;font-weight:500;text-wrap:pretty}
.cf-bridge-page-2 .cfb2-ps strong{font-weight:800}
.cf-bridge-page-2 .cfb2-dt{margin:0 0 8px;font-family:var(--font-display,inherit);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;color:var(--ink,#1a2233);text-wrap:balance}
.cf-bridge-page-2 .cfb2-dtext{margin:0;font-size:.9375rem;line-height:1.45;font-weight:500;color:var(--muted,#4b5563);text-wrap:pretty}
.cf-bridge-page-2 .cfb2-dwrap{margin-top:0;padding-top:20px}
.cf-bridge-page-2 .cfb2-decline{appearance:none;display:inline-flex;align-items:center;min-height:44px;margin:0;padding:6px 0;border:0;background:none;font:inherit;font-size:.9375rem;line-height:1.4;font-weight:600;text-align:left;color:var(--muted,#4b5563);text-decoration:underline;text-decoration-color:oklch(from var(--muted,#4b5563) l c h / .5);text-underline-offset:.18em;cursor:pointer;text-wrap:pretty;transition:color .16s ease,text-decoration-color .16s ease}
.cf-bridge-page-2 .cfb2-decline:hover{color:var(--ink,#1a2233);text-decoration-color:currentColor}
.cf-bridge-page-2 .cfb2-decline:focus-visible{outline:3px solid var(--field-focus,var(--accent,#2557c7));outline-offset:4px;border-radius:6px}
@media (min-width:860px){
.cf-bridge-page-2[data-lean=decline] .cfb2-no{background:var(--card,#ffffff);border-color:oklch(from var(--ink,#1a2233) l c h / .18);box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--b2-sh) l c h / .22),0 4px 10px -2px oklch(from var(--b2-sh) l c h / .2))}
.cf-bridge-page-2[data-lean=decline] .cfb2-decline{color:var(--ink,#1a2233);text-decoration-color:currentColor}
.cf-bridge-page-2[data-lean=decline] .cfb2-yes{filter:saturate(.45);box-shadow:var(--shadow-sm,0 1px 1px oklch(from var(--b2-sh) l c h / .18),0 1px 3px oklch(from var(--b2-sh) l c h / .14))}
.cf-bridge-page-2[data-lean=continue] .cfb2-no{background:color-mix(in oklch,var(--ink,#1a2233) 2%,var(--surface,#ffffff));border-color:oklch(from var(--ink,#1a2233) l c h / .06)}
}
@media (min-width:860px) and (prefers-reduced-motion:no-preference){
.cf-bridge-page-2[data-lean=continue] .cfb2-yes{transform:translateY(-6px)}
.cf-bridge-page-2[data-lean=continue] .cfb2-no{transform:translateX(-8px) scale(.965)}
.cf-bridge-page-2[data-lean=decline] .cfb2-no{transform:translateY(-6px)}
.cf-bridge-page-2[data-lean=decline] .cfb2-yes{transform:translateX(8px) scale(.975)}
}
@media (max-width:859.98px){
.cf-bridge-page-2 .cfb2-split{grid-template-columns:minmax(0,1fr);gap:12px}
.cf-bridge-page-2 .cfb2-yes,.cf-bridge-page-2 .cfb2-no{grid-column:auto;grid-row:auto}
.cf-bridge-page-2 .cfb2-no{align-items:center;padding:4px 8px 0;background:none;border:0;text-align:center}
.cf-bridge-page-2 .cfb2-no .cfb2-num,.cf-bridge-page-2 .cfb2-dt,.cf-bridge-page-2 .cfb2-dtext,.cf-bridge-page-2 .cfb2-or{display:none}
.cf-bridge-page-2 .cfb2-dwrap{margin-top:0;padding-top:0}
.cf-bridge-page-2 .cfb2-decline{justify-content:center;text-align:center}
}
@media (max-width:520px){
.cf-bridge-page-2 .cfb2-full{display:none}
.cf-bridge-page-2 .cfb2-short{display:inline}
.cf-bridge-page-2 .cfb2-btn{padding:12px 20px}
}
@media (prefers-reduced-motion:no-preference){
.cf-bridge-page-2 .cfb2-rv{animation:cfb2-rise .45s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:calc(var(--i,0) * .07s)}
.cf-bridge-page-2 .cfb2-spin{animation:cfb2-spin .8s linear infinite}
}
@media (prefers-reduced-motion:reduce){
.cf-bridge-page-2 .cfb2-pane,.cf-bridge-page-2 .cfb2-btn,.cf-bridge-page-2 .cfb2-decline{transition:none}
}
@media (forced-colors:active){
.cf-bridge-page-2 .cfb2-pane{border:1px solid CanvasText}
.cf-bridge-page-2 .cfb2-btn{border:2px solid ButtonText}
}
@keyframes cfb2-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cfb2-spin{to{transform:rotate(360deg)}}
`
pieces/hero/bridge-page-2/specimen.tsx 46 lines
import __studioImage7e59ec80 from "../assets/0e4167d361f59209.webp";
// Specimen: the two-choice bridge for the Lean Kitchen 21-day reset, hosted by a fictional chef.
import * as React from 'react'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
import { BridgePage2, type BridgePage2State } from '../bridge-page-2'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function BridgePage2Specimen({ state = 'default' }: { state?: BridgePage2State }) {
const sample = defaults.sample
return (
<BridgePage2
state={state}
headline='Right now, you have **two choices**.'
lead='One keeps dinner a nightly guessing game. The other plans it for you, starting tonight.'
presenterImage={slot(
'presenter',
__studioImage7e59ec80,
)}
presenterAlt='Chef Rina Vale smiling in a bright home kitchen'
hostName='Chef Rina Vale'
hostRole='Your Lean Kitchen host'
question='Ready to know what’s for dinner every night?'
reason={[
'The Lean Kitchen 21-day reset plans every dinner for you.',
'Simple, lighter meals, with the shopping list already written.',
]}
couponTitle='$50 off'
couponText={'the regular ' + sample.regularPrice + ' price'}
priceLabel='Start your 21-day reset today for'
price={sample.price}
ctaLabel='I’m ready, plan my 21 days'
ctaShortLabel='I’m ready, start now'
ctaNote={'Instant access · ' + sample.guarantee}
noteIcon
psLine={'**P.S.** Cook the full 21 days. If dinner isn’t easier, the ' + sample.guarantee + ' has you covered.'}
declineTitle='Stay on the path you’re on'
declineText='The same 6pm fridge stare. The same takeout menus.'
declineLabel='No thanks, I’ll close this tab and keep guessing what to cook'
preventNavigation
onAction={() => undefined}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalBridgePage2 |
string |
|
lead OptionalBridgePage2 |
string |
|
continueNumber OptionalBridgePage2 |
string |
|
declineNumber OptionalBridgePage2 |
string |
|
orLabel OptionalBridgePage2 |
string |
|
presenterImage OptionalBridgePage2 |
string |
|
presenterAlt OptionalBridgePage2 |
string |
|
hostName OptionalBridgePage2 |
string |
|
hostRole OptionalBridgePage2 |
string |
|
question OptionalBridgePage2 |
string |
|
reason OptionalBridgePage2 |
string[] |
|
couponTitle OptionalBridgePage2 |
string |
|
couponText OptionalBridgePage2 |
string |
|
priceLabel OptionalBridgePage2 |
string |
|
price OptionalBridgePage2 |
string |
|
ctaLabel OptionalBridgePage2 |
string |
|
ctaShortLabel OptionalBridgePage2 |
string |
|
ctaNote OptionalBridgePage2 |
string |
|
noteIcon OptionalBridgePage2 |
boolean |
|
psLine OptionalBridgePage2 |
string |
|
declineTitle OptionalBridgePage2 |
string |
|
declineText OptionalBridgePage2 |
string |
|
declineLabel OptionalBridgePage2 |
string |
|
href OptionalBridgePage2 |
string |
|
declineHref OptionalBridgePage2 |
string |
|
loadingLabel OptionalBridgePage2 |
string |
|
errorText OptionalBridgePage2 |
string |
|
disabled OptionalBridgePage2 |
boolean |
|
disabledNote OptionalBridgePage2 |
string |
|
preventNavigation OptionalBridgePage2 |
boolean |
|
onAction OptionalBridgePage2 |
(intent: BridgePage2Intent, event: React.MouseEvent<HTMLElement>) => void | Promise<void> |
|
lean OptionalBridgePage2 |
BridgePage2Intent |
|
state OptionalBridgePage2 |
BridgePage2State |
|
id OptionalBridgePage2 |
string |
|
className OptionalBridgePage2 |
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-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--card-radius- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter- A photo of the host, coach or founder.
-
0e4167d361f59209.webp
image/webp · 59.4 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB