Testimonial Pull Quote 1
A customer's verbatim words set huge with a hanging accent quote mark under a full-width photo of their finished job, closed by the page's own button; warm proof that brings a stalled reader back to the sales page.
The sample's post copy
Sample brand, fictional copy: the pattern to follow, written for the person's real offer.
- Platform 4 characters
- meta
- Primary text 253 characters
- “They quoted Tuesday and the fence was up by Friday.” Jo Farrant, Millbrook Greenpost Fencing builds timber fences across the Millbrook valley, with a written price before a single post goes in. Get your free written quote. It takes about two minutes.
- Headline 24 characters
- Free written fence quote
- Description 13 characters
- No obligation
- Button 9 characters
- Get Quote
What it is for
- Words on the image
- At most 20
Use it in a prompt
Make the ads/testimonial-pull-quote ad from the FunnelDNA library in my brand, at every size (square, portrait, story, landscape), with post copy written the way the sample's is. Follow the ads skill. Ask me for the offer, images and facts 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/ads/testimonial-pull-quote.tsx. - Import it and pass your copy and images (Props tab):
import { TestimonialPullQuote } from "@/components/funneldna/ads/testimonial-pull-quote"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/testimonial-pull-quote/component.tsx 174 lines
// archetype: pull-quote
// When to use: A customer's verbatim words set huge with a hanging accent quote mark under a full-width photo of their finished job, closed by the page's own button; warm proof that brings a stalled reader back to the sales page.
import * as React from "react";
import { Star } from "lucide-react";
import { AdFrame, Cue, LogoMark, type AdFormat } from "../fx/ad-kit";
import { Pattern } from "../fx/fx";
/**
* Pull quote: the photo leads at the full content width, the customer's own line sits under it set large with its
* opening mark hung to the photo's edge, then name and town, then the cue. The logo sits small in the top-left corner.
* Portrait and story stack (the photo takes the spare height), square stacks on a wide crop, landscape sets the photo
* as a tall column beside the copy.
* Truth: the quote and name are verbatim from the page; the photo shows the job (or the customer's own photo), never a
* generated face presented as the customer.
*/
export type TestimonialPullQuoteProps = {
format?: AdFormat; // "square" | "portrait" | "story" | "landscape"
/** The customer's verbatim words exactly as the page shows them, 12 words or fewer; curly quote marks are added. */
quote?: string;
/** One phrase inside the quote set in the accent colour. */
highlight?: string;
/** The customer's name, exactly as on the page. */
name?: string;
/** Role or town, set after the name. */
role?: string;
/** 1–5 stars, drawn only when the page supplies a rating. */
rating?: number;
/** Accessible label for the stars; "{rating}" is replaced with the number. */
ratingLabel?: string;
/** item-1 slot: the customer's own photo, or their finished job. */
portrait?: string;
portraitAlt?: string;
/** The page button's exact words. */
cue?: string;
/** The offer term under the cue label (e.g. "Free written quote"). Empty: none. */
cueNote?: string;
/** logo slot. */
logo?: string;
/** Brand name: the logo's alt text, and the wordmark when no logo image is supplied. */
brand?: string;
className?: string;
};
export const formats: AdFormat[] = ["square", "portrait", "story", "landscape"];
export const lead = "portrait" satisfies AdFormat;
export const wordCap = 20;
export function TestimonialPullQuote({
format = "portrait",
quote = "",
highlight = "",
name = "",
role = "",
rating,
ratingLabel = "{rating} out of 5 stars",
portrait = "",
portraitAlt = "",
cue = "Get started",
cueNote = "",
logo = "",
brand = "",
className = "",
}: TestimonialPullQuoteProps) {
const text = cleanQuote(quote);
const stars = typeof rating === "number" && rating > 0 ? Math.min(5, Math.round(rating)) : 0;
const hasPhoto = Boolean(portrait);
const hasAttr = Boolean(name || role || stars > 0);
const root = ["cf-tpq", hasPhoto ? "cf-tpq--photo" : "", className].filter(Boolean).join(" ");
return (
<AdFrame format={format} className={root}>
<style href="cf-tpq" precedence="default">{CSS}</style>
<div className="cf-tpq__fx" aria-hidden="true">
<Pattern name="rings" />
</div>
<LogoMark src={logo} brand={brand} className="cf-tpq__logo" />
{hasPhoto ? <img className="cf-tpq__photo" src={portrait} alt={portraitAlt} /> : null}
{text ? (
<blockquote className="cf-tpq__quote">
<p data-ad-headline="">
<QuoteText text={text} highlight={highlight} />
</p>
</blockquote>
) : null}
{hasAttr ? (
<p className="cf-tpq__attr">
{stars > 0 ? (
<span className="cf-tpq__stars" role="img" aria-label={ratingLabel.replace("{rating}", String(stars))}>
{Array.from({ length: stars }, (_, i) => (
<Star key={i} aria-hidden="true" strokeWidth={2.5} fill="currentColor" />
))}
</span>
) : null}
{name ? <b className="cf-tpq__name">{name}</b> : null}
{role ? <span className="cf-tpq__role">{role}</span> : null}
</p>
) : null}
<Cue note={cueNote || undefined} className="cf-tpq__cue">{cue}</Cue>
</AdFrame>
);
}
export default TestimonialPullQuote;
// The quote with its opening mark hung to the photo's edge and the closing mark tied to the last word.
function QuoteText({ text, highlight }: { text: string; highlight: string }) {
const at = highlight ? text.indexOf(highlight) : -1;
const body =
at < 0 ? (
text
) : (
<>
{text.slice(0, at)}
<span className="cf-tpq__hl">{highlight}</span>
{text.slice(at + highlight.length)}
</>
);
return (
<>
<span className="cf-tpq__mark cf-tpq__open" aria-hidden="true">“</span>
{body}
<span className="cf-tpq__mark" aria-hidden="true">”</span>
</>
);
}
// Strip any quote marks the caller typed so the piece's own marks are the only ones.
function cleanQuote(value: string) {
return value.trim().replace(/^["'“‘]+|["'”’]+$/g, "").trim();
}
// Per-format sizes are fixed px on fixed canvases (AdFrame sizes each format exactly). The fx mask reads only alpha,
// so it is drawn from the ink token (opaque centre, fully transparent edge). The photo flexes to take the spare
// height, so nothing leaves an empty band.
const CSS = `
.cf-tpq.fd-ad{--pad-t:64px;--pad-b:64px;--qs:84px;--name:36px;--role:30px;--star:34px;--g-photo:32px;--g-quote:44px;--g-attr:24px;--g-cue:44px;--fx-at:100% 100%;--fx-r:560px;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;padding:var(--pad-t) var(--ad-m) var(--pad-b);background:var(--surface);color:var(--ink)}
.cf-tpq__fx{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;-webkit-mask-image:radial-gradient(circle var(--fx-r) at var(--fx-at),var(--ink) 0%,oklch(from var(--ink) l c h / 0) 100%);mask-image:radial-gradient(circle var(--fx-r) at var(--fx-at),var(--ink) 0%,oklch(from var(--ink) l c h / 0) 100%)}
.cf-tpq__logo,.cf-tpq__photo,.cf-tpq__quote,.cf-tpq__attr,.cf-tpq__cue{position:relative;z-index:1}
.cf-tpq__logo{--logo-h:60px;align-self:flex-start;color:var(--ink)}
.cf-tpq__photo{display:block;flex:1 1 0;min-height:0;width:100%;margin-top:var(--g-photo);object-fit:cover;object-position:50% 58%;border-radius:var(--radius,12px)}
.cf-tpq__quote{margin:var(--g-quote) 0 0;padding:0 0 0 .44em;font-size:var(--qs)}
.cf-tpq__quote p{margin:0;font-family:var(--font-display);font-size:1em;font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.025em);line-height:1.04;color:var(--ink);text-wrap:balance}
.cf-tpq__mark,.cf-tpq__hl{color:var(--accent)}
.cf-tpq__open{display:inline-block;width:.44em;margin-inline-start:-.44em}
.cf-tpq__attr{margin:var(--g-attr) 0 0;padding-inline-start:calc(var(--qs) * .44);display:flex;flex-wrap:wrap;align-items:center;column-gap:.4em;row-gap:4px;font-family:var(--font-body);font-size:var(--name);line-height:1.2;text-wrap:pretty}
.cf-tpq__stars{display:inline-flex;gap:6px;margin-inline-end:.2em;color:var(--accent-fill,var(--accent))}
.cf-tpq__stars svg{width:var(--star);height:var(--star);flex:none}
.cf-tpq__name{font-weight:800;color:var(--ink)}
.cf-tpq__role{font-size:var(--role);font-weight:500;color:var(--muted)}
.cf-tpq__name + .cf-tpq__role::before{content:"·";margin-inline-end:.4em}
.cf-tpq__cue{align-self:flex-start;margin-top:var(--g-cue);--cue-fs:44px}
.cf-tpq:not(.cf-tpq--photo) .cf-tpq__quote{margin-top:auto}
.cf-tpq[data-format="square"]{--qs:76px;--name:32px;--role:28px;--star:30px;--g-photo:28px;--g-quote:36px;--g-attr:20px;--g-cue:36px;--fx-r:480px}
.cf-tpq[data-format="square"] .cf-tpq__photo{object-position:50% 62%}
.cf-tpq[data-format="portrait"]{--fx-r:560px}
.cf-tpq[data-format="story"]{--pad-t:calc(var(--safe-top) + 12px);--pad-b:360px;--qs:92px;--name:38px;--role:32px;--star:38px;--g-photo:24px;--g-quote:40px;--g-attr:20px;--g-cue:40px;--fx-r:640px;--fx-at:100% 82%}
.cf-tpq[data-format="story"] .cf-tpq__cue{--cue-fs:50px;align-self:stretch;background-color:var(--button-bg,var(--cta))}
.cf-tpq[data-format="story"] .cf-tpq__cue small{display:block;margin-top:0}
.cf-tpq[data-format="landscape"]{--pad-t:48px;--pad-b:48px;--qs:64px;--name:26px;--role:22px;--star:24px;--g-quote:28px;--g-attr:18px;--fx-r:420px}
.cf-tpq--photo[data-format="landscape"]{padding-left:528px}
.cf-tpq[data-format="landscape"] .cf-tpq__logo{--logo-h:56px}
.cf-tpq[data-format="landscape"] .cf-tpq__photo{position:absolute;left:48px;top:48px;bottom:48px;width:440px;height:auto;margin:0;object-position:50% 50%}
.cf-tpq[data-format="landscape"] .cf-tpq__cue{--cue-fs:28px;margin-top:auto}
.cf-tpq--photo[data-format="landscape"] .cf-tpq__attr{margin-bottom:24px}
`;
pieces/ads/testimonial-pull-quote/specimen.tsx 52 lines
import __studioImage8c50b7b2 from "../assets/c6dbbb5a0bc17297.webp";
import * as React from "react";
import TestimonialPullQuote, { formats } from "../testimonial-pull-quote";
import type { AdFormat } from "../../fx/ad-kit";
import { slot } from "../../slots";
// Sample brand (fictional): Greenpost Fencing, a timber fence builder in the Millbrook valley. The photo is a
// generated illustration of a finished job, not a real customer. The wordmark (fence icon + name) is inline SVG.
const greenpostLogo =
"data:image/svg+xml," +
encodeURIComponent(
`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 244 60'><g fill='currentColor'><path d='M4 18 10 10 16 18V56H4Z'/><path d='M20 12 27 4 34 12V56H20Z'/><path d='M38 18 44 10 50 18V56H38Z'/><rect x='0' y='26' width='54' height='6'/><rect x='0' y='42' width='54' height='6'/><text x='64' y='34' font-family='Helvetica, Arial, sans-serif' font-size='32' font-weight='800' letter-spacing='-0.6'>Greenpost</text><text x='65' y='55' font-family='Helvetica, Arial, sans-serif' font-size='15' font-weight='700' letter-spacing='4.6'>FENCING</text></g></svg>`,
);
export const states = ["square", "portrait", "story", "landscape"];
export const copy = {
platform: "meta",
primary_text:
"“They quoted Tuesday and the fence was up by Friday.” Jo Farrant, Millbrook\n\nGreenpost Fencing builds timber fences across the Millbrook valley, with a written price before a single post goes in.\n\nGet your free written quote. It takes about two minutes.",
headline: "Free written fence quote",
description: "No obligation",
cta: "Get Quote",
};
// Sample brand (olive-ochre palette, invented): previews, the pack and the site show this ad in it by default.
export const sampleBrand = {
name: "Greenpost Fencing",
theme: "light",
background: "#f7f8f2",
colors: ["#556b1f", "#c7922c"],
fonts: ["Bricolage Grotesque", "Figtree"],
button: "soft",
}
export default function TestimonialPullQuoteSpecimen({ state = "portrait" }: { state?: string }) {
return (
<TestimonialPullQuote
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
quote="They quoted Tuesday and the fence was up by Friday."
highlight="up by Friday"
name="Jo Farrant"
role="Millbrook"
portrait={slot("item-1", __studioImage8c50b7b2)}
portraitAlt="Jo's new timber fence and gate in Millbrook"
cue="Get my quote"
cueNote="Free written quote"
logo={slot("logo", greenpostLogo)}
brand="Greenpost Fencing"
/>
);
}
| Name | Type | Details |
|---|---|---|
format OptionalTestimonialPullQuote |
AdFormat |
Default "portrait"
|
quote OptionalTestimonialPullQuote |
string |
Default ""
|
highlight OptionalTestimonialPullQuote |
string |
Default ""
|
name OptionalTestimonialPullQuote |
string |
Default ""
|
role OptionalTestimonialPullQuote |
string |
Default ""
|
rating OptionalTestimonialPullQuote |
number |
|
ratingLabel OptionalTestimonialPullQuote |
string |
Default "{rating} out of 5 stars"
|
portrait OptionalTestimonialPullQuote |
string |
Default ""
|
portraitAlt OptionalTestimonialPullQuote |
string |
Default ""
|
cue OptionalTestimonialPullQuote |
string |
Default "Get started"
|
cueNote OptionalTestimonialPullQuote |
string |
Default ""
|
logo OptionalTestimonialPullQuote |
string |
Default ""
|
brand OptionalTestimonialPullQuote |
string |
Default ""
|
className OptionalTestimonialPullQuote |
string |
Default ""
|
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- Main CTA button: background, ink, font, weight, case, radius 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.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
logo- The brand’s logo mark.
-
c6dbbb5a0bc17297.webp
image/webp · 313 KB