Math Hero Rent 1
The year's rent from a stated example set as one huge figure with its working beneath, so the number is arithmetic, not a claim; a cold curiosity ad for renters that drives a first-time buyer guide.
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 278 characters
- Lease renewal coming up? Before you sign, here's one number worth seeing: at $1,800 a month, a year of rent is $21,600. Our free first-time buyer guide walks through what a deposit really takes, line by line, so you can weigh your next move with real numbers. Download it free.
- Headline 27 characters
- Free first-time buyer guide
- Description 27 characters
- What a deposit really takes
- Button 8 characters
- Download
What it is for
- Angle
- curiosity
- Temperature
- cold
- Archetype
- math hero
- Sends people to
- first time buyer guide
- Words on the image
- At most 26
Use it in a prompt
Make the ads/math-hero-rent 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/math-hero-rent.tsx. - Import it and pass your copy and images (Props tab):
import { MathHeroRent } from "@/components/funneldna/ads/math-hero-rent"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/math-hero-rent/component.tsx 171 lines
// archetype: math-hero
// When to use: The year's rent from a stated example set as one huge figure with its working beneath, so the number is arithmetic, not a claim; a cold curiosity ad for renters that drives a first-time buyer guide.
import * as React from "react"
import { AdFrame, AdHeadline, Cue, LogoMark, type AdFormat } from "../fx/ad-kit"
import { Texture } from "../fx/fx"
import noise from "../fx/textures/noise"
/**
* Math hero: two flat token blocks split on a strong diagonal, with a faint print grain over both. The accent-fill
* block carries the logo, the headline, then the year's total in huge display type on ONE line (a figure broken at its
* separator reads as two numbers) with its working beneath in the body face; the band block below carries the guide
* line and the cue. Headline and figure share one flex column, so a longer headline pushes nothing into the figure;
* the clearances are written in the figure's own em so the glyph overhang of any display face stays clear of the
* headline above and the working below. Landscape puts the figure block left and the copy right.
* The figure's size is fitted from its own glyph count, so other amounts never overflow.
* Truth: the figure is the stated example's arithmetic (monthly x months) and nothing more; never a claim that buying
* saves money or builds wealth.
* Highlight: on the fill block the swipe is a lighter or deeper shade of the fill (moved away from its ink), so it reads
* under any accent; on the band (landscape) it becomes the kit's band-marker ink tint.
*/
export type MathHeroRentProps = {
format?: AdFormat
/** Names the reader and the moment, 12 words or fewer. A newline forces a break. */
headline?: string
/** One phrase inside `headline` for the single highlight. Empty: none. */
highlight?: string
/** The stated example's monthly rent (a plain number, no symbol). */
monthly?: number
/** How many months the figure covers. */
months?: number
/** Currency symbol set before both amounts. */
currency?: string
/** Locale for the group separators (en-US: 21,600). */
locale?: string
/** The offer line on the second block: the guide and what it covers. */
support?: string
cue?: string
/** One short line under the cue. Empty: none. */
cueNote?: string
/** Logo slot image; empty sets the brand name as a wordmark. */
logo?: string
brand?: string
className?: string
}
export const formats: AdFormat[] = ["square", "portrait", "story", "landscape"]
export const lead = "portrait" satisfies AdFormat
export const wordCap = 26
export function MathHeroRent({
format = "portrait",
headline = "Signing another lease? Here's your year in rent.",
highlight = "",
monthly = 1500,
months = 12,
currency = "$",
locale = "en-US",
support = "Free guide: what buying really takes.",
cue = "Get the free guide",
cueNote = "",
logo = "",
brand = "",
className = "",
}: MathHeroRentProps) {
const ok = Number.isFinite(monthly) && Number.isFinite(months) && monthly > 0 && months > 0
const total = ok ? amount(monthly * months, currency, locale) : ""
const fit = { "--em1": emWidth(total).toFixed(2) } as React.CSSProperties
return (
<AdFrame format={format} className={`fd-rent ${className}`}>
<style href="fd-rent" precedence="default">{CSS}</style>
<div className="fd-rent__fill" aria-hidden />
<Texture src={noise} tone="band-ink" opacity={0.06} />
<div className="fd-rent__top" style={fit}>
<div className="fd-rent__head">
<LogoMark src={logo} brand={brand} className="fd-rent__logo" />
<AdHeadline as="h1" text={headline} highlight={highlight} mark="swipe" className="fd-rent__headline" />
</div>
{ok ? (
<div className="fd-rent__math">
<p className="fd-rent__fig">{total}</p>
<p className="fd-rent__work">
{amount(monthly, currency, locale)}
<span className="fd-rent__times">×</span>
{count(months, locale)}
</p>
</div>
) : null}
</div>
<div className="fd-rent__act">
{support ? <p className="fd-rent__support">{support}</p> : null}
<Cue note={cueNote} className="fd-rent__cue">{cue}</Cue>
</div>
</AdFrame>
)
}
function count(n: number, locale: string) {
try {
return Math.round(n).toLocaleString(locale)
} catch {
return Math.round(n).toLocaleString("en-US")
}
}
function amount(n: number, currency: string, locale: string) {
return currency + count(n, locale)
}
/** Approximate advance of a numeral string in em (tabular digits and symbols wide, separators narrow). */
function emWidth(s: string) {
let w = 0
for (const ch of s) w += /[0-9$£€¥]/.test(ch) ? 0.66 : /[,.\s\u00a0\u202f]/.test(ch) ? 0.32 : 0.72
return Math.max(w, 1)
}
const CSS = `
.fd-rent{background:var(--band);color:var(--band-ink)}
.fd-rent__fill{position:absolute;inset:0;background:var(--accent-fill,var(--accent))}
.fd-rent__top{position:absolute;z-index:1;display:flex;flex-direction:column;color:var(--accent-fill-ink,var(--card));--fig-gap:calc(var(--fig,200px) * 0.2 + 28px);gap:var(--fig-gap)}
.fd-rent__head{color:inherit}
.fd-rent .fd-rent__logo{float:right;margin:12px 0 16px 32px;color:inherit}
.fd-rent .fd-rent__headline{color:inherit;line-height:1.1}
.fd-rent .fd-rent__head .fd-ad-mark[data-style="swipe"]{color:inherit;background:linear-gradient(177deg,transparent 0 28%,color-mix(in oklch,oklch(from var(--accent-fill-ink,var(--card)) calc(1 - l) 0 h) 46%,var(--accent-fill,var(--accent))) 28% 94%,transparent 94%)}
.fd-rent__math{margin-top:auto;display:flex;flex-direction:column;align-items:flex-start;gap:var(--fig-gap)}
.fd-rent__fig{margin:0;font-size:var(--fig,200px);font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.035em;line-height:1;font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
.fd-rent__work{margin:0;font-family:var(--font-body);font-weight:700;line-height:1.2;letter-spacing:-0.01em;font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
.fd-rent__times{display:inline-block;padding-inline:0.3em;font-weight:500}
.fd-rent__act{position:absolute;z-index:1;display:flex;flex-direction:column;align-items:flex-start}
.fd-rent__support{margin:0;color:var(--band-ink);font-family:var(--font-body);font-weight:600;line-height:1.2;text-wrap:pretty}
.fd-rent[data-format="square"] .fd-rent__fill{clip-path:polygon(0 0,100% 0,100% 66%,0 75%)}
.fd-rent[data-format="square"] .fd-rent__top{top:64px;left:72px;right:72px;bottom:330px;--fig:min(224px,calc(936px / var(--em1,4.3)))}
.fd-rent[data-format="square"] .fd-rent__headline{font-size:76px}
.fd-rent[data-format="square"] .fd-rent__work{font-size:44px}
.fd-rent[data-format="square"] .fd-rent__act{left:72px;right:72px;bottom:72px;gap:28px}
.fd-rent[data-format="square"] .fd-rent__support{font-size:40px}
.fd-rent[data-format="square"] .fd-rent__cue{--cue-fs:40px}
.fd-rent[data-format="portrait"] .fd-rent__fill{clip-path:polygon(0 0,100% 0,100% 71%,0 79%)}
.fd-rent[data-format="portrait"] .fd-rent__top{top:72px;left:72px;right:72px;bottom:360px;--fig:min(236px,calc(936px / var(--em1,4.3)))}
.fd-rent[data-format="portrait"] .fd-rent__logo{float:none;display:flex;width:max-content;margin:0 0 40px}
.fd-rent[data-format="portrait"] .fd-rent__headline{font-size:88px;line-height:1.06}
.fd-rent[data-format="portrait"] .fd-rent__work{font-size:48px}
.fd-rent[data-format="portrait"] .fd-rent__act{left:72px;right:72px;bottom:72px;gap:28px}
.fd-rent[data-format="portrait"] .fd-rent__support{font-size:44px}
.fd-rent[data-format="portrait"] .fd-rent__cue{--cue-fs:42px}
.fd-rent[data-format="story"] .fd-rent__fill{clip-path:polygon(0 0,100% 0,100% 62%,0 68%)}
.fd-rent[data-format="story"] .fd-rent__top{top:calc(var(--safe-top) + 24px);left:80px;right:80px;bottom:700px;--fig:min(240px,calc(920px / var(--em1,4.3)))}
.fd-rent[data-format="story"] .fd-rent__logo{float:none;display:flex;width:max-content;margin:0 0 40px}
.fd-rent[data-format="story"] .fd-rent__headline{font-size:88px;line-height:1.06}
.fd-rent[data-format="story"] .fd-rent__work{font-size:52px}
.fd-rent[data-format="story"] .fd-rent__act{left:80px;right:80px;bottom:calc(var(--safe-bottom) + 24px);gap:32px}
.fd-rent[data-format="story"] .fd-rent__support{font-size:44px}
.fd-rent[data-format="story"] .fd-rent__cue{--cue-fs:48px}
.fd-rent[data-format="landscape"] .fd-rent__fill{clip-path:polygon(0 0,54% 0,48% 100%,0 100%)}
.fd-rent[data-format="landscape"] .fd-rent__top{display:contents;--fig:min(150px,calc(540px / var(--em1,4.3)))}
.fd-rent[data-format="landscape"] .fd-rent__head{position:absolute;z-index:1;top:48px;left:690px;right:48px;color:var(--band-ink)}
.fd-rent[data-format="landscape"] .fd-rent__logo{float:none;display:flex;width:max-content;margin:0 0 24px;--logo-h:56px}
.fd-rent[data-format="landscape"] .fd-rent__headline{font-size:56px;line-height:1.06}
.fd-rent[data-format="landscape"] .fd-rent__head .fd-ad-mark[data-style="swipe"]{color:var(--band-marker,oklch(from var(--marker,#fae37c) max(l,0.86) c h));background:none;padding:0;margin:0}
.fd-rent[data-format="landscape"] .fd-rent__math{position:absolute;z-index:1;margin:0;top:48px;bottom:48px;left:48px;width:540px;justify-content:center}
.fd-rent[data-format="landscape"] .fd-rent__work{font-size:32px}
.fd-rent[data-format="landscape"] .fd-rent__act{left:690px;right:48px;bottom:48px;gap:20px}
.fd-rent[data-format="landscape"] .fd-rent__support{font-size:26px}
.fd-rent[data-format="landscape"] .fd-rent__cue{--cue-fs:30px}
`
export default MathHeroRent
pieces/ads/math-hero-rent/specimen.tsx 47 lines
import * as React from "react"
import { slot } from "../../slots"
import { MathHeroRent, formats } from "../math-hero-rent"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Tollhaven Realty, a buyer's agency that publishes a free first-time buyer guide.
// The figure is the example's own arithmetic ($1,800 a month x 12 months); no claim that buying saves money.
const tollhavenLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 236 56"><path fill-rule="evenodd" d="M4 30 26 9l22 21h-6v19H10V30zm17 19V36h10v13z" fill="currentColor"/><text x="58" y="38" font-family="Helvetica, Arial, sans-serif" font-size="30" font-weight="700" letter-spacing="-.4" fill="currentColor">tollhaven</text></svg>`,
)
export const states = ["square", "portrait", "story", "landscape"]
export const copy = {
platform: "meta",
primary_text: "Lease renewal coming up? Before you sign, here's one number worth seeing: at $1,800 a month, a year of rent is $21,600.\n\nOur free first-time buyer guide walks through what a deposit really takes, line by line, so you can weigh your next move with real numbers. Download it free.",
headline: "Free first-time buyer guide",
description: "What a deposit really takes",
cta: "Download",
}
// Sample brand (forest-night palette, expressive fonts, invented): previews, the pack and the site show this ad in it by default.
export const sampleBrand = {
name: "Tollhaven Realty",
theme: "dark",
background: "#0f1f19",
colors: ["#3ddc97", "#f4b860"],
fonts: ["Bricolage Grotesque", "Figtree"],
button: "pill-bold",
}
export default function MathHeroRentSpecimen({ state = "portrait" }: { state?: string }) {
return (
<MathHeroRent
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
headline="Renters about to sign another lease: your year in rent."
highlight="your year in rent."
monthly={1800}
months={12}
support="Free guide: what a deposit really takes."
cue="Get the free guide"
logo={slot("logo", tollhavenLogo)}
brand="Tollhaven Realty"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalMathHeroRent |
AdFormat |
Default "portrait"
|
headline OptionalMathHeroRent |
string |
Default "Signing another lease? Here's your year in rent."
|
highlight OptionalMathHeroRent |
string |
Default ""
|
monthly OptionalMathHeroRent |
number |
Default 1500
|
months OptionalMathHeroRent |
number |
Default 12
|
currency OptionalMathHeroRent |
string |
Default "$"
|
locale OptionalMathHeroRent |
string |
Default "en-US"
|
support OptionalMathHeroRent |
string |
Default "Free guide: what buying really takes."
|
cue OptionalMathHeroRent |
string |
Default "Get the free guide"
|
cueNote OptionalMathHeroRent |
string |
Default ""
|
logo OptionalMathHeroRent |
string |
Default ""
|
brand OptionalMathHeroRent |
string |
Default ""
|
className OptionalMathHeroRent |
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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
logo- The brand’s logo mark.
-
bec2a41897a3364d.webp
image/webp · 51.2 KB