Pile Count Tubs 1
The reader's half-finished tubs lined up on one shelf and counted, beside the one tin that replaces them; a cold pain ad that sends traffic to the product 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 251 characters
- Count the tubs. Five on one shelf, five lids that don't match, every one half-finished. One tin instead. Sallowfield is a single tin of cocoa blend with 9 listed ingredients, $34. Read the label first. Every ingredient is listed on the product page.
- Headline 30 characters
- One tin. 9 listed ingredients.
- Description 11 characters
- Cocoa · $34
- Button 8 characters
- Shop Now
What it is for
- Angle
- pain
- Temperature
- cold
- Archetype
- pile count
- Sends people to
- product page
- Words on the image
- At most 22
Use it in a prompt
Make the ads/pile-count-tubs 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/pile-count-tubs.tsx. - Import it and pass your copy and images (Props tab):
import { PileCountTubs } from "@/components/funneldna/ads/pile-count-tubs"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/pile-count-tubs/component.tsx 231 lines
// archetype: pile-count
// When to use: The reader's half-finished tubs lined up on one shelf and counted, beside the one tin that replaces them; a cold pain ad that sends traffic to the product page.
import * as React from "react"
import { AdFrame, AdHeadline, Cue, LogoMark, type AdFormat } from "../fx/ad-kit"
import { Spotlight } from "../fx/fx"
/**
* The pile, counted. A tight photo of one crowded shelf (the scene slot) runs into a solid shelf edge built from the
* theme: its top face continues the shelf and its front strip, in --accent-fill, carries the count in the display face
* right under the tubs. The brand's single product stands alone on the same shelf under a Spotlight, with a contact
* shadow on the top face and the price set on the strip beneath it like a shelf price. Then the headline, the terms
* and the one cue. On 9:16 the cupboard gets a second, lower shelf: the pile on top, the lone tin below, the price
* closing the terms above the cue. Cold · pain → product page.
* Truth: terms carry format, flavour, ingredient count and price only, never an effect or health claim; the tubs in
* the photo are plain and unbranded, never a real company's product.
* Finish: the product cut-out runs through a 1px edge choke with a dark --shadow rim so no light matte fringe shows,
* and sits a touch low in its box so its base meets the shelf. The logo sits top left on a band-coloured scrim over
* the photo (on the story it moves onto the shelf strip, clear of the platform's top band).
*/
export type PileCountTubsProps = {
format?: AdFormat
/** The pile, counted, set huge on the shelf edge under the photo ("5 tubs."). Empty: the shelf edge stays bare. */
count?: string
/** 12 words or fewer: the reader and the moment. A "\n" forces a break. */
headline?: string
/** One phrase in `headline` for the single marker swipe. Empty: none. */
highlight?: string
/** Offer terms, items separated by "·" (format, ingredient count, flavour). Facts from the page only. */
terms?: string
/** The price as the product page shows it: on the shelf edge under the product (closing the terms on 9:16). Empty: none. */
price?: string
cue?: string
/** One short line under the cue. Empty: none. */
cueNote?: string
/** Photo of the crowded shelf (slot "scene"), the shelf's front edge along the bottom of the image. */
shelfImage?: string
shelfAlt?: string
/** The single product on a transparent background (slot "product"), standing upright. */
productImage?: string
productAlt?: string
logo?: string
brand?: string
}
export const formats: AdFormat[] = ["square", "portrait", "story", "landscape"]
export const lead = "portrait" satisfies AdFormat
/** Raised from 20: the brief sets the count as its own type beside the headline, and the terms line carries format, ingredient count, flavour and price. */
export const wordCap = 22
export function PileCountTubs({
format = "portrait",
count = "",
headline = "A shelf of half-used tubs you meant to finish?",
highlight = "",
terms = "One product · everything listed",
price = "",
cue = "See the product",
cueNote = "",
shelfImage = "",
shelfAlt = "A shelf crowded with half-used tubs",
productImage = "",
productAlt = "The product",
logo = "",
brand = "",
}: PileCountTubsProps) {
const story = format === "story"
const head = keepHyphens(headline)
const mark = keepHyphens(highlight)
const items = terms.split("·").map((t) => t.trim()).filter(Boolean)
const total = story && price ? <b className="fd-pile__total">{price}</b> : null
const termsLine = items.length || total ? (
<p className="fd-pile__terms">
{items.map((t, i) => (
<React.Fragment key={i}>
{i ? " " : null}
<span>{t}</span>
</React.Fragment>
))}
{total}
</p>
) : null
return (
<AdFrame format={format} className="fd-pile">
<style href="fd-pile" precedence="default">{CSS}</style>
<EdgeFilter />
<div className="fd-pile__shelf">{shelfImage ? <img src={shelfImage} alt={shelfAlt} /> : null}</div>
<div className="fd-pile__stage" aria-hidden>
<Spotlight />
</div>
<div className="fd-pile__ledge fd-pile__ledge--top" aria-hidden />
{story ? <div className="fd-pile__ledge fd-pile__ledge--low" aria-hidden /> : null}
{productImage ? (
<div className="fd-pile__tin">
<span className="fd-pile__contact" aria-hidden />
<img src={productImage} alt={productAlt} />
</div>
) : null}
{count ? <p className="fd-pile__count">{count}</p> : null}
{!story && price ? <p className="fd-pile__tag">{price}</p> : null}
<LogoMark src={logo} brand={brand} className="fd-pile__logo" />
<div className="fd-pile__copy">
<AdHeadline as="h1" text={head} highlight={mark} mark="swipe" className="fd-pile__head" />
<div className="fd-pile__act">
<Cue note={cueNote} className="fd-pile__cue">{cue}</Cue>
{termsLine}
</div>
</div>
</AdFrame>
)
}
/**
* Holds a hyphenated word together ("half-finished") so a balanced headline never breaks after its hyphen: a word
* joiner (zero-width, never drawn) follows each hyphen between letters. Applied to the highlight too, so it still matches.
*/
function keepHyphens(text: string) {
return text.replace(/(\p{L})-(?=\p{L})/gu, "$1-\u2060")
}
/** Edge choke for the product cut-out: erode the alpha 1px, then lay a thin --shadow rim inside the new edge. */
function EdgeFilter() {
return (
<svg className="fd-pile__defs" aria-hidden focusable="false" width="0" height="0">
<filter id="fd-pile-edge" x="-2%" y="-2%" width="104%" height="104%" colorInterpolationFilters="sRGB">
<feMorphology in="SourceAlpha" operator="erode" radius="1" result="core" />
<feGaussianBlur in="core" stdDeviation="0.4" result="coreSoft" />
<feComposite in="SourceGraphic" in2="coreSoft" operator="in" result="choked" />
<feMorphology in="core" operator="erode" radius="2" result="inner" />
<feComposite in="coreSoft" in2="inner" operator="out" result="rim" />
<feGaussianBlur in="rim" stdDeviation="0.8" result="rimSoft" />
<feFlood style={{ floodColor: "var(--shadow, oklch(0.22 0.03 260))", floodOpacity: 0.45 }} result="shade" />
<feComposite in="shade" in2="rimSoft" operator="in" result="rimShade" />
<feComposite in="rimShade" in2="choked" operator="in" result="edge" />
<feMerge>
<feMergeNode in="choked" />
<feMergeNode in="edge" />
</feMerge>
</filter>
</svg>
)
}
const CSS = `
.fd-pile{--face:28px;--scrim:140px;--fill:var(--accent-fill,var(--accent));--fill-ink:var(--accent-fill-ink,var(--card));--sh:var(--shadow,oklch(0.22 0.03 260))}
.fd-pile__defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.fd-pile__shelf{position:absolute;left:0;top:0;z-index:1;overflow:hidden;background:color-mix(in oklch,var(--band-ink) 14%,var(--band))}
.fd-pile__shelf img{width:100%;height:100%;object-fit:cover;object-position:50% 100%}
.fd-pile__shelf::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,oklch(from var(--band) l c h / 0.96) 0,oklch(from var(--band) l c h / 0.9) var(--scrim),oklch(from var(--band) l c h / 0) calc(var(--scrim) * 2.1))}
.fd-pile[data-format="story"] .fd-pile__shelf::after{content:none}
.fd-pile__stage{position:absolute;z-index:1;overflow:hidden;isolation:isolate;pointer-events:none}
.fd-pile__ledge{position:absolute;z-index:2;background:var(--fill);box-shadow:inset 0 2px 0 oklch(from var(--fill) calc(l + 0.1) c h / 0.7),inset 0 -10px 0 oklch(from var(--fill) calc(l - 0.08) c h),0 2px 3px oklch(from var(--sh) l c h / 0.3),0 12px 18px -8px oklch(from var(--sh) l c h / 0.4)}
.fd-pile__ledge::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:var(--face);background:color-mix(in oklch,var(--ink) 7%,var(--card));box-shadow:inset 0 -1px 0 oklch(from var(--ink) l c h / 0.12)}
.fd-pile__tin{position:absolute;z-index:3;left:calc(var(--tin-x) - var(--tin-s) / 2);top:calc(var(--base) - var(--tin-s));width:var(--tin-s);height:var(--tin-s)}
.fd-pile__tin img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;object-position:50% 100%;translate:0 4%;filter:url(#fd-pile-edge) drop-shadow(0 2px 2px oklch(from var(--sh) l c h / 0.45)) drop-shadow(0 12px 14px oklch(from var(--sh) l c h / 0.22))}
.fd-pile__contact{position:absolute;z-index:0;left:50%;bottom:calc(var(--face) * -0.45);width:50%;height:calc(var(--face) * 0.9);translate:-50% 0;border-radius:50%;background:radial-gradient(closest-side,oklch(from var(--sh) l c h / 0.55),oklch(from var(--sh) l c h / 0.22) 60%,oklch(from var(--sh) l c h / 0))}
.fd-pile__count,.fd-pile__tag{position:absolute;z-index:4;margin:0;display:flex;align-items:center;color:var(--fill-ink);font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.03em;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
.fd-pile__tag{justify-content:center}
.fd-pile__logo{position:absolute;z-index:5;color:var(--band-ink)}
.fd-pile__copy{position:absolute;z-index:4;display:flex;flex-direction:column;justify-content:flex-end}
.fd-pile__head{color:var(--band-ink);line-height:1.12}
.fd-pile__act{display:flex;align-items:center;gap:32px}
.fd-pile__cue{flex:none;padding-inline:1em}
.fd-pile__terms{margin:0;flex:1 1 0;min-width:0;font-family:var(--font-body);font-weight:600;line-height:1.3;color:color-mix(in oklch,var(--band-ink) 86%,var(--band));text-wrap:pretty}
.fd-pile__terms span{white-space:nowrap}
.fd-pile__terms span:not(:last-of-type)::after{content:" ·"}
.fd-pile__total{display:block;margin-top:18px;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:2.1em;line-height:1;letter-spacing:-0.03em;color:var(--band-ink);font-variant-numeric:tabular-nums}
.fd-pile[data-format="square"]{--face:28px;--scrim:140px}
.fd-pile[data-format="square"] .fd-pile__shelf{width:600px;height:458px}
.fd-pile[data-format="square"] .fd-pile__stage{left:600px;top:0;width:480px;height:486px}
.fd-pile[data-format="square"] .fd-pile__ledge--top{left:0;top:486px;width:1080px;height:114px}
.fd-pile[data-format="square"] .fd-pile__count{left:64px;top:486px;height:104px;font-size:84px}
.fd-pile[data-format="square"] .fd-pile__tag{left:600px;top:486px;width:480px;height:104px;font-size:84px}
.fd-pile[data-format="square"] .fd-pile__tin{--tin-x:840px;--tin-s:400px;--base:472px}
.fd-pile[data-format="square"] .fd-pile__logo{left:64px;top:56px}
.fd-pile[data-format="square"] .fd-pile__copy{left:64px;right:64px;top:636px;bottom:64px;gap:28px}
.fd-pile[data-format="square"] .fd-pile__head{font-size:76px}
.fd-pile[data-format="square"] .fd-pile__cue{--cue-fs:38px}
.fd-pile[data-format="square"] .fd-pile__terms{font-size:30px}
.fd-pile[data-format="portrait"]{--face:28px;--scrim:150px}
.fd-pile[data-format="portrait"] .fd-pile__shelf{width:660px;height:640px}
.fd-pile[data-format="portrait"] .fd-pile__stage{left:660px;top:0;width:420px;height:668px}
.fd-pile[data-format="portrait"] .fd-pile__ledge--top{left:0;top:668px;width:1080px;height:132px}
.fd-pile[data-format="portrait"] .fd-pile__count{left:64px;top:668px;height:122px;font-size:100px}
.fd-pile[data-format="portrait"] .fd-pile__tag{left:660px;top:668px;width:420px;height:122px;font-size:100px}
.fd-pile[data-format="portrait"] .fd-pile__tin{--tin-x:870px;--tin-s:500px;--base:654px}
.fd-pile[data-format="portrait"] .fd-pile__logo{left:64px;top:60px}
.fd-pile[data-format="portrait"] .fd-pile__copy{left:64px;right:64px;top:836px;bottom:64px;gap:32px}
.fd-pile[data-format="portrait"] .fd-pile__head{font-size:84px}
.fd-pile[data-format="portrait"] .fd-pile__cue{--cue-fs:42px}
.fd-pile[data-format="portrait"] .fd-pile__terms{font-size:30px}
.fd-pile[data-format="story"]{--face:30px}
.fd-pile[data-format="story"] .fd-pile__shelf{width:1080px;height:680px}
.fd-pile[data-format="story"] .fd-pile__ledge--top{left:0;top:710px;width:1080px;height:130px}
.fd-pile[data-format="story"] .fd-pile__ledge--low{left:0;top:1640px;width:1080px;height:72px}
.fd-pile[data-format="story"] .fd-pile__count{left:64px;top:710px;height:120px;font-size:112px}
.fd-pile[data-format="story"] .fd-pile__logo{left:auto;right:64px;top:740px;color:var(--fill-ink)}
.fd-pile[data-format="story"] .fd-pile__stage{left:560px;top:1240px;width:520px;height:370px}
.fd-pile[data-format="story"] .fd-pile__tin{--tin-x:810px;--tin-s:420px;--base:1625px}
.fd-pile[data-format="story"] .fd-pile__copy{left:64px;right:64px;top:890px;bottom:calc(var(--safe-bottom) + 20px);justify-content:space-between}
.fd-pile[data-format="story"] .fd-pile__head{font-size:88px}
.fd-pile[data-format="story"] .fd-pile__act{flex-direction:column-reverse;align-items:flex-start;gap:28px;max-width:560px}
.fd-pile[data-format="story"] .fd-pile__terms{flex:none;font-size:32px}
.fd-pile[data-format="story"] .fd-pile__cue{--cue-fs:46px}
.fd-pile[data-format="landscape"]{--face:18px;--scrim:125px}
.fd-pile[data-format="landscape"] .fd-pile__shelf{width:400px;height:452px}
.fd-pile[data-format="landscape"] .fd-pile__stage{left:400px;top:0;width:220px;height:470px}
.fd-pile[data-format="landscape"] .fd-pile__ledge--top{left:0;top:470px;width:620px;height:158px}
.fd-pile[data-format="landscape"] .fd-pile__count{left:48px;top:470px;height:148px;font-size:60px}
.fd-pile[data-format="landscape"] .fd-pile__tag{left:400px;top:470px;width:220px;height:148px;font-size:60px}
.fd-pile[data-format="landscape"] .fd-pile__tin{--tin-x:510px;--tin-s:280px;--base:461px}
.fd-pile[data-format="landscape"] .fd-pile__logo{left:48px;top:40px}
.fd-pile[data-format="landscape"] .fd-pile__copy{left:660px;right:48px;top:48px;bottom:48px;justify-content:center;gap:22px}
.fd-pile[data-format="landscape"] .fd-pile__head{font-size:56px}
.fd-pile[data-format="landscape"] .fd-pile__act{flex-direction:column-reverse;align-items:flex-start;gap:22px}
.fd-pile[data-format="landscape"] .fd-pile__terms{flex:none;font-size:24px}
.fd-pile[data-format="landscape"] .fd-pile__cue{--cue-fs:30px}
`
export default PileCountTubs
pieces/ads/pile-count-tubs/specimen.tsx 53 lines
import __studioImage9b330be6 from "../assets/0ec2b77dfffacbd4.webp";
import __studioImage2c795b7d from "../assets/142db5c459c38829.webp";
import * as React from "react"
import { slot } from "../../slots"
import { PileCountTubs, formats } from "../pile-count-tubs"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Sallowfield, a cocoa blend sold in a single tin. Both images are generated illustrations;
// the tubs on the shelf are plain and unbranded.
const sallowfieldLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 244 56"><path d="M6 50C6 24 22 8 46 5c1 27-14 44-40 45z" fill="currentColor"/><text x="58" y="39" font-family="Helvetica, Arial, sans-serif" font-size="30" font-weight="700" letter-spacing="-.5" fill="currentColor">sallowfield</text></svg>`,
)
export const states = ["square", "portrait", "story", "landscape"]
export const copy = {
platform: "meta",
primary_text: "Count the tubs. Five on one shelf, five lids that don't match, every one half-finished.\n\nOne tin instead. Sallowfield is a single tin of cocoa blend with 9 listed ingredients, $34.\n\nRead the label first. Every ingredient is listed on the product page.",
headline: "One tin. 9 listed ingredients.",
description: "Cocoa · $34",
cta: "Shop Now",
}
// Sample brand (tide-teal palette, grotesk-clean fonts, invented): previews, the pack and the site show this ad in it by default.
export const sampleBrand = {
name: "Sallowfield",
theme: "light",
background: "#f1f8f8",
colors: ["#0e7c7b", "#f2a541"],
fonts: ["Plus Jakarta Sans", "Inter"],
button: "soft-caps",
band: "#d2eeee",
}
export default function PileCountTubsSpecimen({ state = "portrait" }: { state?: string }) {
return (
<PileCountTubs
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
count="5 tubs."
headline="Cupboard full of half-finished tubs you meant to take?"
terms="One tin · 9 listed ingredients · cocoa"
price="$34"
cue="See the tin"
shelfImage={slot("scene", __studioImage9b330be6)}
shelfAlt="Five half-used tubs with mismatched lids crowded on one cupboard shelf"
productImage={slot("product", __studioImage2c795b7d)}
productAlt="The Sallowfield cocoa tin"
logo={slot("logo", sallowfieldLogo)}
brand="Sallowfield"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalPileCountTubs |
AdFormat |
Default "portrait"
|
count OptionalPileCountTubs |
string |
Default ""
|
headline OptionalPileCountTubs |
string |
Default "A shelf of half-used tubs you meant to finish?"
|
highlight OptionalPileCountTubs |
string |
Default ""
|
terms OptionalPileCountTubs |
string |
Default "One product · everything listed"
|
price OptionalPileCountTubs |
string |
Default ""
|
cue OptionalPileCountTubs |
string |
Default "See the product"
|
cueNote OptionalPileCountTubs |
string |
Default ""
|
shelfImage OptionalPileCountTubs |
string |
Default ""
|
shelfAlt OptionalPileCountTubs |
string |
Default "A shelf crowded with half-used tubs"
|
productImage OptionalPileCountTubs |
string |
Default ""
|
productAlt OptionalPileCountTubs |
string |
Default "The product"
|
logo OptionalPileCountTubs |
string |
Default ""
|
brand OptionalPileCountTubs |
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).
scene- A wide atmosphere photo behind or beside the copy.
-
0ec2b77dfffacbd4.webp
image/webp · 15.7 KB
-
142db5c459c38829.webp
image/webp · 15.3 KB