Bridge Page 1
Bridges the visitor to an offer with a personal note and a clear next step.
Use it in a prompt
Use hero/bridge-page 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.tsx. - Import it and pass your copy and images (Props tab):
import { BridgePage } from "@/components/funneldna/hero/bridge-page"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/bridge-page/component.tsx 362 lines
// Bridges the visitor to an offer with a personal note and a clear next step.
import * as React from "react"
import { Check, Clock3, Pause } from "lucide-react"
export type BridgePageProps = {
/** Pattern-interrupt word, shown huge above the headline */
interrupt?: string
headline?: string
subhead?: string
/** Funnel progress rail: where the visitor came from, where they are, where they go next */
steps?: BridgeStep[]
currentStep?: number
progressLabel?: string
completedStepLabel?: string
currentStepLabel?: string
/** Presenter photo (src string). Omit it and the note centres on its own. */
presenterImage?: string
presenterAlt?: string
presenterName?: string
presenterCaption?: string
noteTitle?: string
readTime?: string
/** Short note records; legacy strings supported. Text accepts **bold** and ==marker highlight== */
noteParagraphs?: (string | { text: string })[]
signOff?: string
signature?: string
signatureRole?: string
/** Two reason records; legacy strings remain supported. */
reason?: (string | { text: string })[]
ctaLabel?: string
href?: string
/** Legacy alias for href. */
ctaHref?: string
ctaNote?: string
/** @deprecated No longer rendered: the builder wires what happens after the click. */
loadingLabel?: string
/** @deprecated No longer rendered. */
successLabel?: string
/** @deprecated No longer rendered. */
statusText?: string
disabled?: boolean
disabledNote?: string
/** Keep the visitor on the page instead of following href (previews, builders) */
preventNavigation?: boolean
onAction?: (event: React.MouseEvent<HTMLAnchorElement>) => void
/** Legacy alias for onAction. */
onContinue?: (event: React.MouseEvent<HTMLAnchorElement>) => void
/** "success" is accepted for older callers and renders as default. */
state?: BridgePageState
id?: string
className?: string
}
export function BridgePage({
interrupt = "Wait!",
headline = "Before you continue…",
subhead = "Read this short note first. It takes a minute, and you’ll know exactly what you’re about to see.",
steps = [{ label: "Clicked through" }, { label: "Read this note" }, { label: "See the offer" }],
currentStep = 1,
progressLabel = "Your progress",
completedStepLabel = " (done)",
currentStepLabel = " (you are here)",
presenterImage,
presenterAlt = "Portrait of your host",
presenterName = "Your host",
presenterCaption = "A quick word before you continue",
noteTitle = "Read this first",
readTime = "1-minute read",
noteParagraphs = [
"Hey, quick note before you go on.",
"On the next page you’ll see **the full offer**: what’s inside, how it works and today’s price.",
"Read it with one question in mind: ==what would this look like with a clear plan?==",
],
signOff = "See you on the next page,",
signature = "Your host",
signatureRole,
reason = [
"A pile of pages isn’t a plan.",
"The next page shows you exactly what’s inside and how it works.",
],
ctaLabel = "Continue To The Offer",
ctaHref = "#offer",
href = ctaHref,
ctaNote = "Next: see what’s inside and today’s price",
disabled = false,
disabledNote = "The next page isn’t available right now.",
preventNavigation = false,
onContinue,
onAction = onContinue,
state = "default",
id,
className,
}: BridgePageProps) {
const headingId = React.useId()
const isDisabled = disabled || state === "disabled"
const force = state === "hover" || state === "active" ? state : undefined
const handleClick = (e: React.MouseEvent<HTMLAnchorElement>) => {
if (isDisabled) {
e.preventDefault()
return
}
onAction?.(e)
if (preventNavigation) e.preventDefault()
}
const underText = isDisabled ? disabledNote : ctaNote
const reasonLines = reason.slice(0, 2)
return (
<section id={id} className={["cf-bridge-page", className].filter(Boolean).join(" ")} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className="cfbp-pause" aria-hidden="true">
<i />
<i />
</div>
<div className="cfbp-inner">
<header className="cfbp-top">
{steps.length > 0 && (
<ol className="cfbp-steps" aria-label={progressLabel} data-rv="" style={vars({ "--n": steps.length, "--d": 0 })}>
{steps.map((step, i) => {
const st = i < currentStep ? "done" : i === currentStep ? "current" : "next"
return (
<li key={step.label + i} className="cfbp-step" data-status={st} aria-current={st === "current" ? "step" : undefined}>
<span className="cfbp-dot" aria-hidden="true">
{st === "done" ? (
<Check size={17} strokeWidth={3} />
) : st === "current" ? (
<Pause size={15} strokeWidth={0} fill="currentColor" />
) : (
i + 1
)}
</span>
<span className="cfbp-lbl">
{step.label}
{st === "done" && <span className="cfbp-sr">{completedStepLabel}</span>}
{st === "current" && <span className="cfbp-sr">{currentStepLabel}</span>}
</span>
</li>
)
})}
</ol>
)}
<h1 id={headingId} className="cfbp-h1" data-rv="" style={vars({ "--d": 1 })}>
{interrupt && <span className="cfbp-wait">{interrupt}</span>} {headline}
</h1>
{subhead && (
<p className="cfbp-sub" data-rv="" style={vars({ "--d": 2 })}>
{subhead}
</p>
)}
</header>
<div className="cfbp-grid" data-solo={presenterImage ? undefined : "true"}>
{presenterImage && (
<div className="cfbp-photo" data-rv="" style={vars({ "--d": 3 })}>
<figure className="cfbp-frame">
<div className="cfbp-imgwrap">
<img src={presenterImage} alt={presenterAlt} width={800} height={1000} decoding="async" />
</div>
{(presenterName || presenterCaption) && (
<figcaption className="cfbp-cap">
{presenterName && <strong>{presenterName}</strong>}
{presenterCaption && <span>{presenterCaption}</span>}
</figcaption>
)}
</figure>
</div>
)}
<div className="cfbp-right">
<div className="cfbp-notewrap" data-rv="" style={vars({ "--d": 4 })}>
<article className="cfbp-note" aria-label={noteTitle}>
<div className="cfbp-nh">
<h2>{noteTitle}</h2>
{readTime && (
<span className="cfbp-chip">
<Clock3 size={15} strokeWidth={2.4} aria-hidden="true" />
{readTime}
</span>
)}
</div>
<div className="cfbp-body">
{noteParagraphs.map((p, i) => (
<p key={i}>{rich(typeof p === "string" ? p : p.text)}</p>
))}
</div>
{(signOff || signature) && (
<div className="cfbp-sign">
{signOff && <p>{signOff}</p>}
{signature && <span className="cfbp-sig">{signature}</span>}
{signatureRole && <span className="cfbp-role">{signatureRole}</span>}
</div>
)}
</article>
</div>
{reasonLines.length > 0 && (
<div className="cfbp-reason" data-rv="" style={vars({ "--d": 5 })}>
{reasonLines.map((line, i) => (
<p key={i}>{typeof line === "string" ? line : line.text}</p>
))}
</div>
)}
<div className="cfbp-action" data-rv="" style={vars({ "--d": 6 })}>
<a
className="cfbp-cta"
href={isDisabled ? undefined : href}
role={isDisabled ? "link" : undefined}
aria-disabled={isDisabled ? "true" : undefined}
tabIndex={isDisabled ? 0 : undefined}
data-force={force}
onClick={handleClick}
>
<span className="cfbp-cta-label">{ctaLabel}</span>
</a>
{underText && (
<p className="cfbp-under" data-tone={isDisabled ? "warn" : undefined}>
{underText}
</p>
)}
</div>
</div>
</div>
</div>
</section>
)
}
export default BridgePage
export type BridgeStep = { label: string }
export type BridgePageState = "default" | "hover" | "active" | "disabled" | "success"
const CSS = `
.cf-bridge-page{--bp-gold:var(--band-ink);--bp-marker:var(--marker,#fae37c);--bp-r:var(--radius,16px);--bp-soft:var(--band-ink,var(--card));--bp-faint:var(--band-ink,var(--card));position:relative;isolation:isolate;overflow:hidden;background:var(--band,#0f2747);color:var(--band-ink,var(--card));font-family:var(--font-body,Arial,sans-serif);padding:clamp(3.25rem,7vw,6.5rem) clamp(1rem,4vw,2.5rem) clamp(3.75rem,7.5vw,7rem);box-sizing:border-box}
.cf-bridge-page *,.cf-bridge-page *::before,.cf-bridge-page *::after{box-sizing:border-box}
.cf-bridge-page :is(h1,h2,p,figure,ol){margin:0}
.cf-bridge-page::before{content:"";position:absolute;z-index:-2;left:0;right:0;bottom:0;height:44%;background:color-mix(in oklch,var(--band,#0f2747) 84%,var(--ink));clip-path:polygon(0 24%,100% 0,100% 100%,0 100%)}
:where(.cf-bridge-page) .cfbp-pause{position:absolute;z-index:-1;top:-5%;right:-5%;width:clamp(16rem,30vw,30rem);height:clamp(19rem,36vw,36rem);display:flex;gap:clamp(2.5rem,5vw,5rem);transform:rotate(-10deg);pointer-events:none}
:where(.cf-bridge-page) .cfbp-pause i{flex:1;border-radius:clamp(1.5rem,3vw,3rem);background:oklch(from var(--band-ink,var(--card)) l c h / 0.05)}
:where(.cf-bridge-page) .cfbp-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
:where(.cf-bridge-page) .cfbp-inner{position:relative;max-width:1160px;margin:0 auto}
:where(.cf-bridge-page) .cfbp-top{display:flex;flex-direction:column;align-items:center;text-align:center}
:where(.cf-bridge-page) .cfbp-steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));width:min(34rem,100%);margin-bottom:clamp(1.75rem,3vw,2.5rem)!important}
:where(.cf-bridge-page) .cfbp-step{position:relative;display:flex;flex-direction:column;align-items:center;gap:.65rem;padding-inline:.25rem;text-align:center}
:where(.cf-bridge-page) .cfbp-step+.cfbp-step::before{content:"";position:absolute;top:16px;right:50%;width:100%;height:3px;border-radius:3px;background:oklch(from var(--band-ink,var(--card)) l c h / 0.22);transform-origin:left center}
:where(.cf-bridge-page) .cfbp-step+.cfbp-step:is([data-status="done"],[data-status="current"])::before{background:var(--bp-gold)}
:where(.cf-bridge-page) .cfbp-dot{position:relative;z-index:1;display:grid;place-items:center;width:35px;height:35px;border-radius:50%;font:800 .95rem/1 var(--font-display,Arial,sans-serif)}
:where(.cf-bridge-page) .cfbp-step[data-status="done"] .cfbp-dot{background:var(--success);color:var(--card);box-shadow:0 0 0 2px var(--band-ink,#fff),0 0 0 5px var(--band,#0f2747)}
:where(.cf-bridge-page) .cfbp-step[data-status="current"] .cfbp-dot{background:var(--bp-gold);color:var(--band);box-shadow:0 0 0 5px var(--band,#0f2747),0 0 0 7px oklch(from var(--bp-gold) l c h / 0.45)}
:where(.cf-bridge-page) .cfbp-step[data-status="current"] .cfbp-dot::after{content:"";position:absolute;inset:-2px;border-radius:50%;border:2px solid var(--bp-gold);opacity:0}
:where(.cf-bridge-page) .cfbp-step[data-status="next"] .cfbp-dot{background:var(--band,#0f2747);border:2px solid oklch(from var(--band-ink,var(--card)) l c h / 0.45);color:var(--bp-faint);box-shadow:0 0 0 5px var(--band,#0f2747)}
:where(.cf-bridge-page) .cfbp-lbl{font-size:.875rem;font-weight:600;line-height:1.25;color:var(--bp-soft);text-wrap:balance}
:where(.cf-bridge-page) .cfbp-step[data-status="current"] .cfbp-lbl{color:var(--bp-gold);font-weight:800}
:where(.cf-bridge-page) .cfbp-step[data-status="next"] .cfbp-lbl{color:var(--bp-faint)}
:where(.cf-bridge-page) .cfbp-h1{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,900);font-size:clamp(2.6rem,1.4rem + 5.4vw,5.75rem);line-height:.98;letter-spacing:var(--display-tracking,-.032em);text-wrap:balance;color:var(--band-ink,var(--card));text-transform:var(--display-case,none)}
:where(.cf-bridge-page) .cfbp-wait{display:block;width:max-content;margin:0 auto .04em;color:var(--bp-gold);font-size:1.14em;transform-origin:50% 80%}
:where(.cf-bridge-page) .cfbp-sub{margin-top:clamp(1.1rem,1.8vw,1.6rem)!important;max-width:44ch;font-size:clamp(1.0625rem,1rem + .45vw,1.3rem);line-height:1.5;font-weight:500;color:var(--bp-soft);text-wrap:pretty}
:where(.cf-bridge-page) .cfbp-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(2rem,4vw,4rem);align-items:start;margin-top:clamp(2.5rem,4.5vw,4rem)}
:where(.cf-bridge-page) .cfbp-grid[data-solo]{grid-template-columns:minmax(0,46rem);justify-content:center}
:where(.cf-bridge-page) .cfbp-photo{align-self:stretch;display:flex;min-height:30rem}
:where(.cf-bridge-page) .cfbp-frame{position:relative;flex:1;display:flex;flex-direction:column;padding:.625rem;border-radius:calc(var(--card-radius,var(--bp-r)) + 6px);background:var(--card,var(--card));box-shadow:inset 0 0 0 1px var(--card-border,oklch(from var(--ink) l c h / 0.12)),var(--card-shadow,var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)));transform:rotate(-1.6deg);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
:where(.cf-bridge-page) .cfbp-imgwrap{position:relative;flex:1;overflow:hidden;border-radius:var(--card-radius,var(--bp-r));background:color-mix(in oklch,var(--band,#0f2747) 12%,var(--card))}
:where(.cf-bridge-page) .cfbp-imgwrap img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 24%}
:where(.cf-bridge-page) .cfbp-cap{display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:.8rem .75rem .35rem;text-align:center;color:var(--ink,#101828)}
:where(.cf-bridge-page) .cfbp-cap strong{font:800 1.0625rem/1.2 var(--font-display,Arial,sans-serif)}
:where(.cf-bridge-page) .cfbp-cap span{font-size:.9375rem;line-height:1.35;color:var(--muted,#4a5565);text-wrap:pretty}
:where(.cf-bridge-page) .cfbp-right{min-width:0}
:where(.cf-bridge-page) .cfbp-notewrap{position:relative;isolation:isolate}
:where(.cf-bridge-page) .cfbp-notewrap::before{content:"";position:absolute;z-index:-1;inset:.9rem -.8rem -.8rem .9rem;border-radius:var(--card-radius,calc(var(--bp-r) + 4px));background:var(--bp-gold);transform:rotate(1.4deg);box-shadow:var(--card-shadow,var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)))}
:where(.cf-bridge-page) .cfbp-note{position:relative;border-radius:var(--card-radius,calc(var(--bp-r) + 4px));background:var(--card,var(--card));color:var(--ink,#101828);padding:clamp(1.5rem,3.2vw,2.5rem);border:1px solid var(--card-border,oklch(from var(--ink) l c h / 0.12));box-shadow:inset 0 0 0 6px var(--card),inset 0 0 0 7px var(--card-border,color-mix(in oklch,var(--ink) 7%,var(--card))),var(--card-shadow,var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)))}
:where(.cf-bridge-page) .cfbp-nh{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1rem;margin-bottom:1.15rem}
:where(.cf-bridge-page) .cfbp-nh h2{font:var(--display-weight,900) clamp(1.5rem,1.2rem + 1vw,2rem)/1.08 var(--font-display);letter-spacing:var(--display-tracking,-.02em);color:var(--ink,#101828);text-wrap:balance;text-transform:var(--display-case,none)}
:where(.cf-bridge-page) .cfbp-chip{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .85rem;border-radius:999px;background:color-mix(in oklch,var(--ink,#101828) 6%,var(--card));border:1px solid color-mix(in oklch,var(--ink,#101828) 11%,var(--card));color:var(--muted,#4a5565);font-size:.875rem;font-weight:600;white-space:nowrap}
:where(.cf-bridge-page) .cfbp-body p{font-size:clamp(1.0625rem,1rem + .25vw,1.1875rem);line-height:1.62;color:var(--ink,#101828);text-wrap:pretty}
:where(.cf-bridge-page) .cfbp-body p+p{margin-top:.85rem}
:where(.cf-bridge-page) .cfbp-body p:first-child{font-weight:700}
:where(.cf-bridge-page) .cfbp-body strong{font-weight:800}
:where(.cf-bridge-page) .cfbp-mark{color:inherit;font-weight:700;padding:0 .2em;margin:0 -.05em;border-radius:.3em .6em .35em .5em;background:linear-gradient(to bottom,transparent 32%,var(--bp-marker) 32%,var(--bp-marker) 95%,transparent 95%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
:where(.cf-bridge-page) .cfbp-sign{margin-top:1.5rem}
:where(.cf-bridge-page) .cfbp-sign p{font-size:1rem;color:var(--muted,#4a5565)}
:where(.cf-bridge-page) .cfbp-sig{display:block;margin-top:.3rem;font:700 clamp(2.1rem,1.75rem + 1vw,2.6rem)/1 var(--signature-font,var(--signature-face,var(--font-display)));color:var(--signature-ink,var(--ink))}
:where(.cf-bridge-page) .cfbp-role{display:block;margin-top:.45rem;font-size:.875rem;font-weight:600;color:var(--muted,#4a5565)}
:where(.cf-bridge-page) .cfbp-reason{margin-top:clamp(2.25rem,3.5vw,2.85rem)}
:where(.cf-bridge-page) .cfbp-reason p:first-child{font-size:clamp(1.0625rem,1rem + .3vw,1.25rem);font-weight:500;line-height:1.4;color:var(--bp-soft);text-wrap:pretty}
:where(.cf-bridge-page) .cfbp-reason p+p{margin-top:.45rem;font:var(--display-weight,800) clamp(1.3rem,1.1rem + .8vw,1.75rem)/1.2 var(--font-display);letter-spacing:var(--display-tracking,-.015em);color:var(--band-ink,var(--card));text-wrap:balance;text-transform:var(--display-case,none)}
:where(.cf-bridge-page) .cfbp-action{margin-top:1.6rem}
:where(.cf-bridge-page) .cfbp-cta{position:relative;overflow:hidden;display:flex;width:100%;min-height:78px;align-items:center;justify-content:center;gap:.875rem;padding:.9rem 1.25rem;border-radius:var(--button-radius,var(--bp-r));border:1px solid color-mix(in oklch,var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)) 78%,var(--ink));background:linear-gradient(180deg,var(--button-bg,var(--cta)) 0%,var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)) 100%);color:var(--button-ink,var(--cta-ink));font:var(--button-weight,800) clamp(1.2rem,1.05rem + .6vw,1.5rem)/1.1 var(--button-font,var(--font-display));letter-spacing:-.005em;text-decoration:none;text-align:center;text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));cursor:pointer;box-shadow:var(--button-shadow,inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h),var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)));transition:transform .16s ease,box-shadow .16s ease,filter .16s ease,background .2s ease;-webkit-tap-highlight-color:transparent;text-transform:var(--button-case,none)}
:where(.cf-bridge-page) .cfbp-cta::before{content:"";position:absolute;inset:0 auto 0 -40%;width:35%;background:linear-gradient(100deg,transparent,oklch(from var(--button-ink,var(--cta-ink)) l c h / 0.28),transparent);transform:skewX(-18deg) translateX(0);opacity:0;pointer-events:none}
:where(.cf-bridge-page) .cfbp-cta-label{position:relative;text-wrap:balance}
:where(.cf-bridge-page) .cfbp-cta:hover,:where(.cf-bridge-page) .cfbp-cta[data-force="hover"]{transform:translateY(-2px);background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h);box-shadow:var(--button-shadow,inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h),var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)))}
:where(.cf-bridge-page) .cfbp-cta:active,:where(.cf-bridge-page) .cfbp-cta[data-force="active"]{transform:translateY(2px);background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h);box-shadow:var(--button-shadow,inset 0 -1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h),var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / 0.18), 0 1px 3px oklch(0.22 0.03 260 / 0.14)))}
:where(.cf-bridge-page) .cfbp-cta:focus-visible{outline:3px solid var(--bp-gold);outline-offset:5px}
:where(.cf-bridge-page) .cfbp-cta[aria-disabled="true"]{cursor:not-allowed;transform:none;filter:none;border-color:var(--field-border,oklch(from var(--ink) l c h / 0.22));background:var(--field);color:var(--field-ink);text-shadow:none;box-shadow:var(--button-shadow,0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / .24))}
:where(.cf-bridge-page) .cfbp-under{margin-top:1.2rem!important;text-align:center;font-size:.9375rem;font-weight:500;line-height:1.45;color:var(--bp-soft);text-wrap:pretty}
:where(.cf-bridge-page) .cfbp-under[data-tone="warn"]{color:var(--warning);background:var(--warning-soft);font-weight:600}
@media (hover:hover){:where(.cf-bridge-page) .cfbp-photo:hover .cfbp-frame{transform:rotate(0deg) translateY(-4px)}}
@media (max-width:860px){
:where(.cf-bridge-page) .cfbp-grid{grid-template-columns:minmax(0,1fr)}
:where(.cf-bridge-page) .cfbp-photo{display:block;min-height:0;width:100%;max-width:30rem;margin-inline:auto}
:where(.cf-bridge-page) .cfbp-frame{display:block;transform:rotate(-1deg)}
:where(.cf-bridge-page) .cfbp-imgwrap{width:100%;aspect-ratio:4/3.7}
:where(.cf-bridge-page) .cfbp-pause{top:-2rem;right:-4rem;width:11rem;height:13rem;gap:2rem}
:where(.cf-bridge-page) .cfbp-reason{text-align:center}
}
@media (max-width:480px){
:where(.cf-bridge-page) .cfbp-notewrap::before{inset:.6rem -.45rem -.55rem .6rem}
:where(.cf-bridge-page) .cfbp-note{padding:1.35rem 1.25rem 1.5rem}
:where(.cf-bridge-page) .cfbp-cta{min-height:70px;padding:.8rem 1rem;gap:.75rem}
:where(.cf-bridge-page) .cfbp-lbl{font-size:.875rem}
}
@media (prefers-reduced-motion:no-preference){
.cf-bridge-page [data-rv]{animation:cfbp-rv .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--d,0) * 50ms)}
:where(.cf-bridge-page) .cfbp-wait{animation:cfbp-wait .6s .12s cubic-bezier(.3,1.4,.5,1) both}
:where(.cf-bridge-page) .cfbp-step[data-status="current"]::before{animation:cfbp-fill .7s .2s cubic-bezier(.2,.8,.2,1) both}
:where(.cf-bridge-page) .cfbp-step[data-status="current"] .cfbp-dot::after{animation:cfbp-ring 1.6s .6s ease-out 3}
:where(.cf-bridge-page) .cfbp-imgwrap img{animation:cfbp-kb 1.8s cubic-bezier(.2,.8,.2,1) both}
:where(.cf-bridge-page) .cfbp-cta::before{transition:transform .7s ease,opacity .2s ease}
:where(.cf-bridge-page) .cfbp-cta:hover::before,:where(.cf-bridge-page) .cfbp-cta[data-force="hover"]::before{opacity:1;transform:skewX(-18deg) translateX(420%)}
:where(.cf-bridge-page) .cfbp-cta[aria-disabled="true"]::before{opacity:0}
}
@media (prefers-reduced-motion:reduce){
.cf-bridge-page *,.cf-bridge-page *::before,.cf-bridge-page *::after{transition:none!important;animation:none!important}
:where(.cf-bridge-page) .cfbp-cta:hover,:where(.cf-bridge-page) .cfbp-cta[data-force="hover"],:where(.cf-bridge-page) .cfbp-photo:hover .cfbp-frame{transform:none}
}
@media (forced-colors:active){
:where(.cf-bridge-page) .cfbp-cta,:where(.cf-bridge-page) .cfbp-note,:where(.cf-bridge-page) .cfbp-frame{border:2px solid CanvasText}
:where(.cf-bridge-page) .cfbp-cta:focus-visible{outline-color:Highlight}
}
@keyframes cfbp-rv{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cfbp-wait{0%{transform:scale(.9) rotate(-4deg)}55%{transform:scale(1.07) rotate(1.5deg)}100%{transform:none}}
@keyframes cfbp-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes cfbp-ring{0%{opacity:.7;transform:scale(1)}100%{opacity:0;transform:scale(1.9)}}
@keyframes cfbp-kb{from{transform:scale(1.07)}to{transform:scale(1)}}
`
function rich(text: string): React.ReactNode[] {
return text
.split(/(\*\*[^*]+?\*\*|==[^=]+?==)/g)
.filter(Boolean)
.map((part, i) => {
if (part.startsWith("**") && part.endsWith("**") && part.length > 4) {
return <strong key={i}>{part.slice(2, -2)}</strong>
}
if (part.startsWith("==") && part.endsWith("==") && part.length > 4) {
return (
<mark key={i} className="cfbp-mark">
{part.slice(2, -2)}
</mark>
)
}
return <React.Fragment key={i}>{part}</React.Fragment>
})
}
const vars = (o: Record<string, string | number>) => o as React.CSSProperties
pieces/hero/bridge-page/specimen.tsx 48 lines
import __studioImage1e1e9268 from "../assets/d694f0ec8f3ee177.webp";
import * as React from "react"
import BridgePage, { type BridgePageState } from "../bridge-page"
import { slot } from "../../slots"
import defaults from "../../studio-defaults.json"
export const states = ["default", "hover", "active", "disabled"]
export default function BridgePageSpecimen({ state = "default" }: { state?: string }) {
const s = defaults.sample
const [guide, workbook, checklist] = s.items.map((item) => item.name)
return (
<div>
<BridgePage
state={state as BridgePageState}
preventNavigation
interrupt="Wait!"
headline="Before you continue…"
subhead="Read this short note first. It takes a minute, and you’ll know exactly what you’re about to see."
steps={[{ label: "Clicked through" }, { label: "Read this note" }, { label: "See the kit" }]}
currentStep={1}
presenterImage={slot("presenter", __studioImage1e1e9268)}
presenterAlt="Your host, ready to share a quick note"
presenterName="Your host"
presenterCaption="A quick word before you continue"
noteTitle="Read this first"
readTime="1-minute read"
noteParagraphs={[
"Hey, quick note before you go on.",
`On the next page you’ll see **${s.name}**: the ${guide}, the ${workbook} and the ${checklist}, in one download.`,
"Read it with one question in mind: ==what would my first funnel look like with a clear plan?==",
]}
signOff="See you on the next page,"
signature="Your host"
signatureRole={s.name}
reason={[
"A pile of pages isn’t a funnel.",
"This kit gives you the plan, the page copy and the launch checks in one place.",
]}
ctaLabel="Continue To The Kit"
href="#funnel-starter-kit"
ctaNote={`Next page: everything inside · one payment of ${s.price}`}
disabledNote="The kit page isn’t available right now."
/>
</div>
)
}
| Name | Type | Details |
|---|---|---|
interrupt OptionalBridgePage |
string |
Default "Wait!"
|
headline OptionalBridgePage |
string |
Default "Before you continue…"
|
subhead OptionalBridgePage |
string |
Default "Read this short note first. It takes a minute, and you’ll know exactly what you’re about to see."
|
steps OptionalBridgePage |
BridgeStep[] |
Default [{ label: "Clicked through" }, { label: "Read this note" }, { label: "See the offer" }]
|
currentStep OptionalBridgePage |
number |
Default 1
|
progressLabel OptionalBridgePage |
string |
Default "Your progress"
|
completedStepLabel OptionalBridgePage |
string |
Default " (done)"
|
currentStepLabel OptionalBridgePage |
string |
Default " (you are here)"
|
presenterImage OptionalBridgePage |
string |
|
presenterAlt OptionalBridgePage |
string |
Default "Portrait of your host"
|
presenterName OptionalBridgePage |
string |
Default "Your host"
|
presenterCaption OptionalBridgePage |
string |
Default "A quick word before you continue"
|
noteTitle OptionalBridgePage |
string |
Default "Read this first"
|
readTime OptionalBridgePage |
string |
Default "1-minute read"
|
noteParagraphs OptionalBridgePage |
(string | { text: string })[] |
Default [
"Hey, quick note before you go on.",
"On the next page you’ll see **the full offer**: what’s inside, how it works and today’s price.",
"Read it with one question in mind: ==what would this look like with a clear plan?==",
]
|
signOff OptionalBridgePage |
string |
Default "See you on the next page,"
|
signature OptionalBridgePage |
string |
Default "Your host"
|
signatureRole OptionalBridgePage |
string |
|
reason OptionalBridgePage |
(string | { text: string })[] |
Default [
"A pile of pages isn’t a plan.",
"The next page shows you exactly what’s inside and how it works.",
]
|
ctaLabel OptionalBridgePage |
string |
Default "Continue To The Offer"
|
href OptionalBridgePage |
string |
Default ctaHref
|
ctaHref OptionalBridgePage |
string |
Default "#offer"
|
ctaNote OptionalBridgePage |
string |
Default "Next: see what’s inside and today’s price"
|
loadingLabel OptionalBridgePage |
string |
|
successLabel OptionalBridgePage |
string |
|
statusText OptionalBridgePage |
string |
|
disabled OptionalBridgePage |
boolean |
Default false
|
disabledNote OptionalBridgePage |
string |
Default "The next page isn’t available right now."
|
preventNavigation OptionalBridgePage |
boolean |
Default false
|
onAction OptionalBridgePage |
(event: React.MouseEvent<HTMLAnchorElement>) => void |
Default onContinue
|
onContinue OptionalBridgePage |
(event: React.MouseEvent<HTMLAnchorElement>) => void |
|
state OptionalBridgePage |
BridgePageState |
Default "default"
|
id OptionalBridgePage |
string |
|
className OptionalBridgePage |
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.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-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.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d694f0ec8f3ee177.webp
image/webp · 94.1 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB