About Story 2
Founder-interview block: the visitor picks the questions they would ask before hiring, the founder (or the crew member who answers) stands beside the answer, and the proof row hands off to one closing action.
Use it in a prompt
Use content/about-story-2 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-2.tsx. - Import it and pass your copy and images (Props tab):
import { AboutStory2 } from "@/components/funneldna/content/about-story-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/about-story-2/component.tsx 530 lines
// layout: annotated-board
// Founder-interview block: the visitor picks the questions they would ask before hiring, the founder (or the crew member who answers) stands beside the answer, and the proof row hands off to one closing action.
import * as React from 'react';
import { MessageCircle, Plus } from 'lucide-react';
import { FX_HOST, Pattern } from '../fx/fx';
export type AboutStory2Answer = {
/** The visitor’s question, set bold in the question list. */
question: string;
/** Red sales-letter subhead that opens the answer. */
title?: React.ReactNode;
/** Answer paragraphs, in the speaker’s own words. */
body: React.ReactNode[];
/** Who answers; defaults to the founder. */
speakerName?: string;
speakerRole?: string;
/** Team member cut-out on a transparent background; swaps the portrait while this answer shows. */
image?: string;
imageAlt?: string;
};
export type AboutStory2Stat = { value: string; label: string };
export type AboutStory2Props = {
headline?: string;
/** Phrase inside the headline set in the subhead red. */
headlineEmphasis?: string;
lead?: string;
/** presenter-cutout slot: the founder on a transparent background. */
founderImage?: string;
founderImageAlt?: string;
founderName?: string;
founderRole?: string;
answers?: AboutStory2Answer[];
/** Index of the answer shown on first render. */
initialAnswer?: number;
/** Accessible name of the question list. */
questionsLabel?: string;
/** Line above the answer: “{askedPrefix} {question}”. */
askedPrefix?: string;
/** Text before the speaker’s name under each answer. */
signPrefix?: string;
/** Supplied numbers only; the row hides when empty. */
stats?: AboutStory2Stat[];
/** The closing question the button answers. */
ctaQuestion?: string;
buttonLabel?: string;
reassurance?: string;
href?: string;
onAction?: () => void;
disabled?: boolean;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
export function AboutStory2({
headline = 'Ask the founder what you’d ask anyone you hire',
headlineEmphasis = 'the founder',
lead = 'Pick a question. You get the straight answer, in their own words.',
founderImage = '',
founderImageAlt = 'The founder',
founderName = '',
founderRole = '',
answers = DEFAULT_ANSWERS,
initialAnswer = 0,
questionsLabel = 'Questions for the founder',
askedPrefix = 'You asked:',
signPrefix = '— ',
stats = [],
ctaQuestion = 'Ready to meet the people who’d do the work?',
buttonLabel = 'Yes, introduce me',
reassurance = '',
href,
onAction,
disabled = false,
state = 'default',
className,
}: AboutStory2Props) {
const uid = React.useId();
const headingId = `${uid}-heading`;
const noteId = `${uid}-note`;
const tabId = (i: number) => `${uid}-q-${i}`;
const panelId = (i: number) => `${uid}-a-${i}`;
const count = answers.length;
const compact = useMediaQuery('(max-width: 759.98px)');
const [active, setActive] = React.useState(() => (initialAnswer >= 0 && initialAnswer < count ? initialAnswer : 0));
const triggers = React.useRef<Array<HTMLButtonElement | null>>([]);
const wideIndex = active >= 0 && active < count ? active : 0;
const openIndex = active >= 0 && active < count ? active : -1;
const current = compact ? (openIndex >= 0 ? answers[openIndex] : undefined) : answers[wideIndex];
const teamShot = current && current.image ? current : undefined;
const portrait = (teamShot && teamShot.image) || founderImage;
const portraitAlt = teamShot ? teamShot.imageAlt || teamShot.speakerName || '' : founderImageAlt;
const plateName = teamShot ? teamShot.speakerName || '' : founderName;
const plateRole = teamShot ? teamShot.speakerRole || '' : founderRole;
const hasPortrait = Boolean(founderImage) || answers.some((a) => Boolean(a.image));
const hasStats = stats.length > 0;
const statCols = Math.min(Math.max(stats.length, 1), 4);
const isDisabled = disabled || state === 'disabled';
const hoverDemo = state === 'hover' ? (wideIndex === 0 ? 1 : 0) : -1;
// Signature interaction: roving focus through the questions; arrows move and choose.
const onKey = (event: React.KeyboardEvent<HTMLButtonElement>, index: number, select: boolean) => {
if (count < 2) return;
let next = -1;
if (event.key === 'ArrowDown' || event.key === 'ArrowRight') next = (index + 1) % count;
else if (event.key === 'ArrowUp' || event.key === 'ArrowLeft') 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();
if (select) setActive(next);
triggers.current[next]?.focus();
};
const signer = (a: AboutStory2Answer) => ({
name: a.speakerName || founderName,
role: a.speakerName ? a.speakerRole || '' : founderRole,
});
const plate =
plateName || plateRole ? (
<p className='cf-about-story-2__plate' key={`plate-${plateName}-${plateRole}`}>
{plateName ? <span className='cf-about-story-2__plate-name'>{plateName}</span> : null}
{plateRole ? <span className='cf-about-story-2__plate-role'>{plateRole}</span> : null}
</p>
) : null;
const photo = portrait ? (
<img key={portrait} className='cf-about-story-2__photo' src={portrait} alt={portraitAlt} width={640} height={640} decoding='async' />
) : null;
const wide = (
<>
{hasPortrait ? (
<div className='cf-about-story-2__portrait'>
{plate}
<figure className='cf-about-story-2__figure'>{photo}</figure>
</div>
) : null}
<div className='cf-about-story-2__questions' role='tablist' aria-orientation='vertical' aria-label={questionsLabel}>
{answers.map((answer, i) => {
const selected = i === wideIndex;
const cls = ['cf-about-story-2__q', selected ? 'is-selected' : '', i === hoverDemo ? 'is-hover' : '']
.filter(Boolean)
.join(' ');
return (
<button
key={i}
ref={(el) => {
triggers.current[i] = el;
}}
type='button'
role='tab'
id={tabId(i)}
className={cls}
aria-selected={selected}
aria-controls={panelId(i)}
tabIndex={selected ? 0 : -1}
onClick={() => setActive(i)}
onKeyDown={(event) => onKey(event, i, true)}
>
<span className='cf-about-story-2__disc' aria-hidden='true'>
<MessageCircle size={20} strokeWidth={2.5} />
</span>
<span className='cf-about-story-2__q-text'>{answer.question}</span>
</button>
);
})}
</div>
<div className='cf-about-story-2__answer'>
{answers.map((answer, i) => {
const on = i === wideIndex;
const who = signer(answer);
return (
<div
key={i}
role='tabpanel'
id={panelId(i)}
aria-labelledby={tabId(i)}
aria-hidden={on ? undefined : true}
tabIndex={on ? 0 : -1}
className={on ? 'cf-about-story-2__panel is-active' : 'cf-about-story-2__panel'}
>
<p className='cf-about-story-2__asked'>
<MessageCircle className='cf-about-story-2__asked-icon' size={16} strokeWidth={2.5} aria-hidden='true' />
{askedPrefix} {answer.question}
</p>
<AnswerCopy answer={answer} as='h3' name={who.name} role={who.role} signPrefix={signPrefix} />
</div>
);
})}
</div>
</>
);
const stacked = (
<>
{hasPortrait ? (
<div className='cf-about-story-2__mini'>
<figure className='cf-about-story-2__figure'>{photo}</figure>
{plate}
</div>
) : null}
<div className='cf-about-story-2__accordion'>
{answers.map((answer, i) => {
const open = i === openIndex;
const who = signer(answer);
return (
<div key={i} className={open ? 'cf-about-story-2__item is-open' : 'cf-about-story-2__item'}>
<h3 className='cf-about-story-2__item-head'>
<button
ref={(el) => {
triggers.current[i] = el;
}}
type='button'
id={tabId(i)}
className='cf-about-story-2__trigger'
aria-expanded={open}
aria-controls={panelId(i)}
onClick={() => setActive(open ? -1 : i)}
onKeyDown={(event) => onKey(event, i, false)}
>
<span className='cf-about-story-2__q-text'>{answer.question}</span>
<span className='cf-about-story-2__disc' aria-hidden='true'>
<Plus size={20} strokeWidth={2.5} />
</span>
</button>
</h3>
<div id={panelId(i)} role='region' aria-labelledby={tabId(i)} className='cf-about-story-2__item-panel' hidden={!open}>
<AnswerCopy answer={answer} as='h4' name={who.name} role={who.role} signPrefix={signPrefix} />
</div>
</div>
);
})}
</div>
</>
);
const btnClass = [
'cf-about-story-2__btn',
state === 'hover' ? 'is-hover' : '',
state === 'active' ? 'is-active' : '',
isDisabled ? 'is-disabled' : '',
]
.filter(Boolean)
.join(' ');
const describedBy = reassurance ? noteId : undefined;
const action =
href && !isDisabled ? (
<a className={btnClass} href={href} onClick={onAction ? () => onAction() : undefined} aria-describedby={describedBy}>
{buttonLabel}
</a>
) : (
<button
type='button'
className={btnClass}
disabled={isDisabled}
onClick={isDisabled || !onAction ? undefined : () => onAction()}
aria-describedby={describedBy}
>
{buttonLabel}
</button>
);
const boardClass = ['cf-about-story-2__board', compact ? 'is-compact' : '', hasPortrait ? '' : 'is-noportrait']
.filter(Boolean)
.join(' ');
return (
<section className={['cf-about-story-2', className].filter(Boolean).join(' ')} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className='cf-about-story-2__inner'>
<header className='cf-about-story-2__head'>
<h2 id={headingId} className='cf-about-story-2__title'>
{withEmphasis(headline, headlineEmphasis)}
</h2>
{lead ? <p className='cf-about-story-2__lead'>{lead}</p> : null}
</header>
{count > 0 ? (
<div className={boardClass} style={FX_HOST}>
<Pattern name='grid' fade='edges' />
{compact ? stacked : wide}
</div>
) : null}
{hasStats || buttonLabel ? (
<div className={hasStats ? 'cf-about-story-2__foot' : 'cf-about-story-2__foot is-solo'}>
{hasStats ? (
<dl className='cf-about-story-2__stats' style={{ ['--as-cols' as string]: String(statCols) } as React.CSSProperties}>
{stats.map((stat, i) => (
<div className={i % statCols === 0 ? 'cf-about-story-2__stat is-row-start' : 'cf-about-story-2__stat'} key={i}>
<dt className='cf-about-story-2__stat-label'>{stat.label}</dt>
<dd className='cf-about-story-2__stat-value'>{stat.value}</dd>
</div>
))}
</dl>
) : null}
{buttonLabel ? (
<div className='cf-about-story-2__act'>
{ctaQuestion ? <p className='cf-about-story-2__ask'>{ctaQuestion}</p> : null}
{action}
{reassurance ? (
<p id={noteId} className='cf-about-story-2__note'>
{reassurance}
</p>
) : null}
</div>
) : null}
</div>
) : null}
</div>
</section>
);
}
export default AboutStory2;
function AnswerCopy({
answer,
as: Title,
name,
role,
signPrefix,
}: {
answer: AboutStory2Answer;
as: 'h3' | 'h4';
name: string;
role: string;
signPrefix: string;
}) {
return (
<>
{answer.title ? <Title className='cf-about-story-2__subhead'>{answer.title}</Title> : null}
<div className='cf-about-story-2__copy'>
{answer.body.map((paragraph, i) => (
<p key={i}>{paragraph}</p>
))}
</div>
{name ? (
<p className='cf-about-story-2__sign'>
<strong>
{signPrefix}
{name}
</strong>
{role ? <span>{role}</span> : null}
</p>
) : null}
</>
);
}
function useMediaQuery(query: string) {
const [matches, setMatches] = React.useState(false);
React.useEffect(() => {
if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') return;
const mq = window.matchMedia(query);
const update = () => setMatches(mq.matches);
update();
mq.addEventListener('change', update);
return () => mq.removeEventListener('change', update);
}, [query]);
return matches;
}
function withEmphasis(text: string, phrase: string): React.ReactNode {
const at = phrase ? text.indexOf(phrase) : -1;
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className='cf-about-story-2__em'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
const DEFAULT_ANSWERS: AboutStory2Answer[] = [
{
question: 'Why did you start this?',
title: 'It started with a job someone else did badly',
body: [
'Years ago, someone we trusted let our family down. The work was rushed, the calls stopped, and we were left to sort it out ourselves.',
'We started this business so nobody we work for feels that way. Every job since gets measured against that day.',
],
},
{
question: 'What do you refuse to do?',
title: 'We won’t rush a quote just to win the job',
body: [
'We’re not the fastest to quote. We look properly first, so the price you hear is the price you pay.',
'It loses us some work. We’d rather lose a job than lose your trust.',
],
},
{
question: 'Who’s on the crew now?',
title: 'Family, or people we trained like family',
body: [
'The people who show up at your door are people we know by name. We trained them, we stand behind them, and we answer for their work.',
],
},
];
// Subhead red: the action hue pulled toward the ink in OKLab (55% ink), so it stays readable (4.5:1) on light and dark themes, even with a bright yellow action colour.
const CSS = `
.cf-about-story-2{
--as-ink: var(--ink, oklch(0.21 0.034 263));
--as-muted: var(--muted, oklch(0.45 0.03 258));
--as-card: var(--card, oklch(1 0 0));
--as-accent: var(--accent, oklch(0.5 0.17 257));
--as-red: var(--about-subhead-ink, color-mix(in oklab, var(--cta, oklch(0.576 0.209 29.5)) 45%, var(--as-ink)));
--as-shadow: var(--shadow, oklch(0.22 0.03 260));
--as-btn: var(--button-bg, var(--cta, oklch(0.576 0.209 29.5)));
--as-btn-2: var(--button-bg-2, var(--cta-2, oklch(0.506 0.206 29.5)));
--as-board: color-mix(in oklch, var(--as-ink) 4%, var(--surface, oklch(1 0 0)));
--as-board-muted: color-mix(in oklch, var(--as-muted) 78%, var(--as-ink));
--as-line: oklch(from var(--as-ink) l c h / 0.14);
--as-card-border: var(--card-border, oklch(from var(--as-ink) l c h / 0.12));
--as-radius: var(--card-radius, var(--radius, 14px));
--as-focus: oklch(from var(--field-focus, var(--as-accent)) l c h / 0.55);
--as-sm: var(--shadow-sm, 0 1px 1px oklch(from var(--as-shadow) l c h / 0.18), 0 1px 3px oklch(from var(--as-shadow) l c h / 0.14));
--as-md: 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));
--as-lg: 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));
--as-pad: clamp(20px, 3vw, 40px);
--as-ease: cubic-bezier(.2, .7, .2, 1);
position: relative;
background: var(--surface, oklch(1 0 0));
color: var(--as-ink);
font-family: var(--font-body, system-ui, sans-serif);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
}
.cf-about-story-2 *, .cf-about-story-2 *::before, .cf-about-story-2 *::after{ box-sizing: border-box; }
.cf-about-story-2__inner{ max-width: 1120px; margin: 0 auto; }
.cf-about-story-2__head{ max-width: 46rem; margin: 0 0 clamp(32px, 4vw, 48px); }
.cf-about-story-2__title{ margin: 0 0 16px; font-family: var(--font-display, inherit); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.06; font-weight: var(--display-weight, 800); letter-spacing: var(--display-tracking, -0.025em); text-transform: var(--display-case, none); color: var(--as-ink); text-wrap: balance; }
.cf-about-story-2__em{ color: var(--as-red); }
.cf-about-story-2__lead{ margin: 0; max-width: 40rem; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; font-weight: 500; color: var(--as-muted); text-wrap: pretty; }
.cf-about-story-2__board{ position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr) minmax(0, .8fr); grid-template-areas: 'portrait answer questions'; column-gap: clamp(20px, 2.4vw, 32px); row-gap: 24px; align-items: start; padding: var(--as-pad) var(--as-pad) 0; border-radius: var(--as-radius); background: var(--as-board); }
.cf-about-story-2__board.is-noportrait{ grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); grid-template-areas: 'answer questions'; }
.cf-about-story-2__portrait{ grid-area: portrait; align-self: stretch; position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.cf-about-story-2__plate{ margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; animation: cf-about-story-2-in .45s var(--as-ease) both; }
.cf-about-story-2__plate-name{ font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--as-ink); text-wrap: balance; }
.cf-about-story-2__plate-role{ font-size: .9375rem; line-height: 1.4; font-weight: 600; color: var(--as-board-muted); text-wrap: pretty; }
.cf-about-story-2__figure{ margin: 0; }
.cf-about-story-2__photo{ display: block; width: 100%; height: clamp(340px, 34vw, 500px); object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 2px 3px oklch(from var(--as-shadow) l c h / 0.28)) drop-shadow(0 16px 18px oklch(from var(--as-shadow) l c h / 0.2)); animation: cf-about-story-2-in .45s var(--as-ease) both; }
.cf-about-story-2__questions{ grid-area: questions; position: relative; z-index: 1; min-width: 0; margin-bottom: var(--as-pad); display: flex; flex-direction: column; gap: 12px; }
.cf-about-story-2__q{ appearance: none; width: 100%; margin: 0; display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 16px 16px; text-align: left; font: inherit; color: var(--as-ink); background: var(--as-card); border: 1px solid var(--as-card-border); border-radius: var(--as-radius); box-shadow: var(--as-sm); cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease; }
.cf-about-story-2__q:hover:not(.is-selected), .cf-about-story-2__q.is-hover{ transform: translateY(-2px); border-color: oklch(from var(--as-ink) l c h / 0.26); box-shadow: var(--as-md); }
.cf-about-story-2__q:active:not(.is-selected){ transform: translateY(0); box-shadow: var(--as-sm); }
.cf-about-story-2__q.is-selected{ background: color-mix(in oklch, var(--as-accent) 9%, var(--as-card)); border-color: color-mix(in oklch, var(--as-accent) 55%, var(--as-card)); box-shadow: var(--as-lg); cursor: default; }
.cf-about-story-2__q:focus-visible, .cf-about-story-2__trigger:focus-visible{ outline: 3px solid var(--as-focus); outline-offset: 3px; }
.cf-about-story-2__disc{ flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--secondary, color-mix(in oklch, var(--as-ink) 7%, var(--as-card))); color: var(--secondary-ink, var(--as-ink)); transition: background-color .16s ease, color .16s ease, transform .16s ease; }
.cf-about-story-2__disc svg{ transition: transform .16s ease; }
.cf-about-story-2__q.is-selected .cf-about-story-2__disc, .cf-about-story-2__item.is-open .cf-about-story-2__disc{ background: var(--accent-fill, var(--as-accent)); color: var(--accent-fill-ink, var(--as-card)); }
.cf-about-story-2__q-text{ flex: 1 1 auto; min-width: 0; padding-top: calc((40px - 1.2em) / 2); font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.cf-about-story-2__answer{ grid-area: answer; position: relative; z-index: 1; min-width: 0; margin-bottom: var(--as-pad); display: grid; padding: clamp(24px, 3vw, 36px); background: var(--as-card); border: 1px solid var(--as-card-border); border-radius: var(--as-radius); box-shadow: var(--card-shadow, var(--as-md)); }
.cf-about-story-2__panel{ grid-area: 1 / 1; min-width: 0; visibility: hidden; }
.cf-about-story-2__panel.is-active{ visibility: visible; animation: cf-about-story-2-in .45s var(--as-ease) both; }
.cf-about-story-2__panel:focus-visible{ outline: 3px solid var(--as-focus); outline-offset: 8px; border-radius: 4px; }
.cf-about-story-2__asked{ margin: 0 0 12px; font-size: .9375rem; line-height: 1.4; font-weight: 600; color: var(--as-muted); text-wrap: pretty; }
.cf-about-story-2__asked-icon{ display: inline-block; vertical-align: -0.15em; margin-inline-end: .4em; color: var(--as-accent); }
.cf-about-story-2__subhead{ margin: 0 0 16px; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; letter-spacing: -0.01em; text-transform: var(--display-case, none); color: var(--as-red); text-wrap: balance; }
.cf-about-story-2__copy p{ margin: 0 0 14px; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.6; color: var(--as-ink); text-wrap: pretty; }
.cf-about-story-2__copy p:last-child{ margin-bottom: 0; }
.cf-about-story-2__sign{ margin: 20px 0 0; display: flex; flex-direction: column; gap: 2px; font-size: .9375rem; line-height: 1.4; font-weight: 500; color: var(--as-muted); }
.cf-about-story-2__sign strong{ font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); font-size: clamp(1.0625rem, 1.25vw, 1.125rem); color: var(--as-ink); }
.cf-about-story-2__board.is-compact{ display: block; padding: 20px; }
.cf-about-story-2__mini{ position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 16px; margin: 0 0 16px; border-bottom: 1px solid var(--as-line); }
.cf-about-story-2__mini .cf-about-story-2__figure{ flex: 0 0 auto; }
.cf-about-story-2__mini .cf-about-story-2__photo{ width: 112px; height: 136px; }
.cf-about-story-2__mini .cf-about-story-2__plate{ margin: 0 0 14px; min-width: 0; }
.cf-about-story-2__accordion{ position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.cf-about-story-2__item{ background: var(--as-card); border: 1px solid var(--as-card-border); border-radius: var(--as-radius); box-shadow: var(--as-sm); transition: border-color .16s ease, box-shadow .16s ease; }
.cf-about-story-2__item.is-open{ border-color: color-mix(in oklch, var(--as-accent) 55%, var(--as-card)); box-shadow: var(--as-lg); }
.cf-about-story-2__item-head{ margin: 0; font: inherit; }
.cf-about-story-2__trigger{ appearance: none; width: 100%; margin: 0; display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 18px; text-align: left; font: inherit; color: var(--as-ink); background: transparent; border: 0; border-radius: var(--as-radius); cursor: pointer; }
.cf-about-story-2__item:not(.is-open) .cf-about-story-2__trigger:hover .cf-about-story-2__disc{ background: color-mix(in oklch, var(--as-ink) 14%, var(--as-card)); }
.cf-about-story-2__trigger:active .cf-about-story-2__disc{ transform: scale(.94); }
.cf-about-story-2__item.is-open .cf-about-story-2__disc svg{ transform: rotate(45deg); }
.cf-about-story-2__item-panel{ padding: 0 18px 20px; animation: cf-about-story-2-in .45s var(--as-ease) both; }
.cf-about-story-2__item-panel[hidden]{ display: none; }
.cf-about-story-2__foot{ margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px clamp(40px, 6vw, 96px); }
.cf-about-story-2__foot.is-solo{ grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.cf-about-story-2__stats{ margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--as-cols, 3), minmax(0, 1fr)); row-gap: 32px; min-width: 0; }
.cf-about-story-2__stat{ display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 4px clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--as-line); }
.cf-about-story-2__stat.is-row-start{ padding-left: 0; border-left: 0; }
.cf-about-story-2__stat-value{ order: -1; margin: 0; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--as-ink); }
.cf-about-story-2__stat-label{ margin: 0; font-size: .9375rem; line-height: 1.4; font-weight: 600; color: var(--as-muted); text-wrap: pretty; }
.cf-about-story-2__act{ display: flex; flex-direction: column; align-items: flex-start; max-width: 26rem; min-width: 0; }
.cf-about-story-2__foot.is-solo .cf-about-story-2__act{ align-items: center; }
.cf-about-story-2__ask{ margin: 0 0 16px; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--as-ink); text-wrap: balance; }
.cf-about-story-2__note{ margin: 12px 0 0; font-size: .9375rem; line-height: 1.4; font-weight: 500; color: var(--as-muted); text-wrap: pretty; }
.cf-about-story-2__btn{ display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 12px 28px; margin: 0; border: 0; border-radius: var(--button-radius, var(--radius, 12px)); font-family: var(--button-font, var(--font-display, inherit)); font-weight: var(--button-weight, 800); font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.15; text-transform: var(--button-case, none); text-align: center; text-decoration: none; white-space: nowrap; color: var(--button-ink, var(--cta-ink, oklch(1 0 0))); text-shadow: var(--button-text-shadow, none); background: linear-gradient(oklch(from var(--as-btn) calc(l + 0.04) c h), oklch(from var(--as-btn-2) calc(l - 0.02) c h)); box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--as-btn) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--as-btn) 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.38)); cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.cf-about-story-2__btn:hover:not(:disabled), .cf-about-story-2__btn.is-hover{ transform: translateY(-1px); background: linear-gradient(oklch(from var(--as-btn) calc(l - 0.01) c h), oklch(from var(--as-btn-2) calc(l - 0.07) c h)); box-shadow: inset 0 1px 0 oklch(from var(--as-btn) calc(l + 0.12) c h / 0.6), inset 0 -3px 0 oklch(from var(--as-btn) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--as-shadow) l c h / 0.32), 0 12px 20px -8px oklch(from var(--as-shadow) l c h / 0.45); }
.cf-about-story-2__btn:active:not(:disabled), .cf-about-story-2__btn.is-active{ transform: translateY(1px); background: linear-gradient(oklch(from var(--as-btn) calc(l - 0.04) c h), oklch(from var(--as-btn-2) calc(l - 0.08) c h)); box-shadow: inset 0 2px 4px oklch(from var(--as-btn) calc(l - 0.24) c h / 0.55), inset 0 -2px 0 oklch(from var(--as-btn) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--as-shadow) l c h / 0.3); }
.cf-about-story-2__btn:focus-visible{ outline: 3px solid oklch(from var(--as-btn) l c h / 0.45); outline-offset: 3px; }
.cf-about-story-2__btn:disabled, .cf-about-story-2__btn.is-disabled{ transform: none; cursor: not-allowed; text-shadow: none; color: var(--button-2-ink, var(--secondary-ink, var(--as-ink))); background: var(--button-2-bg, var(--secondary, color-mix(in oklch, var(--as-ink) 8%, var(--as-card)))); box-shadow: var(--button-2-shadow, var(--as-sm)); }
@media (max-width: 1099.98px){
.cf-about-story-2__board{ grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: 'portrait questions' 'portrait answer'; }
.cf-about-story-2__board.is-noportrait{ grid-template-columns: minmax(0, 1fr); grid-template-areas: 'questions' 'answer'; }
.cf-about-story-2__questions{ margin-bottom: 0; }
.cf-about-story-2__photo{ height: clamp(320px, 40vw, 440px); }
}
@media (max-width: 999.98px){
.cf-about-story-2__foot{ grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 759.98px){
.cf-about-story-2__foot{ gap: 32px; }
.cf-about-story-2__stats{ grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.cf-about-story-2__stat, .cf-about-story-2__stat.is-row-start{ display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; column-gap: 16px; padding: 16px 0; border-left: 0; border-top: 1px solid var(--as-line); }
.cf-about-story-2__stat:first-child{ padding-top: 0; border-top: 0; }
.cf-about-story-2__stat-value{ font-size: 2rem; }
.cf-about-story-2__act, .cf-about-story-2__foot.is-solo .cf-about-story-2__act{ max-width: none; width: 100%; align-items: stretch; }
.cf-about-story-2__btn{ width: 100%; white-space: normal; text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce){
.cf-about-story-2 .cf-about-story-2__photo, .cf-about-story-2 .cf-about-story-2__plate, .cf-about-story-2 .cf-about-story-2__panel, .cf-about-story-2 .cf-about-story-2__item-panel{ animation: none; }
.cf-about-story-2 .cf-about-story-2__q, .cf-about-story-2 .cf-about-story-2__btn, .cf-about-story-2 .cf-about-story-2__disc, .cf-about-story-2 .cf-about-story-2__disc svg, .cf-about-story-2 .cf-about-story-2__item{ transition: none; }
.cf-about-story-2 .cf-about-story-2__q:hover, .cf-about-story-2 .cf-about-story-2__q.is-hover, .cf-about-story-2 .cf-about-story-2__btn:hover, .cf-about-story-2 .cf-about-story-2__btn.is-hover{ transform: none; }
}
@keyframes cf-about-story-2-in{ from{ opacity: .82; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
`;
pieces/content/about-story-2/specimen.tsx 71 lines
import __studioImage94147225 from "../assets/c4b7f6bc5c49ef8f.webp";
import __studioImage471f757d from "../assets/3517dfc4d0e07f1c.webp";
import * as React from 'react';
import { AboutStory2 } from '../about-story-2';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled';
export default function AboutStory2Specimen({ state = 'default' }: { state?: SpecimenState }) {
const founder = slot(
'presenter-cutout',
__studioImage94147225
);
const crew = __studioImage471f757d;
return (
<AboutStory2
state={state}
headline='Straight answers from the man whose name is on the van'
headlineEmphasis='whose name is on the van'
lead='Pick a question. Dan answers it the way he would on your driveway: plainly, and without a sales script.'
founderImage={founder}
founderImageAlt='Dan Calder, founder of Calder & Sons Roofing, in a navy work shirt'
founderName='Dan Calder'
founderRole='Founder, Calder & Sons Roofing'
questionsLabel='Questions for Dan Calder'
answers={[
{
question: 'Why did you start this?',
title: 'It started with three pans on my mum’s kitchen floor',
body: [
'I was nine when a February storm opened up our roof. Mum had three pans catching drips and a roofer who’d stopped answering his phone.',
'Dad climbed up the next morning and fixed it himself. He got it wrong twice before he got it right. That’s how Calder & Sons began: on our own roof, with one ladder.',
'Nobody should feel that helpless about the thing over their head. Keeping you dry is still the whole job.',
],
},
{
question: 'What do you refuse to do?',
title: 'I won’t quote a roof I haven’t climbed',
body: [
'I’m slow on quotes. People tell me so. I won’t price your roof from a photo or the pavement, because that’s how surprise extras show up on day three.',
'I go up, take pictures, and show you what I find, good and bad. If a patch will do, I’ll tell you to patch it.',
'It loses me jobs to the quick-quote guys. I can live with that.',
],
},
{
question: 'Who’s on the crew now?',
title: 'Family, or trained like family',
speakerName: 'Owen Calder',
speakerRole: 'Crew lead and Dan’s son',
image: crew,
imageAlt: 'Owen Calder, crew lead at Calder & Sons Roofing',
body: [
'I started sweeping Dad’s yard at fourteen. Now I lead the crew, and I’m fussier about the clean-up than he ever was.',
'Everyone on your roof is someone we trained ourselves. No day labour, no strangers. If there’s a Calder shirt up there, we know their name, and so will you.',
],
},
]}
stats={[
{ value: '38', label: 'years fixing roofs in this town' },
{ value: '4,200+', label: 'roofs repaired or replaced' },
{ value: '11', label: 'people on the crew, all trained by us' },
]}
ctaQuestion='Want Dan to take a look at your roof?'
buttonLabel='Yes, book my roof check'
reassurance='A Calder calls you back to pick a time that suits you.'
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalAboutStory2 |
string |
Default 'Ask the founder what you’d ask anyone you hire'
|
headlineEmphasis OptionalAboutStory2 |
string |
Default 'the founder'
|
lead OptionalAboutStory2 |
string |
Default 'Pick a question. You get the straight answer, in their own words.'
|
founderImage OptionalAboutStory2 |
string |
Default ''
|
founderImageAlt OptionalAboutStory2 |
string |
Default 'The founder'
|
founderName OptionalAboutStory2 |
string |
Default ''
|
founderRole OptionalAboutStory2 |
string |
Default ''
|
answers OptionalAboutStory2 |
AboutStory2Answer[] |
Default DEFAULT_ANSWERS
|
initialAnswer OptionalAboutStory2 |
number |
Default 0
|
questionsLabel OptionalAboutStory2 |
string |
Default 'Questions for the founder'
|
askedPrefix OptionalAboutStory2 |
string |
Default 'You asked:'
|
signPrefix OptionalAboutStory2 |
string |
Default '— '
|
stats OptionalAboutStory2 |
AboutStory2Stat[] |
Default []
|
ctaQuestion OptionalAboutStory2 |
string |
Default 'Ready to meet the people who’d do the work?'
|
buttonLabel OptionalAboutStory2 |
string |
Default 'Yes, introduce me'
|
reassurance OptionalAboutStory2 |
string |
Default ''
|
href OptionalAboutStory2 |
string |
|
onAction OptionalAboutStory2 |
() => void |
|
disabled OptionalAboutStory2 |
boolean |
Default false
|
state OptionalAboutStory2 |
'default' | 'hover' | 'active' | 'disabled' |
Default 'default'
|
className OptionalAboutStory2 |
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-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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter-cutout- The presenter on a transparent background.
-
3517dfc4d0e07f1c.webp
image/webp · 69 KB
-
c4b7f6bc5c49ef8f.webp
image/webp · 125 KB