Calculator Panel Deposit 1
A rebuilt calculator panel with the reader's own figures filled in and the deposit worked out from them; a cold curiosity ad that sends first-time buyers to the free calculator 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 234 characters
- Sunday listings scroll, and one question: what deposit would your first home need? Put in the home price, your deposit and your monthly costs. The calculator works it out and shows every assumption behind the number. Free. No sign-up.
- Headline 34 characters
- Free first-home deposit calculator
- Description 16 characters
- Free, no sign-up
- Button 10 characters
- Learn More
What it is for
- Angle
- curiosity
- Temperature
- cold
- Archetype
- calculator panel
- Sends people to
- calculator page
- Words on the image
- At most 34
Use it in a prompt
Make the ads/calculator-panel-deposit 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/calculator-panel-deposit.tsx. - Import it and pass your copy and images (Props tab):
import { CalculatorPanelDeposit } from "@/components/funneldna/ads/calculator-panel-deposit"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/calculator-panel-deposit/component.tsx 190 lines
// archetype: calculator-panel
// When to use: A rebuilt calculator panel with the reader's own figures filled in and the deposit worked out from them; a cold curiosity ad that sends first-time buyers to the free calculator page.
import * as React from "react"
import { AdFrame, AdHeadline, Cue, LogoMark, type AdFormat } from "../fx/ad-kit"
import { Pattern } from "../fx/fx"
/**
* The calculator. Three input fields, rebuilt from the field role tokens, sit on one --card panel with their labels.
* They are filled with realistic figures in tabular type. Under them sits one accent-tinted answer well. The well shows
* the deposit worked out from the fields (home price × deposit %), set large in the display face in the panel's
* emphasis colour. If any field is empty, the answer well is hidden. One plus pattern fades into a corner of the band.
* Re-composed per format:
* - square: the fields sit in one row.
* - portrait: the panel is enlarged (price full width, then two fields side by side).
* - story: label-and-field rows stack down the height.
* - landscape: the copy is on the left and the panel on the right.
* The logo sits top right and the offer line sits under the cue in every format.
* Truth: the calculator must be real and its assumptions on the page. The answer is plain arithmetic on the shown
* figures (price × deposit %), so the ad makes no affordability, approval or return claim. No cursor, slider handle or
* browser chrome.
*/
export type CalculatorPanelDepositField = {
label: string
/** The figure shown in the field, e.g. "$420,000". The deposit field carries a "%". */
value: string
/** A smaller unit set after the figure, e.g. "a month". */
unit?: string
}
export type CalculatorPanelDepositProps = {
format?: AdFormat
/** 12 words or fewer. Name the reader and the moment. */
headline?: string
/** The phrase inside `headline` set in the highlight tint. Empty: none. */
highlight?: string
/** The calculator's inputs; three read best. The first "%" figure is the deposit rate, the first other figure the home price. */
fields?: CalculatorPanelDepositField[]
/** Index of the field drawn with the focus ring; -1 for none. */
focus?: number
resultLabel?: string
/** Overrides the computed answer. Empty (or a dash): home price × deposit %, worked out from `fields`. */
resultValue?: string
/** The one plain line under the cue (the offer terms). Empty: none. */
support?: string
cue?: string
logo?: string
brand?: string
}
export const formats: AdFormat[] = ["square", "portrait", "story", "landscape"]
export const lead = "portrait" satisfies AdFormat
/** Raised from 20 because the brief makes the labelled calculator the hero. Its labels and figures add about 12 words. */
export const wordCap = 34
const DEFAULT_FIELDS: CalculatorPanelDepositField[] = [
{ label: "Home price", value: "$400,000" },
{ label: "Deposit", value: "10%" },
{ label: "Monthly costs", value: "$300", unit: "a month" },
]
export function CalculatorPanelDeposit({
format = "portrait",
headline = "What deposit would your first home need?",
highlight = "",
fields = DEFAULT_FIELDS,
focus = 1,
resultLabel = "Your deposit",
resultValue = "",
support = "",
cue = "Use the calculator",
logo = "",
brand = "",
}: CalculatorPanelDepositProps) {
const inputsFilled = fields.length > 0 && fields.every((field) => !!field.value && field.value.trim() !== "")
const override = resultValue.trim()
const answer = !inputsFilled ? "" : override && !/^[—–-]+$/.test(override) ? override : depositFrom(fields)
return (
<AdFrame format={format} className="fd-calc">
<style href="fd-calc" precedence="default">{CSS}</style>
<div className="fd-calc__pattern" aria-hidden>
<Pattern name="plus" fade="corner" />
</div>
<div className="fd-calc__stack">
<LogoMark src={logo} brand={brand} className="fd-calc__logo" />
<AdHeadline as="h1" text={headline} highlight={highlight} mark="ink" className="fd-calc__head" />
<div className="fd-calc__panel">
<div className="fd-calc__fields">
{fields.map((field, i) => (
<div key={field.label + i} className="fd-calc__field">
<span className="fd-calc__label">{field.label}</span>
<span className="fd-calc__input" data-focus={i === focus ? "" : undefined}>
<span className="fd-calc__value">
{field.value}
{field.unit ? <>{" "}<small>{field.unit}</small></> : null}
</span>
</span>
</div>
))}
</div>
{answer ? (
<div className="fd-calc__result">
<span className="fd-calc__result-label">{resultLabel}</span>
<span className="fd-calc__result-value">{answer}</span>
</div>
) : null}
</div>
<div className="fd-calc__act">
<Cue className="fd-calc__cue">{cue}</Cue>
{support ? <p className="fd-calc__support">{support}</p> : null}
</div>
</div>
</AdFrame>
)
}
/** The figure in a field as a number ("$420,000" -> 420000, "10%" -> 10); NaN when it holds no digits. */
function figure(value: string): number {
const digits = value.replace(/[^\d.]/g, "")
return digits ? parseFloat(digits) : NaN
}
/** Home price × deposit %, in the price's own currency prefix. Empty when either figure is missing or unreadable. */
function depositFrom(fields: CalculatorPanelDepositField[]): string {
const rate = fields.find((field) => field.value.includes("%"))
const price = fields.find((field) => field !== rate && !field.value.includes("%"))
if (!rate || !price) return ""
const p = figure(price.value)
const r = figure(rate.value)
if (!(p > 0) || !(r > 0)) return ""
const prefix = (price.value.trim().match(/^[^\d.,]*/) || [""])[0]
return prefix + Math.round((p * r) / 100).toLocaleString("en-US")
}
/*
* Per-format scale lives in root vars:
* --head headline, --pad panel padding, --gap field gap, --lab label, --ih field height, --val figure, --unit unit,
* --rgap space above the answer well, --rpad its padding, --rl result label, --rv result figure, --cue cue size,
* --sup support line, --pat-* the pattern corner.
* The answer figure is the panel's emphasis colour: --accent pulled a little toward --ink, which raises its contrast on
* the accent-tinted well in light and dark themes alike (a colour mixed with a neutral, so oklch is safe).
* The pattern mask reads only alpha: an opaque token (--band-ink) to transparent, so no fixed colour is involved.
*/
const CSS = `
.fd-calc{background:var(--band);color:var(--band-ink)}
.fd-calc__pattern{position:absolute;z-index:0;pointer-events:none;overflow:hidden;width:var(--pat-w);height:var(--pat-h);-webkit-mask-image:radial-gradient(ellipse 100% 100% at var(--pat-at),var(--band-ink) 0 18%,transparent 100%);mask-image:radial-gradient(ellipse 100% 100% at var(--pat-at),var(--band-ink) 0 18%,transparent 100%)}
.fd-calc__stack{position:absolute;z-index:1;inset:var(--ad-m);display:flex;flex-direction:column;justify-content:space-between;gap:28px}
.fd-calc__logo{align-self:flex-end;color:var(--band-ink)}
.fd-calc__head{color:var(--band-ink);font-size:var(--head);line-height:1.06}
.fd-calc__panel{flex:none;background:var(--card);color:var(--ink);padding:var(--pad);border:2px solid var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:calc(var(--card-radius,var(--radius,14px)) * 1.8);box-shadow:inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / 0.6),var(--card-shadow,var(--shadow-lg,0 2px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.35),0 18px 30px -12px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.55)))}
.fd-calc__fields{display:grid;gap:var(--gap)}
.fd-calc__field{display:flex;flex-direction:column;gap:calc(var(--lab) * 0.36);min-width:0}
.fd-calc__label{font-family:var(--font-body);font-weight:700;font-size:var(--lab);line-height:1.2;color:var(--label-ink,var(--ink));text-wrap:balance}
.fd-calc__input{display:flex;align-items:center;min-width:0;height:var(--ih);padding:0 .5em;font-size:var(--val);background:var(--field);color:var(--field-ink);border:2px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:calc(var(--field-radius,var(--radius,12px)) * 1.25);box-shadow:inset 0 2px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.08);overflow:hidden}
.fd-calc__input[data-focus]{border:3px solid var(--field-focus,var(--accent));box-shadow:0 0 0 6px oklch(from var(--field-focus,var(--accent)) l c h / 0.3)}
.fd-calc__value{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.02em;font-variant-numeric:tabular-nums lining-nums;line-height:1.1;white-space:nowrap;color:var(--field-ink)}
.fd-calc__value small{font-family:var(--font-body);font-weight:600;font-size:var(--unit);letter-spacing:0;color:var(--field-ink)}
.fd-calc__result{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:var(--rgap);padding:var(--rpad) calc(var(--rpad) * 1.5);background:color-mix(in oklch,var(--accent) 10%,var(--card));border-radius:calc(var(--field-radius,var(--radius,12px)) * 1.25)}
.fd-calc__result-label{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:var(--rl);line-height:1.15;color:var(--ink);text-wrap:balance}
.fd-calc__result-value{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:var(--rv);line-height:1;letter-spacing:-0.02em;color:var(--calc-emph,color-mix(in oklch,var(--accent) 72%,var(--ink)));font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
.fd-calc__act{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.fd-calc__cue{--cue-fs:var(--cue)}
.fd-calc__support{margin:0;font-family:var(--font-body);font-weight:600;font-size:var(--sup);line-height:1.2;color:color-mix(in oklch,var(--band-ink) 84%,var(--band));text-wrap:pretty}
.fd-calc[data-format="square"]{--head:82px;--pad:36px;--gap:16px;--lab:28px;--ih:88px;--val:44px;--unit:28px;--rgap:20px;--rpad:16px;--rl:34px;--rv:56px;--cue:38px;--sup:30px;--pat-w:540px;--pat-h:460px;--pat-at:100% 100%}
.fd-calc[data-format="square"] .fd-calc__pattern{right:0;bottom:0}
.fd-calc[data-format="square"] .fd-calc__fields{grid-auto-flow:column;grid-auto-columns:auto}
.fd-calc[data-format="square"] .fd-calc__act{flex-direction:row;align-items:center;gap:28px}
.fd-calc[data-format="portrait"]{--head:84px;--pad:44px;--gap:22px;--lab:30px;--ih:100px;--val:56px;--unit:30px;--rgap:24px;--rpad:18px;--rl:38px;--rv:64px;--cue:42px;--sup:30px;--pat-w:620px;--pat-h:560px;--pat-at:100% 100%}
.fd-calc[data-format="portrait"] .fd-calc__pattern{right:0;bottom:0}
.fd-calc[data-format="portrait"] .fd-calc__fields{grid-template-columns:1fr 1fr}
.fd-calc[data-format="portrait"] .fd-calc__field:first-child{grid-column:1 / -1}
.fd-calc[data-format="story"]{--head:92px;--pad:42px;--gap:18px;--lab:34px;--ih:104px;--val:60px;--unit:32px;--rgap:24px;--rpad:20px;--rl:40px;--rv:72px;--cue:46px;--sup:32px;--pat-w:820px;--pat-h:760px;--pat-at:100% 100%}
.fd-calc[data-format="story"] .fd-calc__stack{inset:calc(var(--safe-top) + 12px) 64px calc(var(--safe-bottom) + 6px)}
.fd-calc[data-format="story"] .fd-calc__pattern{right:0;bottom:0}
.fd-calc[data-format="story"] .fd-calc__field{display:grid;grid-template-columns:290px minmax(0,1fr);align-items:center;column-gap:24px}
.fd-calc[data-format="landscape"]{--head:60px;--pad:26px;--gap:14px;--lab:23px;--ih:70px;--val:36px;--unit:23px;--rgap:12px;--rpad:10px;--rl:26px;--rv:44px;--cue:28px;--sup:24px;--pat-w:520px;--pat-h:320px;--pat-at:100% 0%}
.fd-calc[data-format="landscape"] .fd-calc__pattern{right:0;top:0}
.fd-calc[data-format="landscape"] .fd-calc__stack{display:grid;grid-template-columns:540px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;column-gap:40px;row-gap:16px}
.fd-calc[data-format="landscape"] .fd-calc__logo{grid-column:2;grid-row:1;justify-self:end;align-self:start}
.fd-calc[data-format="landscape"] .fd-calc__head{grid-column:1;grid-row:1 / 3;align-self:start}
.fd-calc[data-format="landscape"] .fd-calc__panel{grid-column:2;grid-row:2 / 4;align-self:end}
.fd-calc[data-format="landscape"] .fd-calc__act{grid-column:1;grid-row:3;align-self:end;gap:10px}
.fd-calc[data-format="landscape"] .fd-calc__fields{grid-template-columns:1fr 1fr}
.fd-calc[data-format="landscape"] .fd-calc__field:first-child{grid-column:1 / -1}
`
export default CalculatorPanelDeposit
pieces/ads/calculator-panel-deposit/specimen.tsx 52 lines
import * as React from "react"
import { slot } from "../../slots"
import { CalculatorPanelDeposit, formats } from "../calculator-panel-deposit"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Pennant Gable Realty, a first-home estate agency.
// No generated images: the calculator panel is built in HTML from the tokens.
const pennantLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280 56"><path d="M27 0h3v12h-3z" fill="currentColor"/><path d="M30 1l13 4.5L30 10z" fill="currentColor"/><path d="M4 30L28.5 10 53 30v22H38V38H19v14H4z" fill="currentColor"/><text x="64" y="40" font-family="Helvetica, Arial, sans-serif" font-size="28" font-weight="700" letter-spacing="-.4" fill="currentColor">pennant gable</text></svg>`,
)
export const states = ["square", "portrait", "story", "landscape"]
export const copy = {
platform: "meta",
primary_text: "Sunday listings scroll, and one question: what deposit would your first home need? Put in the home price, your deposit and your monthly costs. The calculator works it out and shows every assumption behind the number. Free. No sign-up.",
headline: "Free first-home deposit calculator",
description: "Free, no sign-up",
cta: "Learn More",
}
// Sample brand (rust-slate palette, expressive fonts, soft button; invented): previews, the pack and the site show this ad in it by default.
export const sampleBrand = {
name: "Pennant Gable Realty",
theme: "dark",
background: "#1e2328",
colors: ["#e2733b", "#8fb8de"],
fonts: ["Bricolage Grotesque", "Figtree"],
button: "soft",
}
export default function CalculatorPanelDepositSpecimen({ state = "portrait" }: { state?: string }) {
return (
<CalculatorPanelDeposit
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
headline="Sunday listings scroll? See the deposit your first home needs."
highlight="the deposit your first home needs."
fields={[
{ label: "Home price", value: "$420,000" },
{ label: "Deposit", value: "10%" },
{ label: "Monthly costs", value: "$310", unit: "a month" },
]}
focus={1}
resultLabel="Your deposit"
support="Free, no sign-up"
cue="Use the free calculator"
logo={slot("logo", pennantLogo)}
brand="Pennant Gable Realty"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalCalculatorPanelDeposit |
AdFormat |
Default "portrait"
|
headline OptionalCalculatorPanelDeposit |
string |
Default "What deposit would your first home need?"
|
highlight OptionalCalculatorPanelDeposit |
string |
Default ""
|
fields OptionalCalculatorPanelDeposit |
CalculatorPanelDepositField[] |
Default DEFAULT_FIELDS
|
focus OptionalCalculatorPanelDeposit |
number |
Default 1
|
resultLabel OptionalCalculatorPanelDeposit |
string |
Default "Your deposit"
|
resultValue OptionalCalculatorPanelDeposit |
string |
Default ""
|
support OptionalCalculatorPanelDeposit |
string |
Default ""
|
cue OptionalCalculatorPanelDeposit |
string |
Default "Use the calculator"
|
logo OptionalCalculatorPanelDeposit |
string |
Default ""
|
brand OptionalCalculatorPanelDeposit |
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.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
logo- The brand’s logo mark.