About Story 1
About-story block: the founder's origin told in short chapters on a story spine that fills as the visitor reads, carrying them through the mission and milestones straight to the offer's one action.
Use it in a prompt
Use content/about-story 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/about-story.tsx. - Import it and pass your copy and images (Props tab):
import { AboutStory } from "@/components/funneldna/content/about-story"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/about-story/component.tsx 796 lines
// layout: scroll-panels
// About-story block: the founder's origin told in short chapters on a story spine that fills as the visitor reads, carrying them through the mission and milestones straight to the offer's one action.
import * as React from "react";
import { ShieldCheck } from "lucide-react";
import { Spot } from "../fx/fx";
/** Props for the shared fx `Spot` illustration, passed through unchanged. */
type AboutStorySpot = React.ComponentProps<typeof Spot>;
export type AboutStoryChapter = {
/** Red sales-letter subhead that sells the chapter. */
title: string;
body: string[];
/** spot = clay illustration, photo = sceneImage, items = the kit item photos. */
visual?: "spot" | "photo" | "items";
/** Props for the fx `Spot` illustration shown when visual is "spot". */
spot?: AboutStorySpot;
/** Caption under the chapter photo. */
caption?: string;
};
export type AboutStoryMilestone = { year: string; title: string; detail?: string };
export type AboutStoryItem = { name: string; image: string; imageAlt?: string };
export type AboutStoryProps = {
headline?: string;
/** Phrase inside the headline set in the story red. */
headlineEmphasis?: string;
lead?: string;
/** presenter slot: wide founder photo that opens the story. */
founderImage?: string;
founderImageAlt?: string;
founderName?: string;
founderRole?: string;
chapters?: AboutStoryChapter[];
/** scene slot: the photo shown by a chapter with visual "photo". */
sceneImage?: string;
sceneImageAlt?: string;
/** item-1…n slots: shown by a chapter with visual "items". */
items?: AboutStoryItem[];
mission?: string;
/** Sign-off under the mission line (the founder's name). */
missionBy?: string;
milestonesHeading?: string;
/** Supplied milestones only; the timeline hides when empty. */
milestones?: AboutStoryMilestone[];
/** product slot: transparent product shot in the close. */
productImage?: string;
productImageAlt?: string;
ctaHeadline?: string;
priceLine?: string;
priceNote?: string;
/** Plain instruction that ends the copy, right above the button. */
instruction?: string;
buttonLabel?: string;
reassurance?: string;
href?: string;
onAction?: () => void;
disabled?: boolean;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
export function AboutStory({
headline = "Why I built The Funnel Starter Kit",
headlineEmphasis = "The Funnel Starter Kit",
lead = "I spent too long guessing at funnels. Here is how that changed, and the plan it turned into for you.",
founderImage = "",
founderImageAlt = "The founder at work, planning a funnel",
founderName = "",
founderRole = "",
chapters = DEFAULT_CHAPTERS,
sceneImage = "",
sceneImageAlt = "A one-page funnel map sketched in a notebook",
items = [],
mission = "My mission: help you launch a funnel you planned, not one you guessed.",
missionBy = "",
milestonesHeading = "From one sketch to the kit in your hands",
milestones = [],
productImage = "",
productImageAlt = "The Funnel Starter Kit",
ctaHeadline = "Start your funnel with a plan, not a guess",
priceLine = "$47 today. That's it.",
priceNote = "One payment · Lifetime access",
instruction = "Click the button below to get instant access.",
buttonLabel = "Order now",
reassurance = "30-day money-back guarantee",
href,
onAction,
disabled = false,
state = "default",
className,
}: AboutStoryProps) {
const headingId = `${React.useId()}-about-story`;
const trackRef = React.useRef<HTMLDivElement>(null);
const isDisabled = disabled || state === "disabled";
// Signature interaction: the story spine fills and each chapter node lights as the reader passes it.
React.useEffect(() => {
const track = trackRef.current;
if (!track || typeof window === "undefined") return;
const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
let raf = 0;
const centre = (el: HTMLElement) => {
const r = el.getBoundingClientRect();
return r.top + r.height / 2;
};
const measure = () => {
raf = 0;
const nodes = Array.from(track.querySelectorAll<HTMLElement>("[data-node]"));
const first = nodes[0];
const last = nodes[nodes.length - 1];
if (!first || !last) return;
const top = track.getBoundingClientRect().top;
const a = centre(first);
const b = centre(last);
const len = Math.max(0, b - a);
const still = mq.matches;
const line = window.innerHeight * 0.62;
const progress = still || len === 0 ? 1 : Math.min(1, Math.max(0, (line - a) / len));
track.style.setProperty("--spine-top", `${a - top}px`);
track.style.setProperty("--spine-len", `${len}px`);
track.style.setProperty("--story-progress", progress.toFixed(4));
nodes.forEach((node) => {
node.dataset.reached = still || centre(node) <= line ? "true" : "false";
});
};
const schedule = () => {
if (!raf) raf = window.requestAnimationFrame(measure);
};
measure();
document.addEventListener("scroll", schedule, { passive: true, capture: true });
window.addEventListener("resize", schedule);
track.addEventListener("animationend", schedule);
mq.addEventListener("change", schedule);
const ro = typeof ResizeObserver !== "undefined" ? new ResizeObserver(schedule) : null;
ro?.observe(track);
return () => {
if (raf) window.cancelAnimationFrame(raf);
document.removeEventListener("scroll", schedule, true);
window.removeEventListener("resize", schedule);
track.removeEventListener("animationend", schedule);
mq.removeEventListener("change", schedule);
ro?.disconnect();
};
}, []);
const buttonClass = [
"cf-about-story__btn",
state === "hover" ? "is-hover" : "",
state === "active" ? "is-active" : "",
isDisabled ? "is-disabled" : "",
]
.filter(Boolean)
.join(" ");
const action =
href && !isDisabled ? (
<a className={buttonClass} href={href} onClick={() => onAction?.()}>
{buttonLabel}
</a>
) : (
<button type="button" className={buttonClass} disabled={isDisabled} onClick={() => onAction?.()}>
{buttonLabel}
</button>
);
const step = (i: number) => ({ "--i": i }) as React.CSSProperties;
const after = chapters.length;
return (
<section className={["cf-about-story", className].filter(Boolean).join(" ")} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className="cf-about-story__wrap">
<header className="cf-about-story__intro">
<h2 id={headingId} className="cf-about-story__h2">
{withEmphasis(headline, headlineEmphasis)}
</h2>
{lead ? <p className="cf-about-story__lead">{lead}</p> : null}
</header>
{founderImage ? (
<figure className="cf-about-story__founder">
<div className="cf-about-story__founder-frame">
<img src={founderImage} alt={founderImageAlt} width={1600} height={686} />
</div>
{founderName || founderRole ? (
<figcaption>
{founderName ? <span className="cf-about-story__founder-name">{founderName}</span> : null}
{founderRole ? <span className="cf-about-story__founder-role">{founderRole}</span> : null}
</figcaption>
) : null}
</figure>
) : null}
<div className="cf-about-story__track" ref={trackRef}>
<span className="cf-about-story__spine" aria-hidden="true" />
<span className="cf-about-story__fill" aria-hidden="true" />
{chapters.map((chapter, i) => {
const kind =
chapter.visual === "photo" && sceneImage
? "photo"
: chapter.visual === "items" && items.length
? "items"
: chapter.visual === "spot" && chapter.spot
? "spot"
: "none";
return (
<article
key={i}
className={`cf-about-story__panel cf-about-story__chapter cf-about-story__chapter--${kind}`}
style={step(i)}
>
<span className="cf-about-story__node" data-node="" aria-hidden="true" />
<div className="cf-about-story__text">
<span className="cf-about-story__num">{String(i + 1).padStart(2, "0")}</span>
<h3 className="cf-about-story__subhead">{chapter.title}</h3>
{chapter.body.map((paragraph, j) => (
<p key={j} className="cf-about-story__body">
{paragraph}
</p>
))}
</div>
{kind === "spot" && chapter.spot ? (
<div className="cf-about-story__spot">
<Spot {...chapter.spot} />
</div>
) : null}
{kind === "photo" ? (
<figure className="cf-about-story__photo">
<img src={sceneImage} alt={sceneImageAlt} loading="lazy" width={1600} height={700} />
{chapter.caption ? <figcaption>{chapter.caption}</figcaption> : null}
</figure>
) : null}
{kind === "items" ? (
<ul className="cf-about-story__items">
{items.map((item, k) => (
<li key={k}>
<img src={item.image} alt={item.imageAlt ?? item.name} loading="lazy" width={360} height={360} />
<span>{item.name}</span>
</li>
))}
</ul>
) : null}
</article>
);
})}
{mission ? (
<div className="cf-about-story__panel cf-about-story__mission" style={step(after)}>
<span className="cf-about-story__node" data-node="" aria-hidden="true" />
<p className="cf-about-story__mission-line">{mission}</p>
{missionBy ? (
<p className="cf-about-story__mission-by">
{founderImage ? <img src={founderImage} alt="" width={44} height={44} loading="lazy" /> : null}
<span>{missionBy}</span>
</p>
) : null}
</div>
) : null}
{milestones.length ? (
<div className="cf-about-story__panel cf-about-story__milestones" style={step(after + 1)}>
<span className="cf-about-story__node" data-node="" aria-hidden="true" />
<h3 className="cf-about-story__mh">{milestonesHeading}</h3>
<ol className="cf-about-story__mlist">
{milestones.map((m, k) => (
<li key={k} className="cf-about-story__mrow">
<span className="cf-about-story__node cf-about-story__node--sm" data-node="" aria-hidden="true" />
<span className="cf-about-story__year">{m.year}</span>
<div>
<p className="cf-about-story__mtitle">{m.title}</p>
{m.detail ? <p className="cf-about-story__mdetail">{m.detail}</p> : null}
</div>
</li>
))}
</ol>
</div>
) : null}
<div className="cf-about-story__panel cf-about-story__close" style={step(after + 2)}>
<span className="cf-about-story__node cf-about-story__node--end" data-node="" aria-hidden="true" />
<div className={`cf-about-story__card${productImage ? " has-product" : ""}`}>
{productImage ? (
<img className="cf-about-story__product" src={productImage} alt={productImageAlt} loading="lazy" width={440} height={440} />
) : null}
<div className="cf-about-story__offer">
<h3 className="cf-about-story__cta-head">{ctaHeadline}</h3>
<p className="cf-about-story__price">{priceLine}</p>
{priceNote ? <p className="cf-about-story__note">{priceNote}</p> : null}
{instruction ? <p className="cf-about-story__instruction">{instruction}</p> : null}
{action}
{reassurance ? (
<p className="cf-about-story__reassure">
<ShieldCheck className="cf-about-story__reassure-icon" size={18} strokeWidth={2.5} aria-hidden="true" />
{reassurance}
</p>
) : null}
</div>
</div>
</div>
</div>
</div>
</section>
);
}
export default AboutStory;
const DEFAULT_CHAPTERS: AboutStoryChapter[] = [
{
title: "My first funnel was one long guess",
body: [
"I had the software and I had an offer. What I didn't have was a plan for the pages in between.",
"So I guessed at every page. Each guess cost me another week.",
],
},
{
title: "Then I stopped guessing and started mapping",
body: [
"Before writing a word, I sketched the whole funnel on one sheet: the offer, every page, the one action on each.",
"The copy came faster. A simple checklist caught broken links before a visitor ever did.",
],
visual: "photo",
caption: "One sheet, every page, one action each. That map is where the kit began.",
},
{
title: "Now that plan fits in one download",
body: [
"The Funnel Starter Kit is that exact process: the planning guide, the copy workbook and the launch checklist.",
"It's the plan I wish someone had handed me on day one.",
],
visual: "items",
},
];
function withEmphasis(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className="cf-about-story__em">{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
const CSS = `
.cf-about-story {
--as-red: var(--story-subhead, var(--accent));
--as-rail: 80px;
--as-line: oklch(from var(--ink) l c h / 0.14);
--as-fill: var(--accent-fill, var(--accent));
--as-shadow: var(--shadow, oklch(0.22 0.03 260));
--as-pad: clamp(20px, 3vw, 32px);
--as-h3: clamp(1.3125rem, 1.8vw, 1.625rem);
--as-body: clamp(1.0625rem, 1.25vw, 1.125rem);
position: relative;
background: var(--surface);
color: var(--ink);
font-family: var(--font-body);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
overflow-x: clip;
}
.cf-about-story *, .cf-about-story *::before, .cf-about-story *::after { box-sizing: border-box; }
.cf-about-story img { max-width: 100%; }
.cf-about-story__wrap { max-width: 1120px; margin: 0 auto; }
.cf-about-story__intro { max-width: 46rem; margin: 0 auto; text-align: center; }
.cf-about-story__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);
text-wrap: balance;
color: var(--ink);
}
.cf-about-story__em { color: var(--as-red); }
.cf-about-story__lead {
margin: 0 auto;
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-about-story__founder { margin: clamp(32px, 4vw, 48px) 0 0; }
.cf-about-story__founder-frame {
aspect-ratio: 21 / 9;
border-radius: 12px;
overflow: hidden;
background: color-mix(in oklch, var(--ink) 6%, var(--surface));
}
.cf-about-story__founder-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cf-about-story__founder figcaption {
margin-top: 16px;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
text-align: center;
}
.cf-about-story__founder-name { font-family: var(--font-display); font-weight: var(--display-weight, 800); font-size: 1.0625rem; line-height: 1.3; color: var(--ink); }
.cf-about-story__founder-role { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: var(--muted); }
.cf-about-story__track {
position: relative;
margin-top: clamp(56px, 7vw, 88px);
padding-left: var(--as-rail);
display: flex;
flex-direction: column;
gap: clamp(56px, 7vw, 88px);
}
.cf-about-story__spine, .cf-about-story__fill {
position: absolute;
left: calc(var(--as-rail) / 2);
top: var(--spine-top, 0px);
height: var(--spine-len, 0px);
width: 3px;
margin-left: -1.5px;
border-radius: 3px;
pointer-events: none;
}
.cf-about-story__spine { background: var(--as-line); }
.cf-about-story__fill {
background: var(--as-fill);
transform-origin: top center;
transform: scaleY(var(--story-progress, 1));
transition: transform 0.16s linear;
}
.cf-about-story__panel {
position: relative;
--node-y: calc(var(--as-h3) * 0.575);
animation: cfas-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
animation-delay: min(calc(var(--i, 0) * 0.07s), 0.28s);
}
.cf-about-story__node {
position: absolute;
left: calc(var(--as-rail) / -2);
top: var(--node-y);
width: 18px;
height: 18px;
border-radius: 999px;
transform: translate(-50%, -50%);
background: var(--as-fill);
border: 3px solid var(--as-fill);
outline: 5px solid color-mix(in oklch, var(--as-fill) 18%, var(--surface));
transition: background-color 0.3s ease, border-color 0.3s ease, outline-color 0.3s ease, scale 0.3s ease;
}
.cf-about-story__node[data-reached="false"] {
background: var(--surface);
border-color: oklch(from var(--ink) l c h / 0.24);
outline-color: var(--surface);
scale: 0.86;
}
.cf-about-story__node--sm { width: 12px; height: 12px; border-width: 2px; outline-width: 4px; }
.cf-about-story__node--end { width: 26px; height: 26px; }
.cf-about-story__chapter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.cf-about-story__chapter--spot {
grid-template-columns: minmax(0, 42rem) auto;
column-gap: clamp(32px, 5vw, 72px);
align-items: start;
justify-content: start;
}
.cf-about-story__text {
max-width: 42rem;
display: grid;
grid-template-columns: auto minmax(0, 1fr);
column-gap: 16px;
align-items: start;
}
.cf-about-story__num {
grid-column: 1;
grid-row: 1;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: var(--as-h3);
line-height: 1.15;
letter-spacing: -0.01em;
color: var(--accent);
font-variant-numeric: tabular-nums;
}
.cf-about-story__subhead {
grid-column: 2;
margin: 0 0 12px;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: var(--as-h3);
line-height: 1.15;
letter-spacing: -0.01em;
text-transform: var(--display-case, none);
color: var(--as-red);
text-wrap: balance;
}
.cf-about-story__body {
grid-column: 2;
margin: 0;
font-size: var(--as-body);
line-height: 1.55;
color: var(--ink);
text-wrap: pretty;
}
.cf-about-story__body + .cf-about-story__body { margin-top: 12px; }
.cf-about-story__spot { justify-self: start; }
.cf-about-story__photo { margin: 0; }
.cf-about-story__photo img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 16 / 7;
object-fit: cover;
object-position: 50% 50%;
border-radius: 12px;
background: color-mix(in oklch, var(--ink) 6%, var(--surface));
}
.cf-about-story__photo figcaption {
margin-top: 12px;
font-size: 0.9375rem;
font-weight: 500;
line-height: 1.4;
color: var(--muted);
text-wrap: pretty;
}
.cf-about-story__items {
list-style: none;
margin: 0;
padding: 0;
max-width: 52rem;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: clamp(12px, 2vw, 24px);
}
.cf-about-story__items img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 1;
object-fit: cover;
border-radius: 12px;
background: color-mix(in oklch, var(--ink) 6%, var(--surface));
}
.cf-about-story__items span {
display: block;
margin-top: 12px;
font-size: 0.9375rem;
font-weight: 700;
line-height: 1.3;
color: var(--ink);
text-wrap: balance;
}
.cf-about-story__mission {
--mission-pad: clamp(28px, 5vw, 56px);
--mission-fs: clamp(1.625rem, 3.6vw, 3.25rem);
--node-y: calc(var(--mission-pad) + var(--mission-fs) * 0.55);
padding: var(--mission-pad);
background: var(--band);
color: var(--band-ink);
border: 1px solid oklch(from var(--band-ink) l c h / 0.12);
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--shadow-md, 0 1px 2px oklch(from var(--as-shadow) l c h / 0.22), 0 4px 10px -2px oklch(from var(--as-shadow) l c h / 0.2));
}
.cf-about-story__mission-line {
margin: 0;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: var(--mission-fs);
line-height: 1.1;
letter-spacing: var(--display-tracking, -0.025em);
text-transform: var(--display-case, none);
color: var(--band-ink);
text-wrap: balance;
}
.cf-about-story__mission-by {
margin: 24px 0 0;
display: flex;
align-items: center;
gap: 12px;
font-size: 0.9375rem;
font-weight: 700;
line-height: 1.4;
color: var(--band-ink);
}
.cf-about-story__mission-by img {
width: 44px;
height: 44px;
flex: 0 0 auto;
border-radius: 999px;
object-fit: cover;
object-position: 50% 25%;
}
.cf-about-story__mh {
margin: 0 0 24px;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: var(--as-h3);
line-height: 1.15;
letter-spacing: -0.01em;
text-transform: var(--display-case, none);
color: var(--ink);
text-wrap: balance;
}
.cf-about-story__mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.cf-about-story__mrow {
position: relative;
--node-y: calc(var(--as-h3) * 0.575);
display: grid;
grid-template-columns: 6.5rem minmax(0, 1fr);
column-gap: 24px;
align-items: start;
}
.cf-about-story__year {
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: var(--as-h3);
line-height: 1.15;
letter-spacing: -0.01em;
color: var(--accent);
font-variant-numeric: tabular-nums;
}
.cf-about-story__mtitle {
margin: 0;
padding-top: 3px;
font-size: var(--as-body);
font-weight: 700;
line-height: 1.4;
color: var(--ink);
text-wrap: pretty;
}
.cf-about-story__mdetail {
margin: 4px 0 0;
font-size: 0.9375rem;
font-weight: 500;
line-height: 1.4;
color: var(--muted);
text-wrap: pretty;
}
.cf-about-story__close { --node-y: calc(var(--as-pad) + var(--as-h3) * 0.575 + 1px); }
.cf-about-story__card {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: clamp(24px, 4vw, 48px);
padding: var(--as-pad);
background: var(--card);
color: var(--ink);
border: 1px solid color-mix(in oklch, var(--accent) 32%, var(--card));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--as-shadow) l c h / 0.22), 0 12px 24px -8px oklch(from var(--as-shadow) l c h / 0.32)));
}
.cf-about-story__card.has-product { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
.cf-about-story__product {
display: block;
width: 100%;
max-width: 440px;
height: auto;
aspect-ratio: 1;
object-fit: contain;
justify-self: center;
filter: drop-shadow(0 2px 3px oklch(from var(--as-shadow) l c h / 0.28)) drop-shadow(0 14px 16px oklch(from var(--as-shadow) l c h / 0.2));
}
.cf-about-story__cta-head {
margin: 0 0 16px;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: var(--as-h3);
line-height: 1.15;
letter-spacing: -0.01em;
text-transform: var(--display-case, none);
color: var(--ink);
text-wrap: balance;
}
.cf-about-story__price {
margin: 0;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(2rem, 3.6vw, 3.25rem);
line-height: 1.05;
letter-spacing: -0.03em;
font-variant-numeric: tabular-nums;
color: var(--ink);
text-wrap: balance;
}
.cf-about-story__note { margin: 12px 0 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--muted); }
.cf-about-story__instruction {
margin: 24px 0 0;
font-size: var(--as-body);
font-weight: 700;
line-height: 1.45;
color: var(--ink);
text-wrap: pretty;
}
.cf-about-story__reassure {
margin: 12px 0 0;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
color: var(--muted);
text-wrap: pretty;
}
.cf-about-story__btn + .cf-about-story__reassure { margin-top: 16px; text-align: center; }
.cf-about-story__reassure-icon {
display: inline-block;
vertical-align: -0.2em;
margin-inline-end: 0.4em;
color: var(--success);
}
.cf-about-story__btn {
--as-bb: var(--button-bg, var(--cta));
--as-bb2: var(--button-bg-2, var(--cta-2));
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 72px;
margin-top: 12px;
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(--as-bb) calc(l + 0.04) c h), oklch(from var(--as-bb2) calc(l - 0.02) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--as-bb) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--as-bb) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--as-shadow) l c h / 0.3), 0 8px 16px -6px oklch(from var(--as-shadow) l c h / 0.45));
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.cf-about-story__note + .cf-about-story__btn, .cf-about-story__price + .cf-about-story__btn { margin-top: 24px; }
.cf-about-story__btn:hover:not(:disabled), .cf-about-story__btn.is-hover {
transform: translateY(-1px);
background: linear-gradient(oklch(from var(--as-bb) calc(l - 0.01) c h), oklch(from var(--as-bb2) calc(l - 0.07) c h));
box-shadow: inset 0 1px 0 oklch(from var(--as-bb) calc(l + 0.12) c h / 0.7), inset 0 -3px 0 oklch(from var(--as-bb) calc(l - 0.18) c h), 0 1px 2px oklch(from var(--as-shadow) l c h / 0.32), 0 12px 20px -6px oklch(from var(--as-shadow) l c h / 0.5);
}
.cf-about-story__btn:active:not(:disabled), .cf-about-story__btn.is-active {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--as-bb) calc(l - 0.04) c h), oklch(from var(--as-bb2) calc(l - 0.08) c h));
box-shadow: inset 0 2px 3px oklch(from var(--as-bb) calc(l - 0.2) c h / 0.55), inset 0 -2px 0 oklch(from var(--as-bb) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--as-shadow) l c h / 0.3);
}
.cf-about-story__btn:focus-visible {
outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / 0.55);
outline-offset: 3px;
}
.cf-about-story__btn:disabled, .cf-about-story__btn.is-disabled {
cursor: not-allowed;
transform: none;
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));
}
@media (max-width: 760px) {
.cf-about-story { --as-rail: 34px; }
.cf-about-story__founder-frame { aspect-ratio: 4 / 5; }
.cf-about-story__chapter--spot { grid-template-columns: minmax(0, 1fr); }
.cf-about-story__text { column-gap: 12px; }
.cf-about-story__photo img { aspect-ratio: 4 / 3; }
.cf-about-story__items span { font-size: 0.875rem; }
.cf-about-story__mrow { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
.cf-about-story__mtitle { padding-top: 0; }
.cf-about-story__card.has-product { grid-template-columns: minmax(0, 1fr); }
.cf-about-story__product { max-width: 240px; }
.cf-about-story__btn { min-height: 64px; }
}
@keyframes cfas-rise {
from { opacity: 0.82; transform: translateY(8px); }
to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
.cf-about-story__panel { animation: none; }
.cf-about-story__fill, .cf-about-story__node, .cf-about-story__btn { transition: none; }
.cf-about-story__btn:hover:not(:disabled), .cf-about-story__btn.is-hover, .cf-about-story__btn:active:not(:disabled), .cf-about-story__btn.is-active { transform: none; }
}
`;
pieces/content/about-story/specimen.tsx 61 lines
import __studioImage463b780c from "../assets/f1314443d21ef208.webp";
import __studioImage9b45aeec from "../assets/217b5ee0f9982397.webp";
import __studioImage87e3e2fd from "../assets/d78e13205261ba34.webp";
// Specimen: the about-story block with a fictional founder, the sample kit images, supplied-style milestones and the one-time price close.
import * as React from "react";
import { AboutStory, type AboutStoryProps } from "../about-story";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
const ITEM_SLOTS = ["item-1", "item-2", "item-3"] as const;
export default function AboutStorySpecimen({ state = "default" }: { state?: AboutStoryProps["state"] }) {
const sample = defaults.sample;
return (
<AboutStory
state={state}
headline={`Why I built ${sample.name}`}
headlineEmphasis={sample.name}
lead="I spent too long guessing at funnels. Here is how that changed, and the plan it turned into for you."
founderImage={slot(
"presenter",
__studioImage463b780c
)}
founderImageAlt="Maya Ellison at her desk, planning a funnel"
founderName="Maya Ellison"
founderRole={`Creator of ${sample.name}`}
sceneImage={slot(
"scene",
__studioImage9b45aeec
)}
sceneImageAlt="A one-page funnel map sketched in a notebook"
items={sample.items.map((item, i) => ({
name: item.name,
image: slot(ITEM_SLOTS[i] ?? "item-1", item.image),
imageAlt: item.imageAlt,
}))}
mission="My mission: help you launch a funnel you planned, not one you guessed."
missionBy="Maya Ellison"
milestonesHeading="From one sketch to the kit in your hands"
milestones={[
{ year: "2019", title: "Sketched my first one-page funnel map", detail: "The habit that started everything." },
{ year: "2021", title: "Wrote the Funnel Planning Guide", detail: "Every step of the map, written down." },
{ year: "2023", title: "Added the workbook and launch checklist", detail: "Copy prompts and a final pre-launch check." },
{ year: "2024", title: `Released ${sample.name}`, detail: "One download, one payment." },
]}
productImage={slot(
"product",
__studioImage87e3e2fd
)}
productImageAlt={`${sample.name}: guide, workbook and checklist`}
ctaHeadline="Start your funnel with a plan, not a guess"
priceLine={`${sample.price} today. That's it.`}
priceNote={sample.note}
instruction="Click the button below to get instant access."
buttonLabel="Order now"
reassurance={sample.guarantee}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalAboutStory |
string |
Default "Why I built The Funnel Starter Kit"
|
headlineEmphasis OptionalAboutStory |
string |
Default "The Funnel Starter Kit"
|
lead OptionalAboutStory |
string |
Default "I spent too long guessing at funnels. Here is how that changed, and the plan it turned into for you."
|
founderImage OptionalAboutStory |
string |
Default ""
|
founderImageAlt OptionalAboutStory |
string |
Default "The founder at work, planning a funnel"
|
founderName OptionalAboutStory |
string |
Default ""
|
founderRole OptionalAboutStory |
string |
Default ""
|
chapters OptionalAboutStory |
AboutStoryChapter[] |
Default DEFAULT_CHAPTERS
|
sceneImage OptionalAboutStory |
string |
Default ""
|
sceneImageAlt OptionalAboutStory |
string |
Default "A one-page funnel map sketched in a notebook"
|
items OptionalAboutStory |
AboutStoryItem[] |
Default []
|
mission OptionalAboutStory |
string |
Default "My mission: help you launch a funnel you planned, not one you guessed."
|
missionBy OptionalAboutStory |
string |
Default ""
|
milestonesHeading OptionalAboutStory |
string |
Default "From one sketch to the kit in your hands"
|
milestones OptionalAboutStory |
AboutStoryMilestone[] |
Default []
|
productImage OptionalAboutStory |
string |
Default ""
|
productImageAlt OptionalAboutStory |
string |
Default "The Funnel Starter Kit"
|
ctaHeadline OptionalAboutStory |
string |
Default "Start your funnel with a plan, not a guess"
|
priceLine OptionalAboutStory |
string |
Default "$47 today. That's it."
|
priceNote OptionalAboutStory |
string |
Default "One payment · Lifetime access"
|
instruction OptionalAboutStory |
string |
Default "Click the button below to get instant access."
|
buttonLabel OptionalAboutStory |
string |
Default "Order now"
|
reassurance OptionalAboutStory |
string |
Default "30-day money-back guarantee"
|
href OptionalAboutStory |
string |
|
onAction OptionalAboutStory |
() => void |
|
disabled OptionalAboutStory |
boolean |
Default false
|
state OptionalAboutStory |
"default" | "hover" | "active" | "disabled" |
Default "default"
|
className OptionalAboutStory |
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-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter- A photo of the host, coach or founder.
product- The main product shot or cover (ebook, kit, bottle).
scene- A wide atmosphere photo behind or beside the copy.
-
217b5ee0f9982397.webp
image/webp · 44.1 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d78e13205261ba34.webp
image/webp · 149 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
f1314443d21ef208.webp
image/webp · 65.7 KB