Product Lineup Treats 1
Four flavours of one product stand in a row on a spotlit stage floor while a dog's nose sniffs the nearest bag; a cold, offer-led ad that sends the owner of a picky eater to the sampler 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 207 characters
- Picky eater at the bowl again? Don't buy a big bag and hope. Try four flavours first: duck, salmon, lamb and pumpkin. The sampler is $12. Shipping is free. Easy. Get the sampler and let your dog choose.
- Headline 30 characters
- Four-flavour dog treat sampler
- Description 16 characters
- $12 · ships free
- Button 8 characters
- Shop Now
What it is for
- Angle
- offer led
- Temperature
- cold
- Archetype
- product lineup
- Sends people to
- sampler page
- Words on the image
- At most 24
Use it in a prompt
Make the ads/product-lineup-treats 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/product-lineup-treats.tsx. - Import it and pass your copy and images (Props tab):
import { ProductLineupTreats } from "@/components/funneldna/ads/product-lineup-treats"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/product-lineup-treats/component.tsx 212 lines
// archetype: product-lineup
// When to use: Four flavours of one product stand in a row on a spotlit stage floor while a dog's nose sniffs the nearest bag; a cold, offer-led ad that sends the owner of a picky eater to the sampler page.
import * as React from "react"
import { AdFrame, AdHeadline, Cue, LogoMark, type AdFormat } from "../fx/ad-kit"
import { Spotlight, Texture } from "../fx/fx"
import noise from "../fx/textures/noise"
/**
* Lineup on a stage floor. The hero is the row of bags under one long Spotlight from above. Each bag stands on the
* floor line with a contact shadow, and its flavour is set in plain type on the floor beneath it. A dog's head enters
* from the frame edge and its nose almost touches the nearest bag. The headline sits above the row. The sampler terms
* and the cue sit on the floor below it, and the logo is small in the top right corner.
* Square: one row with the nose from the left. Portrait: bags larger, 2 x 2 on two shelves, with the head rising
* from the lower shelf on the left. Story: two tall shelves filling the height, the head entering from the right and
* the terms and cue stacked just above the bottom safe line. Landscape: copy on the left, the row on the right and
* the nose from the right edge.
* Truth: flavours, price and shipping are copied from the sampler page. There are no health, digestion or
* "vet approved" claims. The terms render only when supplied.
* Finish: cut-outs run through a 1.5px edge choke with a dark rim tinted from --shadow, so no light fringe shows.
* Bags sink a few pixels past the floor line so they stand on it rather than float. hue-rotate is used only to turn
* the designed bag's plain label to each flavour's colour. Supplied product photos are never recoloured, because
* the specimen passes `hue` only for designed art.
*/
export type LineupItem = {
/** The flavour, one or two words, set on the floor under its bag. */
name: string
/** Transparent cut-out of the bag (slots "item-1" ... "item-4"). */
image?: string
/** Degrees of hue rotation that turn the designed bag's plain label to this flavour. Leave empty for supplied photos. */
hue?: number
}
export type ProductLineupTreatsProps = {
format?: AdFormat
/** The moment and the offer, 12 words or fewer. */
headline?: string
/** One phrase inside `headline` set in the highlight tint. */
highlight?: string
/** Two to four flavours, the one nearest the nose first. */
items?: LineupItem[]
/** The sampler terms in one line (price and shipping, copied from the page). Empty: none. */
terms?: string
/** The page button's words. */
cue?: string
/** One short line under the cue. Empty: none. */
cueNote?: string
/** Transparent cut-out of a dog's head in side profile facing right; it enters from the frame edge. Empty: none. */
nose?: string
logo?: string
brand?: string
}
export const formats: AdFormat[] = ["square", "portrait", "story", "landscape"]
export const lead = "portrait" satisfies AdFormat
// 24, not 20: the brief adds four one-word flavour labels under the bags (and the price separator) to the usual headline, terms and cue.
export const wordCap = 24
type NoseSpot = { row: number; side: "left" | "right" }
/** Which shelf the nose sniffs and which frame edge it enters from, per composition. */
const NOSE: Record<AdFormat, NoseSpot> = {
square: { row: 0, side: "left" },
portrait: { row: 1, side: "left" },
story: { row: 1, side: "right" },
landscape: { row: 0, side: "right" },
thumbnail: { row: 0, side: "left" },
}
/** How many shelves each composition uses. */
const SHELVES: Record<AdFormat, number> = { square: 1, portrait: 2, story: 2, landscape: 1, thumbnail: 1 }
const DEFAULT_ITEMS: LineupItem[] = [{ name: "Original" }, { name: "Chicken" }, { name: "Beef" }, { name: "Fish" }]
export function ProductLineupTreats({
format = "portrait",
headline = "Not sure which one they'll love? Try all four first.",
highlight = "",
items = DEFAULT_ITEMS,
terms = "Every flavour in one sampler",
cue = "Get the sampler",
cueNote = "",
nose = "",
logo = "",
brand = "",
}: ProductLineupTreatsProps) {
const rows = splitRows(items, SHELVES[format] || 1)
const spot = NOSE[format] || NOSE.square
const noseRow = Math.min(spot.row, rows.length - 1)
return (
<AdFrame format={format} className="fd-lineup">
<style href="fd-lineup" precedence="default">{CSS}</style>
<EdgeFilter />
<Texture src={noise} tone="band-ink" opacity={0.05} />
<div className="fd-lineup__light" aria-hidden><Spotlight /></div>
<LogoMark src={logo} brand={brand} className="fd-lineup__logo" />
<AdHeadline as="h1" text={headline} highlight={highlight} mark="ink" className="fd-lineup__h" />
<div className="fd-lineup__shelves">
{rows.map((row, r) => (
<div className="fd-lineup__row" key={r}>
{row.map((item, i) => (
<div className="fd-lineup__item" key={i}>
<div className={item.image ? "fd-lineup__bag is-filled" : "fd-lineup__bag"}>
{item.image ? (
<img
src={item.image}
alt={item.name}
style={item.hue ? ({ "--hue": `${item.hue}deg` } as React.CSSProperties) : undefined}
/>
) : null}
</div>
<p className="fd-lineup__name">{item.name}</p>
</div>
))}
{nose && r === noseRow ? <img className="fd-lineup__nose" data-side={spot.side} src={nose} alt="" /> : null}
</div>
))}
</div>
<div className="fd-lineup__close">
{terms ? <p className="fd-lineup__terms">{terms}</p> : null}
<Cue note={cueNote} className="fd-lineup__cue">{cue}</Cue>
</div>
</AdFrame>
)
}
/** Splits the lineup evenly across the composition's shelves. */
function splitRows(items: LineupItem[], shelves: number): LineupItem[][] {
const per = Math.max(1, Math.ceil(items.length / Math.max(1, shelves)))
const rows: LineupItem[][] = []
for (let i = 0; i < items.length; i += per) rows.push(items.slice(i, i + per))
return rows.length ? rows : [[]]
}
/**
* Edge choke for the cut-outs. It erodes the alpha 1.5px to remove the light matte fringe a generated cut-out
* carries, then lays a thin dark rim from --shadow inside the new edge.
*/
function EdgeFilter() {
return (
<svg className="fd-lineup__defs" aria-hidden focusable="false" width="0" height="0">
<filter id="fd-lineup-edge" x="-2%" y="-2%" width="104%" height="104%" colorInterpolationFilters="sRGB">
<feMorphology in="SourceAlpha" operator="erode" radius="1.5" result="core" />
<feGaussianBlur in="core" stdDeviation="0.5" result="coreSoft" />
<feComposite in="SourceGraphic" in2="coreSoft" operator="in" result="choked" />
<feMorphology in="core" operator="erode" radius="3" result="inner" />
<feComposite in="coreSoft" in2="inner" operator="out" result="rim" />
<feGaussianBlur in="rim" stdDeviation="1" result="rimSoft" />
<feFlood style={{ floodColor: "var(--shadow, oklch(0.22 0.03 260))", floodOpacity: 0.5 }} 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-lineup{--floor:color-mix(in oklab,var(--band-ink) 8%,var(--band));--ledge:color-mix(in oklab,var(--band-ink) 18%,var(--band));--sh:var(--shadow,oklch(0.22 0.03 260))}
.fd-lineup__defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.fd-lineup__light{position:absolute;inset:0;z-index:0;pointer-events:none}
.fd-lineup__logo{position:absolute;z-index:4;top:var(--ad-m);right:var(--ad-m);color:var(--band-ink)}
.fd-lineup__h{position:absolute;z-index:3;color:var(--band-ink);line-height:1.12}
.fd-lineup__shelves{position:absolute;z-index:1;left:0;right:0;display:flex;flex-direction:column}
.fd-lineup__row{position:relative;display:flex;align-items:flex-end;justify-content:center;padding-inline:var(--pad-s) var(--pad-e)}
.fd-lineup__row::after{content:"";position:absolute;z-index:0;left:calc(var(--ad-w) * -1);right:calc(var(--ad-w) * -1);top:calc(100% - var(--strip));height:var(--strip);background:var(--floor);box-shadow:inset 0 3px 0 var(--ledge),0 2px 3px oklch(from var(--sh) l c h / 0.22),0 8px 12px -4px oklch(from var(--sh) l c h / 0.16)}
.fd-lineup__row:last-child::after{height:calc(var(--strip) + var(--ad-h))}
.fd-lineup__item{position:relative;z-index:1;flex:none;width:var(--step);display:flex;flex-direction:column;align-items:center}
.fd-lineup__bag{position:relative;flex:none;width:var(--bag);height:var(--bag);margin-bottom:calc(var(--sink) * -1)}
.fd-lineup__bag.is-filled::before{content:"";position:absolute;z-index:0;left:22%;right:22%;bottom:calc(var(--bag) * -0.035);height:calc(var(--bag) * 0.07);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.2) 60%,oklch(from var(--sh) l c h / 0))}
.fd-lineup__bag img{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:contain;object-position:50% 100%;filter:url(#fd-lineup-edge) hue-rotate(var(--hue,0deg)) drop-shadow(0 2px 3px oklch(from var(--sh) l c h / 0.28)) drop-shadow(0 12px 14px oklch(from var(--sh) l c h / 0.16))}
.fd-lineup__name{position:relative;z-index:2;margin:0;height:var(--strip);display:flex;align-items:center;justify-content:center;white-space:nowrap;font-family:var(--font-body);font-weight:700;font-size:var(--name-fs);line-height:1.1;color:var(--band-ink)}
.fd-lineup__nose{position:absolute;z-index:3;bottom:var(--strip);width:var(--nose);height:var(--nose);object-fit:contain;object-position:100% 100%;filter:url(#fd-lineup-edge) drop-shadow(0 2px 3px oklch(from var(--sh) l c h / 0.3)) drop-shadow(0 12px 16px oklch(from var(--sh) l c h / 0.18))}
.fd-lineup__nose[data-side="left"]{left:var(--nose-x)}
.fd-lineup__nose[data-side="right"]{right:var(--nose-x);transform:scaleX(-1)}
.fd-lineup__close{position:absolute;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:28px}
.fd-lineup__terms{flex:1 1 auto;min-width:0;margin:0;font-family:var(--font-body);font-weight:700;line-height:1.2;color:var(--band-ink);text-wrap:pretty}
.fd-lineup .fd-lineup__cue{flex:none;padding-inline:.95em}
.fd-lineup[data-format="square"]{--bag:280px;--step:174px;--strip:60px;--sink:11px;--pad-s:170px;--pad-e:64px;--nose:320px;--nose-x:-100px;--name-fs:32px}
.fd-lineup[data-format="square"] .fd-lineup__h{top:150px;left:64px;right:64px;font-size:74px}
.fd-lineup[data-format="square"] .fd-lineup__shelves{top:500px}
.fd-lineup[data-format="square"] .fd-lineup__close{left:64px;right:64px;bottom:64px}
.fd-lineup[data-format="square"] .fd-lineup__terms{font-size:36px}
.fd-lineup[data-format="square"] .fd-lineup__cue{--cue-fs:40px}
.fd-lineup[data-format="portrait"]{--bag:310px;--step:340px;--strip:58px;--sink:12px;--pad-s:170px;--pad-e:64px;--nose:460px;--nose-x:-170px;--name-fs:34px}
.fd-lineup[data-format="portrait"] .fd-lineup__h{top:150px;left:64px;right:64px;font-size:78px}
.fd-lineup[data-format="portrait"] .fd-lineup__shelves{top:430px}
.fd-lineup[data-format="portrait"] .fd-lineup__close{left:64px;right:64px;bottom:64px}
.fd-lineup[data-format="portrait"] .fd-lineup__terms{font-size:36px}
.fd-lineup[data-format="portrait"] .fd-lineup__cue{--cue-fs:42px}
.fd-lineup[data-format="story"]{--bag:330px;--step:330px;--strip:58px;--sink:13px;--pad-s:64px;--pad-e:210px;--nose:520px;--nose-x:-200px;--name-fs:34px}
.fd-lineup[data-format="story"] .fd-lineup__logo{top:calc(var(--safe-top) + 18px)}
.fd-lineup[data-format="story"] .fd-lineup__h{top:350px;left:64px;right:64px;font-size:82px}
.fd-lineup[data-format="story"] .fd-lineup__shelves{top:640px}
.fd-lineup[data-format="story"] .fd-lineup__close{left:64px;right:64px;bottom:calc(var(--safe-bottom) + 12px);flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:14px}
.fd-lineup[data-format="story"] .fd-lineup__terms{flex:none;font-size:38px}
.fd-lineup[data-format="story"] .fd-lineup__cue{--cue-fs:44px}
.fd-lineup[data-format="landscape"]{--bag:236px;--step:124px;--strip:46px;--sink:9px;--pad-s:20px;--pad-e:184px;--nose:250px;--nose-x:-80px;--name-fs:23px}
.fd-lineup[data-format="landscape"] .fd-lineup__light{left:480px}
.fd-lineup[data-format="landscape"] .fd-lineup__logo{top:44px;right:48px}
.fd-lineup[data-format="landscape"] .fd-lineup__h{top:48px;left:48px;width:470px;font-size:56px}
.fd-lineup[data-format="landscape"] .fd-lineup__shelves{top:190px;left:500px;right:0}
.fd-lineup[data-format="landscape"] .fd-lineup__close{left:48px;width:470px;bottom:48px;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:14px}
.fd-lineup[data-format="landscape"] .fd-lineup__terms{flex:none;font-size:26px}
.fd-lineup[data-format="landscape"] .fd-lineup__cue{--cue-fs:30px}
`
export default ProductLineupTreats
pieces/ads/product-lineup-treats/specimen.tsx 78 lines
import __studioImage8c8b1c22 from "../assets/a0910cac4e7ca53b.webp";
import __studioImage416d3591 from "../assets/78ca47ac7fd51c3d.webp";
import * as React from "react"
import { slot } from "../../slots"
import { ProductLineupTreats, formats, type LineupItem } from "../product-lineup-treats"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Pawlish Larder, a small dog-treat kitchen selling a four-flavour sampler. The images are generated illustrations.
// The designed bag is one blank pouch with a plain violet label; each flavour turns the label to its own colour with `hue`.
const pouch = __studioImage8c8b1c22
// Decorative sample art: no brand slot carries a pet, so the designed nose stays unless a caller passes its own cut-out.
const nose = __studioImage416d3591
const pawlishLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 56"><g fill="currentColor"><ellipse cx="28" cy="37" rx="13" ry="11"/><ellipse cx="11" cy="21" rx="5.5" ry="7"/><ellipse cx="22" cy="11" rx="5.5" ry="7"/><ellipse cx="35" cy="11" rx="5.5" ry="7"/><ellipse cx="46" cy="21" rx="5.5" ry="7"/></g><text x="62" y="38" font-family="Helvetica, Arial, sans-serif" font-size="30" font-weight="700" letter-spacing="-.4" fill="currentColor">pawlish larder</text></svg>`,
)
// The flavours on the sampler page, nearest the nose first; hue turns the designed violet label to each flavour.
const FLAVOURS: { name: string; hue: number }[] = [
{ name: "Duck", hue: -95 },
{ name: "Salmon", hue: 70 },
{ name: "Lamb", hue: -150 },
{ name: "Pumpkin", hue: 120 },
]
export const states = ["square", "portrait", "story", "landscape"]
export const copy = {
platform: "meta",
primary_text: `Picky eater at the bowl again?
Don't buy a big bag and hope.
Try four flavours first: duck, salmon, lamb and pumpkin.
The sampler is $12. Shipping is free.
Easy.
Get the sampler and let your dog choose.`,
headline: "Four-flavour dog treat sampler",
description: "$12 · ships free",
cta: "Shop Now",
}
// Sample brand (violet-mint palette, geometric fonts, pill-bold button; invented): previews, the pack and the site show this ad in it by default.
export const sampleBrand = {
name: "Pawlish Larder",
theme: "light",
background: "#f7f5ff",
colors: ["#6a3df0", "#1fbf8f"],
fonts: ["Montserrat", "Source Sans 3"],
band: "#e6deff",
button: "pill-bold",
}
export default function ProductLineupTreatsSpecimen({ state = "portrait" }: { state?: string }) {
const art = [slot("item-1", pouch), slot("item-2", pouch), slot("item-3", pouch), slot("item-4", pouch)]
const items: LineupItem[] = FLAVOURS.map((f, i) => ({
name: f.name,
image: art[i],
hue: art[i] === pouch ? f.hue : undefined,
}))
return (
<ProductLineupTreats
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
headline="Picky eater at the bowl again? Try four flavours first."
highlight="four flavours"
items={items}
terms="Sampler $12 · ships free"
cue="Get the sampler"
nose={nose}
logo={slot("logo", pawlishLogo)}
brand="Pawlish Larder"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalProductLineupTreats |
AdFormat |
Default "portrait"
|
headline OptionalProductLineupTreats |
string |
Default "Not sure which one they'll love? Try all four first."
|
highlight OptionalProductLineupTreats |
string |
Default ""
|
items OptionalProductLineupTreats |
LineupItem[] |
Default DEFAULT_ITEMS
|
terms OptionalProductLineupTreats |
string |
Default "Every flavour in one sampler"
|
cue OptionalProductLineupTreats |
string |
Default "Get the sampler"
|
cueNote OptionalProductLineupTreats |
string |
Default ""
|
nose OptionalProductLineupTreats |
string |
Default ""
|
logo OptionalProductLineupTreats |
string |
Default ""
|
brand OptionalProductLineupTreats |
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.
None listed in this pack.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-3- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-4- One image per offer item (item-1, item-2…), shown in stacks and lists.
logo- The brand’s logo mark.
-
78ca47ac7fd51c3d.webp
image/webp · 118 KB
-
a0910cac4e7ca53b.webp
image/webp · 13.3 KB
-
bec2a41897a3364d.webp
image/webp · 51.2 KB