Match Meter Rescue 1
A warm, real-deadline donation appeal: a rescue scene over a solid band, a thick meter showing the real total matched so far against the cap with the real end date, and one cue to the donation 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 233 characters
- Every gift to Tollcross before 31 December is doubled, up to $20,000. So far $12,400 has been matched. Your $25 becomes $50: food, vet checks and a warm kennel while our dogs wait for a home. Double your gift before the match closes.
- Headline 31 characters
- Every gift doubled until 31 Dec
- Description 22 characters
- Match ends 31 December
- Button 10 characters
- Donate Now
What it is for
- Angle
- real deadline
- Temperature
- warm
- Archetype
- match meter
- Sends people to
- donation page
- Words on the image
- At most 20
Use it in a prompt
Make the ads/match-meter-rescue 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/match-meter-rescue.tsx. - Import it and pass your copy and images (Props tab):
import { MatchMeterRescue } from "@/components/funneldna/ads/match-meter-rescue"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/match-meter-rescue/component.tsx 187 lines
// archetype: match-meter
// When to use: A warm, real-deadline donation appeal: a rescue scene over a solid band, a thick meter showing the real total matched so far against the cap with the real end date, and one cue to the donation page.
import * as React from "react"
import { Clock } from "lucide-react"
import { AdFrame, AdHeadline, Cue, LogoMark, type AdFormat } from "../fx/ad-kit"
import { Texture } from "../fx/fx"
import noise from "../fx/textures/noise"
/**
* Match meter: a generated `scene` fills the top of the frame (left half on landscape). Beneath it a solid band carries
* the appeal with one marker swipe on the key phrase, then the hero device: a thick bevelled bar filled in the accent
* fill up to the share of the cap already matched, with the matched total and the real end date on one line above it.
* The cue sits under the meter. The logo sits top left on a small solid band chip so it reads over any photo.
* Warm · real deadline → donation page.
* Truth: `raised`, `cap` and `endsOn` are the real, current match terms copied from the donation page. Without all
* three the meter does not render and only the appeal and cue show; nothing is ever estimated or invented.
*/
export type MatchMeterRescueProps = {
format?: AdFormat
/** The appeal, 12 words or fewer. A "\n" forces a break. */
headline?: string
/** One phrase inside `headline` that gets the marker swipe. Empty: none. */
highlight?: string
/** Real amount matched so far, in whole currency units. Needed for the meter: empty hides it. */
raised?: number
/** Real match cap, in whole currency units. Needed for the meter: empty hides it. */
cap?: number
/** The real date the match ends, as the donation page writes it ("31 Dec"). Needed for the meter: empty hides it. */
endsOn?: string
/** Currency symbol set before both amounts. */
currency?: string
/** The meter line. {raised} and {cap} are replaced with the formatted amounts; {raised} is set large. */
meterLabel?: string
/** The end line beside the meter. {date} is replaced with `endsOn`. */
endsLabel?: string
/** The donation page button's words. */
cue?: string
/** One short line inside the cue under its label. Empty: none. */
cueNote?: string
/** Photo above the band (slot "scene"): the moment the gift pays for. */
scene?: string
/** Alt text for the scene. */
sceneAlt?: string
logo?: string
brand?: string
}
export const formats: AdFormat[] = ["square", "portrait", "story", "landscape"]
export const lead = "portrait" satisfies AdFormat
export const wordCap = 20
export function MatchMeterRescue({
format = "portrait",
headline = "Give before the match ends and your gift goes twice as far.",
highlight = "",
raised,
cap,
endsOn = "",
currency = "$",
meterLabel = "{raised} of {cap} matched",
endsLabel = "Match ends {date}",
cue = "Double my gift",
cueNote = "",
scene = "",
sceneAlt = "",
logo = "",
brand = "",
}: MatchMeterRescueProps) {
const showMeter =
typeof raised === "number" && typeof cap === "number" && cap > 0 && raised >= 0 && Boolean(endsOn)
const share = showMeter ? Math.min(1, Math.max(0, (raised as number) / (cap as number))) : 0
const fill = share > 0 ? Math.max(share, 0.03) : 0
const line = showMeter ? meterLabel.replace("{cap}", money(cap as number, currency)) : ""
const at = line.indexOf("{raised}")
const ends = endsLabel.replace("{date}", endsOn)
return (
<AdFrame format={format} className="fd-match">
<style href="fd-match" precedence="default">{CSS}</style>
<div className="fd-match__photo">
{scene ? <img src={scene} alt={sceneAlt} /> : null}
</div>
<div className="fd-match__panel">
<Texture src={noise} tone="band-ink" opacity={0.05} />
<div className="fd-match__body">
<AdHeadline as="h1" text={headline} highlight={highlight} mark="swipe" className="fd-match__h" />
{showMeter ? (
<div className="fd-match__meter">
<p className="fd-match__row">
<span className="fd-match__amount">
{at < 0 ? line : (
<>
{line.slice(0, at)}
<b>{money(raised as number, currency)}</b>
{line.slice(at + "{raised}".length)}
</>
)}
</span>
<span className="fd-match__ends">
<Clock className="fd-match__clock" size="0.9em" strokeWidth={2.5} aria-hidden />
{ends}
</span>
</p>
<div className="fd-match__track" aria-hidden>
<span className="fd-match__fill" style={{ width: `${fill * 100}%` }} />
</div>
</div>
) : null}
<Cue note={cueNote} className="fd-match__cue">{cue}</Cue>
</div>
</div>
<div className="fd-match__logo">
<LogoMark src={logo} brand={brand} />
</div>
</AdFrame>
)
}
/** Whole-unit amount with the currency symbol and thousands separators ("$12,400"). */
function money(n: number, currency: string) {
return `${currency}${Math.round(n).toLocaleString("en-US")}`
}
const CSS = `
.fd-match{background:var(--band)}
.fd-match__photo{position:absolute;left:0;top:0;width:100%;overflow:hidden;background:color-mix(in oklch,var(--band-ink) 12%,var(--band))}
.fd-match__photo img{width:100%;height:100%;object-fit:cover;object-position:50% 42%}
.fd-match__panel{position:absolute;overflow:hidden;background:var(--band);color:var(--band-ink)}
.fd-match__body{position:absolute;z-index:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.fd-match .fd-match__h{width:100%;color:var(--band-ink);line-height:1.12}
.fd-match__meter{width:100%;display:flex;flex-direction:column}
.fd-match__row{margin:0;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;column-gap:24px;row-gap:12px;line-height:1.1;font-weight:600;color:var(--band-ink);text-wrap:pretty}
.fd-match__amount{line-height:1}
.fd-match__amount b{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:1.65em;line-height:1;letter-spacing:-0.02em;font-variant-numeric:tabular-nums}
.fd-match__ends{font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.fd-match__clock{display:inline-block;vertical-align:-0.12em;margin-inline-end:.3em}
.fd-match__track{position:relative;width:100%;overflow:hidden;border-radius:999px;background:color-mix(in oklch,var(--band-ink) 14%,var(--band));box-shadow:inset 0 2px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.2)}
.fd-match__fill{position:absolute;left:0;top:0;bottom:0;border-radius:inherit;background:linear-gradient(oklch(from var(--accent-fill,var(--accent)) calc(l + 0.05) c h),oklch(from var(--accent-fill,var(--accent)) calc(l - 0.05) c h));box-shadow:inset 0 2px 0 oklch(from var(--accent-fill,var(--accent)) calc(l + 0.14) c h / 0.6),inset 0 -4px 0 oklch(from var(--accent-fill,var(--accent)) calc(l - 0.14) c h)}
.fd-match__logo{position:absolute;z-index:2;display:flex;padding:14px 20px;background:var(--band);color:var(--band-ink);border-radius:var(--radius,12px);box-shadow:var(--shadow-sm,0 1px 2px oklch(0.22 0.03 260 / 0.25))}
.fd-match__logo .fd-ad-logo{color:var(--band-ink)}
.fd-match[data-format="square"] .fd-match__photo{height:420px}
.fd-match[data-format="square"] .fd-match__panel{left:0;right:0;top:420px;bottom:0}
.fd-match[data-format="square"] .fd-match__body{left:64px;right:64px;top:44px;bottom:56px;gap:28px}
.fd-match[data-format="square"] .fd-match__h{font-size:72px}
.fd-match[data-format="square"] .fd-match__meter{gap:14px;margin-top:14px}
.fd-match[data-format="square"] .fd-match__row{font-size:30px}
.fd-match[data-format="square"] .fd-match__track{height:48px}
.fd-match[data-format="square"] .fd-match__cue{--cue-fs:40px}
.fd-match[data-format="square"] .fd-match__logo{left:56px;top:56px}
.fd-match[data-format="portrait"] .fd-match__photo{height:640px}
.fd-match[data-format="portrait"] .fd-match__panel{left:0;right:0;top:640px;bottom:0}
.fd-match[data-format="portrait"] .fd-match__body{left:64px;right:64px;top:48px;bottom:64px;gap:34px}
.fd-match[data-format="portrait"] .fd-match__h{font-size:80px}
.fd-match[data-format="portrait"] .fd-match__meter{gap:16px;margin-top:12px}
.fd-match[data-format="portrait"] .fd-match__row{font-size:32px}
.fd-match[data-format="portrait"] .fd-match__track{height:56px}
.fd-match[data-format="portrait"] .fd-match__cue{--cue-fs:44px}
.fd-match[data-format="portrait"] .fd-match__logo{left:56px;top:56px}
.fd-match[data-format="story"] .fd-match__photo{height:950px}
.fd-match[data-format="story"] .fd-match__photo img{object-position:50% 46%}
.fd-match[data-format="story"] .fd-match__panel{left:0;right:0;top:950px;bottom:0}
.fd-match[data-format="story"] .fd-match__body{left:64px;right:64px;top:30px;bottom:var(--safe-bottom);gap:30px;justify-content:flex-end}
.fd-match[data-format="story"] .fd-match__h{font-size:80px}
.fd-match[data-format="story"] .fd-match__meter{gap:16px;margin-top:16px}
.fd-match[data-format="story"] .fd-match__row{font-size:34px}
.fd-match[data-format="story"] .fd-match__track{height:64px}
.fd-match[data-format="story"] .fd-match__cue{--cue-fs:44px}
.fd-match[data-format="story"] .fd-match__logo{left:64px;top:calc(var(--safe-top) + 16px)}
.fd-match[data-format="landscape"] .fd-match__photo{width:520px;height:100%}
.fd-match[data-format="landscape"] .fd-match__photo img{object-position:50% 45%}
.fd-match[data-format="landscape"] .fd-match__panel{left:520px;right:0;top:0;bottom:0}
.fd-match[data-format="landscape"] .fd-match__body{left:48px;right:48px;top:44px;bottom:44px;gap:22px}
.fd-match[data-format="landscape"] .fd-match__h{font-size:56px}
.fd-match[data-format="landscape"] .fd-match__meter{gap:12px;margin-top:10px}
.fd-match[data-format="landscape"] .fd-match__row{font-size:23px;flex-direction:column;align-items:flex-start;gap:12px}
.fd-match[data-format="landscape"] .fd-match__amount b{font-size:1.45em;display:inline-block;line-height:0.78;padding-top:0.365em;margin-top:-0.255em;margin-bottom:0.11em}
.fd-match[data-format="landscape"] .fd-match__track{height:36px}
.fd-match[data-format="landscape"] .fd-match__fill{box-shadow:inset 0 2px 0 oklch(from var(--accent-fill,var(--accent)) calc(l + 0.14) c h / 0.6),inset 0 -3px 0 oklch(from var(--accent-fill,var(--accent)) calc(l - 0.14) c h)}
.fd-match[data-format="landscape"] .fd-match__cue{--cue-fs:28px}
.fd-match[data-format="landscape"] .fd-match__logo{left:44px;top:44px;padding:10px 16px}
`
export default MatchMeterRescue
pieces/ads/match-meter-rescue/specimen.tsx 50 lines
import __studioImagef454aa6c from "../assets/fd4e23a8c3ce799f.webp";
import * as React from "react"
import { slot } from "../../slots"
import { MatchMeterRescue, formats } from "../match-meter-rescue"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Tollcross Animal Rescue, a small dog shelter running a year-end matched-giving appeal.
// The scene is a generated illustration; the match totals and end date are sample terms for this invented charity.
const tollcrossLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 56"><g fill="currentColor"><ellipse cx="27" cy="37" rx="13" ry="11"/><circle cx="12" cy="22" r="5"/><circle cx="21" cy="12" r="5"/><circle cx="33" cy="12" r="5"/><circle cx="42" cy="22" r="5"/><text x="60" y="38" font-family="Helvetica, Arial, sans-serif" font-size="28" font-weight="700" letter-spacing="-.4">tollcross rescue</text></g></svg>`,
)
export const states = ["square", "portrait", "story", "landscape"]
export const copy = {
platform: "meta",
primary_text: "Every gift to Tollcross before 31 December is doubled, up to $20,000. So far $12,400 has been matched. Your $25 becomes $50: food, vet checks and a warm kennel while our dogs wait for a home. Double your gift before the match closes.",
headline: "Every gift doubled until 31 Dec",
description: "Match ends 31 December",
cta: "Donate Now",
}
// Sample brand (evergreen palette, expressive fonts, invented): previews, the pack and the site show this ad in it by default.
export const sampleBrand = {
name: "Tollcross Animal Rescue",
theme: "light",
background: "#f4f8f5",
colors: ["#1f7a4d", "#d9822b"],
fonts: ["Bricolage Grotesque", "Figtree"],
band: "#dcefe3",
}
export default function MatchMeterRescueSpecimen({ state = "portrait" }: { state?: string }) {
return (
<MatchMeterRescue
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
headline={"Give before\nNew Year:\nevery gift doubled."}
highlight="every gift doubled."
raised={12400}
cap={20000}
endsOn="31 Dec"
cue="Double my gift"
scene={slot("scene", __studioImagef454aa6c)}
sceneAlt="A rescue dog looking out from a blanket in a quiet kennel"
logo={slot("logo", tollcrossLogo)}
brand="Tollcross Animal Rescue"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalMatchMeterRescue |
AdFormat |
Default "portrait"
|
headline OptionalMatchMeterRescue |
string |
Default "Give before the match ends and your gift goes twice as far."
|
highlight OptionalMatchMeterRescue |
string |
Default ""
|
raised OptionalMatchMeterRescue |
number |
|
cap OptionalMatchMeterRescue |
number |
|
endsOn OptionalMatchMeterRescue |
string |
Default ""
|
currency OptionalMatchMeterRescue |
string |
Default "$"
|
meterLabel OptionalMatchMeterRescue |
string |
Default "{raised} of {cap} matched"
|
endsLabel OptionalMatchMeterRescue |
string |
Default "Match ends {date}"
|
cue OptionalMatchMeterRescue |
string |
Default "Double my gift"
|
cueNote OptionalMatchMeterRescue |
string |
Default ""
|
scene OptionalMatchMeterRescue |
string |
Default ""
|
sceneAlt OptionalMatchMeterRescue |
string |
Default ""
|
logo OptionalMatchMeterRescue |
string |
Default ""
|
brand OptionalMatchMeterRescue |
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.
--display-weight- Headlines: weight, letter case and tracking.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
logo- The brand’s logo mark.
scene- A wide atmosphere photo behind or beside the copy.
-
bec2a41897a3364d.webp
image/webp · 51.2 KB
-
fd4e23a8c3ce799f.webp
image/webp · 108 KB