Before After 5
Belief-flip proof: one client's turnaround set as an advertorial front page. Each false belief flips to the truth on a dark stage, then the copy hands off to the apply action.
Use it in a prompt
Use proof/before-after-5 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/proof/before-after-5.tsx. - Import it and pass your copy and images (Props tab):
import { BeforeAfter5 } from "@/components/funneldna/proof/before-after-5"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/before-after-5/component.tsx 428 lines
// layout: advertorial-front
// Belief-flip proof: one client's turnaround set as an advertorial front page. Each false belief flips to the truth on a dark stage, then the copy hands off to the apply action.
import * as React from "react"
import { Check, Clock, RotateCw, X } from "lucide-react"
import { FX_HOST, Glow, Spot } from "../fx/fx"
import checklist from "../fx/spots/checklist"
export type BeliefFlip = {
/** The false belief, in the speaker's words. */
before: string
/** The truth that replaces it. */
after: string
}
export type BeforeAfter5Client = {
name: string
/** Role and place, shown as plain text under the portrait. */
role?: string
/** Portrait src (slot: client). */
image?: string
imageAlt?: string
}
export type BeforeAfter5Props = {
/** Advertorial masthead across the top of the block. */
masthead?: string
/** Small dateline opposite the masthead. */
dateline?: string
/** The client's one big line. Wrap the key phrase in <mark>. It shows only when client.name is also set. */
quote?: React.ReactNode
/** A short story line under the quote. */
story?: React.ReactNode
/** The featured client. Leave it empty for the no-proof version. */
client?: BeforeAfter5Client
/** Headline for the version with no named client. */
headline?: React.ReactNode
/** Lead for the version with no named client. */
lead?: React.ReactNode
tableTitle?: React.ReactNode
anonTableTitle?: React.ReactNode
beforeLabel?: string
afterLabel?: string
anonBeforeLabel?: string
anonAfterLabel?: string
/** Text shown on a row before it flips. */
flipHint?: string
anonFlipHint?: string
/** Three or four rows covering the vehicle, internal and external false beliefs. */
beliefs?: BeliefFlip[]
/** An italic aside in the speaker's voice. */
aside?: React.ReactNode
/** The plain instruction just above the button. */
instruction?: React.ReactNode
label?: string
/** One short line under the button. */
note?: string
href?: string
onAction?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void
disabled?: boolean
state?: "default" | "hover" | "active" | "disabled"
className?: string
}
type Flip = { on: boolean; delay: number }
export function BeforeAfter5(props: BeforeAfter5Props) {
const {
masthead = "The Turnaround File",
dateline = "",
quote,
story,
client,
headline = "The beliefs that keep good businesses stuck",
lead = "Each one sounds sensible. Tap a row to see the truth that replaces it.",
tableTitle = "The beliefs I had to flip",
anonTableTitle = "Flip the beliefs holding you back",
beforeLabel = "What I believed",
afterLabel = "What I know now",
anonBeforeLabel = "What most people believe",
anonAfterLabel = "What's actually true",
flipHint = "See what I know now",
anonFlipHint = "See what's true",
beliefs = DEFAULT_BELIEFS,
aside = "(I know. It sounds backwards at first.)",
instruction = "Click the button below to apply.",
label = "Apply now",
note = "",
href,
onAction,
disabled = false,
state = "default",
className,
} = props
const named = Boolean(quote && client?.name)
const bLabel = named ? beforeLabel : anonBeforeLabel
const aLabel = named ? afterLabel : anonAfterLabel
const hint = named ? flipHint : anonFlipHint
const isDisabled = disabled || state === "disabled"
const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, "")
const headId = `cf-ba5-${uid}-head`
const tableId = `cf-ba5-${uid}-table`
const count = beliefs.length
const [flips, setFlips] = React.useState<Flip[]>(() => beliefs.map(() => ({ on: true, delay: 0 })))
const [live, setLive] = React.useState(false)
const rowRefs = React.useRef<(HTMLButtonElement | null)[]>([])
const observer = React.useRef<IntersectionObserver | null>(null)
// Every row renders flipped (both beliefs readable). With motion allowed, the rows are set back before first
// paint and each one flips as it scrolls into view.
useIsoLayoutEffect(() => {
const fill = (on: boolean) => Array.from({ length: count }, () => ({ on, delay: 0 }))
const canAnimate =
typeof window !== "undefined" &&
"IntersectionObserver" in window &&
!(window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
if (!canAnimate) {
setFlips(fill(true))
return
}
setFlips(fill(false))
const frame = window.requestAnimationFrame(() => setLive(true))
const io = new IntersectionObserver(
(entries) => {
const hits = entries
.filter((entry) => entry.isIntersecting)
.map((entry) => Number((entry.target as HTMLElement).dataset.index))
.filter((index) => Number.isFinite(index))
.sort((a, b) => a - b)
if (!hits.length) return
hits.forEach((index) => {
const el = rowRefs.current[index]
if (el) io.unobserve(el)
})
setFlips((prev) =>
prev.map((flip, index) => {
const order = hits.indexOf(index)
return order < 0 ? flip : { on: true, delay: 0.15 + Math.min(order * 0.12, 0.28) }
}),
)
},
{ threshold: 0.6, rootMargin: "0px 0px -10% 0px" },
)
rowRefs.current.slice(0, count).forEach((el) => {
if (el) io.observe(el)
})
observer.current = io
return () => {
window.cancelAnimationFrame(frame)
io.disconnect()
observer.current = null
}
}, [count])
const toggle = (index: number) => {
const el = rowRefs.current[index]
if (el && observer.current) observer.current.unobserve(el)
setFlips((prev) => prev.map((flip, i) => (i === index ? { on: !flip.on, delay: 0 } : flip)))
}
const ctaClass = cx(
"cf-ba5__cta",
state === "hover" && "is-hover",
state === "active" && "is-active",
isDisabled && "is-disabled",
)
const cta =
href && !isDisabled ? (
<a className={ctaClass} href={href} onClick={onAction}>
{label}
</a>
) : (
<button type="button" className={ctaClass} disabled={isDisabled} onClick={isDisabled ? undefined : onAction}>
{label}
</button>
)
return (
<section className={cx("cf-ba5", live && "is-live", className)} aria-labelledby={headId}>
<style>{CSS}</style>
{(masthead || dateline) && (
<header className="cf-ba5__mast">
{masthead && <p className="cf-ba5__mast-title">{masthead}</p>}
{dateline && <p className="cf-ba5__dateline">{dateline}</p>}
</header>
)}
<div className="cf-ba5__grid">
<div className="cf-ba5__lede">
{named ? (
<>
<h2 id={headId} className="cf-ba5__headline">
<span className="cf-ba5__qm" aria-hidden="true">
“
</span>
{quote}
<span aria-hidden="true">”</span>
</h2>
{story && <p className="cf-ba5__story">{story}</p>}
<figure className="cf-ba5__figure">
{client?.image && (
<img
className="cf-ba5__photo"
src={client.image}
alt={client.imageAlt ?? client.name}
width={800}
height={800}
loading="lazy"
decoding="async"
/>
)}
<figcaption className="cf-ba5__cap">
<span className="cf-ba5__name">{client?.name}</span>
{client?.role && <span className="cf-ba5__role">{client.role}</span>}
</figcaption>
</figure>
</>
) : (
<>
<h2 id={headId} className="cf-ba5__headline">
{headline}
</h2>
{lead && <p className="cf-ba5__lead">{lead}</p>}
<div className="cf-ba5__spot">
<Spot src={checklist} size={96} />
</div>
</>
)}
</div>
<div className="cf-ba5__stage" style={FX_HOST}>
<Glow />
<div className="cf-ba5__stage-in">
<h3 id={tableId} className="cf-ba5__title">
{named ? tableTitle : anonTableTitle}
</h3>
<div className="cf-ba5__heads" aria-hidden="true">
<span className="cf-ba5__head">{bLabel}</span>
<span className="cf-ba5__head">{aLabel}</span>
</div>
<ul className="cf-ba5__list" aria-labelledby={tableId}>
{beliefs.map((belief, index) => {
const flip = flips[index] ?? { on: true, delay: 0 }
return (
<li key={`${index}-${belief.before}`} className="cf-ba5__item">
<button
type="button"
ref={(el) => {
rowRefs.current[index] = el
}}
data-index={index}
data-on={flip.on ? "true" : undefined}
aria-pressed={flip.on}
className="cf-ba5__row"
style={{ ["--ba5-delay" as string]: `${flip.delay}s` } as React.CSSProperties}
onClick={() => toggle(index)}
>
<span className="cf-ba5__before">
<span className="cf-ba5__badge cf-ba5__badge--no" aria-hidden="true">
<X size={16} strokeWidth={3} />
</span>
<span className="cf-ba5__cell">
<span className="cf-ba5__label">{bLabel}</span>
<span className="cf-ba5__btext">{belief.before}</span>
</span>
</span>
<span className="cf-ba5__flip">
<span className="cf-ba5__face cf-ba5__face--front" aria-hidden="true">
<span className="cf-ba5__hint">
<RotateCw size={16} strokeWidth={2.5} />
{hint}
</span>
</span>
<span className="cf-ba5__face cf-ba5__face--back">
<span className="cf-ba5__badge cf-ba5__badge--yes" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
<span className="cf-ba5__cell">
<span className="cf-ba5__label">{aLabel}</span>
<span className="cf-ba5__atext">{belief.after}</span>
</span>
</span>
</span>
</button>
</li>
)
})}
</ul>
<div className="cf-ba5__close">
{aside && <p className="cf-ba5__aside">{aside}</p>}
{instruction && <p className="cf-ba5__instr">{instruction}</p>}
<div className="cf-ba5__action">{cta}</div>
{note && (
<p className="cf-ba5__note">
<Clock size={16} strokeWidth={2.5} aria-hidden="true" />
{note}
</p>
)}
</div>
</div>
</div>
</div>
</section>
)
}
export default BeforeAfter5
const DEFAULT_BELIEFS: BeliefFlip[] = [
{
before: "I need more leads before anything else can work.",
after: "A clearer offer turns the leads I already get into sales calls.",
},
{
before: "I'm just not the kind of person who can sell.",
after: "Selling is a process I can learn, not a personality I need.",
},
{
before: "My market can't afford a higher price.",
after: "The right buyers pay for certainty, not for hours.",
},
]
const useIsoLayoutEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect
function cx(...parts: Array<string | false | null | undefined>) {
return parts.filter(Boolean).join(" ")
}
const CSS = `
.cf-ba5{--ba5-gut:clamp(16px,5vw,48px);--ba5-wide:1120px;--ba5-split:clamp(32px,4vw,56px);--ba5-cols:minmax(0,1fr) minmax(0,1.15fr);--ba5-shadow:var(--shadow,oklch(0.22 0.03 260));--ba5-bg:var(--button-bg,var(--cta));--ba5-bg2:var(--button-bg-2,var(--cta-2));--ba5-strike:oklch(from var(--band-ink) l c h / 0.6);--ba5-before:color-mix(in oklab,var(--band-ink) 84%,var(--band));container:ba5 / inline-size;position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding-top:clamp(56px,8vw,112px);overflow-x:clip}
.cf-ba5 *,.cf-ba5 *::before,.cf-ba5 *::after{box-sizing:border-box}
.cf-ba5__mast{width:min(var(--ba5-wide),100% - 2 * var(--ba5-gut));margin-inline:auto;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;padding-bottom:12px;border-bottom:3px double oklch(from var(--ink) l c h / 0.4)}
.cf-ba5__mast-title{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--ink)}
.cf-ba5__dateline{margin:0;font-size:0.875rem;font-weight:800;line-height:1.2;letter-spacing:0.08em;text-transform:uppercase;color:var(--muted)}
.cf-ba5__grid{display:grid;grid-template-columns:minmax(0,1fr);margin-top:24px}
.cf-ba5__lede{min-width:0;padding:24px var(--ba5-gut) clamp(48px,6vw,72px)}
.cf-ba5__headline{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--ink)}
.cf-ba5__headline mark{color:inherit;background:linear-gradient(transparent 0 44%,var(--marker,#fae37cbf) 44% 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 0.08em;border-radius:0.1em}
.cf-ba5__story{margin:16px 0 0;max-width:60ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-ba5__lead{margin:16px 0 0;max-width:46ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--ink);text-wrap:pretty}
.cf-ba5__figure{margin:32px 0 0}
.cf-ba5__photo{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover;object-position:50% 28%;border-radius:12px;background:color-mix(in oklch,var(--ink) 6%,var(--surface))}
.cf-ba5__cap{display:flex;flex-direction:column;gap:4px;margin-top:12px}
.cf-ba5__name{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:800;line-height:1.3;color:var(--ink)}
.cf-ba5__role{font-size:0.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-ba5__spot{margin-top:32px}
.cf-ba5__stage{min-width:0;padding:clamp(40px,6vw,56px) var(--ba5-gut) clamp(64px,8.5vw,120px);background:var(--band);color:var(--band-ink)}
.cf-ba5__stage-in{position:relative;z-index:1}
.cf-ba5__title{margin:0 0 24px;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance;color:var(--band-ink)}
.cf-ba5__heads{display:none}
.cf-ba5__head{font-size:0.875rem;font-weight:800;line-height:1.2;letter-spacing:0.08em;text-transform:uppercase;color:color-mix(in oklab,var(--band-ink) 82%,var(--band))}
.cf-ba5__list{list-style:none;margin:0;padding:0}
.cf-ba5__item+.cf-ba5__item{border-top:1px solid oklch(from var(--band-ink) l c h / 0.14)}
.cf-ba5__item+.cf-ba5__item .cf-ba5__label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cf-ba5__row{appearance:none;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:calc(100% + 28px);margin:0 -14px;padding:20px 14px;border:0;border-radius:12px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background 0.16s ease}
.cf-ba5__row:hover{background:oklch(from var(--band-ink) l c h / 0.05)}
.cf-ba5__row:focus-visible{outline:3px solid oklch(from var(--band-ink) l c h / 0.8);outline-offset:2px}
.cf-ba5__row:active .cf-ba5__flip{transform:scale(0.985)}
.cf-ba5__before{display:flex;align-items:flex-start;gap:12px;min-width:0}
.cf-ba5__badge{flex:0 0 auto;display:inline-grid;place-items:center;width:26px;height:26px;margin-top:1px;border-radius:999px;color:var(--ba5-glyph,#fff)}
.cf-ba5__badge--no{background:var(--danger)}
.cf-ba5__badge--yes{background:var(--success)}
.cf-ba5__cell{display:block;min-width:0}
.cf-ba5__label{display:block;margin-bottom:6px;font-size:0.875rem;font-weight:800;line-height:1.2;letter-spacing:0.08em;text-transform:uppercase}
.cf-ba5__before .cf-ba5__label{color:color-mix(in oklab,var(--band-ink) 82%,var(--band))}
.cf-ba5__face--back .cf-ba5__label{color:var(--muted)}
.cf-ba5__btext{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;font-weight:500;color:var(--ba5-before);text-wrap:pretty;background-image:linear-gradient(var(--ba5-strike),var(--ba5-strike));background-repeat:no-repeat;background-position:0 58%;background-size:0% 2px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-ba5__row[data-on] .cf-ba5__btext{background-size:100% 2px}
.cf-ba5__flip{display:grid;min-width:0;perspective:1100px;transition:transform 0.16s ease}
.cf-ba5__face{grid-area:1 / 1;display:flex;align-items:flex-start;gap:12px;min-width:0;padding:16px 18px;border-radius:var(--card-radius,var(--radius,14px));-webkit-backface-visibility:hidden;backface-visibility:hidden}
.cf-ba5__face--front{align-items:center;background:oklch(from var(--band-ink) l c h / 0.07);border:1px solid oklch(from var(--band-ink) l c h / 0.22);color:var(--band-ink);transform:rotateX(0deg)}
.cf-ba5__row:hover .cf-ba5__face--front{background:oklch(from var(--band-ink) l c h / 0.12)}
.cf-ba5__face--back{background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / 0.12));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)));transform:rotateX(-180deg)}
.cf-ba5__row[data-on] .cf-ba5__face--front{transform:rotateX(180deg)}
.cf-ba5__row[data-on] .cf-ba5__face--back{transform:rotateX(0deg)}
.cf-ba5.is-live .cf-ba5__face{transition:transform 0.6s cubic-bezier(.2,.7,.2,1) var(--ba5-delay,0s)}
.cf-ba5.is-live .cf-ba5__btext{transition:background-size 0.45s cubic-bezier(.2,.7,.2,1) var(--ba5-delay,0s)}
.cf-ba5__hint{font-size:0.9375rem;font-weight:700;line-height:1.4;text-wrap:pretty}
.cf-ba5__hint svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:0.4em}
.cf-ba5__atext{display:block;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;font-weight:700;color:var(--ink);text-wrap:pretty}
.cf-ba5__close{margin-top:32px}
.cf-ba5__aside{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-style:italic;font-weight:500;color:var(--band-ink);text-wrap:pretty}
.cf-ba5__instr{margin:12px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;font-weight:700;color:var(--band-ink);text-wrap:pretty}
.cf-ba5__action{margin-top:24px}
.cf-ba5__note{margin:12px 0 0;font-size:0.9375rem;font-weight:600;line-height:1.4;color:var(--band-ink);text-wrap:balance}
.cf-ba5__note svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:0.4em}
.cf-ba5__cta{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:64px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display));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;white-space:nowrap;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);text-decoration:none;cursor:pointer;background:linear-gradient(oklch(from var(--ba5-bg) calc(l + 0.04) c h),oklch(from var(--ba5-bg2) calc(l - 0.02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--ba5-bg) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--ba5-bg) calc(l - 0.16) c h),0 1px 2px oklch(from var(--ba5-shadow) l c h / 0.4),0 8px 16px -6px oklch(from var(--ba5-shadow) l c h / 0.5));transition:transform 0.16s ease,box-shadow 0.16s ease,background 0.16s ease}
.cf-ba5__cta:hover:not(:disabled),.cf-ba5__cta.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--ba5-bg) calc(l - 0.01) c h),oklch(from var(--ba5-bg2) calc(l - 0.07) c h));box-shadow:inset 0 1px 0 oklch(from var(--ba5-bg) calc(l + 0.12) c h / 0.6),inset 0 -3px 0 oklch(from var(--ba5-bg) calc(l - 0.2) c h),0 1px 2px oklch(from var(--ba5-shadow) l c h / 0.45),0 10px 18px -6px oklch(from var(--ba5-shadow) l c h / 0.6)}
.cf-ba5__cta:active:not(:disabled),.cf-ba5__cta.is-active:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from var(--ba5-bg) calc(l - 0.04) c h),oklch(from var(--ba5-bg2) calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from var(--ba5-shadow) l c h / 0.35),inset 0 -2px 0 oklch(from var(--ba5-bg) calc(l - 0.16) c h),0 1px 2px oklch(from var(--ba5-shadow) l c h / 0.4)}
.cf-ba5__cta:focus-visible{outline:3px solid oklch(from var(--band-ink) l c h / 0.85);outline-offset:3px}
.cf-ba5__cta:disabled,.cf-ba5__cta.is-disabled{cursor:not-allowed;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));transform:none}
@container ba5 (min-width:560px){
.cf-ba5__cta{width:auto;min-width:15rem}
}
@container ba5 (min-width:900px){
.cf-ba5__grid{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
.cf-ba5__lede{padding:var(--ba5-split) var(--ba5-split) clamp(64px,8.5vw,120px) max(var(--ba5-gut),calc((100cqw - var(--ba5-wide)) / 2))}
.cf-ba5__stage{padding:var(--ba5-split) max(var(--ba5-gut),calc((100cqw - var(--ba5-wide)) / 2)) clamp(64px,8.5vw,120px) var(--ba5-split)}
.cf-ba5__qm{margin-inline-start:-0.42em}
.cf-ba5__photo{aspect-ratio:1 / 1}
.cf-ba5__heads{display:grid;grid-template-columns:var(--ba5-cols);gap:24px;padding:0 0 12px;border-bottom:1px solid oklch(from var(--band-ink) l c h / 0.22)}
.cf-ba5__row{grid-template-columns:var(--ba5-cols);gap:24px;align-items:start}
.cf-ba5__before{padding-top:17px}
.cf-ba5__label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media (prefers-reduced-motion: reduce){
.cf-ba5.is-live .cf-ba5__face,.cf-ba5.is-live .cf-ba5__btext{transition:none}
.cf-ba5__row,.cf-ba5__flip,.cf-ba5__cta{transition:none}
.cf-ba5__row:active .cf-ba5__flip,.cf-ba5__cta:active:not(:disabled),.cf-ba5__cta.is-active:not(:disabled){transform:none}
}
`
pieces/proof/before-after-5/specimen.tsx 57 lines
import __studioImagedad877c8 from "../assets/7c7058c70cd3a6ad.webp";
import * as React from "react"
import { BeforeAfter5, type BeforeAfter5Props } from "../before-after-5"
import { slot } from "../../slots"
export const states = ["default", "hover", "active", "disabled"]
export default function BeforeAfter5Specimen({ state }: { state?: BeforeAfter5Props["state"] }) {
const portrait = slot(
"client",
__studioImagedad877c8,
)
return (
<BeforeAfter5
state={state}
masthead="The Scale Desk Casebook"
dateline="Client file · Agency owners"
quote={
<>
I kept selling more hours. The fix was <mark>selling fewer, bigger things.</mark>
</>
}
story="Dana's design studio was booked solid and still barely profitable. Before anything changed, she had to let go of four beliefs."
client={{
name: "Dana R.",
role: "Founder, 9-person design studio, Austin",
image: portrait,
imageAlt: "Dana R. at her studio desk",
}}
tableTitle="The four beliefs I had to flip"
beliefs={[
{
before: "More clients and more retainers is how an agency grows.",
after: "One productized offer at a higher price grows it with less chaos.",
},
{
before: "If I step back from the work, quality drops and clients leave.",
after: "A written delivery process keeps quality up when I'm not on every call.",
},
{
before: "My clients will never pay more than they pay now.",
after: "The clients worth keeping pay for outcomes, not hours.",
},
{
before: "I need a bigger team before I can raise my prices.",
after: "Raising my prices is what pays for the bigger team.",
},
]}
aside="(I know. I didn't believe the last one either.)"
instruction="Click the button below to apply for your Scale Desk strategy call."
label="Apply now"
note="Short application · Takes about 4 minutes"
href="#apply"
/>
)
}
| Name | Type | Details |
|---|---|---|
masthead OptionalBeforeAfter5 |
string |
|
dateline OptionalBeforeAfter5 |
string |
|
quote OptionalBeforeAfter5 |
React.ReactNode |
|
story OptionalBeforeAfter5 |
React.ReactNode |
|
client OptionalBeforeAfter5 |
BeforeAfter5Client |
|
headline OptionalBeforeAfter5 |
React.ReactNode |
|
lead OptionalBeforeAfter5 |
React.ReactNode |
|
tableTitle OptionalBeforeAfter5 |
React.ReactNode |
|
anonTableTitle OptionalBeforeAfter5 |
React.ReactNode |
|
beforeLabel OptionalBeforeAfter5 |
string |
|
afterLabel OptionalBeforeAfter5 |
string |
|
anonBeforeLabel OptionalBeforeAfter5 |
string |
|
anonAfterLabel OptionalBeforeAfter5 |
string |
|
flipHint OptionalBeforeAfter5 |
string |
|
anonFlipHint OptionalBeforeAfter5 |
string |
|
beliefs OptionalBeforeAfter5 |
BeliefFlip[] |
|
aside OptionalBeforeAfter5 |
React.ReactNode |
|
instruction OptionalBeforeAfter5 |
React.ReactNode |
|
label OptionalBeforeAfter5 |
string |
|
note OptionalBeforeAfter5 |
string |
|
href OptionalBeforeAfter5 |
string |
|
onAction OptionalBeforeAfter5 |
(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void |
|
disabled OptionalBeforeAfter5 |
boolean |
|
state OptionalBeforeAfter5 |
"default" | "hover" | "active" | "disabled" |
|
className OptionalBeforeAfter5 |
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--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.
client- An image this piece places.
-
7c7058c70cd3a6ad.webp
image/webp · 58.7 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB