Color Block Quotes 1
Colour-block quotes: two big customer quotes fanned as saturated colour cards, then one proof line and a link to more stories, so the visitor hears the promise in a customer's own words before the next ask.
Use it in a prompt
Use proof/color-block-quotes 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/color-block-quotes.tsx. - Import it and pass your copy and images (Props tab):
import { ColorBlockQuotes } from "@/components/funneldna/proof/color-block-quotes"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/color-block-quotes/component.tsx 208 lines
// layout: card-fan
// Colour-block quotes: two big customer quotes fanned as saturated colour cards, then one proof line and a link to more stories, so the visitor hears the promise in a customer's own words before the next ask.
import React from "react";
import { Quote as QuoteIcon } from "lucide-react";
import { Texture, FX_HOST } from "../fx/fx";
import leak from "../fx/textures/leak";
export type ColorBlockQuote = {
/** The customer's words, without quote marks (the card adds them). */
quote: React.ReactNode;
name?: string;
role?: string;
/** Square logo or portrait; the person's initials show when absent. */
avatarImage?: string;
avatarAlt?: string;
};
export type ColorBlockQuotesProps = {
/** Optional section headline above the cards. */
headline?: React.ReactNode;
/** Up to two quotes: the first sits on the soft gradient card, the second on the solid accent block. Empty quotes don't render. */
quotes?: ColorBlockQuote[];
/** One proof line under the cards, e.g. "Used by 4,000 studios". Real numbers only. */
metric?: React.ReactNode;
/** Text link to more stories; shows only with an href or onAction. */
linkLabel?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
/** Faint watermark on the gradient card (a transparent customer logo); a large quote mark shows when absent. */
watermarkImage?: string;
/** "band" = strong page band (default), "surface" = light page background. */
tone?: "band" | "surface";
state?: "default" | "hover";
/** Accessible name of the section when there is no headline. */
label?: string;
className?: string;
};
export function ColorBlockQuotes({
headline,
quotes = [],
metric,
linkLabel = "Read more customer stories",
href,
onAction,
watermarkImage,
tone = "band",
state = "default",
label = "Customer stories",
className,
}: ColorBlockQuotesProps) {
const headId = React.useId();
const list = quotes.filter((q) => q && hasContent(q.quote)).slice(0, 2);
const hasMetric = hasContent(metric);
const showLink = Boolean(linkLabel && (href || onAction));
const hasHead = hasContent(headline);
if (!list.length && !hasMetric) return null;
return (
<section
className={["cf-cbq", className].filter(Boolean).join(" ")}
data-tone={tone}
aria-labelledby={hasHead ? headId : undefined}
aria-label={hasHead ? undefined : label}
style={FX_HOST}
>
<style>{CSS}</style>
<Texture src={leak} position="top right" tone="accent-fill" />
<div className="cf-cbq__inner">
{hasHead && (
<h2 id={headId} className="cf-cbq__head">
{headline}
</h2>
)}
{list.length > 0 && (
<div className="cf-cbq__fan" data-count={list.length}>
{list.map((q, i) => {
const wash = i === 0;
const hasWho = Boolean(q.name || q.role);
return (
<figure
key={i}
className={`cf-cbq__card cf-cbq__card--${wash ? "wash" : "solid"}`}
style={{ ["--i" as string]: i } as React.CSSProperties}
data-lift={state === "hover" && i === 0 ? "" : undefined}
>
{wash &&
(watermarkImage ? (
<img className="cf-cbq__mark cf-cbq__mark--img" src={watermarkImage} alt="" aria-hidden="true" />
) : (
<QuoteIcon className="cf-cbq__mark" strokeWidth={2.5} aria-hidden="true" />
))}
<blockquote className="cf-cbq__quote">
<p>
“{q.quote}”
</p>
</blockquote>
{hasWho && (
<figcaption className="cf-cbq__by">
{q.avatarImage ? (
<img className="cf-cbq__avatar" src={q.avatarImage} alt={q.avatarAlt ?? q.name ?? ""} />
) : q.name ? (
<span className="cf-cbq__mono" aria-hidden="true">
{initials(q.name)}
</span>
) : null}
{(q.avatarImage || q.name) && <span className="cf-cbq__rule" aria-hidden="true" />}
<span className="cf-cbq__who">
{q.name && <span className="cf-cbq__name">{q.name}</span>}
{q.role && <span className="cf-cbq__role">{q.role}</span>}
</span>
</figcaption>
)}
</figure>
);
})}
</div>
)}
{(hasMetric || showLink) && (
<div className="cf-cbq__foot" data-first={list.length ? undefined : ""}>
{hasMetric && <p className="cf-cbq__metric">{metric}</p>}
{showLink &&
(href ? (
<a className="cf-cbq__link" href={href} onClick={onAction}>
{linkLabel}
</a>
) : (
<button type="button" className="cf-cbq__link" onClick={onAction}>
{linkLabel}
</button>
))}
</div>
)}
</div>
</section>
);
}
export default ColorBlockQuotes;
function hasContent(v: React.ReactNode): boolean {
if (v === null || v === undefined || v === false) return false;
if (typeof v === "string") return v.trim().length > 0;
return true;
}
function initials(name: string): string {
return name
.split(/\s+/)
.filter(Boolean)
.slice(0, 2)
.map((w) => w.charAt(0))
.join("")
.toUpperCase();
}
const SHADOW_MD =
"var(--shadow-md, 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22), 0 4px 10px -2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.2))";
const SHADOW_LG =
"var(--shadow-lg, 0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22), 0 12px 24px -8px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.32))";
const CSS = `
.cf-cbq{position:relative;overflow:hidden;background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-cbq[data-tone="surface"]{background:var(--surface);color:var(--ink)}
.cf-cbq__inner{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-cbq__head{margin:0 0 clamp(32px,4vw,48px);font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:inherit}
.cf-cbq__fan{--pad:clamp(24px,3vw,32px);--overlap:28px;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:stretch}
.cf-cbq__fan[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.cf-cbq__card{position:relative;isolation:isolate;overflow:hidden;margin:0;display:flex;flex-direction:column;justify-content:space-between;gap:clamp(32px,4vw,48px);min-height:clamp(280px,26vw,360px);padding:var(--pad);border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,${SHADOW_MD});transition:translate .16s ease,rotate .16s ease,box-shadow .16s ease;animation:cf-cbq-rise .45s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:calc(var(--i,0) * .07s)}
.cf-cbq__card--wash{z-index:1;color:var(--ink);background-color:color-mix(in oklch,var(--accent-fill,var(--accent)) 18%,var(--card));background-image:linear-gradient(160deg in oklab,color-mix(in oklch,var(--accent-fill,var(--accent)) 24%,var(--card)),color-mix(in oklch,var(--cta) 12%,var(--card)));border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));rotate:-1.2deg;transform-origin:100% 100%;padding-inline-end:calc(var(--pad) + var(--overlap) + 8px)}
.cf-cbq__fan[data-count="1"] .cf-cbq__card--wash{rotate:none;padding-inline-end:var(--pad)}
.cf-cbq__card--solid{z-index:2;margin-inline-start:calc(var(--overlap) * -1);color:var(--accent-fill-ink,var(--card));background:var(--accent-fill,var(--accent));rotate:1.6deg;transform-origin:0 100%}
.cf-cbq__card[data-lift]{z-index:3;translate:0 -6px;rotate:0deg;box-shadow:${SHADOW_LG}}
@media (hover:hover){.cf-cbq__card:hover{z-index:3;translate:0 -6px;rotate:0deg;box-shadow:${SHADOW_LG}}}
.cf-cbq__mark{position:absolute;z-index:-1;right:-2.5rem;bottom:-3rem;width:20rem;height:20rem;color:var(--ink);opacity:.07;pointer-events:none}
.cf-cbq__mark--img{object-fit:contain;opacity:.1}
.cf-cbq__quote{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(1.3125rem,2.9cqi,2rem);line-height:1.15;color:inherit}
.cf-cbq__quote p{margin:0;text-indent:-.42em;text-wrap:pretty}
.cf-cbq__by{display:flex;align-items:center;gap:16px;min-width:0}
.cf-cbq__avatar{flex:0 0 auto;display:block;width:40px;height:40px;border-radius:8px;object-fit:cover}
.cf-cbq__mono{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;border-radius:999px;font-weight:800;font-size:.875rem;line-height:1;letter-spacing:.02em;background:var(--ink);color:var(--card)}
.cf-cbq__card--solid .cf-cbq__mono{background:var(--accent-fill-ink,var(--card));color:var(--accent-fill,var(--accent))}
.cf-cbq__rule{flex:0 0 1px;align-self:stretch;min-height:32px;background:currentColor;opacity:.25}
.cf-cbq__who{display:flex;flex-direction:column;gap:2px;min-width:0}
.cf-cbq__name{font-weight:800;font-size:1.0625rem;line-height:1.25}
.cf-cbq__role{font-weight:500;font-size:.9375rem;line-height:1.4;text-wrap:pretty}
.cf-cbq__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 32px;margin-top:clamp(32px,4vw,48px)}
.cf-cbq__foot[data-first]{margin-top:0}
.cf-cbq__metric{margin:0;max-width:64ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cf-cbq__metric strong{font-weight:800}
.cf-cbq__link{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;cursor:pointer;font:inherit;font-weight:700;font-size:1.0625rem;color:inherit;text-decoration:underline;text-decoration-thickness:1.5px;text-decoration-color:color-mix(in oklch,currentColor 45%,transparent);text-underline-offset:.18em;border-radius:4px;transition:text-decoration-color .16s ease}
.cf-cbq[data-tone="surface"] .cf-cbq__link{color:var(--link,var(--accent))}
.cf-cbq__link:hover{text-decoration-color:currentColor;text-decoration-thickness:2px}
.cf-cbq__link:focus-visible{outline:3px solid currentColor;outline-offset:4px}
@media (max-width:760px){
.cf-cbq__fan{grid-template-columns:minmax(0,1fr);row-gap:16px}
.cf-cbq__card{rotate:none;min-height:0;gap:32px}
.cf-cbq__card--wash{padding-inline-end:var(--pad)}
.cf-cbq__card--solid{margin-inline-start:0}
.cf-cbq__mark{width:13rem;height:13rem;right:-1.5rem;bottom:-2rem}
.cf-cbq__foot{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){.cf-cbq__card{animation:none;transition:none}.cf-cbq__link{transition:none}}
@keyframes cf-cbq-rise{from{opacity:.82;translate:0 8px}}
`;
pieces/proof/color-block-quotes/specimen.tsx 32 lines
import { ColorBlockQuotes } from "../color-block-quotes";
export const states = ["default", "hover"];
export default function ColorBlockQuotesSpecimen({ state = "default" }: { state?: "default" | "hover" }) {
return (
<ColorBlockQuotes
state={state}
headline="Studios on Kiln & Co. spend their nights at the wheel, not the spreadsheet"
quotes={[
{
quote:
"We used to lose Sunday nights to the firing schedule. Now the kiln queue fills itself and I’m back at the wheel by Monday morning.",
name: "Mara Okafor",
role: "Owner, Fernhill Clay Studio",
},
{
quote: "Class bookings, glaze stock and kiln loads on one screen. The sticky notes are gone.",
name: "Theo Lindqvist",
role: "Studio Manager, Two Hands Pottery",
},
]}
metric={
<>
Used by <strong>4,000</strong> pottery studios, from garage wheels to 40-seat teaching floors.
</>
}
linkLabel="Read more studio stories"
href="#studio-stories"
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalColorBlockQuotes |
React.ReactNode |
|
quotes OptionalColorBlockQuotes |
ColorBlockQuote[] |
Default []
|
metric OptionalColorBlockQuotes |
React.ReactNode |
|
linkLabel OptionalColorBlockQuotes |
string |
Default "Read more customer stories"
|
href OptionalColorBlockQuotes |
string |
|
onAction OptionalColorBlockQuotes |
(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void |
|
watermarkImage OptionalColorBlockQuotes |
string |
|
tone OptionalColorBlockQuotes |
"band" | "surface" |
Default "band"
|
state OptionalColorBlockQuotes |
"default" | "hover" |
Default "default"
|
label OptionalColorBlockQuotes |
string |
Default "Customer stories"
|
className OptionalColorBlockQuotes |
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.
--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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
-
986367d82c360c9a.webp
image/webp · 102 KB