Ecom Price Line 1
a warm, offer-led product ad that sends shoppers to the product page. The product stands across a two-block colour field, with its name, its price in the action colour and the one fact that makes buying easy.
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 183 characters
- The nap was meant to be twenty minutes.
Then someone pulled the Weekender over the sofa.
It's 6 p.m.
Worth it.
Heavy woven cotton, big enough for two. $68, ships free, 30-day returns. - Headline 25 characters
- The Weekender Throw · $68
- Description 27 characters
- Ships free · 30-day returns
- Button 8 characters
- Shop Now
What it is for
- Angle
- offer led
- Temperature
- warm
- Archetype
- product price
- Sends people to
- product page
- Words on the image
- At most 20
Use it in a prompt
Make the ads/ecom-price-line 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/ecom-price-line.tsx. - Import it and pass your copy and images (Props tab):
import { EcomPriceLine } from "@/components/funneldna/ads/ecom-price-line"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/ecom-price-line/component.tsx 180 lines
// archetype: product-price
// When to use: a warm, offer-led product ad that sends shoppers to the product page. The product stands across a two-block colour field, with its name, its price in the action colour and the one fact that makes buying easy.
import * as React from "react"
import { AdFrame, AdHeadline, Cue, LogoMark, type AdFormat } from "../fx/ad-kit"
/**
* Product and price: the field is split into two flat token blocks on a strong diagonal, the accent-fill wall and the
* band floor. The product cut-out stands across the seam on a contact shadow. Every word sits on the band: the headline,
* the product name, the price in plain heavy type in the action colour with a raised currency sign, then one easy fact
* and the cue. The regular price is struck beside today's price only when it is supplied.
* Square: a full-width headline with the offer and cue directly under it as one stack, and the product bottom-right over
* the wall's corner.
* Portrait: the product large against the wall, and the floor carries the copy.
* Story: logo and badge under the top safe line, the product about 900px wide across the seam through the middle, then
* headline, offer and cue, the cue ending just above the bottom safe line.
* Landscape: the product on the left, the copy on the right.
* Warm · offer-led → product page.
* Truth: the price, regular price and shipping/returns line match the product page at the time the ad runs. The badge
* shows only a true state ("New", "Back in stock"). There is no sticker, tag, circle or burst around the price.
*/
export type EcomPriceLineProps = {
format?: AdFormat
/** Who it is for and the moment, 12 words or fewer. A "\n" forces a break. */
headline?: string
/** One phrase inside `headline` set in the light marker tint. Empty: none. */
highlight?: string
/** Product name, set in the display face. */
name?: string
/** Currency sign, raised beside the amount. */
currency?: string
/** Today's price without the sign, e.g. "68". Empty: no price line. */
price?: string
/** Regular price without the sign, struck beside today's. Empty (default): not shown. */
regularPrice?: string
/** The one fact that makes it easy to buy, copied from the product page. Empty: none. */
fact?: string
/** A true state shown as a small solid chip ("New", "Back in stock"). Empty (default): none. */
badge?: string
cue?: string
/** One short line under the cue. Empty: none. */
cueNote?: string
/** Transparent product cut-out (slot "product"), base on the bottom edge. */
product?: 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 EcomPriceLine({
format = "portrait",
headline = "Made for the moment your customer reaches for it.",
highlight = "",
name = "Your product",
currency = "$",
price = "49",
regularPrice = "",
fact = "Ships free · 30-day returns",
badge = "",
cue = "Shop now",
cueNote = "",
product = "",
logo = "",
brand = "",
}: EcomPriceLineProps) {
return (
<AdFrame format={format} className="fd-pp">
<style href="fd-pp" precedence="default">{CSS}</style>
<div className="fd-pp__wall" aria-hidden />
{product ? (
<div className="fd-pp__stage">
<div className="fd-pp__product">
<span className="fd-pp__contact" aria-hidden />
<img src={product} alt={name} decoding="async" />
</div>
</div>
) : null}
<LogoMark src={logo} brand={brand} className="fd-pp__logo" />
{badge ? <span className="fd-pp__badge">{badge}</span> : null}
<AdHeadline as="h1" text={headline} highlight={highlight} mark="ink" className="fd-pp__head" />
{name || price || fact ? (
<div className="fd-pp__offer">
{name ? <p className="fd-pp__name">{name}</p> : null}
{price ? (
<p className="fd-pp__price">
<span className="fd-pp__cur">{currency}</span>
<span className="fd-pp__amt">{price}</span>
{regularPrice ? <s className="fd-pp__was"> {currency}{regularPrice}</s> : null}
</p>
) : null}
{fact ? <p className="fd-pp__fact">{fact}</p> : null}
</div>
) : null}
<Cue note={cueNote} className="fd-pp__cue">{cue}</Cue>
</AdFrame>
)
}
const CSS = `
.fd-pp.fd-ad{box-sizing:border-box;display:grid;padding:var(--ad-m);background:var(--band);color:var(--band-ink)}
.fd-pp__wall{z-index:0;background:var(--accent-fill,var(--accent))}
.fd-pp__stage{position:relative;z-index:1;min-width:0;min-height:0}
.fd-pp__product{position:absolute;inset:0;container-type:size}
.fd-pp__product img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 2px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) calc(l - 0.06) c h / 0.45)) drop-shadow(0 14px 16px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.3))}
.fd-pp__contact{position:absolute;left:50%;bottom:0;width:76cqmin;height:7cqmin;transform:translate(-50%,42%);border-radius:50%;background:radial-gradient(closest-side,oklch(from var(--shadow,oklch(0.22 0.03 260)) calc(l - 0.06) c h / 0.62),oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0))}
.fd-pp .fd-pp__logo{z-index:2;align-self:start;color:var(--band-ink)}
.fd-pp__badge{position:relative;z-index:2;align-self:start;display:inline-flex;align-items:center;padding:.34em .82em .38em;border-radius:999px;background:var(--band);color:var(--band-ink);font-family:var(--font-body);font-weight:800;line-height:1;letter-spacing:.01em;white-space:nowrap}
.fd-pp .fd-pp__head{position:relative;z-index:2;color:var(--band-ink);line-height:.98}
.fd-pp__offer{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.fd-pp__name{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;line-height:1.08;text-wrap:balance;color:var(--band-ink)}
.fd-pp__price{margin:calc(.18em + 20px) 0 calc(.18em + 26px);display:flex;align-items:flex-start;font-family:var(--font-display);font-weight:var(--display-weight,800);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums lining-nums;white-space:nowrap;color:oklch(from var(--cta) max(l,0.72) c h)}
.fd-pp__offer>.fd-pp__price:first-child{margin-top:0}
.fd-pp__offer>.fd-pp__price:last-child{margin-bottom:0}
.fd-pp__cur{font-size:.46em;line-height:1;margin:.06em .04em 0 0}
.fd-pp__was{align-self:center;margin-left:.36em;font-size:.34em;line-height:1;letter-spacing:-0.01em;color:color-mix(in oklch,var(--band-ink) 80%,var(--band));text-decoration:line-through;text-decoration-thickness:.1em;text-decoration-color:oklch(from var(--danger) max(l,0.66) c h)}
.fd-pp__fact{margin:0;font-family:var(--font-body);font-weight:600;line-height:1.3;text-wrap:pretty;color:color-mix(in oklch,var(--band-ink) 90%,var(--band))}
.fd-pp .fd-pp__cue{position:relative;z-index:2}
.fd-pp[data-format="portrait"],.fd-pp[data-format="story"]{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr) auto auto;column-gap:40px}
.fd-pp[data-format="portrait"] .fd-pp__wall,.fd-pp[data-format="story"] .fd-pp__wall{grid-row:1/3;grid-column:1/-1}
.fd-pp[data-format="portrait"] .fd-pp__stage,.fd-pp[data-format="story"] .fd-pp__stage{grid-row:1/3;grid-column:1/-1}
.fd-pp[data-format="portrait"] .fd-pp__logo,.fd-pp[data-format="story"] .fd-pp__logo{grid-row:1;grid-column:1;justify-self:start;color:var(--accent-fill-ink,var(--card))}
.fd-pp[data-format="portrait"] .fd-pp__badge,.fd-pp[data-format="story"] .fd-pp__badge{grid-row:1;grid-column:2;justify-self:end}
.fd-pp[data-format="portrait"] .fd-pp__head,.fd-pp[data-format="story"] .fd-pp__head{grid-row:3;grid-column:1/-1}
.fd-pp[data-format="portrait"] .fd-pp__offer,.fd-pp[data-format="story"] .fd-pp__offer{grid-row:4;grid-column:1;align-self:end}
.fd-pp[data-format="portrait"] .fd-pp__cue,.fd-pp[data-format="story"] .fd-pp__cue{grid-row:4;grid-column:2;align-self:end;justify-self:end}
.fd-pp[data-format="portrait"] .fd-pp__wall{margin:-64px -64px 56px;clip-path:polygon(0 0,100% 0,100% calc(100% - 160px),0 100%)}
.fd-pp[data-format="portrait"] .fd-pp__product{inset:0 -40px -18px}
.fd-pp[data-format="portrait"] .fd-pp__badge{font-size:30px}
.fd-pp[data-format="portrait"] .fd-pp__head{margin-top:52px;font-size:84px}
.fd-pp[data-format="portrait"] .fd-pp__offer{margin-top:48px}
.fd-pp[data-format="portrait"] .fd-pp__name{font-size:38px}
.fd-pp[data-format="portrait"] .fd-pp__price{font-size:132px}
.fd-pp[data-format="portrait"] .fd-pp__fact{font-size:30px}
.fd-pp[data-format="portrait"] .fd-pp__cue{--cue-fs:46px}
.fd-pp[data-format="story"]{padding:calc(var(--safe-top) + 30px) 64px calc(var(--safe-bottom) + 20px)}
.fd-pp[data-format="story"] .fd-pp__wall{margin:calc((var(--safe-top) + 30px) * -1) -64px 0;clip-path:polygon(0 0,100% 0,100% calc(100% - 340px),0 calc(100% - 120px))}
.fd-pp[data-format="story"] .fd-pp__product{top:auto;right:auto;left:50%;bottom:-16px;height:min(1000px,calc(100% + 420px));width:auto;aspect-ratio:1;transform:translateX(-50%)}
.fd-pp[data-format="story"] .fd-pp__badge{font-size:34px}
.fd-pp[data-format="story"] .fd-pp__head{margin-top:48px;font-size:104px}
.fd-pp[data-format="story"] .fd-pp__offer{margin-top:40px}
.fd-pp[data-format="story"] .fd-pp__name{font-size:44px}
.fd-pp[data-format="story"] .fd-pp__price{font-size:168px;margin:28px 0 32px}
.fd-pp[data-format="story"] .fd-pp__offer>.fd-pp__price:first-child{margin-top:0}
.fd-pp[data-format="story"] .fd-pp__offer>.fd-pp__price:last-child{margin-bottom:0}
.fd-pp[data-format="story"] .fd-pp__fact{font-size:34px}
.fd-pp[data-format="story"] .fd-pp__cue{--cue-fs:56px}
.fd-pp[data-format="square"]{grid-template-columns:420px minmax(0,1fr);grid-template-rows:auto auto auto auto minmax(0,1fr)}
.fd-pp[data-format="square"] .fd-pp__wall{position:absolute;inset:0;clip-path:polygon(100% 440px,100% 100%,440px 100%)}
.fd-pp[data-format="square"] .fd-pp__stage{grid-row:3/-1;grid-column:2}
.fd-pp[data-format="square"] .fd-pp__product{inset:-40px -54px -40px -20px}
.fd-pp[data-format="square"] .fd-pp__logo{grid-row:1;grid-column:1;justify-self:start}
.fd-pp[data-format="square"] .fd-pp__badge{grid-row:1;grid-column:2;justify-self:end;font-size:28px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.fd-pp[data-format="square"] .fd-pp__head{grid-row:2;grid-column:1/-1;margin-top:40px;font-size:100px}
.fd-pp[data-format="square"] .fd-pp__offer{grid-row:3;grid-column:1;align-self:start;margin-top:40px}
.fd-pp[data-format="square"] .fd-pp__name{font-size:38px}
.fd-pp[data-format="square"] .fd-pp__price{font-size:152px}
.fd-pp[data-format="square"] .fd-pp__fact{font-size:32px}
.fd-pp[data-format="square"] .fd-pp__cue{grid-row:4;grid-column:1;justify-self:start;align-self:start;margin-top:36px;--cue-fs:44px}
.fd-pp[data-format="landscape"]{grid-template-columns:minmax(0,1fr) 540px;grid-template-rows:auto auto minmax(0,1fr) auto auto;column-gap:56px}
.fd-pp[data-format="landscape"] .fd-pp__wall{grid-row:1/-1;grid-column:1;margin:-48px -24px -48px -48px;clip-path:polygon(0 0,100% 0,calc(100% - 170px) 100%,0 100%)}
.fd-pp[data-format="landscape"] .fd-pp__stage{grid-row:1/-1;grid-column:1}
.fd-pp[data-format="landscape"] .fd-pp__product{inset:-32px -34px -36px -32px}
.fd-pp[data-format="landscape"] .fd-pp__badge{grid-row:1;grid-column:1;justify-self:start;font-size:24px}
.fd-pp[data-format="landscape"] .fd-pp__logo{grid-row:1;grid-column:2;justify-self:end;--logo-h:56px}
.fd-pp[data-format="landscape"] .fd-pp__head{grid-row:2;grid-column:2;margin-top:24px;font-size:58px}
.fd-pp[data-format="landscape"] .fd-pp__offer{grid-row:4;grid-column:2;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:24px;row-gap:16px;align-items:center}
.fd-pp[data-format="landscape"] .fd-pp__price{grid-row:1/3;grid-column:1;margin:0;font-size:100px}
.fd-pp[data-format="landscape"] .fd-pp__name{grid-row:1;grid-column:2;align-self:end;font-size:28px;line-height:1.2}
.fd-pp[data-format="landscape"] .fd-pp__fact{grid-row:2;grid-column:2;align-self:start;font-size:24px;line-height:1.35}
.fd-pp[data-format="landscape"] .fd-pp__cue{grid-row:5;grid-column:2;justify-self:start;margin-top:46px;--cue-fs:28px}
`
export default EcomPriceLine
pieces/ads/ecom-price-line/specimen.tsx 49 lines
import __studioImagebdf4d244 from "../assets/965f06f56fbb9fa2.webp";
import * as React from "react"
import { slot } from "../../slots"
import { EcomPriceLine, formats } from "../ecom-price-line"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Loomhaus, a small textile studio that sells woven throws. The product cut-out is a generated illustration.
const loomhausLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 236 56"><g fill="currentColor"><rect x="4" y="8" width="8" height="40" rx="2"/><rect x="18" y="8" width="8" height="40" rx="2"/><rect x="32" y="8" width="8" height="40" rx="2"/><rect x="0" y="24" width="44" height="8" rx="2"/></g><text x="56" y="39" font-family="Helvetica, Arial, sans-serif" font-size="30" font-weight="700" letter-spacing="-.4" fill="currentColor">loomhaus</text></svg>`,
)
export const states = ["square", "portrait", "story", "landscape"]
export const copy = {
platform: "meta",
primary_text: "The nap was meant to be twenty minutes.\nThen someone pulled the Weekender over the sofa.\nIt's 6 p.m.\nWorth it.\nHeavy woven cotton, big enough for two. $68, ships free, 30-day returns.",
headline: "The Weekender Throw · $68",
description: "Ships free · 30-day returns",
cta: "Shop Now",
}
// Sample brand (olive-ochre palette, invented): previews, the pack and the site show this ad in it by default.
export const sampleBrand = {
name: "Loomhaus",
theme: "light",
background: "#f7f8f2",
colors: ["#556b1f", "#c7922c"],
fonts: ["Plus Jakarta Sans", "Inter"],
button: "soft-caps",
}
export default function EcomPriceLineSpecimen({ state = "portrait" }: { state?: string }) {
return (
<EcomPriceLine
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
headline="For Sunday naps that run till dinner."
name="The Weekender Throw"
currency="$"
price="68"
fact="Ships free · 30-day returns"
badge="New"
cue="Shop now"
product={slot("product", __studioImagebdf4d244)}
logo={slot("logo", loomhausLogo)}
brand="Loomhaus"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalEcomPriceLine |
AdFormat |
Default "portrait"
|
headline OptionalEcomPriceLine |
string |
Default "Made for the moment your customer reaches for it."
|
highlight OptionalEcomPriceLine |
string |
Default ""
|
name OptionalEcomPriceLine |
string |
Default "Your product"
|
currency OptionalEcomPriceLine |
string |
Default "$"
|
price OptionalEcomPriceLine |
string |
Default "49"
|
regularPrice OptionalEcomPriceLine |
string |
Default ""
|
fact OptionalEcomPriceLine |
string |
Default "Ships free · 30-day returns"
|
badge OptionalEcomPriceLine |
string |
Default ""
|
cue OptionalEcomPriceLine |
string |
Default "Shop now"
|
cueNote OptionalEcomPriceLine |
string |
Default ""
|
product OptionalEcomPriceLine |
string |
Default ""
|
logo OptionalEcomPriceLine |
string |
Default ""
|
brand OptionalEcomPriceLine |
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.
product- The main product shot or cover (ebook, kit, bottle).
-
965f06f56fbb9fa2.webp
image/webp · 239 KB