Bridge Page 10
Bridge page set like an editorial front page: masthead, pattern-interrupt headline, the host beside a short
Use it in a prompt
Use hero/bridge-page-10 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-10.tsx. - Import it and pass your copy and images (Props tab):
import { BridgePage10 } from "@/components/funneldna/hero/bridge-page-10"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/bridge-page-10/component.tsx 493 lines
// layout: advertorial-front
// Bridge page set like an editorial front page: masthead, pattern-interrupt headline, the host beside a short
// read-this-first note, a ticked commitment line and one continue button. A deliberate pause before the offer.
import * as React from 'react'
import { AlertCircle, Check, Loader2, Pause } from 'lucide-react'
export type BridgePage10State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
/** Text supports ==marker highlight== and **bold**. Legacy { text } records are accepted. */
export type BridgePage10Text = string | { text: string }
export type BridgePage10Section = {
/** Paragraph text; supports ==marker== and **bold** */
text: string
}
export type BridgePage10Props = {
/** Masthead set across the top like a front page (the offer or page name) */
masthead?: string
/** Short dateline items under the masthead */
dateline?: BridgePage10Text[]
/** Pattern-interrupt opener, set in the accent colour */
interrupt?: string
/** Main headline that follows the interrupt */
headline?: string
/** Trailing ellipsis that pulses three times, then rests */
showEllipsis?: boolean
/** Line under the headline; supports ==marker== and **bold** */
subhead?: string
/** Presenter photo (src string, slot: presenter). Omit it and the note stands on its own. */
presenterImage?: string
/** Alt text for the presenter photo */
presenterAlt?: string
/** Plain caption under the photo */
captionTitle?: string
/** Second, quieter caption line under the photo */
captionDetail?: string
/** Title inside the bold accent block */
noteTitle?: string
/** One bold sentence under the accent block; supports ==marker== and **bold** */
noteLead?: string
/** Short note paragraphs, set in columns */
sections?: BridgePage10Section[]
/** Commitment line above the button; an empty string hides it */
commitLabel?: string
/** Ask for the tick before the button continues */
requireCommit?: boolean
/** Whether the commitment box starts ticked */
commitDefaultChecked?: boolean
/** Inline field error when the box is unticked */
commitError?: string
/** Continue button label */
ctaLabel?: string
/** Shorter label for narrow phones so the button stays on one line */
ctaShortLabel?: string
/** Navigation destination of the continue button */
href?: string
/** Legacy alias for href. */
ctaHref?: string
/** One short line under the button */
ctaNote?: string
/** Button label while an onAction promise is pending */
loadingLabel?: string
/** Message under the button when the action fails */
errorText?: string
/** Turns the button into a quiet, inactive control */
disabled?: boolean
/** Line under the button while disabled */
disabledNote?: string
/** Stops the link navigating so onAction handles the click (previews, builders) */
preventNavigation?: boolean
/** Called on click. When the click stays on the page, a returned promise shows the loading label; a rejection shows errorText. */
onAction?: (event: React.MouseEvent<HTMLAnchorElement>) => void | Promise<void>
/** Legacy alias for onAction. */
onContinue?: (event: React.MouseEvent<HTMLAnchorElement>) => void | Promise<void>
/** Forced visual state for previews */
state?: BridgePage10State
/** Section id for in-page anchors */
id?: string
/** Root class for page-level placement */
className?: string
}
export function BridgePage10(props: BridgePage10Props) {
const {
masthead = 'A note before you continue',
dateline = ['A personal note from your host', '1-minute read'],
interrupt = 'Wait,',
headline = 'before you continue',
showEllipsis = true,
subhead = 'Give this one minute. The next page makes far more sense once you’ve read it.',
presenterImage,
presenterAlt = 'Portrait of your host',
captionTitle = 'A quick word from your host',
captionDetail,
noteTitle = 'Read this first.',
noteLead = 'Before you go any further, I want you to start with ==a clear plan==.',
sections = [
{ text: 'Know exactly what each page has to do before you build it.' },
{ text: 'The next page shows you how. Read it with this in mind and it all clicks.' },
],
commitLabel = 'Yes, I’m ready to start with a clear plan.',
requireCommit = true,
commitDefaultChecked = true,
commitError = 'Tick the box above to continue.',
ctaLabel = 'Continue to the next page',
ctaShortLabel,
href,
ctaHref,
ctaNote = 'Takes you straight to the next step',
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,
onContinue,
state = 'default',
id,
className,
} = props
const uid = React.useId().replace(/:/g, '')
const headId = 'cfb10-h-' + uid
const tickId = 'cfb10-c-' + uid
const fieldErrId = 'cfb10-fe-' + uid
const msgId = 'cfb10-m-' + uid
// Canonical props win; the legacy alias is used only when the canonical prop is undefined.
const target = href ?? ctaHref ?? '#continue'
const action = onAction ?? onContinue
const hasCommit = Boolean(commitLabel)
const gate = hasCommit && requireCommit
const [phase, setPhase] = React.useState<'idle' | 'loading' | 'error'>('idle')
const [checked, setChecked] = React.useState(commitDefaultChecked)
const [fieldErr, setFieldErr] = React.useState(false)
const mounted = React.useRef(true)
const tickRef = React.useRef<HTMLInputElement>(null)
React.useEffect(() => {
setPhase('idle')
if (state === 'error' && gate) {
setChecked(false)
setFieldErr(true)
} else {
setChecked(commitDefaultChecked)
setFieldErr(false)
}
}, [state, gate, commitDefaultChecked])
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 actionError = !isDisabled && (phase === 'error' || (state === 'error' && !gate))
const force = !isDisabled && (state === 'hover' || state === 'active') ? state : undefined
const handleClick = async (event: React.MouseEvent<HTMLAnchorElement>) => {
if (isDisabled || loading) {
event.preventDefault()
return
}
if (gate && !checked) {
event.preventDefault()
setFieldErr(true)
tickRef.current?.focus()
return
}
const stay = preventNavigation || !target || target === '#'
if (stay) event.preventDefault()
setPhase('idle')
try {
const result = action?.(event)
if (!result || !stay) return
setPhase('loading')
await result
if (mounted.current) setPhase('idle')
} catch {
if (mounted.current) setPhase('error')
}
}
const msg: { tone: 'muted' | 'error'; text: string } = isDisabled
? { tone: 'muted', text: disabledNote }
: actionError
? { tone: 'error', text: errorText }
: { tone: 'muted', text: ctaNote }
return (
<section
id={id}
className={['cf-bridge-page-10', className].filter(Boolean).join(' ')}
aria-labelledby={headId}
data-solo={presenterImage ? undefined : ''}
>
<style>{CSS}</style>
<div className='cfb10-in'>
<header className='cfb10-front'>
{masthead ? (
<p className='cfb10-mast'>
<span>{masthead}</span>
</p>
) : null}
{dateline.length ? (
<ul className='cfb10-date cfb10-rv' style={vars({ '--d': 1 })}>
{dateline.map((item, i) => (
<li key={i}>{txt(item)}</li>
))}
</ul>
) : null}
<h1 id={headId} className='cfb10-h1 cfb10-rv' style={vars({ '--d': 2 })}>
{interrupt ? (
<>
<span className='cfb10-wait'>{interrupt}</span>{' '}
</>
) : null}
{headline}
{showEllipsis ? (
<>
<span className='cfb10-dots' aria-hidden='true'>
<i>.</i>
<i>.</i>
<i>.</i>
</span>
<span className='cfb10-sr'>…</span>
</>
) : null}
</h1>
{subhead ? (
<p className='cfb10-sub cfb10-rv' style={vars({ '--d': 3 })}>
{rich(subhead, 's')}
</p>
) : null}
</header>
<div className='cfb10-grid'>
{presenterImage ? (
<figure className='cfb10-fig cfb10-rv' style={vars({ '--d': 4 })}>
<div className='cfb10-frame'>
<img src={presenterImage} alt={presenterAlt} width={800} height={1000} loading='eager' decoding='async' />
</div>
{captionTitle || captionDetail ? (
<figcaption className='cfb10-cap'>
{captionTitle ? <strong>{captionTitle}</strong> : null}
{captionDetail ? <span>{captionDetail}</span> : null}
</figcaption>
) : null}
</figure>
) : null}
<div className='cfb10-copy'>
<div className='cfb10-flag cfb10-rv' style={vars({ '--d': 5 })}>
<h2 className='cfb10-h2'>{noteTitle}</h2>
<Pause className='cfb10-pause' aria-hidden='true' fill='currentColor' strokeWidth={0} />
</div>
{noteLead ? (
<p className='cfb10-lead cfb10-rv' style={vars({ '--d': 6 })}>
{rich(noteLead, 'l')}
</p>
) : null}
{sections.length ? (
<div className='cfb10-cols cfb10-rv' style={vars({ '--d': 7 })}>
{sections.map((section, i) => (
<p key={i} className='cfb10-p'>
{rich(section.text, 'p' + i)}
</p>
))}
</div>
) : null}
<div className='cfb10-act cfb10-rv' style={vars({ '--d': 8 })} data-disabled={isDisabled ? '' : undefined}>
{hasCommit ? (
<>
<label className='cfb10-commit' htmlFor={tickId} data-invalid={fieldErr ? '' : undefined}>
<span className='cfb10-tick'>
<input
ref={tickRef}
id={tickId}
type='checkbox'
checked={checked}
disabled={isDisabled}
aria-invalid={fieldErr || undefined}
aria-describedby={fieldErr ? fieldErrId : undefined}
onChange={(event) => {
setChecked(event.target.checked)
if (event.target.checked) setFieldErr(false)
}}
/>
<span className='cfb10-box' aria-hidden='true'>
<Check strokeWidth={3.25} />
</span>
</span>
<span className='cfb10-commit-text'>{rich(commitLabel, 'c')}</span>
</label>
{fieldErr ? (
<p id={fieldErrId} className='cfb10-ferr' role='alert'>
<AlertCircle aria-hidden='true' strokeWidth={2.5} />
<span>{commitError}</span>
</p>
) : null}
</>
) : null}
<a
className='cfb10-btn'
href={isDisabled ? undefined : target}
role={isDisabled ? 'link' : undefined}
aria-disabled={isDisabled || undefined}
aria-busy={loading || undefined}
aria-describedby={msg.text ? msgId : undefined}
data-force={force}
data-loading={loading ? '' : undefined}
onClick={handleClick}
>
{loading ? (
<>
<Loader2 className='cfb10-spin' aria-hidden='true' strokeWidth={2.75} />
<span>{loadingLabel}</span>
</>
) : ctaShortLabel ? (
<>
<span className='cfb10-full'>{ctaLabel}</span>
<span className='cfb10-short'>{ctaShortLabel}</span>
</>
) : (
<span>{ctaLabel}</span>
)}
</a>
{msg.text ? (
<p id={msgId} className='cfb10-msg' data-tone={msg.tone} role={msg.tone === 'error' ? 'alert' : undefined}>
{msg.tone === 'error' ? <AlertCircle aria-hidden='true' strokeWidth={2.5} /> : null}
<span>{msg.text}</span>
</p>
) : null}
</div>
</div>
</div>
</div>
</section>
)
}
export default BridgePage10
/** Reads a dateline item written as a string or a legacy { text } record. */
function txt(record: BridgePage10Text) {
return typeof record === 'string' ? record : record.text
}
/** Types inline custom properties (e.g. the reveal delay --d) for the style prop. */
function vars(values: Record<string, string | number>) {
return values as React.CSSProperties
}
/** Renders ==marker== and **bold** inline markup as <mark> and <strong>. */
function rich(text: string, key: string): React.ReactNode[] {
return text
.split(/(==[^=]+==|[*][*][^*]+[*][*])/g)
.filter(Boolean)
.map((part, i) => {
if (part.length > 4 && part.startsWith('==') && part.endsWith('==')) {
return (
<mark key={key + i} className='cfb10-mark'>
{part.slice(2, -2)}
</mark>
)
}
if (part.length > 4 && part.startsWith('**') && part.endsWith('**')) {
return <strong key={key + i}>{part.slice(2, -2)}</strong>
}
return <React.Fragment key={key + i}>{part}</React.Fragment>
})
}
const CSS = `
.cf-bridge-page-10 { --cfb10-hair: oklch(from var(--ink, #172033) l c h / 0.16); --cfb10-sh: var(--shadow, oklch(0.22 0.03 260)); --cfb10-marker: var(--marker, #fae37c); --cfb10-btn: var(--button-bg, var(--cta, #d43d2a)); --cfb10-btn-2: var(--button-bg-2, var(--cta-2, #b3301f)); --cfb10-r: var(--card-radius, var(--radius, 14px)); position: relative; isolation: isolate; overflow: hidden; background: var(--surface, #ffffff); color: var(--ink, #172033); font-family: var(--font-body, system-ui, sans-serif); padding: clamp(2.75rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 7vw, 6rem); }
.cf-bridge-page-10, .cf-bridge-page-10 *, .cf-bridge-page-10 *::before, .cf-bridge-page-10 *::after { box-sizing: border-box; }
.cf-bridge-page-10 :is(h1, h2, p, figure, ul) { margin: 0; }
.cf-bridge-page-10 .cfb10-in { max-width: 72rem; margin-inline: auto; }
.cf-bridge-page-10 .cfb10-mast { display: grid; grid-template-columns: minmax(1.25rem, 1fr) auto minmax(1.25rem, 1fr); align-items: center; gap: clamp(0.75rem, 2.5vw, 1.75rem); }
.cf-bridge-page-10 .cfb10-mast::before, .cf-bridge-page-10 .cfb10-mast::after { content: ''; height: 6px; border-block: 1px solid var(--cfb10-hair); }
.cf-bridge-page-10 .cfb10-mast span { max-width: 30rem; font-family: var(--font-display, inherit); font-weight: 800; font-size: clamp(1rem, 0.85rem + 0.5vw, 1.25rem); line-height: 1.25; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; text-wrap: balance; color: var(--ink, #172033); }
.cf-bridge-page-10 .cfb10-date { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0; margin-top: 0.85rem; padding: 0; list-style: none; color: var(--muted, #4b5565); font-size: 0.9375rem; line-height: 1.4; text-align: center; }
.cf-bridge-page-10 .cfb10-date li { display: inline-flex; align-items: center; }
.cf-bridge-page-10 .cfb10-date li + li::before { content: ''; width: 4px; height: 4px; margin-inline: 0.75rem; border-radius: 50%; background: currentColor; }
.cf-bridge-page-10 .cfb10-h1 { margin-top: clamp(2rem, 4.5vw, 3.25rem); text-align: center; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 900); font-size: clamp(2.6rem, 1.25rem + 5.2vw, 5.5rem); line-height: 1.02; letter-spacing: var(--display-tracking, -0.035em); text-transform: var(--display-case, none); text-wrap: balance; color: var(--ink, #172033); }
.cf-bridge-page-10 .cfb10-wait, .cf-bridge-page-10 .cfb10-dots { color: var(--accent, #2554c7); }
.cf-bridge-page-10 .cfb10-dots i { display: inline-block; font-style: normal; }
.cf-bridge-page-10 .cfb10-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cf-bridge-page-10 .cfb10-sub { max-width: 42rem; margin: clamp(1rem, 1.8vw, 1.5rem) auto 0; text-align: center; color: var(--muted, #4b5565); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 500; line-height: 1.5; text-wrap: pretty; }
.cf-bridge-page-10 .cfb10-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(2.5rem, 5vw, 4.5rem); margin-top: clamp(2.75rem, 5vw, 4.25rem); }
.cf-bridge-page-10[data-solo] .cfb10-grid { grid-template-columns: minmax(0, 46rem); justify-content: center; }
.cf-bridge-page-10 .cfb10-fig { position: relative; min-width: 0; }
.cf-bridge-page-10 .cfb10-frame { position: relative; }
.cf-bridge-page-10 .cfb10-frame::before { content: ''; position: absolute; z-index: -1; inset: -1.25rem 1.75rem 2.75rem -1.25rem; border-radius: var(--cfb10-r); background: color-mix(in oklch, var(--ink, #172033) 6%, var(--surface, #ffffff)); }
.cf-bridge-page-10 .cfb10-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: var(--cfb10-r); background: color-mix(in oklch, var(--ink, #172033) 8%, var(--surface, #ffffff)); box-shadow: var(--shadow-lg, 0 2px 4px oklch(from var(--cfb10-sh) l c h / 0.22), 0 12px 24px -8px oklch(from var(--cfb10-sh) l c h / 0.32)); }
.cf-bridge-page-10 .cfb10-cap { display: grid; gap: 0.2rem; margin-top: 1.1rem; text-align: center; }
.cf-bridge-page-10 .cfb10-cap strong { font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--ink, #172033); }
.cf-bridge-page-10 .cfb10-cap span { font-size: 0.9375rem; line-height: 1.4; color: var(--muted, #4b5565); text-wrap: pretty; }
.cf-bridge-page-10 .cfb10-copy { min-width: 0; }
.cf-bridge-page-10 .cfb10-flag { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1rem, 2vw, 1.35rem) clamp(1.15rem, 2.6vw, 1.75rem); border-radius: calc(var(--radius, 12px) * 0.6); background-color: var(--accent-fill, var(--accent, #2554c7)); background-image: linear-gradient(120deg, oklch(from var(--accent-fill, var(--accent, #2554c7)) calc(l + 0.035) c h), oklch(from var(--accent-fill, var(--accent, #2554c7)) calc(l - 0.035) c h)); color: var(--accent-fill-ink, var(--card, #ffffff)); box-shadow: inset 0 1px 0 oklch(from var(--accent-fill, var(--accent, #2554c7)) calc(l + 0.12) c h / 0.55), var(--shadow-md, 0 1px 2px oklch(from var(--cfb10-sh) l c h / 0.22), 0 4px 10px -2px oklch(from var(--cfb10-sh) l c h / 0.2)); }
.cf-bridge-page-10 .cfb10-h2 { min-width: 0; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 900); font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.04; letter-spacing: var(--display-tracking, -0.03em); text-transform: var(--display-case, none); text-wrap: balance; color: inherit; }
.cf-bridge-page-10 .cfb10-pause { flex: none; width: clamp(2rem, 1.4rem + 2vw, 3rem); height: clamp(2rem, 1.4rem + 2vw, 3rem); opacity: 0.32; }
.cf-bridge-page-10 .cfb10-lead { margin-top: clamp(1.25rem, 2.4vw, 1.75rem); font-family: var(--font-display, inherit); font-weight: 700; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.32; letter-spacing: -0.01em; text-wrap: pretty; color: var(--ink, #172033); }
.cf-bridge-page-10 .cfb10-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem 2.25rem; margin-top: clamp(1.1rem, 2vw, 1.5rem); }
.cf-bridge-page-10 .cfb10-p { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.6; text-wrap: pretty; color: var(--ink, #172033); }
.cf-bridge-page-10 .cfb10-copy strong { font-weight: 800; }
.cf-bridge-page-10 .cfb10-mark { padding: 0 0.16em; margin: 0 -0.04em; border-radius: 0.2em 0.45em 0.3em 0.5em; background: linear-gradient(transparent 12%, var(--cfb10-marker) 12%, var(--cfb10-marker) 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; color: oklch(from var(--cfb10-marker) clamp(0, (0.64 - l) * 100, 1) 0 0); }
.cf-bridge-page-10 .cfb10-act { max-width: 36rem; margin-top: clamp(1.75rem, 3.2vw, 2.5rem); }
.cf-bridge-page-10[data-solo] .cfb10-act { margin-inline: auto; }
.cf-bridge-page-10 .cfb10-commit { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.95rem 1.1rem; border: 1px solid transparent; border-radius: var(--radius, 12px); background: color-mix(in oklch, var(--ink, #172033) 4%, var(--surface, #ffffff)); cursor: pointer; }
.cf-bridge-page-10 .cfb10-commit:hover { background: color-mix(in oklch, var(--ink, #172033) 7%, var(--surface, #ffffff)); }
.cf-bridge-page-10 .cfb10-commit[data-invalid] { border-color: var(--danger, #b4232a); background: var(--danger-soft, #fbe9e9); }
.cf-bridge-page-10 .cfb10-act[data-disabled] .cfb10-commit { cursor: not-allowed; }
.cf-bridge-page-10 .cfb10-commit-text { padding-top: 0.05rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.45; text-wrap: pretty; color: var(--ink, #172033); }
.cf-bridge-page-10 .cfb10-tick { position: relative; flex: none; width: 1.5rem; height: 1.5rem; margin-top: 0.05rem; }
.cf-bridge-page-10 .cfb10-tick input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; color: var(--field-ink, #172033); accent-color: var(--field-focus, var(--accent, #2554c7)); }
.cf-bridge-page-10 .cfb10-box { display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid var(--field-border, oklch(from var(--ink, #172033) l c h / 0.45)); border-radius: 0.4rem; background: var(--field, #ffffff); color: var(--card, #ffffff); }
.cf-bridge-page-10 .cfb10-box svg { width: 1rem; height: 1rem; opacity: 0; transform: scale(0.6); }
.cf-bridge-page-10 .cfb10-tick input:checked + .cfb10-box { border-color: var(--success, #1f7a3f); background: var(--success, #1f7a3f); color: var(--card, #ffffff); }
.cf-bridge-page-10 .cfb10-tick input:checked + .cfb10-box svg { opacity: 1; transform: none; }
.cf-bridge-page-10 .cfb10-tick input:focus-visible + .cfb10-box { outline: 3px solid var(--field-focus, var(--accent, #2554c7)); outline-offset: 2px; }
.cf-bridge-page-10 .cfb10-commit[data-invalid] .cfb10-box { border-color: var(--danger, #b4232a); }
.cf-bridge-page-10 .cfb10-tick input:disabled + .cfb10-box { opacity: 0.55; }
.cf-bridge-page-10 .cfb10-ferr { display: flex; align-items: flex-start; gap: 0.45rem; margin-top: 0.6rem; color: var(--danger, #b4232a); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.cf-bridge-page-10 .cfb10-ferr svg, .cf-bridge-page-10 .cfb10-msg svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; }
.cf-bridge-page-10 .cfb10-btn { display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; min-height: 4.25rem; margin-top: 1rem; padding: 0.85rem 1.5rem; border: 0; border-radius: var(--button-radius, var(--radius, 12px)); background-color: var(--cfb10-btn); background-image: linear-gradient(180deg, oklch(from var(--cfb10-btn) calc(l + 0.04) c h), oklch(from var(--cfb10-btn-2) calc(l + 0.01) c h)); color: var(--button-ink, var(--cta-ink, #ffffff)); font-family: var(--button-font, var(--font-display, inherit)); font-weight: var(--button-weight, 800); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.2; letter-spacing: -0.005em; text-transform: var(--button-case, none); text-align: center; text-decoration: none; text-wrap: balance; text-shadow: var(--button-text-shadow, none); box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--cfb10-btn) calc(l + 0.14) c h / 0.6), inset 0 -3px 0 oklch(from var(--cfb10-btn) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--cfb10-sh) l c h / 0.3), 0 6px 14px -4px oklch(from var(--cfb10-sh) l c h / 0.38)); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cf-bridge-page-10 .cfb10-btn:where([href]):hover, .cf-bridge-page-10 .cfb10-btn[data-force='hover'] { background-image: linear-gradient(180deg, oklch(from var(--cfb10-btn) calc(l - 0.01) c h), oklch(from var(--cfb10-btn-2) calc(l - 0.04) c h)); box-shadow: inset 0 1px 0 oklch(from var(--cfb10-btn) calc(l + 0.12) c h / 0.55), inset 0 -3px 0 oklch(from var(--cfb10-btn) calc(l - 0.2) c h), 0 2px 3px oklch(from var(--cfb10-sh) l c h / 0.32), 0 10px 18px -6px oklch(from var(--cfb10-sh) l c h / 0.42); }
.cf-bridge-page-10 .cfb10-btn:where([href]):active, .cf-bridge-page-10 .cfb10-btn[data-force='active'] { background-image: linear-gradient(180deg, oklch(from var(--cfb10-btn-2) calc(l - 0.02) c h), oklch(from var(--cfb10-btn) calc(l - 0.06) c h)); box-shadow: inset 0 2px 3px oklch(from var(--cfb10-btn) calc(l - 0.22) c h / 0.6), inset 0 -1px 0 oklch(from var(--cfb10-btn) calc(l - 0.12) c h), 0 1px 1px oklch(from var(--cfb10-sh) l c h / 0.3); }
.cf-bridge-page-10 .cfb10-btn:focus-visible { outline: 3px solid var(--field-focus, var(--accent, #2554c7)); outline-offset: 3px; }
.cf-bridge-page-10 .cfb10-btn[aria-disabled] { background: var(--button-2-bg, var(--secondary, #e8ebf1)); background-image: none; color: var(--button-2-ink, var(--secondary-ink, #172033)); text-shadow: none; box-shadow: none; cursor: not-allowed; }
.cf-bridge-page-10 .cfb10-btn[data-loading] { cursor: progress; }
.cf-bridge-page-10 .cfb10-btn .cfb10-spin { flex: none; width: 1.2em; height: 1.2em; }
.cf-bridge-page-10 .cfb10-short { display: none; }
.cf-bridge-page-10 .cfb10-msg { display: flex; align-items: flex-start; justify-content: center; gap: 0.45rem; margin-top: 0.75rem; text-align: center; color: var(--muted, #4b5565); font-size: 0.9375rem; line-height: 1.45; text-wrap: pretty; }
.cf-bridge-page-10 .cfb10-msg[data-tone='error'] { color: var(--danger, #b4232a); font-weight: 600; }
@media (max-width: 56rem) {
.cf-bridge-page-10 .cfb10-grid { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
.cf-bridge-page-10 .cfb10-fig, .cf-bridge-page-10 .cfb10-copy { width: 100%; max-width: 40rem; margin-inline: auto; }
.cf-bridge-page-10 .cfb10-frame img { aspect-ratio: 4 / 3; object-position: 50% 18%; }
.cf-bridge-page-10 .cfb10-frame::before { inset: -0.75rem 1rem 2rem -0.75rem; }
}
@media (max-width: 30rem) {
.cf-bridge-page-10 .cfb10-mast span { letter-spacing: 0.1em; }
.cf-bridge-page-10 .cfb10-pause { display: none; }
.cf-bridge-page-10 .cfb10-commit { padding: 0.85rem 0.9rem; }
.cf-bridge-page-10 .cfb10-btn { padding-inline: 1.1rem; }
.cf-bridge-page-10 .cfb10-full { display: none; }
.cf-bridge-page-10 .cfb10-short { display: inline; }
}
@media (prefers-reduced-motion: no-preference) {
.cf-bridge-page-10 .cfb10-rv { animation: cfb10-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: min(calc(var(--d, 0) * 45ms), 320ms); }
.cf-bridge-page-10 .cfb10-mast::before, .cf-bridge-page-10 .cfb10-mast::after { animation: cfb10-rule 0.7s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.cf-bridge-page-10 .cfb10-mast::before { transform-origin: right center; }
.cf-bridge-page-10 .cfb10-mast::after { transform-origin: left center; }
.cf-bridge-page-10 .cfb10-dots i { animation: cfb10-dot 1.1s ease-in-out 3; animation-delay: 0.5s; }
.cf-bridge-page-10 .cfb10-dots i:nth-child(2) { animation-delay: 0.68s; }
.cf-bridge-page-10 .cfb10-dots i:nth-child(3) { animation-delay: 0.86s; }
.cf-bridge-page-10 .cfb10-commit { transition: background-color 0.16s ease, border-color 0.16s ease; }
.cf-bridge-page-10 .cfb10-box { transition: background-color 0.16s ease, border-color 0.16s ease; }
.cf-bridge-page-10 .cfb10-box svg { transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.3, 1.4, 0.5, 1); }
.cf-bridge-page-10 .cfb10-btn { transition: box-shadow 0.16s ease, transform 0.16s ease, background-color 0.16s ease; }
.cf-bridge-page-10 .cfb10-btn:where([href]):hover, .cf-bridge-page-10 .cfb10-btn[data-force='hover'] { transform: translateY(-1px); }
.cf-bridge-page-10 .cfb10-btn:where([href]):active, .cf-bridge-page-10 .cfb10-btn[data-force='active'] { transform: translateY(1px); }
.cf-bridge-page-10 .cfb10-spin { animation: cfb10-spin 0.8s linear infinite; }
}
@keyframes cfb10-rise { from { opacity: 0.82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cfb10-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cfb10-dot { 0%, 100% { opacity: 1; } 45% { opacity: 0.2; } }
@keyframes cfb10-spin { to { transform: rotate(360deg); } }
@media (forced-colors: active) {
.cf-bridge-page-10 .cfb10-flag, .cf-bridge-page-10 .cfb10-btn, .cf-bridge-page-10 .cfb10-commit { border: 1px solid CanvasText; }
}
`
pieces/hero/bridge-page-10/specimen.tsx 39 lines
import __studioImagee07fadf9 from '../assets/82d682d893349939.webp'
import * as React from 'react'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
import { BridgePage10, type BridgePage10State } from '../bridge-page-10'
const sample = defaults.sample
export const states: BridgePage10State[] = ['default', 'hover', 'active', 'disabled', 'error']
export default function BridgePage10Specimen({ state = 'default' }: { state?: BridgePage10State }) {
return (
<BridgePage10
state={state}
preventNavigation
masthead={sample.name}
dateline={['A personal note from your host', '1-minute read', 'Next: the full kit']}
interrupt='Wait,'
headline='before you continue'
subhead='Give this one minute. The next page makes far more sense once you’ve read it.'
presenterImage={slot('presenter', __studioImagee07fadf9)}
presenterAlt='Your host smiling at the camera in a bright studio'
captionTitle='A quick word from your host'
captionDetail={'Creator of ' + sample.name}
noteTitle='Read this first.'
noteLead={'Before you explore ' + sample.name + ', I want you to start with ==a clear plan==.'}
sections={[
{ text: 'Map your offer. Draft your page copy. Check every step before you launch.' },
{ text: 'A pile of pages isn’t a funnel. With the plan in hand, every page has one clear job.' },
]}
commitLabel={'I understand I’m covered by the ' + sample.guarantee + '.'}
ctaLabel={'Continue to ' + sample.name}
ctaShortLabel='Continue to the kit'
href='#offer'
ctaNote='Next: see everything inside the kit'
/>
)
}
| Name | Type | Details |
|---|---|---|
masthead OptionalBridgePage10 |
string |
|
dateline OptionalBridgePage10 |
BridgePage10Text[] |
|
interrupt OptionalBridgePage10 |
string |
|
headline OptionalBridgePage10 |
string |
|
showEllipsis OptionalBridgePage10 |
boolean |
|
subhead OptionalBridgePage10 |
string |
|
presenterImage OptionalBridgePage10 |
string |
|
presenterAlt OptionalBridgePage10 |
string |
|
captionTitle OptionalBridgePage10 |
string |
|
captionDetail OptionalBridgePage10 |
string |
|
noteTitle OptionalBridgePage10 |
string |
|
noteLead OptionalBridgePage10 |
string |
|
sections OptionalBridgePage10 |
BridgePage10Section[] |
|
commitLabel OptionalBridgePage10 |
string |
|
requireCommit OptionalBridgePage10 |
boolean |
|
commitDefaultChecked OptionalBridgePage10 |
boolean |
|
commitError OptionalBridgePage10 |
string |
|
ctaLabel OptionalBridgePage10 |
string |
|
ctaShortLabel OptionalBridgePage10 |
string |
|
href OptionalBridgePage10 |
string |
|
ctaHref OptionalBridgePage10 |
string |
|
ctaNote OptionalBridgePage10 |
string |
|
loadingLabel OptionalBridgePage10 |
string |
|
errorText OptionalBridgePage10 |
string |
|
disabled OptionalBridgePage10 |
boolean |
|
disabledNote OptionalBridgePage10 |
string |
|
preventNavigation OptionalBridgePage10 |
boolean |
|
onAction OptionalBridgePage10 |
(event: React.MouseEvent<HTMLAnchorElement>) => void | Promise<void> |
|
onContinue OptionalBridgePage10 |
(event: React.MouseEvent<HTMLAnchorElement>) => void | Promise<void> |
|
state OptionalBridgePage10 |
BridgePage10State |
|
id OptionalBridgePage10 |
string |
|
className OptionalBridgePage10 |
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-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- Secondary button.
--card-radius- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter- A photo of the host, coach or founder.
-
82d682d893349939.webp
image/webp · 86.8 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB