Article Body 3
Case-study article for an agency blog. The story (problem, what changed, the result) reads down the left while a sticky ‘same playbook’ offer waits on the right. A Key takeaways toggle up top gives skimmers the point and still leads them to the action.
Use it in a prompt
Use content/article-body-3 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/article-body-3.tsx. - Import it and pass your copy and images (Props tab):
import { ArticleBody3 } from "@/components/funneldna/content/article-body-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/article-body-3/component.tsx 598 lines
// layout: sticky-offer-side
// Case-study article for an agency blog. The story (problem, what changed, the result) reads down the left while a sticky ‘same playbook’ offer waits on the right. A Key takeaways toggle up top gives skimmers the point and still leads them to the action.
import * as React from 'react';
import { Building2, CalendarDays, ChevronDown, ListChecks, Lock, MapPin, Quote, Truck, Wrench } from 'lucide-react';
import type { LucideIcon } from 'lucide-react';
export type CaseStudySection = {
heading: string; // sells the beat, e.g. ‘Every March, the phones went quiet’
paragraphs: React.ReactNode[];
};
export type CaseStudyResult = { label: string; before: string; after: string };
export type CaseStudyQuote = { text: React.ReactNode; name: string; role?: string };
export type CaseStudyClient = {
name: string;
details?: { text: string; icon?: 'team' | 'trade' | 'place' | 'time' }[];
};
export type CaseStudyOffer = {
heading: string;
reason: React.ReactNode;
items: { name: string; image?: string; imageAlt?: string }[]; // product thumbnails (item-1 … item-n slots)
productName: string; // shown in the phone bottom bar
totalLead: string;
totalValue: string; // revealed first and big; leave empty to show only today’s price
reveal: string;
todayLabel: string;
price: string;
priceNote: string;
question: string; // the question the button answers
label: string;
sublabel: string;
psLabel: string;
ps: React.ReactNode;
barLabel: string; // short label for the phone bottom-bar button
};
export type CaseStudyCopy = {
byPrefix: string;
readTime: string; // ‘{minutes} min read’
takeawaysLabel: string;
takeawaysHint: string; // ‘{count} points · 20-second read’
resultsTitle: string;
resultsLabelHead: string;
resultsBeforeHead: string;
resultsAfterHead: string;
};
export type ArticleBody3Props = {
title?: string;
titleHighlight?: string; // phrase inside the title that gets the marker stroke
titleLevel?: 1 | 2; // 2 when the page already has an h1
deck?: React.ReactNode;
author?: { name: string; role?: string };
readMinutes?: number;
client?: CaseStudyClient; // proof: empty by default
photo?: string; // scene slot
photoAlt?: string;
photoCaption?: React.ReactNode;
takeaways?: React.ReactNode[];
defaultOpen?: boolean;
story?: CaseStudySection[];
results?: CaseStudyResult[]; // proof: empty hides the table
resultsAfter?: number; // index of the story section the table closes
quote?: CaseStudyQuote; // proof: empty hides the pull line
quoteAfter?: number; // index of the story section the pull line follows
offer?: Partial<CaseStudyOffer>;
copy?: Partial<CaseStudyCopy>;
href?: string;
onAction?: () => void;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
export function ArticleBody3(props: ArticleBody3Props) {
const {
title = 'How a three-van heating firm filled its spring calendar',
titleHighlight = 'filled its spring calendar',
titleLevel = 1,
deck = 'Every spring their phones went quiet. Here’s the one-page funnel that turned their slowest season into a booked-out one.',
author,
readMinutes = 6,
client,
photo,
photoAlt = '',
photoCaption,
takeaways = DEFAULT_TAKEAWAYS,
defaultOpen = false,
story = DEFAULT_STORY,
results = [],
resultsAfter = 2,
quote,
quoteAfter = 1,
href,
onAction,
state,
className,
} = props;
const offer = merge(DEFAULT_OFFER, props.offer);
const t = merge(DEFAULT_COPY, props.copy);
const uid = 'cfab3-' + React.useId().replace(/[^a-zA-Z0-9_-]/g, '');
const [open, setOpen] = React.useState(defaultOpen);
const rootRef = React.useRef<HTMLElement>(null);
const headRef = React.useRef<HTMLElement>(null);
const cardRef = React.useRef<HTMLDivElement>(null);
const [barOn, setBarOn] = React.useState(false);
// Phone bottom bar: shown once the reader is past the header, hidden while the end-of-article card is in view.
React.useEffect(() => {
const root = rootRef.current;
const head = headRef.current;
const card = cardRef.current;
if (!root || !head || !card || typeof IntersectionObserver === 'undefined') return;
const seen = { root: false, past: false, card: false };
const io = new IntersectionObserver((entries) => {
for (const e of entries) {
if (e.target === root) seen.root = e.isIntersecting;
else if (e.target === card) seen.card = e.isIntersecting || e.boundingClientRect.bottom < 0;
else seen.past = !e.isIntersecting && e.boundingClientRect.top < 0;
}
setBarOn(seen.root && seen.past && !seen.card);
});
io.observe(root);
io.observe(head);
io.observe(card);
return () => io.disconnect();
}, []);
// Proof blocks rise once as they scroll into view (still under reduced motion, readable before).
const [resultsRef, resultsIn] = useSeen<HTMLDivElement>();
const [pullRef, pullIn] = useSeen<HTMLElement>();
const disabled = state === 'disabled';
const force = state === 'hover' ? ' is-hover' : state === 'active' ? ' is-active' : '';
const TitleTag = (titleLevel === 2 ? 'h2' : 'h1') as 'h1' | 'h2';
const SubTag = (titleLevel === 2 ? 'h3' : 'h2') as 'h2' | 'h3';
const hasResults = results.length > 0;
const hasQuote = !!quote && !!quote.text;
const last = Math.max(0, story.length - 1);
const resultsAt = Math.min(Math.max(0, resultsAfter), last);
const quoteAt = Math.min(Math.max(0, quoteAfter), last);
const thumbs = (offer.items || []).filter((item) => !!item.image).slice(0, 4);
const byline = [
author ? `${t.byPrefix} ${author.name}${author.role ? `, ${author.role}` : ''}` : '',
fill(t.readTime, { minutes: readMinutes }),
].filter(Boolean).join(' · ');
const action = (extra: string, label: string, inBar?: boolean) => {
const cls = `cf-ab3__btn${extra}${force}`;
const tab = inBar && !barOn ? -1 : undefined;
if (href && !disabled) {
return (
<a className={cls} href={href} tabIndex={tab} onClick={() => onAction?.()}>
{label}
</a>
);
}
return (
<button type='button' className={cls} tabIndex={tab} disabled={disabled} onClick={() => onAction?.()}>
{label}
</button>
);
};
const resultsBlock = hasResults ? (
<div ref={resultsRef} className={`cf-ab3__results cf-ab3__reveal${resultsIn ? ' is-in' : ''}`}>
<p className='cf-ab3__rt' id={`${uid}-rt`}>{t.resultsTitle}</p>
<div className='cf-ab3__tcard'>
<table className='cf-ab3__table' aria-labelledby={`${uid}-rt`}>
<thead>
<tr>
<th scope='col'>{t.resultsLabelHead}</th>
<th scope='col'>{t.resultsBeforeHead}</th>
<th scope='col'>{t.resultsAfterHead}</th>
</tr>
</thead>
<tbody>
{results.map((r, i) => (
<tr key={i}>
<th scope='row' className='cf-ab3__tl'>{r.label}</th>
<td className='cf-ab3__tb'>{r.before}</td>
<td className='cf-ab3__ta'>{r.after}</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
) : null;
const pullBlock = hasQuote && quote ? (
<figure ref={pullRef} className={`cf-ab3__pull cf-ab3__reveal${pullIn ? ' is-in' : ''}`}>
<span className='cf-ab3__pull-disc' aria-hidden='true'>
<Quote size={20} strokeWidth={2.5} />
</span>
<blockquote className='cf-ab3__pull-q'>
<p>{nobr(quote.text)}</p>
</blockquote>
{quote.name ? (
<figcaption className='cf-ab3__pull-by'>
<strong>{quote.name}</strong>
{quote.role ? <span>, {quote.role}</span> : null}
</figcaption>
) : null}
</figure>
) : null;
return (
<section ref={rootRef} className={`cf-ab3${className ? ` ${className}` : ''}`} aria-labelledby={`${uid}-title`}>
<style>{CSS}</style>
<div className='cf-ab3__wrap'>
<header ref={headRef} className='cf-ab3__head cf-ab3__rise'>
<TitleTag id={`${uid}-title`} className='cf-ab3__title'>{highlight(title, titleHighlight)}</TitleTag>
{deck ? <p className='cf-ab3__deck'>{nobr(deck)}</p> : null}
{byline ? <p className='cf-ab3__byline'>{byline}</p> : null}
{client ? (
<ul className='cf-ab3__chips'>
<li className='cf-ab3__chip'>
<Building2 size={16} strokeWidth={2.5} aria-hidden='true' />
{client.name}
</li>
{(client.details || []).map((d, i) => {
const Icon = d.icon ? ICONS[d.icon] : undefined;
return (
<li key={i} className='cf-ab3__chip'>
{Icon ? <Icon size={16} strokeWidth={2.5} aria-hidden='true' /> : null}
{d.text}
</li>
);
})}
</ul>
) : null}
</header>
{photo ? (
<figure className='cf-ab3__photo cf-ab3__rise' style={{ animationDelay: '.07s' }}>
<img src={photo} alt={photoAlt} width={1600} height={686} decoding='async' />
{photoCaption ? <figcaption className='cf-ab3__cap'>{nobr(photoCaption)}</figcaption> : null}
</figure>
) : null}
<div className='cf-ab3__layout'>
<article className='cf-ab3__article'>
{takeaways.length > 0 ? (
<div className={`cf-ab3__tk${open ? ' is-open' : ''}`}>
<button
type='button'
id={`${uid}-tkb`}
className='cf-ab3__tk-btn'
aria-expanded={open}
aria-controls={`${uid}-tk`}
onClick={() => setOpen((o) => !o)}
>
<span className='cf-ab3__tk-disc' aria-hidden='true'>
<ListChecks size={20} strokeWidth={2.5} />
</span>
<span className='cf-ab3__tk-text'>
<span className='cf-ab3__tk-label'>{t.takeawaysLabel}</span>
<span className='cf-ab3__tk-hint'>{fill(t.takeawaysHint, { count: takeaways.length })}</span>
</span>
<ChevronDown className='cf-ab3__tk-chev' size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
<div className='cf-ab3__tk-panel' id={`${uid}-tk`} role='region' aria-labelledby={`${uid}-tkb`}>
<div className='cf-ab3__tk-inner'>
<ol className='cf-ab3__tk-list'>
{takeaways.map((item, i) => (
<li key={i} className='cf-ab3__tk-item'>
<span className='cf-ab3__tk-num' aria-hidden='true'>{i + 1}</span>
<span>{nobr(item)}</span>
</li>
))}
</ol>
</div>
</div>
</div>
) : null}
{story.map((sec, i) => (
<React.Fragment key={i}>
<section className='cf-ab3__sec' aria-labelledby={`${uid}-s${i}`}>
<SubTag id={`${uid}-s${i}`} className='cf-ab3__h'>{sec.heading}</SubTag>
{sec.paragraphs.map((p, j) => (
<p key={j} className='cf-ab3__p'>{nobr(p)}</p>
))}
{i === resultsAt ? resultsBlock : null}
</section>
{i === quoteAt ? pullBlock : null}
</React.Fragment>
))}
{story.length === 0 ? (
<>
{pullBlock}
{resultsBlock}
</>
) : null}
</article>
<aside className='cf-ab3__aside' aria-labelledby={`${uid}-offer`}>
<div ref={cardRef} className='cf-ab3__card cf-ab3__rise' style={{ animationDelay: '.14s' }}>
<SubTag id={`${uid}-offer`} className='cf-ab3__ch'>{offer.heading}</SubTag>
{offer.reason ? <p className='cf-ab3__reason'>{nobr(offer.reason)}</p> : null}
{thumbs.length > 0 ? (
<ul className='cf-ab3__thumbs' style={{ gridTemplateColumns: `repeat(${thumbs.length}, minmax(0, 1fr))` }}>
{thumbs.map((item, i) => (
<li key={i}>
<img src={item.image} alt={item.imageAlt || item.name} loading='lazy' decoding='async' />
</li>
))}
</ul>
) : null}
<div className='cf-ab3__well'>
{offer.totalValue ? (
<>
<p className='cf-ab3__vl'>{offer.totalLead}</p>
<p className='cf-ab3__vt'>
<span className='cf-ab3__num cf-ab3__num--total'>{offer.totalValue}</span>
</p>
<p className='cf-ab3__rv'>{offer.reveal}</p>
</>
) : null}
<p className='cf-ab3__today'>
<span className='cf-ab3__vl'>{offer.todayLabel}</span>
<span className='cf-ab3__num cf-ab3__num--price'>{offer.price}</span>
</p>
{offer.priceNote ? <p className='cf-ab3__pn'>{offer.priceNote}</p> : null}
</div>
{offer.question ? <p className='cf-ab3__qa'>{offer.question}</p> : null}
{action('', offer.label)}
{offer.sublabel ? (
<p className='cf-ab3__safe'>
<Lock className='cf-ab3__ii' size={16} strokeWidth={2.5} aria-hidden='true' />
{offer.sublabel}
</p>
) : null}
{offer.ps ? (
<p className='cf-ab3__ps'>
<strong>{offer.psLabel}</strong> {nobr(offer.ps)}
</p>
) : null}
</div>
</aside>
</div>
</div>
<div className={`cf-ab3__bar${barOn ? ' is-shown' : ''}`} aria-hidden={!barOn}>
<div className='cf-ab3__bar-txt'>
<span className='cf-ab3__bar-price'>{offer.price}</span>
<span className='cf-ab3__bar-name'>{offer.productName}</span>
</div>
{action(' cf-ab3__btn--bar', offer.barLabel, true)}
</div>
</section>
);
}
export default ArticleBody3;
const ICONS: Record<string, LucideIcon> = { team: Truck, trade: Wrench, place: MapPin, time: CalendarDays };
const DEFAULT_TAKEAWAYS: React.ReactNode[] = [
'Sell one seasonal offer, not the whole service list.',
'Send every ad and post to one page with one booking button.',
'Follow up the same afternoon by text, before a rival calls back.',
];
const DEFAULT_STORY: CaseStudySection[] = [
{
heading: 'Every March, the phones went quiet',
paragraphs: [
'Winter was easy. Boilers broke, people called, the vans went out full.',
'Then the first warm week arrived and the calendar emptied. Three vans, three engineers, and nothing booked past Thursday.',
'They had tried boosted posts and a discount flyer. Both brought a few calls. Neither filled a week.',
],
},
{
heading: 'One offer, one page, one button',
paragraphs: [
'We didn’t build them a better website. We built one page with one job: book a spring boiler service before the summer rush.',
'Every ad, post and text pointed at that page. One headline, a fixed price, a booking button above the fold and the guarantee right under it.',
'Anyone who didn’t book got a text the same afternoon. No newsletter, no sequence. Just a reminder and the link.',
],
},
{
heading: 'The quiet season stopped being quiet',
paragraphs: [
'The vans stayed out through spring, and the owner stopped discounting to fill gaps, because there weren’t any.',
'Here is what changed, side by side.',
],
},
];
const DEFAULT_OFFER: CaseStudyOffer = {
heading: 'Get the same playbook',
reason: 'The plan behind this case study in one download: the planning guide, the copy workbook and the launch checklist.',
items: [],
productName: 'The Funnel Starter Kit',
totalLead: 'Everything inside is worth',
totalValue: '$97',
reveal: 'But you won’t pay that.',
todayLabel: 'Yours today for',
price: '$47',
priceNote: 'One payment · Lifetime access',
question: 'Ready to map your first funnel?',
label: 'I’m ready, show me how',
sublabel: 'Secure checkout · Instant download',
psLabel: 'P.S.',
ps: 'Every kit comes with a 30-day money-back guarantee. Plan your funnel with it, and if it doesn’t help, ask for a full refund.',
barLabel: 'Get the playbook',
};
const DEFAULT_COPY: CaseStudyCopy = {
byPrefix: 'By',
readTime: '{minutes} min read',
takeawaysLabel: 'Key takeaways',
takeawaysHint: '{count} points · 20-second read',
resultsTitle: 'Six weeks, before and after',
resultsLabelHead: 'What we measured',
resultsBeforeHead: 'Before',
resultsAfterHead: 'After',
};
function merge<T extends object>(base: T, over?: Partial<T>): T {
const out = { ...base } as T;
if (over) {
for (const key of Object.keys(over) as (keyof T)[]) {
const v = over[key];
if (v !== undefined) out[key] = v as T[keyof T];
}
}
return out;
}
function fill(template: string, vars: Record<string, string | number>) {
return Object.entries(vars).reduce((s, [k, v]) => s.split('{' + k + '}').join(String(v)), template);
}
function highlight(text: string, phrase?: string) {
if (!phrase) return nobr(text);
const at = text.indexOf(phrase);
if (at < 0) return nobr(text);
return (
<>
{nobr(text.slice(0, at))}
<span className='cf-ab3__mark'>{nobr(phrase)}</span>
{nobr(text.slice(at + phrase.length))}
</>
);
}
// Keeps hyphenated words (three-van, booked-out, money-back) whole so phones never break them at the hyphen.
function nobr(node: React.ReactNode): React.ReactNode {
if (typeof node !== 'string') return node;
const parts = node.split(/(\S+-\S+)/);
if (parts.length === 1) return node;
return parts.map((part, i) => (i % 2 ? <span key={i} className='cf-ab3__nb'>{part}</span> : part));
}
function useSeen<T extends Element>() {
const ref = React.useRef<T>(null);
const [seen, setSeen] = React.useState(false);
React.useEffect(() => {
const el = ref.current;
if (!el || typeof window === 'undefined' || typeof IntersectionObserver === 'undefined') return;
if (window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
if (el.getBoundingClientRect().top < window.innerHeight) return; // already on screen: stay still
const io = new IntersectionObserver(
(entries) => {
if (entries.some((e) => e.isIntersecting)) {
setSeen(true);
io.disconnect();
}
},
{ rootMargin: '0px 0px -10% 0px' },
);
io.observe(el);
return () => io.disconnect();
}, []);
return [ref, seen] as const;
}
const CSS = `
.cf-ab3{--ab3-gutter:clamp(16px,5vw,48px);--ab3-marker:color-mix(in oklch,var(--marker,#fae37c) 80%,transparent);--ab3-shadow:var(--shadow,oklch(0.22 0.03 260));position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) var(--ab3-gutter) clamp(64px,8.5vw,120px)}
.cf-ab3 *,.cf-ab3 *::before,.cf-ab3 *::after{box-sizing:border-box}
.cf-ab3__wrap{max-width:1120px;margin:0 auto}
.cf-ab3__nb{white-space:nowrap}
.cf-ab3__title{margin:0;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(2.5rem,5.4vw,4.875rem);line-height:1.04;color:var(--ink);text-wrap:balance}
.cf-ab3__mark{color:inherit;background-image:linear-gradient(transparent 58%,var(--ab3-marker) 58%,var(--ab3-marker) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .05em;margin:0 -.05em}
.cf-ab3__deck{margin:clamp(16px,2vw,24px) 0 0;max-width:62ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-ab3__byline{margin:24px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--ink)}
.cf-ab3__chips{margin:12px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.cf-ab3__chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--surface));color:var(--ink);font-size:.875rem;font-weight:800;line-height:1.2}
.cf-ab3__chip svg{flex:none;color:var(--accent)}
.cf-ab3__photo{margin:clamp(32px,4vw,48px) 0 0}
.cf-ab3__photo img{display:block;width:100%;height:auto;aspect-ratio:21/9;object-fit:cover;object-position:center 60%;border-radius:12px;background:color-mix(in oklch,var(--ink) 6%,var(--surface))}
.cf-ab3__cap{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-ab3__layout{margin-top:clamp(40px,5vw,64px);display:grid;grid-template-columns:minmax(0,1fr);gap:48px}
.cf-ab3__article{min-width:0}
@media (min-width:1000px){.cf-ab3__layout{grid-template-columns:minmax(0,1fr) 380px;gap:clamp(32px,5vw,72px);align-items:start}}
@media (min-width:1000px) and (min-height:760px){.cf-ab3__aside{position:sticky;top:24px}}
.cf-ab3__tk{background:color-mix(in oklch,var(--ink) 4%,var(--surface));border:1px solid oklch(from var(--ink) l c h / .1);border-radius:var(--radius,12px)}
.cf-ab3__tk-btn{display:flex;align-items:center;gap:16px;width:100%;min-height:72px;padding:14px 16px;border:0;border-radius:var(--radius,12px);background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background .16s ease}
.cf-ab3__tk-btn:hover{background:color-mix(in oklch,var(--ink) 4%,transparent)}
.cf-ab3__tk-btn:active{background:color-mix(in oklch,var(--ink) 8%,transparent)}
.cf-ab3__tk-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-ab3__tk-disc{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-ab3__tk-text{flex:1;min-width:0;display:grid;gap:2px}
.cf-ab3__tk-label{font-family:var(--font-display);font-weight:800;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.2;color:var(--ink)}
.cf-ab3__tk-hint{font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.cf-ab3__tk-chev{flex:none;color:var(--ink);transition:transform .2s ease}
.cf-ab3__tk.is-open .cf-ab3__tk-chev{transform:rotate(180deg)}
.cf-ab3__tk-panel{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .3s cubic-bezier(.2,.7,.2,1),visibility 0s linear .3s}
.cf-ab3__tk.is-open .cf-ab3__tk-panel{grid-template-rows:1fr;visibility:visible;transition:grid-template-rows .3s cubic-bezier(.2,.7,.2,1),visibility 0s}
.cf-ab3__tk-inner{overflow:hidden;min-height:0}
.cf-ab3__tk-list{list-style:none;margin:0;padding:4px 20px 20px 16px;display:grid;gap:12px}
.cf-ab3__tk-item{display:grid;grid-template-columns:40px minmax(0,1fr);gap:16px;align-items:baseline;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-ab3__tk-num{text-align:center;font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1;color:var(--accent);font-variant-numeric:lining-nums tabular-nums}
.cf-ab3__sec{margin-top:clamp(40px,5vw,56px)}
.cf-ab3__sec:first-child{margin-top:0}
.cf-ab3__h{margin:0 0 12px;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--ink);text-wrap:balance}
.cf-ab3__p{margin:0 0 1em;max-width:64ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.65;color:var(--ink);text-wrap:pretty}
.cf-ab3__p:last-child{margin-bottom:0}
.cf-ab3__pull{margin:clamp(40px,5vw,64px) 0;padding:0}
.cf-ab3__pull-disc{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-ab3__pull-q{margin:16px 0 0}
.cf-ab3__pull-q p{margin:0;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;color:var(--ink);text-wrap:balance}
.cf-ab3__pull-by{margin-top:16px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.cf-ab3__pull-by strong{color:var(--ink);font-weight:800}
.cf-ab3__results{margin-top:24px}
.cf-ab3__rt{margin:0;font-family:var(--font-display);font-weight:800;letter-spacing:-0.01em;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.2;color:var(--ink);text-wrap:balance}
.cf-ab3__tcard{margin-top:12px;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-md,0 1px 2px oklch(from var(--ab3-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--ab3-shadow) l c h / .2)));overflow:hidden}
.cf-ab3__table{width:100%;border-collapse:collapse;font-variant-numeric:lining-nums tabular-nums;color:var(--ink)}
.cf-ab3__table thead th{background:color-mix(in oklch,var(--ink) 5%,var(--card));padding:12px 16px;border-bottom:1px solid oklch(from var(--ink) l c h / .18);font-size:.875rem;line-height:1.2;font-weight:800;text-align:left;color:var(--ink)}
.cf-ab3__table td,.cf-ab3__tl{padding:14px 16px;border-top:1px solid oklch(from var(--ink) l c h / .08);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.35;text-align:left;vertical-align:baseline}
.cf-ab3__table tbody tr:first-child td,.cf-ab3__table tbody tr:first-child .cf-ab3__tl{border-top:0}
.cf-ab3__table thead th:not(:first-child),.cf-ab3__table td{text-align:right;white-space:nowrap;width:24%}
.cf-ab3__tl{font-weight:600;color:var(--ink);text-wrap:pretty}
.cf-ab3__tb{color:var(--muted);font-weight:600}
.cf-ab3__ta{color:var(--success);font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);font-variant-numeric:lining-nums tabular-nums;letter-spacing:-0.01em}
.cf-ab3__card{background:var(--card);color:var(--ink);border:1px solid color-mix(in oklch,var(--accent) 28%,var(--card));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--ab3-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--ab3-shadow) l c h / .32)));padding:clamp(20px,3vw,28px)}
.cf-ab3__ch{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--ink);text-wrap:balance}
.cf-ab3__reason{margin:8px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.45;color:var(--muted);text-wrap:pretty}
.cf-ab3__thumbs{margin:16px 0 0;padding:0;list-style:none;display:grid;gap:10px}
.cf-ab3__thumbs img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;object-position:center;border-radius:8px}
.cf-ab3__well{margin-top:16px;padding:16px 18px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-ab3__vl{margin:0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted)}
.cf-ab3__vt{margin:4px 0 12px}
.cf-ab3__num{display:inline-block;font-family:var(--font-display);font-weight:800;letter-spacing:-0.03em;font-variant-numeric:lining-nums tabular-nums;line-height:1;color:var(--ink)}
.cf-ab3__num--total{font-size:2.5rem}
.cf-ab3__num--price{font-size:clamp(2.5rem,4.2vw,3.75rem);color:var(--accent)}
.cf-ab3__rv{margin:0;font-family:var(--font-display);font-weight:800;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.2;color:var(--ink);text-wrap:balance}
.cf-ab3__today{margin:12px 0 0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.cf-ab3__pn{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.cf-ab3__qa{margin:24px 0 12px;font-family:var(--font-display);font-weight:800;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.25;color:var(--ink);text-wrap:balance}
.cf-ab3__safe{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-align:center;text-wrap:balance}
.cf-ab3__ii{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-ab3__ps{margin:16px 0 0;font-size:.9375rem;line-height:1.45;color:var(--ink);text-wrap:pretty}
.cf-ab3__ps strong{font-weight:800}
.cf-ab3__btn{--ab3-b:var(--button-bg,var(--cta));display:flex;width:100%;align-items:center;justify-content:center;text-align:center;min-height:64px;padding:10px 24px;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.4vw,1.25rem);line-height:1.15;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);text-decoration:none;text-wrap:balance;cursor:pointer;background:linear-gradient(oklch(from var(--ab3-b) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--ab3-b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--ab3-b) calc(l - .16) c h),0 1px 2px oklch(from var(--ab3-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--ab3-shadow) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-ab3__btn:hover:not(:disabled),.cf-ab3__btn.is-hover{background:linear-gradient(oklch(from var(--ab3-b) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));transform:translateY(-1px);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--ab3-b) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--ab3-b) calc(l - .18) c h),0 1px 2px oklch(from var(--ab3-shadow) l c h / .34),0 10px 18px -6px oklch(from var(--ab3-shadow) l c h / .55))}
.cf-ab3__btn:active:not(:disabled),.cf-ab3__btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--ab3-b) calc(l - .05) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--ab3-b) calc(l - .24) c h / .55),inset 0 -2px 0 oklch(from var(--ab3-b) calc(l - .16) c h),0 1px 1px oklch(from var(--ab3-shadow) l c h / .3)}
.cf-ab3__btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-ab3__btn:disabled{background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:none;transform:none;cursor:not-allowed}
.cf-ab3__bar{display:none}
@media (max-width:999px){
.cf-ab3__bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;align-items:center;gap:12px;padding:10px var(--ab3-gutter) calc(10px + env(safe-area-inset-bottom,0px));background:var(--card);color:var(--ink);box-shadow:0 -1px 2px oklch(from var(--ab3-shadow) l c h / .14),0 -8px 16px -8px oklch(from var(--ab3-shadow) l c h / .3);transform:translateY(110%);visibility:hidden;transition:transform .25s cubic-bezier(.2,.7,.2,1),visibility 0s linear .25s}
.cf-ab3__bar.is-shown{transform:none;visibility:visible;transition:transform .25s cubic-bezier(.2,.7,.2,1),visibility 0s}
}
.cf-ab3__bar-txt{flex:1;min-width:0;display:grid;gap:2px}
.cf-ab3__bar-price{font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1;letter-spacing:-0.02em;font-variant-numeric:lining-nums tabular-nums;color:var(--ink)}
.cf-ab3__bar-name{font-size:.875rem;line-height:1.2;font-weight:600;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cf-ab3__btn.cf-ab3__btn--bar{width:auto;flex:none;min-height:48px;padding:8px 18px;font-size:1rem;white-space:nowrap}
@media (max-width:640px){
.cf-ab3__photo img{aspect-ratio:4/3}
.cf-ab3__table thead th,.cf-ab3__table td,.cf-ab3__tl{padding-left:12px;padding-right:12px}
.cf-ab3__tk-list{padding-right:16px}
}
.cf-ab3__rise{animation:cf-ab3-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-ab3__reveal.is-in{animation:cf-ab3-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-ab3__reveal.is-in tbody tr{animation:cf-ab3-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-ab3__reveal.is-in tbody tr:nth-child(2){animation-delay:.07s}
.cf-ab3__reveal.is-in tbody tr:nth-child(3){animation-delay:.14s}
.cf-ab3__reveal.is-in tbody tr:nth-child(4){animation-delay:.21s}
.cf-ab3__reveal.is-in tbody tr:nth-child(n+5){animation-delay:.28s}
@keyframes cf-ab3-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.cf-ab3 *,.cf-ab3 *::before,.cf-ab3 *::after{animation:none !important;transition:none !important}}
`;
pieces/content/article-body-3/specimen.tsx 56 lines
import __studioImageeb41b606 from "../assets/60c77a14e28b5de7.webp";
import * as React from 'react';
import { ArticleBody3 } from '../article-body-3';
import type { ArticleBody3Props } from '../article-body-3';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
export default function ArticleBody3Specimen({ state }: { state?: ArticleBody3Props['state'] }) {
const s = defaults.sample;
return (
<ArticleBody3
state={state}
author={{ name: 'Maya Okafor', role: 'Strategy lead' }}
readMinutes={6}
client={{
name: 'Ridgeway Heating',
details: [
{ text: '3 vans', icon: 'team' },
{ text: 'Boiler service & repair', icon: 'trade' },
{ text: 'Northern England', icon: 'place' },
{ text: '6-week spring push', icon: 'time' },
],
}}
photo={slot('scene', __studioImageeb41b606)}
photoAlt='A white service van parked on a terraced street while an engineer carries a toolbox to a front door'
photoCaption='Spring service visits, booked from one page.'
results={[
{ label: 'Booked jobs in March', before: '14', after: '41' },
{ label: 'New enquiries a week', before: '6', after: '23' },
{ label: 'Days booked ahead', before: '2', after: '31' },
{ label: 'Jobs sold at a discount', before: '1 in 3', after: 'None' },
]}
quote={{
text: 'We used to dread March. This spring we started a waiting list.',
name: 'Dana R.',
role: 'Owner, Ridgeway Heating',
}}
offer={{
reason: 'The plan we used for Ridgeway in one download: the planning guide, the copy workbook and the launch checklist.',
items: s.items.map((item, i) => ({
name: item.name,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
})),
productName: s.name,
totalValue: s.regularPrice,
price: s.price,
priceNote: s.note,
sublabel: s.sublabel,
ps: `Your kit is covered by a ${s.guarantee}. Plan your funnel with it, and if it doesn’t help, ask for a full refund.`,
}}
/>
);
}
| Name | Type | Details |
|---|---|---|
title OptionalArticleBody3 |
string |
|
titleHighlight OptionalArticleBody3 |
string |
|
titleLevel OptionalArticleBody3 |
1 | 2 |
|
deck OptionalArticleBody3 |
React.ReactNode |
|
author OptionalArticleBody3 |
{ name: string; role?: string } |
|
readMinutes OptionalArticleBody3 |
number |
|
client OptionalArticleBody3 |
CaseStudyClient |
|
photo OptionalArticleBody3 |
string |
|
photoAlt OptionalArticleBody3 |
string |
|
photoCaption OptionalArticleBody3 |
React.ReactNode |
|
takeaways OptionalArticleBody3 |
React.ReactNode[] |
|
defaultOpen OptionalArticleBody3 |
boolean |
|
story OptionalArticleBody3 |
CaseStudySection[] |
|
results OptionalArticleBody3 |
CaseStudyResult[] |
|
resultsAfter OptionalArticleBody3 |
number |
|
quote OptionalArticleBody3 |
CaseStudyQuote |
|
quoteAfter OptionalArticleBody3 |
number |
|
offer OptionalArticleBody3 |
Partial<CaseStudyOffer> |
|
copy OptionalArticleBody3 |
Partial<CaseStudyCopy> |
|
href OptionalArticleBody3 |
string |
|
onAction OptionalArticleBody3 |
() => void |
|
state OptionalArticleBody3 |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalArticleBody3 |
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- 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.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
scene- A wide atmosphere photo behind or beside the copy.
-
60c77a14e28b5de7.webp
image/webp · 91.2 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB