Story Accordion 1
Story accordion: one client story opens as a large photo card (result, metric chips, short story) while the
Use it in a prompt
Use proof/story-accordion from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/proof/story-accordion.tsx. - Import it and pass your copy and images (Props tab):
import { StoryAccordion } from "@/components/funneldna/proof/story-accordion"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/story-accordion/component.tsx 379 lines
// layout: spotlight-row
// Story accordion: one client story opens as a large photo card (result, metric chips, short story) while the
// others wait as one-line rows; the open story's pull quote and the next action sit under the stack.
import React from 'react';
import { ChevronDown } from 'lucide-react';
import { Divider, FX_HOST, Spot } from '../fx/fx';
export type StoryMetric = {
value: string; // the number or the change, set bold ('3 weeks')
label?: string; // what it measures ('to fully caught up')
};
export type StoryQuote = {
text: React.ReactNode;
name: string;
role?: string;
};
export type Story = {
client: string; // customer name, shown small above the result
result: React.ReactNode; // the one-line result: the row title
logo?: string; // small logo image src
spot?: string; // fx spot asset (import x from '../fx/spots/x'), used as the mark when there is no logo
photo?: string; // wide story photo
photoAlt?: string;
photoPosition?: string; // object-position focal point, e.g. '50% 30%'
metrics?: StoryMetric[]; // up to 3 chips laid along the bottom of the photo
summary?: React.ReactNode;
aside?: React.ReactNode; // italic aside in the author's voice
linkLabel?: string;
href?: string; // full story destination
quote?: StoryQuote; // pull quote shown under the stack while this story is open
};
type EdgeTone = React.ComponentProps<typeof Divider>['tone'];
export type StoryAccordionProps = {
headline?: React.ReactNode;
lead?: React.ReactNode;
allStoriesLabel?: string;
allStoriesHref?: string;
onAllStories?: () => void;
stories?: Story[]; // proof: empty by default; the block renders nothing without stories
defaultOpen?: number;
onOpenChange?: (index: number) => void;
actionLabel?: string;
actionNote?: React.ReactNode;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
edge?: boolean; // wave edge into the next section
edgeTone?: EdgeTone; // token of the next section's background
state?: 'default' | 'hover';
className?: string;
};
export function StoryAccordion(props: StoryAccordionProps) {
const {
headline = 'See what changed for clients who started where you are',
lead,
allStoriesLabel = 'Read all stories',
allStoriesHref,
onAllStories,
stories = [],
defaultOpen = 0,
onOpenChange,
actionLabel = 'Yes! I want results like these',
actionNote,
href,
onAction,
edge = true,
edgeTone = 'surface' as EdgeTone,
state = 'default',
className,
} = props;
const uid = React.useId().replace(/:/g, '');
const [openState, setOpenState] = React.useState(defaultOpen);
const triggers = React.useRef<Array<HTMLButtonElement | null>>([]);
const count = stories.length;
if (count === 0) return null;
const open = Math.min(Math.max(openState, 0), count - 1);
const current = stories[open];
const hoverIndex = state === 'hover' ? stories.findIndex((_, i) => i !== open) : -1;
const rootClass = ['cf-sa', edge ? 'has-edge' : '', className].filter(Boolean).join(' ');
const btnClass = state === 'hover' ? 'cf-sa__btn is-hover' : 'cf-sa__btn';
const choose = (index: number) => {
if (index === open) return;
setOpenState(index);
onOpenChange?.(index);
};
const onKey = (event: React.KeyboardEvent<HTMLButtonElement>, index: number) => {
let next = -1;
if (event.key === 'ArrowDown') next = (index + 1) % count;
else if (event.key === 'ArrowUp') next = (index - 1 + count) % count;
else if (event.key === 'Home') next = 0;
else if (event.key === 'End') next = count - 1;
if (next < 0) return;
event.preventDefault();
triggers.current[next]?.focus();
};
return (
<section className={rootClass} style={FX_HOST} aria-labelledby={`${uid}-title`} data-state={state}>
<style>{CSS}</style>
{edge ? (
<div className='cf-sa__edge' aria-hidden='true'>
<Divider shape='wave' tone={edgeTone} height={56} />
</div>
) : null}
<div className='cf-sa__wrap'>
<header className='cf-sa__head'>
<div className='cf-sa__head-copy'>
<h2 className='cf-sa__title' id={`${uid}-title`}>{headline}</h2>
{lead ? <p className='cf-sa__lead'>{lead}</p> : null}
</div>
{allStoriesLabel && allStoriesHref ? (
<a className='cf-sa__all' href={allStoriesHref} onClick={onAllStories ? () => onAllStories() : undefined}>
{allStoriesLabel}
</a>
) : allStoriesLabel && onAllStories ? (
<button type='button' className='cf-sa__all' onClick={() => onAllStories()}>
{allStoriesLabel}
</button>
) : null}
</header>
<ul className='cf-sa__list'>
{stories.map((story, index) => {
const isOpen = index === open;
const headId = `${uid}-h${index}`;
const panelId = `${uid}-p${index}`;
const metrics = (story.metrics ?? []).filter((m) => m && m.value).slice(0, 3);
const itemClass = ['cf-sa__item', isOpen ? 'is-open' : '', index === hoverIndex ? 'is-hover' : '']
.filter(Boolean)
.join(' ');
const hasCopy = Boolean(story.summary || story.aside || (story.linkLabel && story.href));
return (
<li key={index} className={itemClass}>
<h3 className='cf-sa__hd'>
<button
ref={(el) => {
triggers.current[index] = el;
}}
id={headId}
type='button'
className='cf-sa__trigger'
aria-expanded={isOpen}
aria-controls={panelId}
aria-disabled={isOpen || undefined}
onClick={() => choose(index)}
onKeyDown={(e) => onKey(e, index)}
>
<span className='cf-sa__mark'>
<StoryMark story={story} />
</span>
<span className='cf-sa__titles'>
<span className='cf-sa__client'>{story.client}</span>
<span className='cf-sa__result'>{story.result}</span>
</span>
<ChevronDown className='cf-sa__chev' size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
</h3>
<div id={panelId} role='region' aria-labelledby={headId} className='cf-sa__panel'>
<div className='cf-sa__clip'>
<div className='cf-sa__body'>
{story.photo ? (
<figure className='cf-sa__media'>
<img
className='cf-sa__photo'
src={story.photo}
alt={story.photoAlt ?? ''}
width={1280}
height={560}
loading={index === open ? 'eager' : 'lazy'}
decoding='async'
style={story.photoPosition ? { objectPosition: story.photoPosition } : undefined}
/>
{metrics.length ? <Chips metrics={metrics} /> : null}
</figure>
) : metrics.length ? (
<Chips metrics={metrics} flat />
) : null}
{hasCopy ? (
<p className='cf-sa__summary'>
{story.summary}
{story.aside ? (
<>
{' '}
<em className='cf-sa__aside'>{story.aside}</em>
</>
) : null}
{story.linkLabel && story.href ? (
<>
{' '}
<a className='cf-sa__link' href={story.href}>
{story.linkLabel}
</a>
</>
) : null}
</p>
) : null}
</div>
</div>
</div>
</li>
);
})}
</ul>
<div className='cf-sa__quote-slot' aria-live='polite'>
{current.quote && current.quote.text ? (
<figure className='cf-sa__quote' key={`q${open}`}>
<blockquote className='cf-sa__quote-text'>
<p>“{current.quote.text}”</p>
</blockquote>
<figcaption className='cf-sa__by'>
<span className='cf-sa__by-initial' aria-hidden='true'>
{initialOf(current.quote.name)}
</span>
<span>
<span className='cf-sa__by-name'>{current.quote.name}</span>
{current.quote.role ? <span className='cf-sa__by-role'>{current.quote.role}</span> : null}
</span>
</figcaption>
</figure>
) : null}
</div>
{actionLabel ? (
<div className='cf-sa__act'>
{href ? (
<a className={btnClass} href={href} onClick={onAction}>
{actionLabel}
</a>
) : (
<button type='button' className={btnClass} onClick={onAction}>
{actionLabel}
</button>
)}
{actionNote ? <p className='cf-sa__note'>{actionNote}</p> : null}
</div>
) : null}
</div>
</section>
);
}
export default StoryAccordion;
function StoryMark({ story }: { story: Story }) {
if (story.logo) return <img className='cf-sa__logo' src={story.logo} alt='' width={44} height={44} />;
if (story.spot) return <Spot src={story.spot} size={44} />;
return (
<span className='cf-sa__initial' aria-hidden='true'>
{initialOf(story.client)}
</span>
);
}
function Chips({ metrics, flat }: { metrics: StoryMetric[]; flat?: boolean }) {
return (
<ul className={flat ? 'cf-sa__chips cf-sa__chips--flat' : 'cf-sa__chips'}>
{metrics.map((m, i) => (
<li key={i} className='cf-sa__chip'>
<strong>{m.value}</strong>
{m.label ? <span>{m.label}</span> : null}
</li>
))}
</ul>
);
}
function initialOf(text: string) {
return (text || '').trim().charAt(0).toUpperCase();
}
const CSS = `
.cf-sa {
--sa-pad: clamp(20px, 3vw, 32px);
--sa-ease: cubic-bezier(.2, .7, .2, 1);
--sa-radius: var(--card-radius, var(--radius, 14px));
--sa-soft: color-mix(in oklch, var(--band-ink, #fff) 84%, var(--band, #13233f));
--sa-shadow: var(--shadow, oklch(0.22 0.03 260));
position: relative;
isolation: isolate;
overflow: hidden;
box-sizing: border-box;
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
background: var(--band, #13233f);
color: var(--band-ink, #fff);
font-family: var(--font-body, system-ui, sans-serif);
}
.cf-sa.has-edge { padding-bottom: calc(clamp(64px, 8.5vw, 120px) + 56px); }
.cf-sa *, .cf-sa *::before, .cf-sa *::after { box-sizing: border-box; }
.cf-sa__edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; z-index: 0; pointer-events: none; }
.cf-sa__wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.cf-sa__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(32px, 4vw, 48px); }
.cf-sa__head-copy { flex: 1 1 520px; min-width: 0; }
.cf-sa__title { margin: 0; color: var(--band-ink, #fff); font-family: var(--font-display, inherit); 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; }
.cf-sa__lead { margin: 16px 0 0; max-width: 64ch; color: var(--sa-soft); font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; font-weight: 500; text-wrap: pretty; }
.cf-sa__all { appearance: none; background: none; border: 0; margin: 0; padding: 4px 0; cursor: pointer; font: inherit; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); font-weight: 700; line-height: 1.4; color: var(--band-ink, #fff); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: oklch(from var(--band-ink, #fff) l c h / 0.45); text-underline-offset: 0.18em; white-space: nowrap; transition: text-decoration-color .16s ease; }
.cf-sa__all:hover { text-decoration-color: currentColor; }
.cf-sa__all:focus-visible { outline: 3px solid var(--band-ink, #fff); outline-offset: 4px; border-radius: 4px; }
.cf-sa__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cf-sa__item { background: var(--card, #fff); color: var(--ink, #14213d); border: 1px solid var(--card-border, oklch(from var(--ink, #14213d) l c h / 0.12)); border-radius: var(--sa-radius); box-shadow: var(--shadow-sm, 0 1px 2px oklch(from var(--sa-shadow) l c h / 0.25)); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.cf-sa__item:not(.is-open):hover, .cf-sa__item.is-hover { transform: translateY(-1px); box-shadow: var(--shadow-md, 0 1px 2px oklch(from var(--sa-shadow) l c h / 0.22), 0 4px 10px -2px oklch(from var(--sa-shadow) l c h / 0.2)); }
.cf-sa__item.is-open { border-color: color-mix(in oklch, var(--accent, #2563eb) 40%, var(--card, #fff)); box-shadow: var(--shadow-lg, 0 2px 4px oklch(from var(--sa-shadow) l c h / 0.22), 0 12px 24px -8px oklch(from var(--sa-shadow) l c h / 0.32)); }
.cf-sa__hd { margin: 0; font: inherit; }
.cf-sa__trigger { appearance: none; display: flex; align-items: center; gap: 16px; width: 100%; margin: 0; padding: 16px var(--sa-pad); border: 0; border-radius: calc(var(--sa-radius) - 1px); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .16s ease; }
.cf-sa__item:not(.is-open) .cf-sa__trigger:hover, .cf-sa__item.is-hover .cf-sa__trigger { background: color-mix(in oklch, var(--ink, #14213d) 4%, var(--card, #fff)); }
.cf-sa__trigger:focus-visible { outline: 3px solid var(--field-focus, var(--accent, #2563eb)); outline-offset: -3px; }
.cf-sa__item.is-open .cf-sa__trigger { cursor: default; padding-top: 20px; padding-bottom: 20px; }
.cf-sa__mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; }
.cf-sa__logo { display: block; width: 44px; height: 44px; object-fit: contain; }
.cf-sa__initial { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-fill, var(--accent, #2563eb)); color: var(--accent-fill-ink, var(--card, #fff)); font-family: var(--font-display, inherit); font-weight: 800; font-size: 1.3125rem; line-height: 1; }
.cf-sa__titles { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.cf-sa__client { font-size: .9375rem; line-height: 1.4; font-weight: 600; color: var(--muted, #4a5568); }
.cf-sa__result { color: var(--ink, #14213d); font-family: var(--font-display, inherit); 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; }
.cf-sa__chev { flex: none; color: var(--muted, #4a5568); transition: transform .3s var(--sa-ease); }
.cf-sa__item.is-open .cf-sa__chev { transform: rotate(180deg); }
.cf-sa__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .42s var(--sa-ease), visibility 0s linear .42s; }
.cf-sa__item.is-open .cf-sa__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .42s var(--sa-ease), visibility 0s linear 0s; }
.cf-sa__clip { min-height: 0; overflow: hidden; }
.cf-sa__body { padding: 0 var(--sa-pad) var(--sa-pad); opacity: .82; transform: translateY(8px); transition: opacity .3s ease, transform .42s var(--sa-ease); }
.cf-sa__item.is-open .cf-sa__body { opacity: 1; transform: none; }
.cf-sa__media { position: relative; margin: 0; }
.cf-sa__photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 35%; border-radius: 12px; background: color-mix(in oklch, var(--ink, #14213d) 6%, var(--card, #fff)); }
.cf-sa__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-sa__media .cf-sa__chips { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.cf-sa__chip { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; max-width: 100%; min-height: 36px; padding: 7px 14px; border-radius: 999px; background: var(--card, #fff); color: var(--ink, #14213d); box-shadow: var(--shadow-sm, 0 1px 2px oklch(from var(--sa-shadow) l c h / 0.25)); line-height: 1.4; }
.cf-sa__chip strong { font-family: var(--font-display, inherit); font-weight: 800; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.cf-sa__chip span { font-size: .875rem; font-weight: 600; color: var(--muted, #4a5568); }
.cf-sa__chips--flat .cf-sa__chip { background: color-mix(in oklch, var(--ink, #14213d) 6%, var(--card, #fff)); box-shadow: none; }
.cf-sa__summary { margin: 20px 0 0; max-width: 64ch; color: var(--ink, #14213d); font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.5; text-wrap: pretty; }
.cf-sa__aside { font-style: italic; color: var(--muted, #4a5568); }
.cf-sa__link { color: var(--link, var(--accent, #2563eb)); font-weight: 700; white-space: nowrap; text-decoration: underline; text-decoration-color: oklch(from var(--link, var(--accent, #2563eb)) l c h / 0.45); text-underline-offset: 0.18em; }
.cf-sa__link:hover { color: oklch(from var(--link, var(--accent, #2563eb)) calc(l - 0.08) c h); text-decoration-color: currentColor; }
.cf-sa__link:focus-visible { outline: 3px solid var(--field-focus, var(--accent, #2563eb)); outline-offset: 3px; border-radius: 4px; }
.cf-sa__quote { margin: clamp(48px, 6vw, 72px) 0 0; max-width: 54rem; animation: cf-sa-rise .45s var(--sa-ease) both; }
.cf-sa__quote-text { margin: 0; }
.cf-sa__quote-text p { margin: 0; color: var(--band-ink, #fff); font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); letter-spacing: var(--display-tracking, -0.025em); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.06; text-wrap: balance; }
.cf-sa__by { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.cf-sa__by-initial { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: oklch(from var(--band-ink, #fff) l c h / 0.14); color: var(--band-ink, #fff); font-family: var(--font-display, inherit); font-weight: 800; font-size: 1.0625rem; }
.cf-sa__by-name { display: block; font-size: 1.0625rem; line-height: 1.3; font-weight: 800; color: var(--band-ink, #fff); }
.cf-sa__by-role { display: block; font-size: .9375rem; line-height: 1.4; font-weight: 500; color: var(--sa-soft); }
.cf-sa__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(32px, 4vw, 40px); }
.cf-sa__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; max-width: 100%; padding: 12px 28px; border: 0; border-radius: var(--button-radius, var(--radius, 12px)); background: linear-gradient(oklch(from var(--button-bg, var(--cta, #d4342b)) calc(l + 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2, #b8261f)) calc(l - 0.02) c h)); color: var(--button-ink, var(--cta-ink, #fff)); font-family: var(--button-font, var(--font-display, inherit)); 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; text-align: center; text-decoration: none; text-wrap: balance; text-shadow: var(--button-text-shadow, none); cursor: pointer; box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta, #d4342b)) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta, #d4342b)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--sa-shadow) l c h / 0.3), 0 8px 16px -6px oklch(from var(--sa-shadow) l c h / 0.45)); transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.cf-sa__btn:hover, .cf-sa__btn.is-hover { background: linear-gradient(oklch(from var(--button-bg, var(--cta, #d4342b)) calc(l - 0.01) c h), oklch(from var(--button-bg-2, var(--cta-2, #b8261f)) calc(l - 0.07) c h)); transform: translateY(-1px); }
.cf-sa__btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px oklch(from var(--button-bg, var(--cta, #d4342b)) calc(l - 0.22) c h / 0.55), inset 0 -2px 0 oklch(from var(--button-bg, var(--cta, #d4342b)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--sa-shadow) l c h / 0.3); }
.cf-sa__btn:focus-visible { outline: 3px solid var(--band-ink, #fff); outline-offset: 3px; }
.cf-sa__note { margin: 0; color: var(--sa-soft); font-size: .9375rem; line-height: 1.4; font-weight: 600; text-wrap: pretty; }
@keyframes cf-sa-rise { from { opacity: .82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
.cf-sa__head { gap: 16px; }
.cf-sa__trigger { gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.cf-sa__photo { aspect-ratio: 1 / 1; }
.cf-sa__media .cf-sa__chips { position: static; margin-top: 12px; }
.cf-sa__media .cf-sa__chip { background: color-mix(in oklch, var(--ink, #14213d) 6%, var(--card, #fff)); box-shadow: none; }
.cf-sa__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
.cf-sa *, .cf-sa *::before, .cf-sa *::after { transition: none !important; animation: none !important; }
.cf-sa__item:not(.is-open):hover, .cf-sa__item.is-hover, .cf-sa__btn:hover, .cf-sa__btn.is-hover { transform: none; }
}
`;
pieces/proof/story-accordion/specimen.tsx 116 lines
import __studioImageb937e8e6 from "../assets/c734cf8ebf8d9dde.webp";
import __studioImage11e1569a from "../assets/9ccc396b473c2060.webp";
import __studioImage43cd1b60 from "../assets/896c9058ca0c9263.webp";
// Specimen: Copperleaf Bookkeeping's client stories. Businesses, people and results are clearly fictional samples.
import React from 'react';
import StoryAccordion, { type Story } from '../story-accordion';
import savings from '../../fx/spots/savings';
import calendar from '../../fx/spots/calendar';
import clock from '../../fx/spots/clock';
import checklist from '../../fx/spots/checklist';
export const states = ['default', 'hover'];
const stories: Story[] = [
{
client: 'Hearthstone Bakery',
result: 'Hearthstone Bakery caught up 14 months of books in three weeks.',
spot: savings,
photo: __studioImageb937e8e6,
photoAlt: 'Bakery owner reviewing her books on a laptop behind the counter',
photoPosition: '50% 30%',
metrics: [
{ value: '3 weeks', label: 'to fully caught up' },
{ value: '$11,400', label: 'in missed deductions found' },
{ value: '15 min', label: 'weekly check-in' },
],
summary: 'We rebuilt fourteen months from bank feeds and a box of receipts, then set Dana up with one short weekly check-in.',
aside: '(Yes, including the receipts in the oven drawer.)',
linkLabel: `Read Dana's story`,
href: '#hearthstone',
quote: {
text: 'I opened my books on a Sunday and actually smiled. That has never happened before.',
name: 'Dana Ruiz',
role: 'Owner, Hearthstone Bakery',
},
},
{
client: 'Ridgeline Landscaping',
result: 'Ridgeline Landscaping closes the month in 2 days, not 3 weeks.',
spot: calendar,
photo: __studioImage11e1569a,
photoAlt: 'Landscaping business owner checking job costs on a tablet beside his truck',
photoPosition: '50% 35%',
metrics: [
{ value: '2 days', label: 'to close the month' },
{ value: '6 crews', label: 'costed job by job' },
{ value: '21%', label: 'margin on lawn care, now visible' },
],
summary: 'We split every job by crew and service, so Marcus sees which work pays before he quotes the next one.',
aside: '(Spoiler: it was never the hedges.)',
linkLabel: `Read Marcus's story`,
href: '#ridgeline',
quote: {
text: 'For the first time I know which jobs make money before I bid them.',
name: 'Marcus Bell',
role: 'Founder, Ridgeline Landscaping',
},
},
{
client: 'Northgate Family Dental',
result: 'Northgate Family Dental runs payroll for 22 people without the Thursday scramble.',
spot: clock,
photo: __studioImage43cd1b60,
photoAlt: 'Practice manager reviewing payroll at a dental clinic front desk',
photoPosition: '50% 35%',
metrics: [
{ value: '22', label: 'people on payroll' },
{ value: '4 hours', label: 'back every pay period' },
{ value: '0', label: 'late filings this year' },
],
summary: 'We moved timesheets, benefits and filings into one monthly rhythm with a single review before every pay run.',
aside: '(Their practice manager now leaves at five.)',
linkLabel: `Read Priya's story`,
href: '#northgate',
quote: {
text: `Payroll used to eat my whole Thursday. Now it's a ten-minute review.`,
name: 'Priya Shah',
role: 'Practice Manager, Northgate Family Dental',
},
},
{
client: 'Fernway Yoga Studio',
result: 'Fernway Yoga filed on time for the first time in four years.',
spot: checklist,
metrics: [
{ value: '4 years', label: 'of extensions, ended' },
{ value: '$2,350', label: 'in penalties avoided' },
],
summary: 'A clean chart of accounts, quarterly estimates on the calendar and one shared folder for every receipt.',
aside: '(No shoebox required.)',
linkLabel: `Read Jen's story`,
href: '#fernway',
quote: {
text: 'Tax season used to be dread season. This year it was just a Tuesday.',
name: 'Jen Alvarez',
role: 'Owner, Fernway Yoga Studio',
},
},
];
export default function StoryAccordionSpecimen({ state = 'default' }: { state?: 'default' | 'hover' }) {
return (
<StoryAccordion
headline='Four businesses that finally trust their numbers'
lead='Each one started with a backlog, a shoebox or a payroll scare. Open a story to see what changed.'
allStoriesLabel='Read all client stories'
allStoriesHref='#client-stories'
stories={stories}
defaultOpen={0}
actionLabel='Yes! I want my free Catch-Up Review'
actionNote='20 minutes with a Copperleaf bookkeeper. You keep the plan either way.'
href='#catch-up-review'
state={state}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalStoryAccordion |
React.ReactNode |
|
lead OptionalStoryAccordion |
React.ReactNode |
|
allStoriesLabel OptionalStoryAccordion |
string |
|
allStoriesHref OptionalStoryAccordion |
string |
|
onAllStories OptionalStoryAccordion |
() => void |
|
stories OptionalStoryAccordion |
Story[] |
|
defaultOpen OptionalStoryAccordion |
number |
|
onOpenChange OptionalStoryAccordion |
(index: number) => void |
|
actionLabel OptionalStoryAccordion |
string |
|
actionNote OptionalStoryAccordion |
React.ReactNode |
|
href OptionalStoryAccordion |
string |
|
onAction OptionalStoryAccordion |
(event: React.MouseEvent<HTMLElement>) => void |
|
edge OptionalStoryAccordion |
boolean |
|
edgeTone OptionalStoryAccordion |
EdgeTone |
|
state OptionalStoryAccordion |
'default' | 'hover' |
|
className OptionalStoryAccordion |
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- 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.
This piece reads no image slots.
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
7c36d7f4dd4ae594.webp
image/webp · 26.5 KB
-
87170e25e6a4d825.webp
image/webp · 18.7 KB
-
896c9058ca0c9263.webp
image/webp · 37.8 KB
-
9ccc396b473c2060.webp
image/webp · 149 KB
-
c734cf8ebf8d9dde.webp
image/webp · 138 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB