Origin Chapters 1
Origin chapters: answers "Why should you listen to me?" with dated turning points on a thread that fills as the
Use it in a prompt
Use content/origin-chapters 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/origin-chapters.tsx. - Import it and pass your copy and images (Props tab):
import { OriginChapters } from "@/components/funneldna/content/origin-chapters"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/origin-chapters/component.tsx 324 lines
// layout: interview-qa
// Origin chapters: answers "Why should you listen to me?" with dated turning points on a thread that fills as the
// reader scrolls, so the host earns trust before the page asks for anything. Ends on the final chapter.
import * as React from "react";
import { motion, useInView, useReducedMotion, useScroll } from "motion/react";
import { Divider, FX_HOST, Spot } from "../fx/fx";
export type OriginChapter = {
/** Short stamp on the thread: the age or year of this turning point ("Age 14", "2019"). Keep it under 12 characters. */
stamp: string;
title: React.ReactNode;
/** One or two short paragraphs; wrap the key facts in <strong>. */
paragraphs: React.ReactNode[];
/** Optional italic aside in the host's own voice. */
aside?: React.ReactNode;
/** Chapter photo (route it through slot() in the page). */
image?: string;
imageAlt?: string;
/** Spot illustration shown in place of a photo when the chapter has none. */
spot?: string;
};
export type OriginChaptersProps = {
headline?: React.ReactNode;
lead?: React.ReactNode;
/** The turning points, oldest first. Supplied facts only; defaults to none. */
chapters?: OriginChapter[];
/** Optional quiet text link under the last chapter. Renders only when both label and href are set. */
linkLabel?: string;
linkHref?: string;
/** Wave edge into the next section. */
edge?: boolean;
/** Token of the section below, so the wave blends into it. */
edgeTone?: React.ComponentProps<typeof Divider>["tone"];
className?: string;
};
export function OriginChapters(props: OriginChaptersProps) {
const {
headline = "Why should you listen to me?",
lead,
chapters = [],
linkLabel = "",
linkHref = "",
edge = true,
edgeTone = "surface",
className,
} = props;
const headingId = React.useId();
const listRef = React.useRef<HTMLOListElement>(null);
const reduce = useReducedMotion();
const { scrollYProgress } = useScroll({ target: listRef, offset: ["start 70%", "end 55%"] });
const hasChapters = chapters.length > 0;
const hasLink = Boolean(linkLabel && linkHref);
return (
<section
className={["cf-origin-chapters", edge && "has-edge", className].filter(Boolean).join(" ")}
style={FX_HOST}
aria-labelledby={headingId}
>
{edge ? <Divider shape="wave" tone={edgeTone} height={56} /> : null}
<style>{CSS}</style>
<div className="oc-wrap">
<header className="oc-head">
<h2 id={headingId} className="oc-headline">{headline}</h2>
{lead ? <p className="oc-lead">{lead}</p> : null}
</header>
<div className="oc-timeline">
{hasChapters ? (
<span className="oc-thread" aria-hidden="true">
<motion.span className="oc-thread-fill" style={{ scaleY: reduce ? 1 : scrollYProgress }} />
</span>
) : null}
<ol ref={listRef} className="oc-list">
{chapters.map((chapter, i) => (
<Chapter key={i} chapter={chapter} index={i} reduce={!!reduce} />
))}
</ol>
</div>
{hasLink ? (
<p className="oc-more">
<a className="oc-link" href={linkHref}>{linkLabel}</a>
</p>
) : null}
</div>
</section>
);
}
export default OriginChapters;
function Chapter({ chapter, index, reduce }: { chapter: OriginChapter; index: number; reduce: boolean }) {
const ref = React.useRef<HTMLLIElement>(null);
const seen = useInView(ref, { once: true, margin: "0px 0px -35% 0px" });
const reached = seen || reduce;
const flip = index % 2 === 1;
const hasMedia = Boolean(chapter.image || chapter.spot);
return (
<li ref={ref} className={["oc-chapter", flip && "is-flip", reached && "is-in"].filter(Boolean).join(" ")}>
<div className="oc-node">
<span className="oc-stamp">{chapter.stamp}</span>
</div>
{hasMedia ? (
<div className="oc-media">
{chapter.image ? (
<img
className="oc-photo"
src={chapter.image}
alt={chapter.imageAlt ?? ""}
width={1000}
height={800}
loading="lazy"
decoding="async"
/>
) : chapter.spot ? (
<div className="oc-spot-well">
<Spot src={chapter.spot} size={160} shade="band" light="band-ink" />
</div>
) : null}
</div>
) : null}
<div className="oc-copy">
<h3 className="oc-title">{chapter.title}</h3>
{chapter.paragraphs.map((p, i) => (
<p key={i} className="oc-body">{p}</p>
))}
{chapter.aside ? <p className="oc-aside">{chapter.aside}</p> : null}
</div>
</li>
);
}
const CSS = `
.cf-origin-chapters {
--oc-text: color-mix(in oklch, var(--band-ink) 88%, var(--band));
--oc-line: oklch(from var(--band-ink) l c h / 0.18);
--oc-fill: var(--accent-fill, var(--accent));
--oc-gap: clamp(56px, 7vw, 96px);
--oc-ease: cubic-bezier(.2, .7, .2, 1);
position: relative;
overflow: hidden;
background: var(--band);
color: var(--band-ink);
font-family: var(--font-body);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
}
.cf-origin-chapters.has-edge { padding-bottom: calc(clamp(64px, 8.5vw, 120px) + 56px); }
.cf-origin-chapters :where(h2, h3, p, ol, li) { margin: 0; padding: 0; }
.cf-origin-chapters .oc-wrap { position: relative; z-index: 1; max-width: 1120px; margin-inline: auto; }
.cf-origin-chapters .oc-head { max-width: 46rem; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.cf-origin-chapters .oc-headline {
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
letter-spacing: var(--display-tracking, -0.025em);
text-transform: var(--display-case, none);
font-size: clamp(2rem, 3.6vw, 3.25rem);
line-height: 1.06;
text-wrap: balance;
color: var(--band-ink);
}
.cf-origin-chapters .oc-lead {
margin-top: 16px;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 500;
color: var(--oc-text);
text-wrap: pretty;
}
/* Timeline and thread */
.cf-origin-chapters .oc-timeline { position: relative; }
.cf-origin-chapters .oc-thread {
position: absolute;
top: 16px;
bottom: 0;
left: 15px;
width: 2px;
border-radius: 2px;
overflow: hidden;
background: var(--oc-line);
}
.cf-origin-chapters .oc-thread-fill {
position: absolute;
inset: 0;
display: block;
background: var(--oc-fill);
transform-origin: top center;
}
.cf-origin-chapters .oc-list { list-style: none; display: grid; gap: var(--oc-gap); }
/* Chapter (phone first: stamp on the thread, photo, then copy) */
.cf-origin-chapters .oc-chapter {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 16px;
padding-left: 44px;
}
.cf-origin-chapters .oc-node { display: flex; margin-left: -44px; }
.cf-origin-chapters .oc-stamp {
position: relative;
z-index: 1;
display: inline-flex;
align-items: center;
min-height: 32px;
padding: 4px 14px;
border-radius: 999px;
border: 1.5px solid oklch(from var(--band-ink) l c h / 0.32);
background: var(--band);
color: var(--band-ink);
font-family: var(--font-body);
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
letter-spacing: 0.08em;
text-transform: uppercase;
white-space: nowrap;
transition: background-color .3s var(--oc-ease), color .3s var(--oc-ease), border-color .3s var(--oc-ease);
}
.cf-origin-chapters .is-in .oc-stamp {
background: var(--oc-fill);
border-color: var(--oc-fill);
color: var(--accent-fill-ink, var(--card));
animation: oc-pop .3s var(--oc-ease) both;
}
@keyframes oc-pop { from { transform: scale(.9); } to { transform: scale(1); } }
.cf-origin-chapters .oc-media {
opacity: .82;
transform: translateY(8px);
transition: opacity .45s var(--oc-ease), transform .45s var(--oc-ease);
}
.cf-origin-chapters .is-in .oc-media { opacity: 1; transform: none; }
.cf-origin-chapters .oc-photo {
display: block;
width: 100%;
height: auto;
aspect-ratio: 5 / 4;
object-fit: cover;
object-position: center 40%;
border-radius: var(--radius, 12px);
}
.cf-origin-chapters .oc-spot-well {
display: grid;
place-items: center;
aspect-ratio: 5 / 4;
border-radius: var(--radius, 12px);
background: oklch(from var(--band-ink) l c h / 0.06);
}
.cf-origin-chapters .oc-copy > * + * { margin-top: 12px; }
.cf-origin-chapters .oc-title {
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-origin-chapters .oc-body,
.cf-origin-chapters .oc-aside {
max-width: 64ch;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
color: var(--oc-text);
text-wrap: pretty;
}
.cf-origin-chapters .oc-body :where(strong, b) { color: var(--band-ink); font-weight: 700; }
.cf-origin-chapters .oc-aside { font-style: italic; }
/* Optional quiet link after the final chapter */
.cf-origin-chapters .oc-more {
margin-top: clamp(48px, 6vw, 72px);
text-align: center;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
font-weight: 700;
text-wrap: pretty;
}
.cf-origin-chapters .oc-link {
color: var(--band-ink);
text-decoration: underline;
text-decoration-thickness: 1.5px;
text-decoration-color: oklch(from var(--band-ink) l c h / 0.45);
text-underline-offset: 0.18em;
border-radius: 4px;
transition: text-decoration-color .16s ease;
}
.cf-origin-chapters .oc-link:hover { text-decoration-color: var(--band-ink); }
.cf-origin-chapters .oc-link:focus-visible { outline: 3px solid oklch(from var(--band-ink) l c h / 0.7); outline-offset: 4px; }
/* Desktop: chapters alternate around a centre thread */
@media (min-width: 900px) {
.cf-origin-chapters .oc-thread { left: 50%; margin-left: -1px; }
.cf-origin-chapters .oc-chapter {
grid-template-columns: minmax(0, 1fr) minmax(128px, max-content) minmax(0, 1fr);
grid-template-areas: "media node copy";
align-items: start;
gap: 0;
padding-left: 0;
}
.cf-origin-chapters .oc-chapter.is-flip { grid-template-areas: "copy node media"; }
.cf-origin-chapters .oc-node { grid-area: node; margin-left: 0; justify-content: center; padding-inline: 16px; }
.cf-origin-chapters .oc-media { grid-area: media; }
.cf-origin-chapters .oc-copy { grid-area: copy; padding-top: 2px; }
.cf-origin-chapters .oc-photo,
.cf-origin-chapters .oc-spot-well { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
.cf-origin-chapters .oc-media,
.cf-origin-chapters .is-in .oc-media { opacity: 1; transform: none; transition: none; }
.cf-origin-chapters .oc-stamp,
.cf-origin-chapters .is-in .oc-stamp { animation: none; transition: none; }
.cf-origin-chapters .oc-link { transition: none; }
}
`;
pieces/content/origin-chapters/specimen.tsx 50 lines
import __studioImagee9476800 from "../assets/7268b8a610ddde95.webp";
import __studioImagedd8ca81c from "../assets/68aa7024a4fcc313.webp";
import __studioImage7d55bf5e from "../assets/e725bdfd06928384.webp";
import { OriginChapters } from "../origin-chapters";
import { slot } from "../../slots";
export const states = ["default"];
export default function OriginChaptersSpecimen(_props: { state?: "default" }) {
return (
<OriginChapters
headline="Why should you learn sourdough from me?"
chapters={[
{
stamp: "Age 14",
title: "It started with a jar of flour paste on my mum's windowsill",
paragraphs: [
"At 14 I fed my first starter every morning before school. Most of my loaves came out as flat as a plate.",
<>Then it clicked: <strong>the starter decides the loaf, not the recipe.</strong> Everything I teach grew from that one idea.</>,
],
aside: "(I know. A teenager obsessed with a jar of goo. My mum didn't believe it either.)",
image: __studioImagee9476800,
imageAlt: "Marisol at 14, stirring her first sourdough starter by the kitchen window",
},
{
stamp: "Age 22",
title: "Turned weekend baking into a sold-out market stall",
paragraphs: [
<>By 22 I was selling <strong>40 loaves every Saturday</strong> at the farmers' market, and the same question kept coming across the table: how?</>,
<>So I started teaching four people at a time in my own kitchen, <strong>starter first, recipe second.</strong></>,
],
image: slot("scene", __studioImagedd8ca81c),
imageAlt: "Marisol at her farmers' market bread stall",
},
{
stamp: "Age 31",
title: "Now I run Rise & Crumb, a sourdough school for home bakers",
paragraphs: [
<>Today <strong>more than 1,200 home bakers</strong> have pulled their first real loaf out of the oven with my method, online and in my teaching kitchen.</>,
"My whole job is getting you there faster than I got there.",
],
image: slot("presenter", __studioImage7d55bf5e),
imageAlt: "Marisol teaching a small sourdough class in her teaching kitchen",
},
]}
linkLabel="Read how Rise & Crumb teaches, start to finish"
linkHref="#method"
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalOriginChapters |
React.ReactNode |
|
lead OptionalOriginChapters |
React.ReactNode |
|
chapters OptionalOriginChapters |
OriginChapter[] |
|
linkLabel OptionalOriginChapters |
string |
|
linkHref OptionalOriginChapters |
string |
|
edge OptionalOriginChapters |
boolean |
|
edgeTone OptionalOriginChapters |
React.ComponentProps<typeof Divider>["tone"] |
|
className OptionalOriginChapters |
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.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter- A photo of the host, coach or founder.
scene- A wide atmosphere photo behind or beside the copy.
-
68aa7024a4fcc313.webp
image/webp · 69.6 KB
-
7268b8a610ddde95.webp
image/webp · 65.1 KB
-
e725bdfd06928384.webp
image/webp · 49.1 KB