Before During After 1
Before / during / after: the visitor lives through one use of the product on a sticky timeline. A fanned stack of
Use it in a prompt
Use content/before-during-after from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/content/before-during-after.tsx. - Import it and pass your copy and images (Props tab):
import { BeforeDuringAfter } from "@/components/funneldna/content/before-during-after"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/before-during-after/component.tsx 547 lines
// layout: card-fan
// Before / during / after: the visitor lives through one use of the product on a sticky timeline. A fanned stack of
// product cards grows at each stage over a scenic backdrop, then one close carries the action.
import * as React from "react";
import { Calendar, Check, Circle, ClipboardList, Clock, Flag, ListChecks, PenLine, Sparkles, Users } from "lucide-react";
import { Divider, FX_HOST } from "../fx/fx";
export type BeforeDuringAfterMark = "dot" | "flag" | "check" | "todo";
export type BeforeDuringAfterSection = {
heading: string;
// small UI icon beside the section heading
icon?: "brief" | "notes" | "summary" | "steps";
// a short paragraph, e.g. a call summary
intro?: string;
items?: { text: string; mark?: BeforeDuringAfterMark }[];
};
export type BeforeDuringAfterCard = {
title: string;
when?: string;
// head count shown beside a people icon
people?: string;
status?: string;
statusTone?: "neutral" | "live" | "done";
sections: BeforeDuringAfterSection[];
};
export type BeforeDuringAfterStage = {
// anchor id, prefixed with anchorPrefix
id: string;
label: string;
time?: string;
headline: string;
body: string;
// scene slot: the backdrop photo behind the card stack
image?: string;
imageAlt?: string;
card: BeforeDuringAfterCard;
};
export type BeforeDuringAfterProps = {
headline?: string;
// phrase inside the headline that gets the marker stroke
highlight?: string;
lead?: string;
stages?: BeforeDuringAfterStage[];
closeHeadline?: string;
closeBody?: string;
investmentLabel?: string;
// e.g. "$0 for your first 14 days." Omitted when empty
investment?: string;
ctaLabel?: string;
// the plain line under the button
quietLine?: string;
href?: string;
onAction?: () => void;
disabled?: boolean;
anchorPrefix?: string;
// templates: chip "{n} · {label}", cardLabel "Preview: {title}", people "{count} people"
copy?: { railLabel?: string; chip?: string; cardLabel?: string; people?: string; done?: string; todo?: string; flagged?: string };
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
export function BeforeDuringAfter(props: BeforeDuringAfterProps) {
const {
headline = "See it work once, start to finish",
highlight = "start to finish",
lead = "Here is one round with it: before you begin, while it is happening, and the minute it is done.",
stages = DEFAULT_STAGES,
closeHeadline = "Try it on your very next one",
closeBody = "Set it up once and it works through every step you just saw.",
investmentLabel = "Your investment:",
investment = "",
ctaLabel = "Get started now",
quietLine = "or keep reading to see what's inside",
href,
onAction,
disabled = false,
anchorPrefix = "bda-",
copy = {},
state = "default",
className,
} = props;
const railLabel = copy.railLabel ?? "Timeline";
const chipTpl = copy.chip ?? "{n} · {label}";
const cardTpl = copy.cardLabel ?? "Preview: {title}";
const peopleTpl = copy.people ?? "{count} people";
const markLabels = { done: copy.done ?? "Done:", todo: copy.todo ?? "To do:", flagged: copy.flagged ?? "Flagged:" };
const rootRef = React.useRef<HTMLElement>(null);
const listRef = React.useRef<HTMLOListElement>(null);
const [active, setActive] = React.useState(0);
React.useEffect(() => {
const root = rootRef.current;
const list = listRef.current;
if (!root || !list) return;
const items = Array.from(list.querySelectorAll<HTMLElement>("[data-stage]"));
let raf = 0;
const update = () => {
raf = 0;
const line = window.innerHeight * 0.45;
const tops = items.map((el) => el.getBoundingClientRect().top);
let t = 0;
let reached = 0;
tops.forEach((top, i) => {
if (top > line) return;
reached = i;
const next = tops[i + 1];
t = next === undefined ? i : i + Math.min(1, (line - top) / Math.max(1, next - top));
});
root.style.setProperty("--bda-progress", String(Math.min(1, t / Math.max(1, items.length - 1))));
setActive((prev) => (prev === reached ? prev : reached));
};
const onScroll = () => {
if (!raf) raf = window.requestAnimationFrame(update);
};
update();
window.addEventListener("scroll", onScroll, { passive: true });
window.addEventListener("resize", onScroll);
return () => {
window.removeEventListener("scroll", onScroll);
window.removeEventListener("resize", onScroll);
if (raf) window.cancelAnimationFrame(raf);
};
}, [stages.length]);
React.useEffect(() => {
const list = listRef.current;
if (!list || typeof IntersectionObserver === "undefined") return;
if (window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
const io = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
(entry.target as HTMLElement).dataset.in = "true";
io.unobserve(entry.target);
}
});
},
{ threshold: 0.2 }
);
list.querySelectorAll("[data-visual]").forEach((el) => io.observe(el));
return () => io.disconnect();
}, [stages.length]);
const isDisabled = disabled || state === "disabled";
const forced = state === "hover" || state === "active" ? state : undefined;
const cta =
href && !isDisabled ? (
<a className="cf-bda-cta" href={href} data-state={forced} onClick={() => onAction?.()}>
{ctaLabel}
</a>
) : (
<button type="button" className="cf-bda-cta" data-state={forced} disabled={isDisabled} onClick={() => onAction?.()}>
{ctaLabel}
</button>
);
return (
<section
ref={rootRef}
className={["cf-bda", className].filter(Boolean).join(" ")}
style={{ "--n": Math.max(stages.length, 1) } as React.CSSProperties}
>
<style>{CSS}</style>
<div className="cf-bda-zone" style={FX_HOST}>
<div className="cf-bda-blk cf-bda-blk-accent" aria-hidden="true" />
<div className="cf-bda-blk cf-bda-blk-band" aria-hidden="true" />
<Divider shape="step" tone="band" height={56} />
<div className="cf-bda-wrap">
<div className="cf-bda-grid">
<div className="cf-bda-railcol">
<nav className="cf-bda-rail" aria-label={railLabel}>
<div className="cf-bda-railinner">
<span className="cf-bda-track" aria-hidden="true">
<span className="cf-bda-fill" />
</span>
<ol>
{stages.map((s, i) => (
<li key={s.id}>
<a
className="cf-bda-raillink"
href={"#" + anchorPrefix + s.id}
aria-current={active === i ? "step" : undefined}
data-passed={i <= active ? "true" : "false"}
>
<span className="cf-bda-dot" aria-hidden="true" />
<span className="cf-bda-raillabel">{s.label}</span>
{s.time ? <span className="cf-bda-railtime">{s.time}</span> : null}
</a>
</li>
))}
</ol>
</div>
</nav>
</div>
<div className="cf-bda-main">
<header className="cf-bda-head">
<h2 className="cf-bda-h2">{withMarker(headline, highlight)}</h2>
{lead ? <p className="cf-bda-lead">{lead}</p> : null}
</header>
<ol className="cf-bda-stages" ref={listRef}>
{stages.map((s, i) => {
const ghosts = Math.min(i, 2);
return (
<li key={s.id} id={anchorPrefix + s.id} className="cf-bda-stage" data-stage="">
<p className="cf-bda-chip">{fill(chipTpl, { n: String(i + 1), label: s.label })}</p>
<h3 className="cf-bda-h3">{s.headline}</h3>
<p className="cf-bda-body">{s.body}</p>
<div className="cf-bda-frame" data-visual="">
{s.image ? <img className="cf-bda-img" src={s.image} alt={s.imageAlt ?? ""} decoding="async" /> : null}
<div className="cf-bda-fan" style={{ "--ghosts": ghosts } as React.CSSProperties}>
{Array.from({ length: ghosts }, (_, k) => (
<div key={k} className="cf-bda-ghost" data-k={k + 1} aria-hidden="true" />
))}
<StageCard
card={s.card}
label={fill(cardTpl, { title: s.card.title })}
peopleLabel={fill(peopleTpl, { count: s.card.people ?? "" })}
markLabels={markLabels}
/>
</div>
</div>
</li>
);
})}
</ol>
</div>
</div>
</div>
</div>
<div className="cf-bda-close">
<div className="cf-bda-wrap cf-bda-closegrid">
<div className="cf-bda-closecopy">
<h3 className="cf-bda-closeh">{closeHeadline}</h3>
{closeBody || investment ? (
<p className="cf-bda-closebody">
{closeBody}
{investment ? (
<>
{closeBody ? " " : null}
<span className="cf-bda-inv">{investmentLabel}</span> <strong>{investment}</strong>
</>
) : null}
</p>
) : null}
<div className="cf-bda-action">
{cta}
{quietLine ? <p className="cf-bda-quiet">{quietLine}</p> : null}
</div>
</div>
</div>
</div>
</section>
);
}
export default BeforeDuringAfter;
const SECTION_ICONS = { brief: ClipboardList, notes: PenLine, summary: Sparkles, steps: ListChecks };
function StageCard({
card,
label,
peopleLabel,
markLabels,
}: {
card: BeforeDuringAfterCard;
label: string;
peopleLabel: string;
markLabels: { done: string; todo: string; flagged: string };
}) {
const tone = card.statusTone ?? "neutral";
return (
<div className="cf-bda-card" role="group" aria-label={label}>
<div className="cf-bda-cardtop">
<span className="cf-bda-dots" aria-hidden="true">
<i />
<i />
<i />
</span>
{card.status ? (
<span className="cf-bda-status" data-tone={tone}>
{tone === "live" ? (
<span className="cf-bda-live" aria-hidden="true" />
) : tone === "done" ? (
<span className="cf-bda-badge" aria-hidden="true">
<Check size={12} strokeWidth={3} />
</span>
) : (
<Clock size={16} strokeWidth={2.5} aria-hidden="true" />
)}
{card.status}
</span>
) : null}
</div>
<p className="cf-bda-ctitle">{card.title}</p>
{card.when || card.people ? (
<p className="cf-bda-meta">
{card.when ? (
<span>
<Calendar size={16} strokeWidth={2.5} aria-hidden="true" />
{card.when}
</span>
) : null}
{card.people ? (
<span>
<Users size={16} strokeWidth={2.5} aria-hidden="true" />
<span aria-hidden="true">{card.people}</span>
<span className="cf-bda-sr">{peopleLabel}</span>
</span>
) : null}
</p>
) : null}
{card.sections.map((sec, j) => {
const Icon = SECTION_ICONS[sec.icon ?? "brief"];
return (
<div className="cf-bda-sec" key={j}>
<p className="cf-bda-sech">
<Icon size={16} strokeWidth={2.5} aria-hidden="true" />
{sec.heading}
</p>
{sec.intro ? <p className="cf-bda-intro">{sec.intro}</p> : null}
{sec.items && sec.items.length ? (
<ul className="cf-bda-items">
{sec.items.map((it, k) => {
const mark = it.mark ?? "dot";
const sr = mark === "check" ? markLabels.done : mark === "todo" ? markLabels.todo : mark === "flag" ? markLabels.flagged : "";
return (
<li key={k} data-mark={mark}>
<span className="cf-bda-mk" aria-hidden="true">
<MarkIcon mark={mark} />
</span>
<span>
{sr ? <span className="cf-bda-sr">{sr} </span> : null}
{it.text}
</span>
</li>
);
})}
</ul>
) : null}
</div>
);
})}
</div>
);
}
function MarkIcon({ mark }: { mark: BeforeDuringAfterMark }) {
if (mark === "flag") return <Flag size={16} strokeWidth={2.5} />;
if (mark === "todo") return <Circle size={18} strokeWidth={2.5} />;
if (mark === "check")
return (
<span className="cf-bda-badge">
<Check size={12} strokeWidth={3} />
</span>
);
return <span className="cf-bda-bullet" />;
}
function withMarker(text: string, phrase?: string) {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className="cf-bda-mark">{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
function fill(template: string, values: Record<string, string>) {
return Object.keys(values).reduce((out, key) => out.split("{" + key + "}").join(values[key]), template);
}
const DEFAULT_STAGES: BeforeDuringAfterStage[] = [
{
id: "before",
label: "Before",
time: "Getting ready",
headline: "Start every session prepared",
body: "What you need is gathered and waiting before you begin, so you walk in knowing what matters.",
card: {
title: "Your next session",
when: "Today",
people: "2",
status: "Prep ready",
statusTone: "neutral",
sections: [
{
heading: "Your prep",
icon: "brief",
items: [
{ text: "Who you are meeting and what they asked for", mark: "dot" },
{ text: "The one question to ask first", mark: "dot" },
],
},
],
},
},
{
id: "during",
label: "During",
time: "In the moment",
headline: "Give it your full attention",
body: "Stay present while the important details are captured for you as they happen.",
card: {
title: "Your next session",
when: "Today",
people: "2",
status: "Capturing",
statusTone: "live",
sections: [
{ heading: "From your prep", icon: "brief", items: [{ text: "First question asked", mark: "check" }] },
{
heading: "Live notes",
icon: "notes",
items: [
{ text: "Their main goal, in their own words", mark: "dot" },
{ text: "A concern to answer before you wrap up", mark: "flag" },
],
},
],
},
},
{
id: "after",
label: "After",
time: "The minute it ends",
headline: "The wrap-up, done for you",
body: "The summary and next steps are ready the moment you finish, so you can move things forward.",
card: {
title: "Your next session",
when: "Today",
people: "2",
status: "Summary ready",
statusTone: "done",
sections: [
{ heading: "Summary", icon: "summary", intro: "A short recap of what was agreed and what happens next." },
{
heading: "Next steps",
icon: "steps",
items: [
{ text: "Send the recap", mark: "check" },
{ text: "Book the next conversation", mark: "todo" },
],
},
],
},
},
];
const CSS = `
.cf-bda{--bda-gutter:clamp(16px,5vw,48px);--bda-rail:248px;--bda-gap:clamp(32px,5vw,72px);--bda-ease:cubic-bezier(.2,.7,.2,1);--fan-x:22px;--fan-y:16px;position:relative;overflow:clip;background:var(--surface);color:var(--ink);font-family:var(--font-body)}
.cf-bda *,.cf-bda *::before,.cf-bda *::after{box-sizing:border-box}
.cf-bda-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-bda-zone{position:relative;padding:clamp(56px,8vw,112px) 0 calc(clamp(64px,8.5vw,120px) + 56px)}
.cf-bda-blk{position:absolute;top:0;bottom:0;left:0;width:calc((100% - min(1120px,100% - 2 * var(--bda-gutter))) / 2 + var(--bda-rail));clip-path:polygon(0 132px,100% 0,100% 100%,0 100%);display:none;pointer-events:none}
.cf-bda-blk-accent{background:var(--accent-fill,var(--accent))}
.cf-bda-blk-band{top:22px;background:var(--band)}
.cf-bda-wrap{position:relative;z-index:1;width:min(1120px,100% - 2 * var(--bda-gutter));margin-inline:auto}
.cf-bda-railcol{display:none}
.cf-bda-main{min-width:0}
.cf-bda-rail{position:sticky;top:40px;padding:2px 24px 0 0;color:var(--band-ink)}
.cf-bda-railinner{position:relative}
.cf-bda-rail ol{position:relative;z-index:1;list-style:none;margin:0;padding:0;display:grid;grid-auto-rows:88px}
.cf-bda-track{position:absolute;z-index:0;left:8px;top:9px;width:2px;height:calc((var(--n) - 1) * 88px);border-radius:2px;overflow:hidden;background:color-mix(in oklch,var(--band-ink) 24%,var(--band))}
.cf-bda-fill{position:absolute;inset:0;background:var(--band-ink);transform-origin:top;transform:scaleY(var(--bda-progress,0))}
.cf-bda-raillink{position:relative;display:block;padding-left:34px;border-radius:8px;color:color-mix(in oklch,var(--band-ink) 76%,var(--band));text-decoration:none;outline:none}
.cf-bda-raillink:hover .cf-bda-raillabel{text-decoration:underline;text-underline-offset:.18em}
.cf-bda-raillink:focus-visible{outline:2px solid var(--band-ink);outline-offset:4px}
.cf-bda-raillink[aria-current]{color:var(--band-ink)}
.cf-bda-dot{position:absolute;left:0;top:1px;width:18px;height:18px;border-radius:50%;background:var(--band);border:2px solid color-mix(in oklch,var(--band-ink) 45%,var(--band));transition:background-color .16s ease,border-color .16s ease}
.cf-bda-raillink[data-passed="true"] .cf-bda-dot{background:var(--band-ink);border-color:var(--band-ink)}
.cf-bda-raillink[aria-current] .cf-bda-dot{outline:4px solid color-mix(in oklch,var(--band-ink) 22%,var(--band))}
.cf-bda-raillabel{display:block;font-size:17px;font-weight:800;line-height:1.25}
.cf-bda-railtime{display:block;margin-top:4px;font-size:15px;font-weight:500;line-height:1.4}
.cf-bda-head{max-width:46rem;margin-bottom:clamp(48px,6vw,80px)}
.cf-bda-h2{margin:0 0 16px;font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);color:var(--ink);text-wrap:balance}
.cf-bda-mark{background-image:linear-gradient(transparent 56%,color-mix(in oklch,var(--marker,#fae37c) 60%,transparent) 56%,color-mix(in oklch,var(--marker,#fae37c) 60%,transparent) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-inline:.06em;margin-inline:-.06em}
.cf-bda-lead{margin:0;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-bda-stages{list-style:none;margin:0;padding:0;display:grid;gap:clamp(72px,9vw,128px)}
.cf-bda-stage{min-width:0;scroll-margin-top:24px}
.cf-bda-chip{display:inline-flex;align-items:center;min-height:30px;margin:0 0 12px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--surface));color:var(--ink);font-size:14px;font-weight:800;line-height:1.2}
.cf-bda-h3{margin:0 0 10px;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);color:var(--ink);text-wrap:balance}
.cf-bda-body{margin:0;max-width:60ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-bda-frame{position:relative;isolation:isolate;margin-top:clamp(20px,2.5vw,28px);border-radius:12px;overflow:hidden;padding:clamp(44px,6vw,72px) clamp(16px,4vw,48px) clamp(24px,4vw,48px);background:linear-gradient(135deg,var(--accent-fill,var(--accent)) 0 56%,var(--band) 56% 100%)}
.cf-bda-img{position:absolute;inset:0;z-index:-1;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.cf-bda-fan{position:relative;width:min(560px,calc(100% - var(--ghosts,0) * var(--fan-x) - 8px))}
.cf-bda-ghost{position:absolute;inset:0;border-radius:var(--card-radius,var(--radius,14px));border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .22));transform-origin:bottom left}
.cf-bda-ghost[data-k="1"]{z-index:2;background:color-mix(in oklch,var(--ink) 5%,var(--card));transform:translate(var(--fan-x),calc(var(--fan-y) * -1)) rotate(2.2deg)}
.cf-bda-ghost[data-k="2"]{z-index:1;background:color-mix(in oklch,var(--ink) 9%,var(--card));transform:translate(calc(var(--fan-x) * 2),calc(var(--fan-y) * -2)) rotate(4.4deg)}
.cf-bda-card{position:relative;z-index:3;padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .22),0 12px 24px -8px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .32)))}
.cf-bda-frame[data-in="true"] .cf-bda-card{animation:cf-bda-rise .45s var(--bda-ease) both}
.cf-bda-frame[data-in="true"] .cf-bda-ghost{animation:cf-bda-fan .6s var(--bda-ease) .07s both}
@keyframes cf-bda-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cf-bda-fan{from{transform:translate(0,0) rotate(0deg)}}
.cf-bda-cardtop{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.cf-bda-dots{display:inline-flex;gap:6px}
.cf-bda-dots i{display:block;width:10px;height:10px;border-radius:50%;background:color-mix(in oklch,var(--ink) 16%,var(--card))}
.cf-bda-status{display:inline-flex;align-items:center;gap:8px;min-height:28px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--ink);font-size:14px;font-weight:800;line-height:1.2;white-space:nowrap}
.cf-bda-status>svg{flex:none;color:var(--muted)}
.cf-bda-live{flex:none;width:8px;height:8px;border-radius:50%;background:var(--danger)}
.cf-bda-ctitle{margin:0 0 12px;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;color:var(--ink);text-wrap:balance}
.cf-bda-meta{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 14px;min-height:30px;margin:0;padding:4px 12px;border:1px solid oklch(from var(--ink) l c h / .14);border-radius:999px;font-size:14px;font-weight:600;line-height:1.2;color:var(--muted)}
.cf-bda-meta>span{display:inline-flex;align-items:center;gap:6px}
.cf-bda-sec{margin-top:18px;padding-top:18px;border-top:1px solid oklch(from var(--ink) l c h / .12)}
.cf-bda-sech{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:14px;font-weight:800;line-height:1.2;color:var(--muted)}
.cf-bda-intro{margin:0;font-size:15px;line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-bda-intro+.cf-bda-items{margin-top:10px}
.cf-bda-items{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.cf-bda-items li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;font-size:15px;line-height:1.45;color:var(--ink);text-wrap:pretty}
.cf-bda-mk{display:flex;align-items:center;justify-content:center;height:1.45em}
.cf-bda-items li[data-mark="flag"] .cf-bda-mk{color:var(--warning)}
.cf-bda-items li[data-mark="todo"] .cf-bda-mk{color:var(--muted)}
.cf-bda-bullet{display:block;width:6px;height:6px;border-radius:50%;background:var(--muted)}
.cf-bda-badge{display:inline-flex;flex:none;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:var(--success);color:var(--badge-glyph,#fff)}
.cf-bda-close{position:relative;margin-top:-1px;padding:clamp(16px,3vw,32px) 0 clamp(64px,8.5vw,120px);background:var(--band);color:var(--band-ink)}
.cf-bda-closeh{margin:0 0 16px;font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);color:var(--band-ink);text-wrap:balance}
.cf-bda-closebody{margin:0 0 28px;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.45;font-weight:500;color:var(--band-ink);text-wrap:pretty}
.cf-bda-inv{font-variant-caps:all-small-caps;letter-spacing:.06em;font-weight:800}
.cf-bda-closebody strong{font-weight:800}
.cf-bda-cta{--b:var(--button-bg,var(--cta));--b2:var(--button-bg-2,var(--cta-2));--sh:var(--shadow,oklch(.22 .03 260));display:inline-flex;align-items:center;justify-content:center;width:100%;max-width:26rem;min-height:72px;margin:0;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display));font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;font-weight:var(--button-weight,800);text-transform:var(--button-case,none);text-align:center;text-decoration:none;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--b) calc(l + .04) c h),oklch(from var(--b2) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--b) calc(l - .16) c h),0 1px 2px oklch(from var(--sh) l c h / .35),0 8px 16px -6px oklch(from var(--sh) l c h / .5));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-bda-cta:hover:not(:disabled),.cf-bda-cta[data-state="hover"]{background:linear-gradient(oklch(from var(--b) calc(l - .01) c h),oklch(from var(--b2) calc(l - .07) c h));box-shadow:inset 0 1px 0 oklch(from var(--b) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--b) calc(l - .2) c h),0 1px 2px oklch(from var(--sh) l c h / .4),0 12px 20px -6px oklch(from var(--sh) l c h / .55)}
.cf-bda-cta:active:not(:disabled),.cf-bda-cta[data-state="active"]{transform:translateY(1px);background:linear-gradient(oklch(from var(--b) calc(l - .04) c h),oklch(from var(--b2) calc(l - .08) c h));box-shadow:inset 0 2px 3px oklch(from var(--b) calc(l - .22) c h / .6),inset 0 -2px 0 oklch(from var(--b) calc(l - .16) c h),0 1px 1px oklch(from var(--sh) l c h / .35)}
.cf-bda-cta:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-bda-cta:disabled{background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:var(--shadow-sm,0 1px 2px oklch(from var(--sh) l c h / .2));cursor:not-allowed}
.cf-bda-action{width:100%;max-width:26rem}
.cf-bda-action>.cf-bda-cta{display:flex;width:100%;max-width:none;margin-inline:auto}
.cf-bda-quiet{margin:12px 0 0;font-size:15px;line-height:1.4;font-weight:500;color:var(--band-ink);text-align:center;text-wrap:pretty}
@media (min-width:960px){
.cf-bda-blk{display:block}
.cf-bda-grid{display:grid;grid-template-columns:var(--bda-rail) minmax(0,1fr);column-gap:var(--bda-gap)}
.cf-bda-railcol{display:block;background:var(--band);color:var(--band-ink)}
.cf-bda-chip{display:none}
.cf-bda-closegrid{display:grid;grid-template-columns:var(--bda-rail) minmax(0,1fr);column-gap:var(--bda-gap)}
.cf-bda-closegrid>.cf-bda-closecopy{grid-column:2}
}
@media (max-width:959px){.cf-bda{--fan-x:12px;--fan-y:10px}}
@media (prefers-reduced-motion:reduce){.cf-bda *,.cf-bda *::before,.cf-bda *::after{animation:none !important;transition:none !important}}
`;
pieces/content/before-during-after/specimen.tsx 118 lines
import __studioImage506e07d4 from "../assets/c87aa6258655c88d.webp";
import __studioImageb43eb104 from "../assets/c7520b18f0c5fe2a.webp";
import __studioImagec4da5d14 from "../assets/9da11629bbc8fda2.webp";
import * as React from "react";
import { BeforeDuringAfter } from "../before-during-after";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"] as const;
type SpecimenState = (typeof states)[number];
export default function BeforeDuringAfterSpecimen({ state = "default" }: { state?: SpecimenState }) {
return (
<BeforeDuringAfter
state={state}
headline="Live through one sales call with Closerly, start to finish"
highlight="start to finish"
lead="Fifteen minutes before, while you talk, and the minute you hang up. Here is your next discovery call with Closerly in it."
copy={{ railLabel: "Your call, step by step" }}
stages={[
{
id: "before",
label: "Before the call",
time: "15 minutes before",
headline: "Walk in knowing what matters to them",
body: "Closerly reads your calendar and intake form, then preps a one-page brief: who you are meeting, what they want, and what might stop them.",
image: slot("scene", __studioImage506e07d4),
imageAlt: "Calm lake at dawn",
card: {
title: "Discovery call: Maya R.",
when: "Today, 2:30 pm",
people: "2",
status: "Brief ready",
statusTone: "neutral",
sections: [
{
heading: "Your pre-call brief",
icon: "brief",
items: [
{ text: "Maya runs a six-person fitness studio and wants to fill her new evening classes.", mark: "dot" },
{ text: "On her intake form: 'I tried ads last spring and wasted $800.'", mark: "flag" },
{ text: "Ask about her timeline. She mentioned opening in March.", mark: "dot" },
],
},
],
},
},
{
id: "during",
label: "On the call",
time: "Live",
headline: "Listen to them, not your notepad",
body: "Jot a word or two, or nothing at all. Closerly turns the conversation into clean notes and flags each objection the moment it comes up.",
image: slot("scene", __studioImageb43eb104),
imageAlt: "Clear water on a sunny coastline",
card: {
title: "Discovery call: Maya R.",
when: "Today, 2:30 pm",
people: "2",
status: "Listening",
statusTone: "live",
sections: [
{ heading: "From your brief", icon: "brief", items: [{ text: "Timeline asked: opening is March 14", mark: "check" }] },
{
heading: "Live notes",
icon: "notes",
items: [
{ text: "Goal: 40 new members before the March opening", mark: "dot" },
{ text: "Budget worry: wants to see a plan before paying", mark: "flag" },
{ text: "Lit up at the 90-day launch plan idea", mark: "dot" },
],
},
],
},
},
{
id: "after",
label: "After the call",
time: "2 minutes after",
headline: "Your follow-up is written before you stand up",
body: "The recap, next steps and follow-up email are ready to review, so you send them while the call is still fresh for both of you.",
image: slot("scene", __studioImagec4da5d14),
imageAlt: "Green hills in evening light",
card: {
title: "Discovery call: Maya R.",
when: "Today, 2:30 pm",
people: "2",
status: "Recap ready",
statusTone: "done",
sections: [
{
heading: "Call summary",
icon: "summary",
intro: "Maya wants 40 members by March 14 and needs a clear plan before she commits. Main objection: past ad spend with nothing to show for it.",
},
{
heading: "Next steps",
icon: "steps",
items: [
{ text: "Send the 90-day launch plan", mark: "check" },
{ text: "Follow-up email to Maya drafted", mark: "check" },
{ text: "Book a decision call for Thursday", mark: "todo" },
],
},
],
},
},
]}
closeHeadline="Bring Closerly to your next discovery call"
closeBody="Connect your calendar and it preps the very next call on it, then stays with you through the follow-up."
investmentLabel="Your investment:"
investment="$0 for your first 14 days."
ctaLabel="Start My Free Trial"
quietLine="or keep reading to see what's inside"
href="#start-trial"
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalBeforeDuringAfter |
string |
|
highlight OptionalBeforeDuringAfter |
string |
|
lead OptionalBeforeDuringAfter |
string |
|
stages OptionalBeforeDuringAfter |
BeforeDuringAfterStage[] |
|
closeHeadline OptionalBeforeDuringAfter |
string |
|
closeBody OptionalBeforeDuringAfter |
string |
|
investmentLabel OptionalBeforeDuringAfter |
string |
|
investment OptionalBeforeDuringAfter |
string |
|
ctaLabel OptionalBeforeDuringAfter |
string |
|
quietLine OptionalBeforeDuringAfter |
string |
|
href OptionalBeforeDuringAfter |
string |
|
onAction OptionalBeforeDuringAfter |
() => void |
|
disabled OptionalBeforeDuringAfter |
boolean |
|
anchorPrefix OptionalBeforeDuringAfter |
string |
|
copy OptionalBeforeDuringAfter |
{ railLabel?: string; chip?: string; cardLabel?: string; people?: string; done?: string; todo?: string; flagged?: string } |
|
state OptionalBeforeDuringAfter |
"default" | "hover" | "active" | "disabled" |
|
className OptionalBeforeDuringAfter |
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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
9da11629bbc8fda2.webp
image/webp · 88.3 KB
-
c7520b18f0c5fe2a.webp
image/webp · 98.1 KB
-
c87aa6258655c88d.webp
image/webp · 13.5 KB