Testimonial Spotlight 1
Testimonial spotlight: one customer's result, quote and before/after numbers on a card that breaks over their photo, closed by the action, so proof lands right after the offer.
Use it in a prompt
Use proof/testimonial-spotlight 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/testimonial-spotlight.tsx. - Import it and pass your copy and images (Props tab):
import { TestimonialSpotlight } from "@/components/funneldna/proof/testimonial-spotlight"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/testimonial-spotlight/component.tsx 647 lines
// layout: photo-overlap-card
// Testimonial spotlight: one customer's result, quote and before/after numbers on a card that breaks over their photo, closed by the action, so proof lands right after the offer.
import * as React from "react";
import { Quote, ShieldCheck, Star } from "lucide-react";
import { motion, useReducedMotion } from "motion/react";
export type TestimonialSpotlightStat = {
/** What was measured, e.g. "Funnel pages mapped". */
label: string;
/** The value before, shown quiet. */
before: string;
/** The value after, shown bold in the success colour. */
after: string;
};
export type TestimonialSpotlightCopy = {
before?: string;
after?: string;
/** Hidden header for the measure column of the numbers table. */
measure?: string;
/** Accessible name of the numbers table when there is no stats heading. */
statsLabel?: string;
/** Template: "{rating}" is replaced with the star count. */
ratingLabel?: string;
quoteOpen?: string;
quoteClose?: string;
};
export type TestimonialSpotlightProps = {
/** The customer's result in their own words, set as the big bold line. */
result?: React.ReactNode;
/** A phrase inside a string `result` that gets one highlighter stroke. */
highlight?: string;
/** The customer's quote; curly quote marks are added around a string quote. */
quote?: React.ReactNode;
name?: string;
/** Role and location, e.g. "Independent consultant · Toronto". */
role?: string;
/** Slot "scene": the customer's photo. Empty hides the photo and centres the card. */
photoImage?: string;
photoAlt?: string;
/** CSS object-position for the photo crop. */
photoPosition?: string;
/** Star rating out of 5; 0 hides the stars. */
rating?: number;
/** Red subhead above the before/after numbers. */
statsHeading?: string;
stats?: TestimonialSpotlightStat[];
/** Red subhead above the button. */
actionHeading?: string;
actionLabel?: string;
/** Second button line, where the price sits. */
actionSublabel?: string;
/** One reassurance line under the button, e.g. the guarantee. */
reassurance?: string;
href?: string;
onAction?: () => void;
disabled?: boolean;
state?: "default" | "hover" | "active" | "disabled";
copy?: TestimonialSpotlightCopy;
className?: string;
};
export function TestimonialSpotlight(props: TestimonialSpotlightProps) {
const {
result = "",
highlight = "",
quote = "",
name = "",
role = "",
photoImage = "",
photoAlt = "",
photoPosition = "50% 30%",
rating = 0,
statsHeading = "",
stats = [],
actionHeading = "Get the same plan for your funnel",
actionLabel = "Send Me The Kit",
actionSublabel = "",
reassurance = "",
href,
onAction,
disabled = false,
state = "default",
copy,
className,
} = props;
const c = { ...DEFAULT_COPY, ...copy };
const reduce = useReducedMotion();
const headingId = "cf-tsp-" + React.useId().replace(/[^a-zA-Z0-9_-]/g, "");
const stars = Math.max(0, Math.min(5, Math.round(rating)));
const isDisabled = disabled || state === "disabled";
const hasPhoto = photoImage !== "";
const hasResult = filled(result);
const hasQuote = filled(quote);
const hasBy = name !== "" || role !== "";
const rise = (delay: number) =>
reduce
? {}
: {
initial: { opacity: 0.82, y: 12 },
whileInView: { opacity: 1, y: 0 },
viewport: { once: true, amount: 0.15 },
transition: { duration: 0.5, delay, ease: EASE },
};
const settle = reduce
? {}
: {
initial: { scale: 1.06 },
whileInView: { scale: 1 },
viewport: { once: true, amount: 0.15 },
transition: { duration: 1.4, ease: EASE },
};
const handle = onAction ? () => onAction() : undefined;
const btnClass = ["cf-tsp-btn", state === "hover" ? "is-hover" : "", state === "active" ? "is-active" : ""]
.filter(Boolean)
.join(" ");
const btnInner = (
<>
<span className="cf-tsp-btn-label">{actionLabel}</span>
{actionSublabel ? <span className="cf-tsp-btn-sub">{actionSublabel}</span> : null}
</>
);
return (
<section
className={["cf-tsp", hasPhoto ? "" : "is-nophoto", className].filter(Boolean).join(" ")}
aria-labelledby={hasResult ? headingId : undefined}
>
<style>{CSS}</style>
<div className="cf-tsp-stage">
{hasPhoto ? (
<div className="cf-tsp-media">
<span className="cf-tsp-plate" aria-hidden="true" />
<div className="cf-tsp-photo">
<motion.img
src={photoImage}
alt={photoAlt}
loading="lazy"
decoding="async"
style={{ objectPosition: photoPosition }}
{...settle}
/>
</div>
</div>
) : null}
<motion.div className="cf-tsp-card" {...rise(0.06)}>
{hasQuote || stars > 0 ? (
<div className="cf-tsp-head">
{hasQuote ? <Quote className="cf-tsp-qicon" aria-hidden="true" /> : <span />}
{stars > 0 ? (
<span className="cf-tsp-stars" role="img" aria-label={c.ratingLabel.replace("{rating}", String(stars))}>
{Array.from({ length: 5 }, (_, i) => (
<Star key={i} aria-hidden="true" className={i < stars ? "is-on" : "is-off"} />
))}
</span>
) : null}
</div>
) : null}
{hasResult ? (
<h2 id={headingId} className="cf-tsp-result">
{withMarker(result, highlight)}
</h2>
) : null}
{hasQuote || hasBy ? (
<figure className="cf-tsp-figure">
{hasQuote ? (
<blockquote className="cf-tsp-quote">
<p>{typeof quote === "string" ? `${c.quoteOpen}${quote}${c.quoteClose}` : quote}</p>
</blockquote>
) : null}
{hasBy ? (
<figcaption className="cf-tsp-by">
<span className="cf-tsp-rule" aria-hidden="true" />
{name ? <span className="cf-tsp-name">{name}</span> : null}
{role ? <span className="cf-tsp-role">{role}</span> : null}
</figcaption>
) : null}
</figure>
) : null}
{stats.length > 0 ? (
<div className="cf-tsp-stats">
{statsHeading ? <h3 className="cf-tsp-sub">{statsHeading}</h3> : null}
<div className="cf-tsp-table" role="table" aria-label={statsHeading || c.statsLabel}>
<div className="cf-tsp-row is-head" role="row">
<span className="cf-tsp-label" role="columnheader">
<span className="cf-tsp-sr">{c.measure}</span>
</span>
<span className="cf-tsp-before" role="columnheader">{c.before}</span>
<span className="cf-tsp-after" role="columnheader">{c.after}</span>
</div>
{stats.map((s, i) => (
<motion.div key={s.label + i} className="cf-tsp-row" role="row" {...rise(0.14 + Math.min(i * 0.07, 0.28))}>
<span className="cf-tsp-label" role="rowheader">{s.label}</span>
<span className="cf-tsp-before" role="cell">
<span className="cf-tsp-cap">{c.before}</span>
{s.before}
</span>
<span className="cf-tsp-after" role="cell">
<span className="cf-tsp-cap">{c.after}</span>
{s.after}
</span>
</motion.div>
))}
</div>
</div>
) : null}
<div className="cf-tsp-cta">
{actionHeading ? <h3 className="cf-tsp-sub">{actionHeading}</h3> : null}
{href && !isDisabled ? (
<a className={btnClass} href={href} onClick={handle}>
{btnInner}
</a>
) : (
<button type="button" className={btnClass} disabled={isDisabled} onClick={handle}>
{btnInner}
</button>
)}
{reassurance ? (
<p className="cf-tsp-assure">
<ShieldCheck className="cf-tsp-assure-icon" aria-hidden="true" />
{reassurance}
</p>
) : null}
</div>
</motion.div>
</div>
</section>
);
}
export default TestimonialSpotlight;
const DEFAULT_COPY: Required<TestimonialSpotlightCopy> = {
before: "Before",
after: "After",
measure: "Result",
statsLabel: "Results before and after",
ratingLabel: "Rated {rating} out of 5",
quoteOpen: "“",
quoteClose: "”",
};
const EASE = [0.2, 0.7, 0.2, 1] as const;
function filled(node: React.ReactNode) {
return node !== "" && node !== null && node !== undefined && node !== false;
}
function withMarker(text: React.ReactNode, phrase: string) {
if (typeof text !== "string" || !phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className="cf-tsp-mark">{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
const CSS = `
.cf-tsp {
--tsp-marker: oklch(from var(--marker, #fae37c) l c h / 0.72);
--tsp-well: color-mix(in oklch, var(--ink, #101828) 4%, var(--card, #ffffff));
--tsp-line: oklch(from var(--ink, #101828) l c h / 0.14);
--tsp-shadow: var(--shadow, oklch(0.22 0.03 260));
--tsp-r: var(--radius, 12px);
position: relative;
overflow-x: clip;
background: color-mix(in oklch, var(--ink, #101828) 3%, var(--surface, #ffffff));
color: var(--ink, #101828);
font-family: var(--font-body, system-ui, sans-serif);
padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem);
}
.cf-tsp *, .cf-tsp *::before, .cf-tsp *::after { box-sizing: border-box; }
.cf-tsp-stage {
position: relative;
max-width: 75rem;
margin-inline: auto;
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
column-gap: clamp(1rem, 2vw, 1.5rem);
align-items: start;
}
.cf-tsp-media {
grid-column: 1 / span 6;
grid-row: 1;
align-self: stretch;
position: relative;
min-height: 32rem;
}
.cf-tsp-plate {
position: absolute;
inset: -1.25rem 3rem 3rem -1.25rem;
border-radius: calc(var(--tsp-r) * 1.75);
background: color-mix(in oklch, var(--accent-fill, var(--accent, #2563eb)) 14%, var(--surface, #ffffff));
}
.cf-tsp-photo {
position: absolute;
inset: 0;
overflow: hidden;
border-radius: calc(var(--tsp-r) * 1.5);
background: var(--tsp-well);
box-shadow: var(--shadow-md, 0 1px 2px oklch(from var(--tsp-shadow) l c h / 0.22), 0 4px 10px -2px oklch(from var(--tsp-shadow) l c h / 0.2));
}
.cf-tsp-photo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.cf-tsp-photo::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
background: linear-gradient(to top, oklch(from var(--band, #14213d) l c h / 0.22), transparent 42%);
}
.cf-tsp-card {
grid-column: 6 / -1;
grid-row: 1;
align-self: start;
margin-block: clamp(2rem, 4.5vw, 4rem);
margin-inline-start: -2.5rem;
position: relative;
z-index: 2;
container-type: inline-size;
background: var(--card, #ffffff);
color: var(--ink, #101828);
border: 1px solid var(--card-border, color-mix(in oklch, var(--ink, #101828) 12%, transparent));
border-radius: var(--card-radius, calc(var(--tsp-r) * 1.5));
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--tsp-shadow) l c h / 0.22), 0 14px 28px -10px oklch(from var(--tsp-shadow) l c h / 0.32)));
padding: clamp(1.375rem, 3.4vw, 2.75rem);
}
.cf-tsp-card::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
box-shadow: inset 0 1px 0 oklch(from var(--card, #ffffff) calc(l + 0.04) c h / 0.6);
}
.cf-tsp.is-nophoto .cf-tsp-card {
grid-column: 1 / -1;
justify-self: center;
width: 100%;
max-width: 46rem;
margin: 0 auto;
}
.cf-tsp-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1.125rem;
}
.cf-tsp-qicon {
width: 2.5rem;
height: 2.5rem;
flex: none;
color: var(--accent-fill, var(--accent, #2563eb));
fill: currentColor;
stroke-width: 1;
}
.cf-tsp-stars { display: inline-flex; gap: 0.2rem; }
.cf-tsp-stars svg { width: 1.375rem; height: 1.375rem; stroke-width: 1.5; }
.cf-tsp-stars .is-on { color: var(--accent-fill, var(--accent, #2563eb)); fill: currentColor; }
.cf-tsp-stars .is-off { color: oklch(from var(--ink, #101828) l c h / 0.3); fill: none; }
.cf-tsp-result {
margin: 0 0 1.125rem;
font-family: var(--font-display, inherit);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
letter-spacing: var(--display-tracking, -0.025em);
font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
line-height: 1.05;
color: var(--ink, #101828);
text-wrap: balance;
}
.cf-tsp-mark {
background-image: linear-gradient(transparent 48%, var(--tsp-marker) 48%, var(--tsp-marker) 94%, transparent 94%);
background-repeat: no-repeat;
padding-inline: 0.08em;
margin-inline: -0.04em;
border-radius: 0.18em 0.32em 0.24em 0.3em;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.cf-tsp-figure, .cf-tsp-quote { margin: 0; }
.cf-tsp-quote p {
margin: 0;
font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
line-height: 1.55;
font-weight: 600;
color: var(--ink, #101828);
text-wrap: pretty;
}
.cf-tsp-by {
display: flex;
flex-direction: column;
gap: 0.2rem;
margin-top: 1.5rem;
}
.cf-tsp-rule {
display: block;
width: 2.75rem;
height: 0.25rem;
border-radius: 999px;
margin-bottom: 0.75rem;
background: var(--accent-fill, var(--accent, #2563eb));
}
.cf-tsp-name {
font-family: var(--font-display, inherit);
font-weight: 800;
font-size: 1.25rem;
line-height: 1.2;
}
.cf-tsp-role {
color: var(--muted, #475467);
font-size: 1rem;
line-height: 1.4;
text-wrap: pretty;
}
.cf-tsp-sub {
margin: 2rem 0 0.875rem;
font-family: var(--font-display, inherit);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
line-height: 1.2;
letter-spacing: -0.01em;
color: var(--ink, #101828);
text-wrap: balance;
}
.cf-tsp-table {
background: var(--tsp-well);
border-radius: var(--tsp-r);
padding: 0.375rem 1.125rem;
}
.cf-tsp-row {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 8rem) minmax(5.5rem, 8rem);
column-gap: 0.875rem;
align-items: baseline;
padding: 0.75rem 0;
border-top: 1px solid var(--tsp-line);
}
.cf-tsp-row:first-child { border-top: 0; }
.cf-tsp-row.is-head { padding: 0.5rem 0 0.375rem; }
.cf-tsp-row.is-head > [role="columnheader"] {
font-family: var(--font-body, inherit);
font-size: 0.875rem;
font-weight: 700;
letter-spacing: 0.02em;
color: var(--muted, #475467);
}
.cf-tsp-label, .cf-tsp-before, .cf-tsp-after { overflow-wrap: anywhere; }
.cf-tsp-label { font-weight: 700; line-height: 1.35; color: var(--ink, #101828); }
.cf-tsp-before {
font-weight: 600;
line-height: 1.35;
color: var(--muted, #475467);
font-variant-numeric: lining-nums tabular-nums;
}
.cf-tsp-after {
font-family: var(--font-display, inherit);
font-weight: 800;
font-size: 1.125rem;
line-height: 1.25;
color: var(--success, #15803d);
font-variant-numeric: lining-nums tabular-nums;
}
.cf-tsp-cap {
display: none;
margin-bottom: 0.125rem;
font-family: var(--font-body, inherit);
font-size: 0.875rem;
font-weight: 700;
color: var(--muted, #475467);
}
.cf-tsp-sr {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.cf-tsp-cta {
margin-top: 0.25rem;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.cf-tsp-cta .cf-tsp-sub { margin-top: 2.5rem; margin-bottom: 1rem; }
.cf-tsp-cta:first-child .cf-tsp-sub { margin-top: 0; }
.cf-tsp-btn {
--tsp-b: var(--button-bg, var(--cta, #d92d20));
--tsp-b2: var(--button-bg-2, var(--cta-2, #b42318));
position: relative;
display: inline-flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 0.3rem;
width: auto;
min-width: min(100%, 21rem);
max-width: 100%;
min-height: 4.25rem;
margin-top: 0;
padding: 1rem 2.25rem 1.125rem 1.75rem;
border: 0;
border-radius: var(--button-radius, var(--tsp-r));
background: linear-gradient(oklch(from var(--tsp-b) calc(l + 0.02) c h), oklch(from var(--tsp-b2) l c h));
color: var(--button-ink, var(--cta-ink, #ffffff));
font-family: var(--button-font, var(--font-display, inherit));
text-transform: var(--button-case, none);
text-shadow: var(--button-text-shadow, none);
text-align: start;
text-decoration: none;
cursor: pointer;
box-shadow: var(--button-shadow, 0 1px 2px oklch(from var(--tsp-shadow) l c h / 0.32), 0 6px 14px -4px oklch(from var(--tsp-shadow) l c h / 0.4));
transition: transform 0.16s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.16s ease;
-webkit-tap-highlight-color: transparent;
}
.cf-tsp-btn::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
box-shadow: inset 0 -3px 0 oklch(from var(--tsp-b) calc(l - 0.16) c h), inset 0 1px 0 oklch(from var(--tsp-b) calc(l + 0.12) c h / 0.6);
}
.cf-tsp-btn:hover:not(:disabled), .cf-tsp-btn.is-hover:not(:disabled) {
transform: translateY(-2px);
background: linear-gradient(oklch(from var(--tsp-b) calc(l - 0.04) c h), oklch(from var(--tsp-b2) calc(l - 0.05) c h));
box-shadow: var(--button-shadow, 0 2px 3px oklch(from var(--tsp-shadow) l c h / 0.34), 0 10px 20px -6px oklch(from var(--tsp-shadow) l c h / 0.45));
}
.cf-tsp-btn:active:not(:disabled), .cf-tsp-btn.is-active:not(:disabled) {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--tsp-b) calc(l - 0.08) c h), oklch(from var(--tsp-b2) calc(l - 0.09) c h));
box-shadow: var(--button-shadow, 0 1px 1px oklch(from var(--tsp-shadow) l c h / 0.3));
}
.cf-tsp-btn:active:not(:disabled)::before, .cf-tsp-btn.is-active:not(:disabled)::before {
box-shadow: inset 0 -1px 0 oklch(from var(--tsp-b) calc(l - 0.16) c h), inset 0 2px 4px oklch(from var(--tsp-b) calc(l - 0.22) c h / 0.45);
}
.cf-tsp-btn:focus-visible {
outline: 3px solid var(--field-focus, var(--accent, #2563eb));
outline-offset: 3px;
}
.cf-tsp-btn:disabled {
cursor: not-allowed;
background: var(--secondary, #e8ebf2);
color: var(--secondary-ink, #101828);
text-shadow: none;
box-shadow: none;
transform: none;
}
.cf-tsp-btn:disabled::before {
box-shadow: var(--button-2-shadow, var(--shadow-sm));
}
.cf-tsp-btn-label {
font-weight: var(--button-weight, 800);
font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem);
line-height: 1.15;
letter-spacing: -0.01em;
text-wrap: balance;
}
.cf-tsp-btn-sub {
font-family: var(--font-body, inherit);
font-weight: 600;
font-size: 0.9375rem;
line-height: 1.3;
text-transform: none;
font-variant-numeric: lining-nums;
text-wrap: pretty;
}
.cf-tsp-assure {
margin: 0.875rem 0 0;
text-align: start;
color: var(--muted, #475467);
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.45;
text-wrap: pretty;
}
.cf-tsp-assure-icon {
display: inline-block;
width: 1.1em;
height: 1.1em;
vertical-align: -0.2em;
margin-inline-end: 0.4em;
color: var(--success, #15803d);
}
@container (max-width: 30rem) {
.cf-tsp-row {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
grid-template-areas: "label label" "before after";
row-gap: 0.375rem;
}
.cf-tsp-row.is-head { display: none; }
.cf-tsp-row:nth-child(2) { border-top: 0; }
.cf-tsp-label { grid-area: label; }
.cf-tsp-before { grid-area: before; }
.cf-tsp-after { grid-area: after; }
.cf-tsp-cap { display: block; }
.cf-tsp-qicon { width: 2.125rem; height: 2.125rem; }
.cf-tsp-cta { align-items: stretch; }
.cf-tsp-btn {
width: 100%;
min-width: 0;
padding: 1rem 1.375rem 1.125rem;
}
.cf-tsp-cta .cf-tsp-sub { margin-top: 2rem; }
}
@media (max-width: 56rem) {
.cf-tsp-stage { grid-template-columns: minmax(0, 1fr); }
.cf-tsp-media {
grid-column: 1;
grid-row: 1;
align-self: start;
min-height: 0;
aspect-ratio: 4 / 5;
max-height: 36rem;
}
.cf-tsp-plate { inset: -0.75rem 2rem 2rem -0.75rem; }
.cf-tsp-card {
grid-column: 1;
grid-row: 2;
margin: -5rem 0.5rem 0;
}
}
@media (prefers-reduced-motion: reduce) {
.cf-tsp-btn { transition: none; }
.cf-tsp-btn:hover:not(:disabled), .cf-tsp-btn.is-hover:not(:disabled),
.cf-tsp-btn:active:not(:disabled), .cf-tsp-btn.is-active:not(:disabled) { transform: none; }
}
`;
pieces/proof/testimonial-spotlight/specimen.tsx 40 lines
import __studioImage129a8896 from "../assets/c527beb10021ef61.webp";
import * as React from "react";
import { TestimonialSpotlight } from "../testimonial-spotlight";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
type SpotlightState = "default" | "hover" | "active" | "disabled";
export const states = ["default", "hover", "active", "disabled"];
export default function TestimonialSpotlightSpecimen({ state = "default" }: { state?: SpotlightState }) {
const sample = defaults.sample;
return (
<TestimonialSpotlight
state={state}
photoImage={slot(
"scene",
__studioImage129a8896
)}
photoAlt="Maya Bennett smiling at her desk beside her open laptop"
photoPosition="45% 28%"
rating={5}
result="My funnel finally had a clear plan."
highlight="a clear plan"
quote="The guide showed me exactly which pages I needed. The workbook got my headline written in one sitting, and the checklist caught two broken links before I launched."
name="Maya Bennett"
role="Independent consultant · Toronto"
statsHeading="What changed in one weekend"
stats={[
{ label: "Funnel pages mapped", before: "0", after: "4" },
{ label: "Headline written", before: "3 months stuck", after: "1 sitting" },
{ label: "Broken links at launch", before: "2 unnoticed", after: "0" },
]}
actionHeading="Map your first funnel this weekend"
actionLabel="Send Me The Kit"
actionSublabel={`${sample.price} · one payment, yours to keep`}
reassurance={sample.guarantee}
/>
);
}
| Name | Type | Details |
|---|---|---|
result OptionalTestimonialSpotlight |
React.ReactNode |
|
highlight OptionalTestimonialSpotlight |
string |
|
quote OptionalTestimonialSpotlight |
React.ReactNode |
|
name OptionalTestimonialSpotlight |
string |
|
role OptionalTestimonialSpotlight |
string |
|
photoImage OptionalTestimonialSpotlight |
string |
|
photoAlt OptionalTestimonialSpotlight |
string |
|
photoPosition OptionalTestimonialSpotlight |
string |
|
rating OptionalTestimonialSpotlight |
number |
|
statsHeading OptionalTestimonialSpotlight |
string |
|
stats OptionalTestimonialSpotlight |
TestimonialSpotlightStat[] |
|
actionHeading OptionalTestimonialSpotlight |
string |
|
actionLabel OptionalTestimonialSpotlight |
string |
|
actionSublabel OptionalTestimonialSpotlight |
string |
|
reassurance OptionalTestimonialSpotlight |
string |
|
href OptionalTestimonialSpotlight |
string |
|
onAction OptionalTestimonialSpotlight |
() => void |
|
disabled OptionalTestimonialSpotlight |
boolean |
|
state OptionalTestimonialSpotlight |
"default" | "hover" | "active" | "disabled" |
|
copy OptionalTestimonialSpotlight |
TestimonialSpotlightCopy |
|
className OptionalTestimonialSpotlight |
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-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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
c527beb10021ef61.webp
image/webp · 91.8 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB