From To Result 1
A supplied client result set as from / to on two colour blocks, the 'to' figure larger and brighter; a warm proof ad for an operational metric (reply time, turnaround, no-shows) that sends traffic to the application 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 319 characters
- To every electrician checking voicemail in the van at 6 p.m.: Harlow Electric used to take 4 hours to answer a new enquiry. Six weeks after Fieldnote started answering for them, it was 12 minutes. If jobs go to whoever calls back first, apply for a spot and tell us how your enquiries come in today. Priya, Fieldnote
- Headline 38 characters
- 4 hours to 12 minutes: Harlow Electric
- Description 23 characters
- Booking help for trades
- Button 9 characters
- Apply Now
What it is for
- Angle
- proof
- Temperature
- warm
- Archetype
- from to
- Sends people to
- application page
- Words on the image
- At most 20
Use it in a prompt
Make the ads/from-to-result 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/from-to-result.tsx. - Import it and pass your copy and images (Props tab):
import { FromToResult } from "@/components/funneldna/ads/from-to-result"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/from-to-result/component.tsx 210 lines
// archetype: from-to
// When to use: A supplied client result set as from / to on two colour blocks, the 'to' figure larger and brighter; a warm proof ad for an operational metric (reply time, turnaround, no-shows) that sends traffic to the application page.
import * as React from "react"
import { AdFrame, AdHeadline, Cue, LogoMark, type AdFormat } from "../fx/ad-kit"
import { Spot } from "../fx/fx"
/**
* From and to. A quiet dark block carries the plain metric and the 'from' figure, with an optional clay Spot that pictures
* the metric (a clock for reply time). A bright card block below it (beside it on landscape) carries the 'to' figure far
* larger, its numeral in the accent, locked up with its unit and, beneath the unit, the timeframe and the client. An
* accent-fill stripe on a rising diagonal forms the seam. There is no arrow: the step in size and colour shows the change.
* Story stacks the 'to' numeral, its unit and the proof line so the bright block fills the 9:16 height; landscape centres
* the headline and the 'from' figure as one group in the dark panel, the logo in its corner.
* Warm · proof → application page.
* Truth: use only a real client result the client agreed to share. Never use it for income, weight or health results.
*/
export type FromToResultProps = {
format?: AdFormat
/** Names the reader and the moment, 8 words or fewer. A "\n" forces a break. */
headline?: string
/** One phrase inside `headline` set in the marker tint. Empty: none. */
highlight?: string
/** Plain name of an operational metric ("Reply time", "Quote turnaround", "No-show rate"). Never income, weight or health. Empty: hidden. */
metric?: string
/** The figure before: number first, then a short unit ("4 hours"). Empty: hidden. */
from?: string
/** The figure after, in the same style ("12 minutes"). Empty: hidden. */
to?: string
/** How long the change took ("in 6 weeks"). Empty: hidden. */
timeframe?: string
/** The client's name or business, as they agreed to be credited. Empty: hidden. */
who?: string
/** The application page's button words. */
cue?: string
/** One short line under the cue (a real term of the offer). Empty: none. */
cueNote?: string
/** A fx Spot module that pictures the metric (e.g. clock for reply time), set in the dark block. Empty: none. */
spot?: string
logo?: string
brand?: string
}
/** Spot size per format; landscape has no room beside the copy, so it carries none. */
const SPOT: Record<AdFormat, number> = { square: 160, portrait: 200, story: 180, landscape: 0, thumbnail: 0 }
export const formats: AdFormat[] = ["square", "portrait", "story", "landscape"]
export const lead = "portrait" satisfies AdFormat
export const wordCap = 20
export function FromToResult({
format = "portrait",
headline = "Here's what changed for one client.",
highlight = "",
metric = "",
from = "",
to = "",
timeframe = "",
who = "",
cue = "Apply now",
cueNote = "",
spot = "",
logo = "",
brand = "",
}: FromToResultProps) {
const logoInBand = format === "landscape"
const logoMark = <LogoMark src={logo} brand={brand} className="fd-fromto__logo" />
const spotSize = spot ? SPOT[format] || 0 : 0
const proof = timeframe || who ? (
<p className="fd-fromto__proof">
{timeframe ? <span>{timeframe}</span> : null}
{timeframe && who ? <i className="fd-fromto__dot" aria-hidden /> : null}
{who ? <b>{who}</b> : null}
</p>
) : null
return (
<AdFrame format={format} className="fd-fromto">
<style href="fd-fromto" precedence="default">{CSS}</style>
<div className="fd-fromto__blocks" aria-hidden>
<div className="fd-fromto__stripe" />
<div className="fd-fromto__band" />
</div>
{spotSize ? (
<div className="fd-fromto__spot" aria-hidden>
<Spot src={spot} size={spotSize} shade="band" light="band-ink" />
</div>
) : null}
{logoInBand ? logoMark : null}
<div className="fd-fromto__top">
<div className="fd-fromto__lead">
<AdHeadline as="h1" text={headline} highlight={highlight} mark="ink" className="fd-fromto__head" />
</div>
{from || metric ? (
<div className="fd-fromto__from">
{metric ? <p className="fd-fromto__metric">{metric}</p> : null}
{from ? <Figure value={from} side="from" /> : null}
</div>
) : null}
</div>
<div className="fd-fromto__bottom">
{to || proof ? (
<div className="fd-fromto__to">
{to ? <Figure value={to} side="to">{proof}</Figure> : proof}
</div>
) : null}
<div className="fd-fromto__foot">
<Cue note={cueNote} className="fd-fromto__cue">{cue}</Cue>
{logoInBand ? null : logoMark}
</div>
</div>
</AdFrame>
)
}
/** Splits a figure into its leading number and its unit: "12 minutes" becomes "12" and "minutes". */
function splitFigure(value: string): { num: string; unit: string } {
const v = value.trim()
const m = v.match(/^(\d[\d.,:]*%?)\s*(.*)$/)
return m ? { num: m[1], unit: m[2] } : { num: "", unit: v }
}
/** Shrinks a long numeral so "1,200" fits the same column "12" was designed for. */
function fitOf(num: string): number {
let w = 0
num.split("").forEach((ch) => { w += /[\d%]/.test(ch) ? 1 : 0.4 })
return w <= 2.2 ? 1 : Math.max(0.42, 2.2 / w)
}
/** The numeral with its unit on one baseline; on the 'to' side the proof line sits under the unit, beside the numeral (story: all stacked). */
function Figure({ value, side, children }: { value: string; side: "from" | "to"; children?: React.ReactNode }) {
const { num, unit } = splitFigure(value)
const unitEl = unit ? <span className={num ? "fd-fromto__unit" : "fd-fromto__word"}>{unit}</span> : null
return (
<div className="fd-fromto__fig" data-side={side} style={{ "--fit": fitOf(num) } as React.CSSProperties}>
{num ? <span className="fd-fromto__num">{num}</span> : null}
{children ? <div className="fd-fromto__side">{unitEl}{children}</div> : unitEl}
</div>
)
}
const CSS = `
.fd-fromto{background:var(--card);color:var(--ink)}
.fd-fromto__blocks{position:absolute;inset:0;filter:drop-shadow(0 3px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.3)) drop-shadow(0 10px 12px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.16))}
.fd-fromto__band,.fd-fromto__stripe{position:absolute;inset:0}
.fd-fromto__band{background:var(--band);clip-path:polygon(0 0,100% 0,100% var(--seam-b),0 var(--seam-a))}
.fd-fromto__stripe{background:var(--accent-fill,var(--accent));clip-path:polygon(0 calc(var(--seam-a) - 2px),100% calc(var(--seam-b) - 2px),100% calc(var(--seam-b) + var(--seam-t)),0 calc(var(--seam-a) + var(--seam-t)))}
.fd-fromto__spot{position:absolute;line-height:0;pointer-events:none}
.fd-fromto__top,.fd-fromto__bottom{position:absolute;display:flex;flex-direction:column;align-items:flex-start}
.fd-fromto__top{justify-content:space-between;color:var(--band-ink)}
.fd-fromto__lead{display:flex;flex-direction:column;align-items:flex-start}
.fd-fromto__head{color:var(--band-ink);line-height:1.02}
.fd-fromto__from{display:flex;flex-direction:column;align-items:flex-start;gap:var(--from-gap,48px)}
.fd-fromto__metric{margin:0;font-family:var(--font-body);font-weight:600;font-size:var(--metric-fs);line-height:1.2;color:color-mix(in oklab,var(--band-ink) 84%,var(--band));text-wrap:pretty}
.fd-fromto__fig{margin:0;max-width:100%;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:calc(var(--unit-fs) * 0.3);row-gap:calc(var(--unit-fs) * 0.12);font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none)}
.fd-fromto__num{font-size:calc(var(--num-fs) * var(--fit,1));line-height:0.84;letter-spacing:-0.04em;font-variant-numeric:tabular-nums lining-nums}
.fd-fromto__unit{font-size:var(--unit-fs);line-height:1;letter-spacing:-0.02em;text-wrap:balance}
.fd-fromto__word{font-size:calc(var(--num-fs) * 0.42);line-height:0.96;letter-spacing:-0.03em;text-wrap:balance}
.fd-fromto__fig[data-side="from"]{--num-fs:var(--from-num);--unit-fs:var(--from-unit);color:color-mix(in oklab,var(--band-ink) 80%,var(--band))}
.fd-fromto__fig[data-side="to"]{--num-fs:var(--to-num);--unit-fs:var(--to-unit);color:var(--ink)}
.fd-fromto__fig[data-side="to"] .fd-fromto__num,.fd-fromto__fig[data-side="to"] .fd-fromto__word{color:var(--accent)}
.fd-fromto__to{display:flex;flex-direction:column;align-items:flex-start;gap:var(--to-gap,18px)}
.fd-fromto__fig[data-side="to"]{flex-wrap:nowrap}
.fd-fromto__side{display:flex;flex-direction:column;align-items:flex-start;gap:var(--side-gap,44px);min-width:0}
.fd-fromto__proof{margin:0;font-family:var(--font-body);font-size:var(--proof-fs);line-height:1.25;font-weight:500;color:var(--muted);text-wrap:pretty}
.fd-fromto__proof b{font-weight:700;color:var(--ink)}
.fd-fromto__dot{display:inline-block;width:0.26em;height:0.26em;border-radius:50%;background:currentColor;vertical-align:0.2em;margin:0 0.45em}
.fd-fromto__foot{margin-top:auto;align-self:stretch;display:flex;align-items:center;justify-content:space-between;gap:24px}
.fd-fromto__foot .fd-fromto__logo{color:var(--ink)}
.fd-fromto > .fd-fromto__logo{position:absolute;color:var(--band-ink)}
.fd-fromto[data-format="square"]{--seam-a:540px;--seam-b:420px;--seam-t:26px;--metric-fs:32px;--from-num:120px;--from-unit:52px;--from-gap:50px;--to-num:240px;--to-unit:76px;--side-gap:42px;--proof-fs:32px}
.fd-fromto[data-format="square"] .fd-fromto__top{left:64px;right:64px;top:64px;height:400px}
.fd-fromto[data-format="square"] .fd-fromto__head{font-size:84px}
.fd-fromto[data-format="square"] .fd-fromto__spot{right:64px;top:216px}
.fd-fromto[data-format="square"] .fd-fromto__bottom{left:64px;right:64px;top:590px;bottom:64px}
.fd-fromto[data-format="square"] .fd-fromto__cue{--cue-fs:40px}
.fd-fromto[data-format="portrait"]{--seam-a:650px;--seam-b:510px;--seam-t:30px;--metric-fs:34px;--from-num:160px;--from-unit:62px;--from-gap:60px;--to-num:340px;--to-unit:92px;--side-gap:46px;--proof-fs:34px}
.fd-fromto[data-format="portrait"] .fd-fromto__top{left:64px;right:64px;top:72px;height:500px}
.fd-fromto[data-format="portrait"] .fd-fromto__head{font-size:96px}
.fd-fromto[data-format="portrait"] .fd-fromto__spot{right:64px;top:270px}
.fd-fromto[data-format="portrait"] .fd-fromto__bottom{left:64px;right:64px;top:724px;bottom:72px}
.fd-fromto[data-format="portrait"] .fd-fromto__cue{--cue-fs:44px}
.fd-fromto[data-format="story"]{--seam-a:820px;--seam-b:750px;--seam-t:34px;--metric-fs:40px;--from-num:150px;--from-unit:64px;--from-gap:22px;--to-num:420px;--to-unit:96px;--side-gap:24px;--proof-fs:36px;--to-gap:0px}
.fd-fromto[data-format="story"] .fd-fromto__top{left:72px;right:72px;top:calc(var(--safe-top,250px) + 26px);height:454px;gap:32px}
.fd-fromto[data-format="story"] .fd-fromto__head{font-size:110px}
.fd-fromto[data-format="story"] .fd-fromto__spot{right:72px;top:540px}
.fd-fromto[data-format="story"] .fd-fromto__bottom{left:72px;right:72px;top:878px;bottom:calc(var(--safe-bottom,340px) + 20px)}
.fd-fromto[data-format="story"] .fd-fromto__fig[data-side="to"]{flex-direction:column;align-items:flex-start;row-gap:14px}
.fd-fromto[data-format="story"] .fd-fromto__foot{gap:32px}
.fd-fromto[data-format="story"] .fd-fromto__cue{--cue-fs:48px}
.fd-fromto[data-format="landscape"]{--seam-a:620px;--seam-b:510px;--seam-t:22px;--metric-fs:26px;--from-num:120px;--from-unit:44px;--from-gap:16px;--to-num:196px;--to-unit:52px;--proof-fs:26px;--to-gap:12px}
.fd-fromto[data-format="landscape"] .fd-fromto__blocks{filter:drop-shadow(3px 0 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.3)) drop-shadow(10px 0 12px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.16))}
.fd-fromto[data-format="landscape"] .fd-fromto__band{clip-path:polygon(0 0,var(--seam-a) 0,var(--seam-b) 100%,0 100%)}
.fd-fromto[data-format="landscape"] .fd-fromto__stripe{clip-path:polygon(calc(var(--seam-a) - 2px) 0,calc(var(--seam-a) + var(--seam-t)) 0,calc(var(--seam-b) + var(--seam-t)) 100%,calc(var(--seam-b) - 2px) 100%)}
.fd-fromto[data-format="landscape"] > .fd-fromto__logo{left:48px;top:48px}
.fd-fromto[data-format="landscape"] .fd-fromto__top{left:48px;top:96px;bottom:48px;width:500px;justify-content:center;gap:40px}
.fd-fromto[data-format="landscape"] .fd-fromto__head{font-size:60px}
.fd-fromto[data-format="landscape"] .fd-fromto__bottom{left:682px;right:48px;top:48px;bottom:48px}
.fd-fromto[data-format="landscape"] .fd-fromto__fig[data-side="to"]{flex-wrap:wrap;row-gap:80px}
.fd-fromto[data-format="landscape"] .fd-fromto__side{display:contents}
.fd-fromto[data-format="landscape"] .fd-fromto__unit{white-space:nowrap}
.fd-fromto[data-format="landscape"] .fd-fromto__side .fd-fromto__proof{flex-basis:100%}
.fd-fromto[data-format="landscape"] .fd-fromto__to{margin-block:auto}
.fd-fromto[data-format="landscape"] .fd-fromto__foot{margin-top:0}
.fd-fromto[data-format="landscape"] .fd-fromto__cue{--cue-fs:28px}
`
export default FromToResult
pieces/ads/from-to-result/specimen.tsx 51 lines
import * as React from "react"
import { slot } from "../../slots"
import clock from "../../fx/spots/clock"
import { FromToResult, formats } from "../from-to-result"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Fieldnote, a booking agency that answers enquiries for trade businesses. Harlow Electric is a fictional client.
const fieldnoteLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 232 56"><rect x="2" y="11" width="34" height="7" rx="3.5" fill="currentColor"/><rect x="2" y="24.5" width="26" height="7" rx="3.5" fill="currentColor"/><rect x="2" y="38" width="16" height="7" rx="3.5" fill="currentColor"/><text x="48" y="40" font-family="Helvetica, Arial, sans-serif" font-size="32" font-weight="700" letter-spacing="-.5">fieldnote</text></svg>`,
)
export const states = ["square", "portrait", "story", "landscape"]
export const copy = {
platform: "meta",
primary_text: "To every electrician checking voicemail in the van at 6 p.m.:\n\nHarlow Electric used to take 4 hours to answer a new enquiry. Six weeks after Fieldnote started answering for them, it was 12 minutes.\n\nIf jobs go to whoever calls back first, apply for a spot and tell us how your enquiries come in today.\n\nPriya, Fieldnote",
headline: "4 hours to 12 minutes: Harlow Electric",
description: "Booking help for trades",
cta: "Apply Now",
}
// Sample brand (plum-night palette, invented): previews, the pack and the site show this ad in it by default.
export const sampleBrand = {
name: "Fieldnote",
theme: "light",
background: "#f1f8f8",
colors: ["#0e7c7b", "#f2a541"],
fonts: ["Montserrat", "Source Sans 3"],
button: "soft-caps",
band: "#d2eeee",
}
export default function FromToResultSpecimen({ state = "portrait" }: { state?: string }) {
return (
<FromToResult
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
headline="First trade to reply wins."
highlight="reply wins."
metric="Reply time"
from="4 hours"
to="12 minutes"
timeframe="in 6 weeks"
who="Harlow Electric"
cue="Apply for a spot"
spot={clock}
logo={slot("logo", fieldnoteLogo)}
brand="Fieldnote"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalFromToResult |
AdFormat |
Default "portrait"
|
headline OptionalFromToResult |
string |
Default "Here's what changed for one client."
|
highlight OptionalFromToResult |
string |
Default ""
|
metric OptionalFromToResult |
string |
Default ""
|
from OptionalFromToResult |
string |
Default ""
|
to OptionalFromToResult |
string |
Default ""
|
timeframe OptionalFromToResult |
string |
Default ""
|
who OptionalFromToResult |
string |
Default ""
|
cue OptionalFromToResult |
string |
Default "Apply now"
|
cueNote OptionalFromToResult |
string |
Default ""
|
spot OptionalFromToResult |
string |
Default ""
|
logo OptionalFromToResult |
string |
Default ""
|
brand OptionalFromToResult |
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-case--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.
-
7c36d7f4dd4ae594.webp
image/webp · 26.5 KB