Knockout Numeral Pan 1
One giant real number (a stated cook time, a count) that holds the scene photo inside its strokes, with the promise and offer terms beside or beneath it; a cold big-promise ad that drives a meal-kit or product order 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 264 characters
- Parents at 5 p.m. with nothing defrosted: this one's for you. Every Pottlewick recipe goes from box to plate in 15 minutes. (I know. I didn't believe it either.) Your first box is $35 for 4 dinners and ships free. Pick your recipes tonight and we'll do the rest.
- Headline 29 characters
- Dinner in 15 minutes, tonight
- Description 26 characters
- First box $35 · ships free
- Button 9 characters
- Order Now
What it is for
- Angle
- big promise
- Temperature
- cold
- Archetype
- knockout numeral
- Sends people to
- meal kit order page
- Words on the image
- At most 24
Use it in a prompt
Make the ads/knockout-numeral-pan 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/knockout-numeral-pan.tsx. - Import it and pass your copy and images (Props tab):
import { KnockoutNumeralPan } from "@/components/funneldna/ads/knockout-numeral-pan"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/knockout-numeral-pan/component.tsx 202 lines
// archetype: knockout-numeral
// When to use: One giant real number (a stated cook time, a count) that holds the scene photo inside its strokes, with the promise and offer terms beside or beneath it; a cold big-promise ad that drives a meal-kit or product order page.
import * as React from "react"
import { ShoppingBasket } 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"
/**
* Knockout numeral: the number IS the picture. A giant figure in the display face sits on the solid band and the
* `scene` photo shows only through its strokes, so the stat and the food shot land in one glance; the unit sits at its
* foot. Square and landscape set the unit beside the figure's baseline; portrait and story set it beneath, right-aligned
* under the last digit. Story gives the figure the flexible row from y 120 into the top band (it is an image, not
* text), so the headline and the offer always keep their full height and air; logo and unit share one row under it.
* Offer terms: the first part (the price) on its own bold line, the rest on one line under it, so a separator dot
* never starts or ends a wrapped line; story, with room to spare, sets them on one line.
* Truth: the figure must be a real stated fact (e.g. the recipe's cook time), never a result or a claim the page lacks.
* Build: the figure is drawn as an SVG image masked by the glyphs (no visible text box), anchored at its right edge so
* the unit always meets the last digit whatever display face the theme supplies; a thin --accent-fill rim and a dark,
* close drop shadow keep dark parts of the photo from sinking into the band.
*/
export type KnockoutNumeralPanProps = {
format?: AdFormat
/** The real number, 1-3 characters ("15"). Empty: the scene shows as a plain photo in its place. */
figure?: string
/** What the figure measures, one short word ("min"). Shown only with a figure. */
unit?: string
/** 12 words or fewer; names the audience and the moment. A "\n" forces a break. */
headline?: string
/** The phrase in `headline` set in the marker tint. */
highlight?: string
/** Offer terms exactly as the order page states them, parts separated by " · ". The first part is set bold. Empty: none. */
terms?: string
cue?: string
/** One short line under the cue. Empty: none. */
cueNote?: string
/** The scene photo seen through the figure (slot "scene"): a bright, full-frame close-up with no dark areas. */
scene?: string
logo?: string
brand?: string
}
export const formats: AdFormat[] = ["square", "portrait", "story", "landscape"]
export const lead = "portrait" satisfies AdFormat
/** Raised from 20: the brief's sample (10-word headline, 7-word offer line, 4-word cue) plus the unit runs 22 words; the figure itself is drawn as a picture. */
export const wordCap = 24
export function KnockoutNumeralPan({
format = "portrait",
figure = "",
unit = "min",
headline = "Dinner on the table before anyone asks what's for dinner.",
highlight = "",
terms = "",
cue = "Order my first box",
cueNote = "",
scene = "",
logo = "",
brand = "",
}: KnockoutNumeralPanProps) {
const uid = "fd-knum-" + React.useId().replace(/[^a-zA-Z0-9_-]/g, "")
const fig = figure.trim()
const parts = terms.split("\u00b7").map((p) => p.trim()).filter(Boolean)
return (
<AdFrame format={format} className="fd-knum">
<style href="fd-knum" precedence="default">{CSS}</style>
<Texture src={noise} tone="band-ink" opacity={0.05} />
<div className="fd-knum__grid">
<LogoMark src={logo} brand={brand} className="fd-knum__logo" />
{fig ? (
<Numeral figure={fig} scene={scene} id={uid} label={unit ? `${fig} ${unit}` : fig} />
) : scene ? (
<img className="fd-knum__photo" src={scene} alt="" />
) : null}
{fig && unit ? <p className="fd-knum__unit">{unit}</p> : null}
<AdHeadline as="h1" text={headline} highlight={highlight} mark="ink" className="fd-knum__head" />
<div className="fd-knum__deal">
<Cue note={cueNote} className="fd-knum__cue">
<ShoppingBasket aria-hidden strokeWidth={2.5} className="fd-knum__cart" />
{cue}
</Cue>
{parts.length ? (
<p className="fd-knum__terms">
<b className="fd-knum__first">{parts[0]}</b>
{parts.length > 1 ? (
<span className="fd-knum__rest">
{" "}<i aria-hidden className="fd-knum__sep fd-knum__sep--lead" />{" "}
{parts.slice(1).map((p, i) => (
<React.Fragment key={i}>
{i ? <> <i aria-hidden className="fd-knum__sep" /> </> : null}
<span className="fd-knum__part">{p}</span>
</React.Fragment>
))}
</span>
) : null}
</p>
) : null}
</div>
</div>
</AdFrame>
)
}
/** viewBox height, baseline and per-glyph tracking (user units at font-size 1000). */
const VB_H = 790
const BASE = 772
const TRACK = -28
/**
* The figure as a picture: the scene image masked by the glyphs (alpha mask), over a thin accent rim masked by the
* stroked glyphs. Anchored at the right edge (text-anchor end) so the last digit always ends at the box edge.
*/
function Numeral({ figure, scene, id, label }: { figure: string; scene: string; id: string; label: string }) {
const chars = Array.from(figure)
const w = Math.max(1, chars.length) * 550
const glyphs = chars.map((ch, i) => (
<tspan key={i} dx={i ? TRACK : 0}>{ch}</tspan>
))
const face = {
fontFamily: "var(--font-display)",
fontWeight: "var(--display-weight, 800)",
fontVariantNumeric: "lining-nums proportional-nums",
} as React.CSSProperties
const area = { maskUnits: "userSpaceOnUse" as const, x: 0, y: 0, width: w, height: VB_H, style: { maskType: "alpha" } as React.CSSProperties }
return (
<svg
className="fd-knum__fig"
viewBox={`0 0 ${w} ${VB_H}`}
preserveAspectRatio="xMaxYMax meet"
role="img"
aria-label={label}
style={{ aspectRatio: `${w} / ${VB_H}` }}
>
<defs>
<mask id={`${id}-fill`} {...area}>
<text x={w} y={BASE} textAnchor="end" fontSize={1000} style={face}>{glyphs}</text>
</mask>
<mask id={`${id}-rim`} {...area}>
<text x={w} y={BASE} textAnchor="end" fontSize={1000} stroke="currentColor" strokeWidth={12} strokeLinejoin="round" style={face}>{glyphs}</text>
</mask>
</defs>
{scene ? <rect className="fd-knum__rim" width={w} height={VB_H} mask={`url(#${id}-rim)`} /> : null}
<rect className="fd-knum__base" data-solid={scene ? undefined : ""} width={w} height={VB_H} mask={`url(#${id}-fill)`} />
{scene ? (
<image href={scene} x={0} y={0} width={w} height={VB_H} preserveAspectRatio="xMidYMid slice" mask={`url(#${id}-fill)`} />
) : null}
</svg>
)
}
const CSS = `
.fd-knum .fd-knum__grid{position:absolute;inset:0;z-index:1;display:grid;padding:var(--ad-m);column-gap:16px;row-gap:24px}
.fd-knum .fd-knum__logo{grid-area:logo;justify-self:start;align-self:start;color:var(--band-ink)}
.fd-knum .fd-knum__fig{grid-area:fig;display:block;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;color:var(--band-ink);filter:drop-shadow(0 calc(3px * var(--u)) calc(3px * var(--u)) oklch(from var(--shadow,oklch(0.22 0.03 260)) calc(l - 0.06) c h / 0.55)) drop-shadow(0 calc(14px * var(--u)) calc(18px * var(--u)) oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.4))}
.fd-knum .fd-knum__rim{fill:var(--accent-fill,var(--accent))}
.fd-knum .fd-knum__base{fill:oklch(from var(--band) calc(l + 0.1) c h)}
.fd-knum .fd-knum__base[data-solid]{fill:var(--accent-fill,var(--accent))}
.fd-knum .fd-knum__photo{grid-area:fig;width:100%;height:100%;min-width:0;min-height:0;object-fit:cover;object-position:50% 45%;border-radius:calc(12px * var(--u))}
.fd-knum .fd-knum__unit{grid-area:unit;margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.02em;line-height:1;color:var(--band-ink);white-space:nowrap}
.fd-knum .fd-knum__head{grid-area:head;margin:0;color:var(--band-ink);line-height:1.12}
.fd-knum .fd-knum__deal{grid-area:deal;display:flex;align-items:center;gap:32px;min-width:0;margin-top:8px}
.fd-knum .fd-knum__cue{flex:none}
.fd-knum .fd-knum__cart{display:inline-block;width:1em;height:1em;vertical-align:-0.14em;margin-inline-end:.38em}
.fd-knum .fd-knum__terms{margin:0;font-family:var(--font-body);font-weight:600;line-height:1.25;color:color-mix(in oklch,var(--band-ink) 88%,var(--band));text-wrap:pretty}
.fd-knum .fd-knum__terms b{font-weight:800;color:var(--band-ink)}
.fd-knum .fd-knum__first{display:block;white-space:nowrap}
.fd-knum .fd-knum__rest{white-space:nowrap}
.fd-knum .fd-knum__sep--lead{display:none}
.fd-knum .fd-knum__part{white-space:nowrap}
.fd-knum .fd-knum__sep{display:inline-block;width:.24em;height:.24em;border-radius:50%;background:currentColor;vertical-align:.2em;margin:0 .12em;opacity:.75}
.fd-knum[data-format="square"] .fd-knum__grid{grid-template-columns:minmax(0,700px) auto 1fr;grid-template-rows:auto minmax(0,1fr) auto auto;grid-template-areas:"logo logo logo" "fig unit ." "head head head" "deal deal deal"}
.fd-knum[data-format="square"] .fd-knum__unit{font-size:64px;align-self:end}
.fd-knum[data-format="square"] .fd-knum__head{font-size:72px}
.fd-knum[data-format="square"] .fd-knum__cue{--cue-fs:36px}
.fd-knum[data-format="square"] .fd-knum__terms{font-size:30px}
.fd-knum[data-format="portrait"] .fd-knum__grid{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto auto auto;grid-template-areas:"logo" "fig" "unit" "head" "deal"}
.fd-knum[data-format="portrait"] .fd-knum__unit{font-size:72px;justify-self:end;margin-top:-12px}
.fd-knum[data-format="portrait"] .fd-knum__head{font-size:78px}
.fd-knum[data-format="portrait"] .fd-knum__cue{--cue-fs:40px}
.fd-knum[data-format="portrait"] .fd-knum__terms{font-size:32px}
.fd-knum[data-format="story"] .fd-knum__grid{padding:120px var(--ad-m) calc(var(--safe-bottom) + 20px);grid-template-columns:auto 1fr;grid-template-rows:minmax(0,1fr) auto auto auto;grid-template-areas:"fig fig" "logo unit" "head head" "deal deal"}
.fd-knum[data-format="story"] .fd-knum__logo{align-self:end;margin-bottom:6px}
.fd-knum[data-format="story"] .fd-knum__unit{font-size:80px;justify-self:end;align-self:end}
.fd-knum[data-format="story"] .fd-knum__head{font-size:96px;margin-top:12px}
.fd-knum[data-format="story"] .fd-knum__deal{flex-direction:column-reverse;align-items:flex-start;gap:28px;margin-top:24px}
.fd-knum[data-format="story"] .fd-knum__cue{--cue-fs:48px}
.fd-knum[data-format="story"] .fd-knum__terms{font-size:40px}
.fd-knum[data-format="story"] .fd-knum__first{display:inline}
.fd-knum[data-format="story"] .fd-knum__sep--lead{display:inline-block}
.fd-knum[data-format="landscape"] .fd-knum__grid{column-gap:14px;row-gap:20px;grid-template-columns:minmax(0,580px) auto 1fr;grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"logo logo head" "fig unit head" "fig unit deal"}
.fd-knum[data-format="landscape"] .fd-knum__unit{font-size:44px;align-self:end}
.fd-knum[data-format="landscape"] .fd-knum__head{font-size:56px;align-self:start;margin-left:26px}
.fd-knum[data-format="landscape"] .fd-knum__deal{flex-direction:column-reverse;align-items:flex-start;gap:16px;align-self:end;margin-left:26px}
.fd-knum[data-format="landscape"] .fd-knum__cue{--cue-fs:30px}
.fd-knum[data-format="landscape"] .fd-knum__terms{font-size:24px}
`
export default KnockoutNumeralPan
pieces/ads/knockout-numeral-pan/specimen.tsx 49 lines
import __studioImage5442866c from "../assets/12c5cbd1d1a6dcf1.webp";
import * as React from "react"
import { slot } from "../../slots"
import { KnockoutNumeralPan, formats } from "../knockout-numeral-pan"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Pottlewick Kitchen, a weeknight meal kit. 15 is the recipes' stated cook time; the price and
// shipping line match the sample order page. The pan scene is a generated illustration.
const pottlewickLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 262 56"><g fill="currentColor"><rect x="25" y="8" width="6" height="6" rx="3"/><rect x="12" y="15" width="32" height="5" rx="2.5"/><path d="M8 23h40v13a12 12 0 0 1-12 12H20A12 12 0 0 1 8 36z"/><rect x="1" y="25" width="9" height="5" rx="2.5"/><rect x="46" y="25" width="9" height="5" rx="2.5"/></g><text x="66" y="39" fill="currentColor" font-family="Helvetica, Arial, sans-serif" font-size="30" font-weight="700" letter-spacing="-.4">pottlewick</text></svg>`,
)
export const states = ["square", "portrait", "story", "landscape"]
export const copy = {
platform: "meta",
primary_text: "Parents at 5 p.m. with nothing defrosted: this one's for you.\n\nEvery Pottlewick recipe goes from box to plate in 15 minutes. (I know. I didn't believe it either.)\n\nYour first box is $35 for 4 dinners and ships free. Pick your recipes tonight and we'll do the rest.",
headline: "Dinner in 15 minutes, tonight",
description: "First box $35 · ships free",
cta: "Order Now",
}
// Sample brand (deep-ocean palette, invented): previews, the pack and the site show this ad in it by default.
export const sampleBrand = {
name: "Pottlewick Kitchen",
theme: "dark",
background: "#0d2730",
colors: ["#2ec4b6", "#ffb703"],
fonts: ["Bricolage Grotesque", "Figtree"],
button: "square",
}
export default function KnockoutNumeralPanSpecimen({ state = "portrait" }: { state?: string }) {
return (
<KnockoutNumeralPan
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
figure="15"
unit="min"
headline={"Parents at 5\u00a0p.m. with nothing defrosted: dinner in 15."}
highlight="dinner in 15."
terms="First box $35 · 4 dinners · ships free"
cue="Get my first box"
scene={slot("scene", __studioImage5442866c)}
logo={slot("logo", pottlewickLogo)}
brand="Pottlewick Kitchen"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalKnockoutNumeralPan |
AdFormat |
Default "portrait"
|
figure OptionalKnockoutNumeralPan |
string |
Default ""
|
unit OptionalKnockoutNumeralPan |
string |
Default "min"
|
headline OptionalKnockoutNumeralPan |
string |
Default "Dinner on the table before anyone asks what's for dinner."
|
highlight OptionalKnockoutNumeralPan |
string |
Default ""
|
terms OptionalKnockoutNumeralPan |
string |
Default ""
|
cue OptionalKnockoutNumeralPan |
string |
Default "Order my first box"
|
cueNote OptionalKnockoutNumeralPan |
string |
Default ""
|
scene OptionalKnockoutNumeralPan |
string |
Default ""
|
logo OptionalKnockoutNumeralPan |
string |
Default ""
|
brand OptionalKnockoutNumeralPan |
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.
-
12c5cbd1d1a6dcf1.webp
image/webp · 178 KB
-
bec2a41897a3364d.webp
image/webp · 51.2 KB