Featured Story 1
Featured customer story: one deep case study set as a magazine bento (photo, before, what they did, a dominant result stat, a pull quote) that closes on the offer and one outcome action.
Use it in a prompt
Use proof/featured-story from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/proof/featured-story.tsx. - Import it and pass your copy and images (Props tab):
import { FeaturedStory } from "@/components/funneldna/proof/featured-story"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/featured-story/component.tsx 410 lines
// layout: bento-grid
// Featured customer story: one deep case study set as a magazine bento (photo, before, what they did, a dominant result stat, a pull quote) that closes on the offer and one outcome action.
import * as React from "react"
import { Quote, ShieldCheck, UserRound } from "lucide-react"
import { Mark } from "../marks/marks"
export type FeaturedStoryKitItem = {
name: string
// Product photo for the item (slot item-n)
image?: string
imageAlt?: string
}
// Interactive states the piece implements; the studio specimen forces them
export type FeaturedStoryState = "default" | "hover" | "active" | "disabled"
// Fixed labels and empty-field prompts; override any subset through the `copy` prop
export type FeaturedStoryCopy = {
beforeLabel: string
didLabel: string
resultLabel: string
// Small label above the kit thumbnails
kitLabel: string
// Honest note under the result stat
resultNote: string
// Screen-reader price line; {regular} and {price} are replaced
priceSr: string
// Quiet prompts shown when the matching story field is empty
slotName: string
slotRole: string
slotBefore: string
slotDid: string
slotResult: string
slotResultLabel: string
slotQuote: string
slotPhoto: string
}
export type FeaturedStoryProps = {
// Story headline; a string gets one marker stroke on headlineHighlight
headline?: React.ReactNode
// Phrase inside a string headline that carries the marker stroke
headlineHighlight?: string
// Deck under the headline; {product} is replaced with productName
deck?: React.ReactNode
// Customer photo (slot scene); leave empty to show the photo slot
customerImage?: string
customerImageAlt?: string
// Empty shows a quiet prompt
customerName?: string
// Business or role; empty shows a quiet prompt
customerRole?: string
// The customer's starting situation; empty shows a quiet prompt
before?: React.ReactNode
// What the customer did with the product; empty shows a quiet prompt
did?: React.ReactNode
// What the product includes, shown under "What they did"
kit?: FeaturedStoryKitItem[]
// The verified result as a short stat; empty shows a quiet prompt
resultValue?: string
// What the stat measures and over what time; empty shows a quiet prompt
resultLabel?: React.ReactNode
// The customer's own words, quoted exactly; empty shows a quiet prompt
quote?: React.ReactNode
productName?: string
offerHeading?: string
// Offer line; {product} is replaced with productName and offerHighlight gets the marker
offerLine?: React.ReactNode
offerHighlight?: string
// Struck regular price shown before the offer price
regularPrice?: string
price?: string
// Small terms line under the price
note?: string
actionLabel?: string
// Line under the button with an inline shield icon
reassurance?: string
// Navigation destination; renders the action as a link
href?: string
// Called on an action click (link or button) unless disabled
onAction?: () => void
disabled?: boolean
state?: FeaturedStoryState
copy?: Partial<FeaturedStoryCopy>
className?: string
}
export function FeaturedStory(props: FeaturedStoryProps) {
const {
headline = "Their first funnel started with a clear plan",
headlineHighlight = "clear plan",
deck = "One customer's path with {product}: where they started, what they did, and what changed.",
customerImage,
customerImageAlt = "Customer portrait",
customerName,
customerRole,
before,
did,
kit = [],
resultValue,
resultLabel,
quote,
productName = "The Funnel Starter Kit",
offerHeading = "Follow the same plan",
offerLine = "Get {product}: the guide, workbook, and checklist in one download.",
offerHighlight = "in one download",
regularPrice = "$97",
price = "$47",
note = "One payment · Lifetime access",
actionLabel = "Start planning my funnel",
reassurance = "Secure checkout · 30-day money-back guarantee",
href,
onAction,
disabled = false,
state = "default",
copy,
className,
} = props
const c: FeaturedStoryCopy = { ...DEFAULT_COPY, ...copy }
const id = React.useId()
const isDisabled = disabled || state === "disabled"
const deckText = typeof deck === "string" ? deck.split("{product}").join(productName) : deck
const offerText = typeof offerLine === "string" ? offerLine.split("{product}").join(productName) : offerLine
const handleAction = (event: React.MouseEvent<HTMLElement>) => {
if (isDisabled) {
event.preventDefault()
return
}
onAction?.()
}
return (
<article
className={["cf-featured-story", className].filter(Boolean).join(" ")}
data-state={state}
aria-labelledby={`${id}-h`}
>
<style>{STYLES}</style>
<div className="cf-featured-story-grid">
<header className="cf-featured-story-head">
<h2 id={`${id}-h`} className="cf-featured-story-h2">{withMarker(headline, headlineHighlight)}</h2>
{deckText ? <p className="cf-featured-story-deck">{deckText}</p> : null}
</header>
<figure className="cf-featured-story-photo">
<div className="cf-featured-story-frame">
{customerImage ? (
<img src={customerImage} alt={customerImageAlt} width={800} height={1000} loading="lazy" />
) : (
<span className="cf-featured-story-empty">
<UserRound aria-hidden size={40} strokeWidth={1.75} />
<span>{c.slotPhoto}</span>
</span>
)}
</div>
<figcaption className="cf-featured-story-who">
<strong>{customerName ?? <span className="cf-featured-story-slot">{c.slotName}</span>}</strong>
<span>{customerRole ?? <span className="cf-featured-story-slot">{c.slotRole}</span>}</span>
</figcaption>
</figure>
<section className="cf-featured-story-card cf-featured-story-before" aria-labelledby={`${id}-b`}>
<h3 id={`${id}-b`} className="cf-featured-story-label">{c.beforeLabel}</h3>
<div className="cf-featured-story-text">{orSlot(before, c.slotBefore)}</div>
</section>
<section className="cf-featured-story-card cf-featured-story-did" aria-labelledby={`${id}-d`}>
<h3 id={`${id}-d`} className="cf-featured-story-label">{c.didLabel}</h3>
<div className="cf-featured-story-text">{orSlot(did, c.slotDid)}</div>
{kit.length ? (
<div className="cf-featured-story-kit">
<p className="cf-featured-story-kit-label">{c.kitLabel}</p>
<ul>
{kit.map((item) => (
<li key={item.name}>
{item.image ? (
<img src={item.image} alt={item.imageAlt ?? item.name} width={240} height={240} loading="lazy" />
) : null}
<span>{item.name}</span>
</li>
))}
</ul>
</div>
) : null}
</section>
<section className="cf-featured-story-result" aria-labelledby={`${id}-r`}>
<h3 id={`${id}-r`} className="cf-featured-story-label">{c.resultLabel}</h3>
<div className="cf-featured-story-result-body">
<p className={resultValue ? "cf-featured-story-stat" : "cf-featured-story-stat cf-featured-story-slot"}>
{resultValue ?? c.slotResult}
</p>
<div className="cf-featured-story-result-text">{orSlot(resultLabel, c.slotResultLabel)}</div>
<p className="cf-featured-story-result-note">{c.resultNote}</p>
</div>
</section>
<figure className="cf-featured-story-quote">
<Quote className="cf-featured-story-quote-icon" aria-hidden strokeWidth={2.25} />
<div>
<blockquote>
<div className="cf-featured-story-quote-text">{orSlot(quote, c.slotQuote)}</div>
</blockquote>
<figcaption>
<strong>{customerName ?? <span className="cf-featured-story-slot">{c.slotName}</span>}</strong>
{customerRole ? <span>, {customerRole}</span> : null}
</figcaption>
</div>
</figure>
<section className="cf-featured-story-card cf-featured-story-offer" aria-labelledby={`${id}-o`}>
<div className="cf-featured-story-offer-body">
<div>
<h3 id={`${id}-o`} className="cf-featured-story-offer-title">{offerHeading}</h3>
<p className="cf-featured-story-offer-line">{withMarker(offerText, offerHighlight)}</p>
<p className="cf-featured-story-price">
<span className="cf-featured-story-sr">{fill(c.priceSr, { regular: regularPrice, price })}</span>
<span className="cf-featured-story-was" aria-hidden="true">
{regularPrice}
<span className="cf-featured-story-slash">
<Mark name="cross" width={72} height={44} />
</span>
</span>
<span className="cf-featured-story-now" aria-hidden="true">{price}</span>
</p>
{note ? <p className="cf-featured-story-note">{note}</p> : null}
</div>
<div className="cf-featured-story-act">
{href ? (
<a
className="cf-featured-story-btn"
href={isDisabled ? undefined : href}
role={isDisabled ? "link" : undefined}
aria-disabled={isDisabled || undefined}
tabIndex={isDisabled ? -1 : undefined}
onClick={handleAction}
>
{actionLabel}
</a>
) : (
<button type="button" className="cf-featured-story-btn" disabled={isDisabled} onClick={handleAction}>
{actionLabel}
</button>
)}
{reassurance ? (
<p className="cf-featured-story-assure">
<ShieldCheck aria-hidden strokeWidth={2.25} />
<span>{reassurance}</span>
</p>
) : null}
</div>
</div>
</section>
</div>
</article>
)
}
export default FeaturedStory
const DEFAULT_COPY: FeaturedStoryCopy = {
beforeLabel: "Before",
didLabel: "What they did",
resultLabel: "The result",
kitLabel: "Inside the kit",
resultNote: "One customer's result, not a promise. Yours will vary.",
priceSr: "Regular price {regular}. Today {price}.",
slotName: "Customer name",
slotRole: "Their business or role",
slotBefore: "Where they started before the kit, in a sentence or two.",
slotDid: "The steps they took with the kit, in their own words.",
slotResult: "Result",
slotResultLabel: "The verified result and how long it took.",
slotQuote: "The customer's own words, quoted exactly.",
slotPhoto: "Customer photo",
}
// Wraps the first occurrence of `phrase` in a string with the marker stroke; rich nodes pass through untouched.
function withMarker(text: React.ReactNode, phrase?: string): React.ReactNode {
if (typeof text !== "string" || !phrase) return text
const at = text.indexOf(phrase)
if (at < 0) return text
return (
<>
{text.slice(0, at)}
<mark className="cf-featured-story-mark">{phrase}</mark>
{text.slice(at + phrase.length)}
</>
)
}
// Shows the quiet prompt when a story field is empty.
function orSlot(value: React.ReactNode | undefined, fallback: string): React.ReactNode {
return value === undefined || value === null || value === "" ? (
<span className="cf-featured-story-slot">{fallback}</span>
) : (
value
)
}
// Replaces named {placeholders} in a copy template.
function fill(template: string, values: Record<string, string>): string {
return Object.keys(values).reduce((out, key) => out.split(`{${key}}`).join(values[key]), template)
}
// Shadows: every outer shadow is built on the theme's dark --shadow token, written inline so each
// fallback is the dark recipe var(--shadow, oklch(0.22 0.03 260)). Host --shadow-sm/md/lg win when set.
const STYLES = `
.cf-featured-story{container:cf-featured-story / inline-size;width:100%;max-width:80rem;margin-inline:auto;color:var(--ink,#1a1f36);font-family:var(--font-body,Arial,sans-serif);font-size:1rem;line-height:1.55}
.cf-featured-story *,.cf-featured-story *::before,.cf-featured-story *::after{box-sizing:border-box}
.cf-featured-story :where(h2,h3,p,figure,blockquote,ul,li){margin:0;padding:0}
.cf-featured-story :where(ul){list-style:none}
.cf-featured-story-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "photo" "before" "did" "result" "quote" "offer";gap:1rem}
.cf-featured-story-head{grid-area:head;padding:.25rem .125rem .5rem}
.cf-featured-story-photo{grid-area:photo}
.cf-featured-story-before{grid-area:before}
.cf-featured-story-did{grid-area:did}
.cf-featured-story-result{grid-area:result}
.cf-featured-story-quote{grid-area:quote}
.cf-featured-story-offer{grid-area:offer}
.cf-featured-story-grid>*{min-width:0;animation:cf-featured-story-in .45s cubic-bezier(.2,.7,.2,1) both}
.cf-featured-story-grid>:nth-child(2){animation-delay:.05s}
.cf-featured-story-grid>:nth-child(3){animation-delay:.1s}
.cf-featured-story-grid>:nth-child(4){animation-delay:.15s}
.cf-featured-story-grid>:nth-child(5){animation-delay:.2s}
.cf-featured-story-grid>:nth-child(6){animation-delay:.24s}
.cf-featured-story-grid>:nth-child(7){animation-delay:.28s}
@keyframes cf-featured-story-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
.cf-featured-story-h2{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-.03em);font-size:clamp(2.125rem,6.4cqi,4.25rem);line-height:1.04;color:var(--ink,#1a1f36);text-wrap:balance}
.cf-featured-story-deck{margin-top:clamp(.75rem,1.7cqi,1.25rem);max-width:62ch;font-size:clamp(1.0625rem,1.6cqi,1.25rem);font-weight:500;line-height:1.5;color:var(--muted,#4b5568);text-wrap:pretty}
.cf-featured-story-mark{color:var(--marker-ink,var(--field-ink,#101828));background-color:transparent;background-image:linear-gradient(transparent 30%,var(--marker,#fae37c) 30%,var(--marker,#fae37c) 94%,transparent 94%);padding:0 .14em;margin:0 -.06em;border-radius:.35em .2em .4em .25em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-featured-story-card{background:var(--card,#fff);color:var(--ink,#1a1f36);border:1px solid var(--card-border,color-mix(in oklch,var(--ink,#1a1f36) 12%,transparent));border-radius:var(--card-radius,calc(var(--radius,.75rem) + .25rem));box-shadow:var(--card-shadow,var(--shadow-sm,0 1px 1px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .18),0 1px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .14)));padding:clamp(1.25rem,3cqi,1.75rem)}
.cf-featured-story-label{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-.02em);font-size:1.375rem;line-height:1.15;color:var(--accent,#2563eb);margin-bottom:.625rem;text-wrap:balance}
.cf-featured-story-text{font-size:1.0625rem;line-height:1.6;color:var(--ink,#1a1f36);text-wrap:pretty}
.cf-featured-story-slot{font-style:italic;color:var(--muted,#4b5568)}
.cf-featured-story-photo{display:flex;flex-direction:column;gap:.875rem}
.cf-featured-story-frame{position:relative;flex:1 1 auto;min-height:20rem;overflow:hidden;border-radius:var(--card-radius,calc(var(--radius,.75rem) + .25rem));background:color-mix(in oklch,var(--ink,#1a1f36) 6%,var(--surface,#fff));box-shadow:var(--shadow-sm,0 1px 1px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .18),0 1px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .14))}
.cf-featured-story-frame img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.cf-featured-story-empty{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:.5rem;padding:1rem;color:var(--muted,#4b5568);font-style:italic;text-align:center}
.cf-featured-story-who strong{display:block;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:1.25rem;line-height:1.2;color:var(--ink,#1a1f36)}
.cf-featured-story-who>span{display:block;margin-top:.25rem;font-size:1rem;color:var(--muted,#4b5568)}
.cf-featured-story-kit{margin-top:1.25rem}
.cf-featured-story-kit-label{font-size:.875rem;font-weight:700;color:var(--muted,#4b5568);margin-bottom:.625rem}
.cf-featured-story-kit ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.cf-featured-story-kit img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:calc(var(--radius,.75rem) * .75)}
.cf-featured-story-kit span{display:block;margin-top:.5rem;font-size:.875rem;font-weight:600;line-height:1.3;color:var(--ink,#1a1f36);text-wrap:balance}
.cf-featured-story-result{container:cf-featured-story-result / inline-size;display:flex;flex-direction:column;justify-content:space-between;gap:1.5rem;min-height:15rem;padding:clamp(1.5rem,3.2cqi,2rem);border-radius:var(--card-radius,calc(var(--radius,.75rem) + .25rem));background:var(--band,#16213e);color:var(--band-ink,#fff);box-shadow:inset 0 1px 0 oklch(from var(--band,#16213e) calc(l + 0.1) c h / .7),var(--shadow-md,0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .22),0 4px 10px -2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .2))}
.cf-featured-story-result .cf-featured-story-label,.cf-featured-story-result .cf-featured-story-slot{color:var(--band-ink,#fff)}
.cf-featured-story-stat{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(2.75rem,19cqi,5.75rem);line-height:.95;letter-spacing:-.04em;color:var(--band-ink,#fff);overflow-wrap:anywhere}
.cf-featured-story-result-text{margin-top:.875rem;font-size:1.0625rem;font-weight:500;line-height:1.5;color:var(--band-ink,#fff);text-wrap:pretty}
.cf-featured-story-result-note{margin-top:1rem;padding-top:.875rem;border-top:1px solid oklch(from var(--band-ink,#fff) l c h / .22);font-size:.875rem;line-height:1.45;color:var(--band-ink,#fff);text-wrap:pretty}
.cf-featured-story-quote{display:grid;gap:1rem;align-content:start;padding:clamp(1.5rem,3.5cqi,2.25rem);border-radius:var(--card-radius,calc(var(--radius,.75rem) + .25rem));background:color-mix(in oklch,var(--ink,#1a1f36) 4%,var(--surface,#fff))}
.cf-featured-story-quote-icon{width:2.75rem;height:2.75rem;color:var(--accent,#2563eb)}
.cf-featured-story-quote-text{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.02em);font-size:clamp(1.5rem,3.2cqi,2.25rem);line-height:1.18;color:var(--ink,#1a1f36);text-wrap:balance}
.cf-featured-story-quote .cf-featured-story-slot{color:var(--ink,#1a1f36)}
.cf-featured-story-quote figcaption{margin-top:1rem;font-size:1rem;color:var(--ink,#1a1f36)}
.cf-featured-story-quote figcaption strong{font-weight:700}
.cf-featured-story-offer{container:cf-featured-story-offer / inline-size;box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .22),0 4px 10px -2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .2)))}
.cf-featured-story-offer-body{display:grid;gap:1.25rem}
.cf-featured-story-offer-title{font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-.02em);font-size:1.5rem;line-height:1.15;color:var(--ink,#1a1f36);text-wrap:balance}
.cf-featured-story-offer-line{margin-top:.5rem;font-size:1.0625rem;line-height:1.55;color:var(--ink,#1a1f36);text-wrap:pretty}
.cf-featured-story-price{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:.25rem 1.25rem;margin-top:1.125rem}
.cf-featured-story-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-featured-story-was{position:relative;display:inline-block;padding:0 .25rem;font-family:var(--font-display,Arial,sans-serif);font-weight:700;font-size:1.75rem;line-height:1;color:var(--muted,#4b5568)}
.cf-featured-story-slash{position:absolute;inset:-.4rem -.3rem;color:var(--danger,#c62828);pointer-events:none}
.cf-featured-story-slash svg{display:block;width:100%;height:100%}
.cf-featured-story-now{display:inline-block;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:3.25rem;line-height:1;letter-spacing:-.03em;color:var(--ink,#1a1f36);transform:rotate(-4deg);transform-origin:left center}
.cf-featured-story-note{margin-top:.875rem;font-size:.9375rem;font-weight:500;color:var(--muted,#4b5568)}
.cf-featured-story-act{display:grid;gap:.75rem}
.cf-featured-story-assure{display:block;font-size:.875rem;line-height:1.4;color:var(--muted,#4b5568);text-align:center;text-wrap:pretty}
.cf-featured-story-assure svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em;width:1rem;height:1rem;color:var(--success,#1e7a3c)}
.cf-featured-story-btn{--cf-featured-story-b:var(--button-bg,var(--cta,#d93b25));display:flex;width:100%;min-height:3.5rem;align-items:center;justify-content:center;padding:.95rem 1.25rem;border:1px solid oklch(from var(--cf-featured-story-b) calc(l - 0.12) c h);border-radius:var(--button-radius,var(--radius,.75rem));background:linear-gradient(oklch(from var(--cf-featured-story-b) calc(l + 0.04) c h),var(--button-bg-2,var(--cta-2,oklch(from var(--cf-featured-story-b) calc(l - 0.06) c h))));color:var(--button-ink,var(--cta-ink,#fff));font-family:var(--button-font,var(--font-display,Arial,sans-serif));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:1.1875rem;line-height:1.2;letter-spacing:-.01em;text-align:center;text-wrap:balance;text-decoration:none;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--cf-featured-story-b) calc(l + 0.12) c h / .6),inset 0 -3px 0 oklch(from var(--cf-featured-story-b) calc(l - 0.16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3),0 6px 14px -4px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .38));cursor:pointer;transition:transform .15s ease,background .15s ease,box-shadow .15s ease}
.cf-featured-story-btn:not(:disabled):not([aria-disabled="true"]):hover,.cf-featured-story[data-state="hover"] .cf-featured-story-btn:not(:disabled){transform:translateY(-1px);background:linear-gradient(oklch(from var(--cf-featured-story-b) calc(l - 0.02) c h),oklch(from var(--cf-featured-story-b) calc(l - 0.1) c h))}
.cf-featured-story-btn:not(:disabled):not([aria-disabled="true"]):active,.cf-featured-story[data-state="active"] .cf-featured-story-btn:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from var(--cf-featured-story-b) calc(l - 0.08) c h),oklch(from var(--cf-featured-story-b) calc(l - 0.12) c h));box-shadow:inset 0 2px 3px oklch(from var(--cf-featured-story-b) calc(l - 0.22) c h / .55),0 1px 1px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3)}
.cf-featured-story-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent,#2563eb));outline-offset:3px}
.cf-featured-story-btn:disabled,.cf-featured-story-btn[aria-disabled="true"]{cursor:not-allowed;transform:none;border-color:var(--button-2-border,transparent);background:var(--button-2-bg,var(--secondary,#e5e8ef));color:var(--button-2-ink,var(--secondary-ink,#1a1f36));text-shadow:none;box-shadow:var(--button-2-shadow, var(--shadow-sm))}
@container cf-featured-story-offer (min-width:560px){.cf-featured-story-offer-body{grid-template-columns:minmax(0,1fr) minmax(16rem,20rem);column-gap:2rem;align-items:start}}
@container cf-featured-story (min-width:620px){
.cf-featured-story-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"head head" "photo before" "photo did" "result quote" "offer offer"}
.cf-featured-story-frame{min-height:22rem}
}
@container cf-featured-story (min-width:940px){
.cf-featured-story-grid{gap:1.25rem;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr);grid-template-areas:"photo head head" "photo before result" "photo did result" "quote quote offer"}
.cf-featured-story-head{padding:.5rem .25rem .25rem}
.cf-featured-story-quote{grid-template-columns:auto minmax(0,1fr);gap:1.5rem}
}
@media (hover:hover) and (pointer:fine){
.cf-featured-story-card{transition:translate .2s ease,box-shadow .2s ease}
.cf-featured-story-card:hover{translate:0 -2px;box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .22),0 4px 10px -2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .2)))}
.cf-featured-story-offer:hover{box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .22),0 12px 24px -8px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .32)))}
.cf-featured-story-photo:hover .cf-featured-story-frame img{transform:scale(1.03)}
}
@media (prefers-reduced-motion:reduce){
.cf-featured-story-grid>*{animation:none}
.cf-featured-story-card,.cf-featured-story-frame img,.cf-featured-story-btn{transition:none}
.cf-featured-story-card:hover,.cf-featured-story-btn:hover,.cf-featured-story-btn:active,.cf-featured-story[data-state] .cf-featured-story-btn{translate:none;transform:none}
.cf-featured-story-photo:hover .cf-featured-story-frame img{transform:none}
}
`
pieces/proof/featured-story/specimen.tsx 38 lines
import __studioImage4a3ef715 from "../assets/78ac2d2cfbc5f42d.webp"
import { FeaturedStory } from "../featured-story"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
export const states = ["default", "hover", "active", "disabled"]
type SpecimenState = "default" | "hover" | "active" | "disabled"
export default function FeaturedStorySpecimen({ state = "default" }: { state?: SpecimenState }) {
const sample = defaults.sample
return (
<FeaturedStory
state={state}
headline="Dana's first funnel started with a clear plan"
headlineHighlight="clear plan"
customerImage={slot("scene", __studioImage4a3ef715)}
customerImageAlt="Dana R. smiling at her studio desk with her laptop open"
customerName="Dana R."
customerRole="Pilates studio owner, Austin"
before="Dana had a full class schedule on paper and a few hundred followers, but no page that turned them into bookings. Every new client still came from word of mouth."
did="She mapped a two-page funnel with the planning guide, wrote her free-class offer in the workbook, and ran the launch checklist the night before she went live."
kit={sample.items.map((item, i) => ({
name: item.name,
image: item.image ? slot(`item-${i + 1}`, item.image) : undefined,
imageAlt: item.imageAlt,
}))}
resultValue="31"
resultLabel="free-class sign-ups in the first two weeks after launch"
quote="I'd put this off for a year. Once the pages were mapped, I wrote the copy in a weekend and launched on Monday."
productName={sample.name}
regularPrice={sample.regularPrice}
price={sample.price}
note={sample.note}
reassurance={`Secure checkout · ${sample.guarantee}`}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalFeaturedStory |
React.ReactNode |
|
headlineHighlight OptionalFeaturedStory |
string |
|
deck OptionalFeaturedStory |
React.ReactNode |
|
customerImage OptionalFeaturedStory |
string |
|
customerImageAlt OptionalFeaturedStory |
string |
|
customerName OptionalFeaturedStory |
string |
|
customerRole OptionalFeaturedStory |
string |
|
before OptionalFeaturedStory |
React.ReactNode |
|
did OptionalFeaturedStory |
React.ReactNode |
|
kit OptionalFeaturedStory |
FeaturedStoryKitItem[] |
|
resultValue OptionalFeaturedStory |
string |
|
resultLabel OptionalFeaturedStory |
React.ReactNode |
|
quote OptionalFeaturedStory |
React.ReactNode |
|
productName OptionalFeaturedStory |
string |
|
offerHeading OptionalFeaturedStory |
string |
|
offerLine OptionalFeaturedStory |
React.ReactNode |
|
offerHighlight OptionalFeaturedStory |
string |
|
regularPrice OptionalFeaturedStory |
string |
|
price OptionalFeaturedStory |
string |
|
note OptionalFeaturedStory |
string |
|
actionLabel OptionalFeaturedStory |
string |
|
reassurance OptionalFeaturedStory |
string |
|
href OptionalFeaturedStory |
string |
|
onAction OptionalFeaturedStory |
() => void |
|
disabled OptionalFeaturedStory |
boolean |
|
state OptionalFeaturedStory |
FeaturedStoryState |
|
copy OptionalFeaturedStory |
Partial<FeaturedStoryCopy> |
|
className OptionalFeaturedStory |
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-border--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--field-ink- 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.
-
78ac2d2cfbc5f42d.webp
image/webp · 99.8 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB