Banner Sale Scarf 1
A Google Display banner set for a real seasonal sale: the product cut-out on a flat colour block with the sale line, end date and one cue; a warm, offer-led ad that sends shoppers to the sale page.
The sample's post copy
Sample brand, fictional copy: the pattern to follow, written for the person's real offer.
- Platform 6 characters
- Primary text 88 characters
- Winter sale: 25% off every Fenmoor scarf until Sunday, with free returns on every order.
- Headline 28 characters
- 25% off scarves, ends Sunday
- Description 60 characters
- Free returns. Shop the winter sale before it ends on Sunday.
- Button 8 characters
- Shop Now
What it is for
- Angle
- offer led
- Temperature
- warm
- Archetype
- banner product
- Sends people to
- sale page
- Words on the image
- At most 20
Use it in a prompt
Make the ads/banner-sale-scarf ad from the FunnelDNA library in my brand, at every size (landscape, medium-rectangle, leaderboard, skyscraper, mobile-banner), 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/banner-sale-scarf.tsx. - Import it and pass your copy and images (Props tab):
import { BannerSaleScarf } from "@/components/funneldna/ads/banner-sale-scarf"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/banner-sale-scarf/component.tsx 194 lines
// archetype: banner-product
// When to use: A Google Display banner set for a real seasonal sale: the product cut-out on a flat colour block with the sale line, end date and one cue; a warm, offer-led ad that sends shoppers to the sale page.
import * as React from "react"
import { AdFrame, AdHeadline, Cue, LogoMark, AD_FORMATS, type AdFormat, type AdFormatSpec } from "../fx/ad-kit"
/**
* Banner product: the product's cut-out rests on a flat --accent-fill block split from the band on a strong diagonal.
* A deeper floor plane and a contact shadow ground it. The sale line, the real end date and one cue sit on the solid
* band. Each display size is re-composed (size names and floors match ads/display-banner-set across the library):
* - landscape 1200x628: product right, the full hook and terms left (64px headline, 56px logo).
* - medium-rectangle 300x250: the block fills the top half and the product stands large on its floor plane, base
* seated in the deeper floor with its contact shadow under it; logo top-left on the block (18px); the short line
* large below (34px), terms beside the cue.
* - leaderboard 728x90: logo (34px), short line over terms, then the cue, with the product cropped at the right
* edge (32px line).
* - skyscraper 160x600: logo (20px), short line (32px), product on the block, terms and cue stacked.
* - mobile-banner 320x50: the short line on two balanced lines (19px) and the cue only: no logo, no terms.
* Every display size uses `shortHeadline`, set as large as the canvas allows. Each size's headline floor
* (`headlineMin`) and logo height (`logo`, px; 0 = none) come from the `sizes` export, which the gate reads.
* Truth: `discount` and `endsOn` are the shop's real sale terms and are required. The terms line renders only when
* both are set. There are no was-prices, countdowns or invented scarcity.
*/
export type DisplayBannerFormat = "landscape" | "medium-rectangle" | "leaderboard" | "skyscraper" | "mobile-banner"
/** Kept for existing callers. */
export type BannerFormat = DisplayBannerFormat
/** A banner canvas plus its floors: the smallest headline and the logo height, in px (logo 0: no logo). */
export type DisplayBannerSpec = AdFormatSpec & { headlineMin: number; logo: number }
export type BannerSaleScarfProps = {
format?: DisplayBannerFormat
/** The real discount, e.g. "25%". Fills {discount} in any copy prop. Required. */
discount: string
/** The real last day of the sale, e.g. "Sunday". Fills {endsOn} in any copy prop. Required. */
endsOn: string
/** The hook, 12 words or fewer: name who it is for and the moment. May use {discount} and {endsOn}. */
headline?: string
/** Shorter line for the display sizes (300x250, 728x90, 160x600, 320x50; about 16 characters). Empty: the headline. */
shortHeadline?: string
/** Phrase inside the headline set in the highlight tint (also matched in the short line). */
highlight?: string
/** The deadline fact, shown in every size except 320x50. */
endsLine?: string
/** One more real term after the deadline (e.g. "free returns"); dropped on 320x50. Empty: none. */
extraTerms?: string
cue?: string
/** Transparent product cut-out (slot "product"). */
productImage?: string
productAlt?: string
logo?: string
brand?: string
}
export const formats: DisplayBannerFormat[] = ["landscape", "medium-rectangle", "leaderboard", "skyscraper", "mobile-banner"]
export const lead = "landscape" satisfies DisplayBannerFormat
export const wordCap = 20
const FLAT = { top: 0, bottom: 0 }
/** Exact canvas and floors per size: landscape comes from the kit, the IAB display sizes are this piece's extras. */
export const sizes: Record<DisplayBannerFormat, DisplayBannerSpec> = {
landscape: { ...AD_FORMATS.landscape, headlineMin: 56, logo: 56 },
"medium-rectangle": { width: 300, height: 250, label: "Medium rectangle 300×250", margin: 16, safe: FLAT, min: 16, headlineMin: 20, logo: 18 },
leaderboard: { width: 728, height: 90, label: "Leaderboard 728×90", margin: 20, safe: FLAT, min: 16, headlineMin: 30, logo: 34 },
skyscraper: { width: 160, height: 600, label: "Wide skyscraper 160×600", margin: 10, safe: FLAT, min: 16, headlineMin: 20, logo: 20 },
"mobile-banner": { width: 320, height: 50, label: "Mobile banner 320×50", margin: 8, safe: FLAT, min: 16, headlineMin: 17, logo: 0 },
}
export function BannerSaleScarf({
format = "landscape",
discount,
endsOn,
headline = "Our winter sale is on.",
shortHeadline = "",
highlight = "",
endsLine = "Ends {endsOn}",
extraTerms = "",
cue = "Shop the sale",
productImage = "",
productAlt = "",
logo = "",
brand = "",
}: BannerSaleScarfProps) {
const size = sizes[format] || sizes.landscape
const fill = (t: string) => t.split("{discount}").join(discount || "").split("{endsOn}").join(endsOn || "")
const compact = format !== "landscape"
const line = fill(compact && shortHeadline ? shortHeadline : headline)
const hasSale = Boolean(discount && endsOn)
const ends = fill(endsLine)
const extra = fill(extraTerms)
const vars = {
"--ad-w": `${size.width}px`, "--ad-h": `${size.height}px`, "--u": size.width / 1080, "--ad-m": `${size.margin}px`,
"--ad-min": `${size.min}px`, "--safe-top": `${size.safe.top}px`, "--safe-bottom": `${size.safe.bottom}px`,
"--head-min": `${size.headlineMin}px`,
} as React.CSSProperties
const logoVars = { "--logo-h": `${size.logo}px` } as React.CSSProperties
return (
<AdFrame format={format as AdFormat} className="fd-sale" style={vars}>
<style href="fd-sale" precedence="default">{CSS}</style>
<EdgeFilter />
<div className="fd-sale__block" aria-hidden>
<div className="fd-sale__floor" />
</div>
{productImage && format !== "mobile-banner" ? (
<div className="fd-sale__stage">
<span className="fd-sale__shadow" aria-hidden />
<img className="fd-sale__product" src={productImage} alt={productAlt} />
</div>
) : null}
{size.logo > 0 ? <LogoMark src={logo} brand={brand} className="fd-sale__logo" style={logoVars} /> : null}
<div className="fd-sale__copy">
<AdHeadline as="h1" text={line} highlight={fill(highlight)} mark="ink" className="fd-sale__head" />
{hasSale && ends && format !== "mobile-banner" ? (
<p className="fd-sale__terms">
<span>{ends}</span>
{extra ? <span className="fd-sale__extra">{" · "}{extra}</span> : null}
</p>
) : null}
<Cue className="fd-sale__cue">{cue}</Cue>
</div>
</AdFrame>
)
}
/** Edge choke: erodes the cut-out's alpha 1px so no light matte fringe shows on the block or the band. */
function EdgeFilter() {
return (
<svg className="fd-sale__defs" aria-hidden focusable="false" width="0" height="0">
<filter id="fd-sale-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="soft" />
<feComposite in="SourceGraphic" in2="soft" operator="in" />
</filter>
</svg>
)
}
const CSS = `
.fd-sale{background:var(--band);color:var(--band-ink)}
.fd-sale__defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.fd-sale__block{position:absolute;inset:0;background:var(--accent-fill,var(--accent))}
.fd-sale__floor{position:absolute;left:0;right:0;bottom:0;background:oklch(from var(--accent-fill,var(--accent)) calc(l - 0.1) c h)}
.fd-sale__stage{position:absolute;z-index:1;display:flex;align-items:flex-end;justify-content:center}
.fd-sale__shadow{position:absolute;left:16%;right:16%;bottom:1%;height:10%;border-radius:50%;background:radial-gradient(closest-side,oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.5),transparent)}
.fd-sale__product{position:relative;height:100%;width:auto;max-width:100%;object-fit:contain;object-position:bottom;filter:url(#fd-sale-edge) drop-shadow(0 2px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.4)) drop-shadow(0 10px 12px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.26))}
.fd-sale__logo{position:absolute;z-index:2;color:var(--band-ink)}
.fd-sale__copy{position:absolute;z-index:2;display:flex;flex-direction:column;align-items:flex-start}
.fd-sale__head{grid-area:head;color:var(--band-ink);line-height:1.04}
.fd-sale__terms{grid-area:terms;margin:0;font-family:var(--font-body);font-weight:600;line-height:1.25;color:color-mix(in oklch,var(--band-ink) 86%,var(--band));text-wrap:pretty}
.fd-sale__cue{grid-area:cue}
.fd-sale[data-format="landscape"] .fd-sale__block{clip-path:polygon(60% 0,100% 0,100% 100%,49% 100%)}
.fd-sale[data-format="landscape"] .fd-sale__floor{height:26%}
.fd-sale[data-format="landscape"] .fd-sale__stage{right:36px;bottom:60px;width:560px;height:500px}
.fd-sale[data-format="landscape"] .fd-sale__logo{left:48px;top:44px}
.fd-sale[data-format="landscape"] .fd-sale__copy{left:48px;top:128px;bottom:48px;width:540px;justify-content:center}
.fd-sale[data-format="landscape"] .fd-sale__head{font-size:max(var(--head-min),64px)}
.fd-sale[data-format="landscape"] .fd-sale__terms{margin-top:28px;font-size:26px}
.fd-sale[data-format="landscape"] .fd-sale__cue{--cue-fs:30px;margin-top:36px}
.fd-sale[data-format="medium-rectangle"] .fd-sale__block{clip-path:polygon(0 0,100% 0,100% 50%,0 42%)}
.fd-sale[data-format="medium-rectangle"] .fd-sale__floor{top:90px}
.fd-sale[data-format="medium-rectangle"] .fd-sale__stage{right:6px;top:2px;width:196px;height:118px}
.fd-sale[data-format="medium-rectangle"] .fd-sale__shadow{left:10%;right:10%;bottom:-3px;height:16px;background:radial-gradient(closest-side,oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.55),transparent)}
.fd-sale[data-format="medium-rectangle"] .fd-sale__logo{left:16px;top:16px;color:var(--accent-fill-ink,var(--card))}
.fd-sale[data-format="medium-rectangle"] .fd-sale__copy{display:grid;left:16px;right:16px;bottom:14px;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head head" "terms cue";column-gap:12px;row-gap:12px;align-items:end}
.fd-sale[data-format="medium-rectangle"] .fd-sale__head{font-size:max(var(--head-min),34px)}
.fd-sale[data-format="medium-rectangle"] .fd-sale__terms{font-size:16px}
.fd-sale[data-format="medium-rectangle"] .fd-sale__cue{--cue-fs:16px;padding:.6em .8em}
.fd-sale[data-format="leaderboard"] .fd-sale__block{clip-path:polygon(90% 0,100% 0,100% 100%,86% 100%)}
.fd-sale[data-format="leaderboard"] .fd-sale__floor{top:60px}
.fd-sale[data-format="leaderboard"] .fd-sale__stage{right:-8px;bottom:4px;width:80px;height:80px}
.fd-sale[data-format="leaderboard"] .fd-sale__logo{left:20px;top:50%;max-width:144px;transform:translateY(-50%)}
.fd-sale[data-format="leaderboard"] .fd-sale__copy{display:grid;left:180px;right:104px;top:0;bottom:0;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head cue" "terms cue";align-content:center;column-gap:16px;row-gap:10px}
.fd-sale[data-format="leaderboard"] .fd-sale__head{font-size:max(var(--head-min),32px);line-height:1;white-space:nowrap}
.fd-sale[data-format="leaderboard"] .fd-sale__terms{font-size:16px;line-height:1.2;white-space:nowrap}
.fd-sale[data-format="leaderboard"] .fd-sale__cue{--cue-fs:16px;padding:.65em .75em;align-self:center}
.fd-sale[data-format="skyscraper"] .fd-sale__block{clip-path:polygon(0 30%,100% 26%,100% 72%,0 76%)}
.fd-sale[data-format="skyscraper"] .fd-sale__floor{top:58%}
.fd-sale[data-format="skyscraper"] .fd-sale__stage{left:8px;right:8px;top:212px;height:186px}
.fd-sale[data-format="skyscraper"] .fd-sale__logo{left:16px;top:16px;max-width:128px}
.fd-sale[data-format="skyscraper"] .fd-sale__copy{inset:52px 16px 20px 16px;align-items:stretch}
.fd-sale[data-format="skyscraper"] .fd-sale__head{font-size:max(var(--head-min),32px)}
.fd-sale[data-format="skyscraper"] .fd-sale__terms{margin-top:auto;font-size:16px;text-align:center}
.fd-sale[data-format="skyscraper"] .fd-sale__cue{--cue-fs:16px;margin:14px -4px 0;width:auto;align-self:stretch;white-space:normal;text-align:center;padding:.65em .3em}
.fd-sale[data-format="mobile-banner"] .fd-sale__block{display:none}
.fd-sale[data-format="mobile-banner"] .fd-sale__copy{display:grid;left:8px;right:8px;top:0;bottom:0;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head cue";align-items:center;column-gap:12px}
.fd-sale[data-format="mobile-banner"] .fd-sale__head{font-size:max(var(--head-min),19px);line-height:1}
.fd-sale[data-format="mobile-banner"] .fd-sale__cue{--cue-fs:16px;padding:.5em .65em}
`
export default BannerSaleScarf
pieces/ads/banner-sale-scarf/specimen.tsx 51 lines
import __studioImage9b1e8dc3 from "../assets/3d4f6d092cf110d9.webp";
import * as React from "react"
import { slot } from "../../slots"
import { BannerSaleScarf, formats, type BannerFormat } from "../banner-sale-scarf"
// Sample brand (fictional): Fenmoor Knits, a small knitwear shop running its winter scarf sale. The scarf is a generated illustration.
const fenmoorLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 230 56"><path d="M6 12l12 14 12-14M6 30l12 14 12-14" fill="none" stroke="currentColor" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/><text x="44" y="39" font-family="Helvetica, Arial, sans-serif" font-size="31" font-weight="700" letter-spacing="-.5" fill="currentColor">fenmoor</text></svg>`,
)
export const states = ["landscape", "medium-rectangle", "leaderboard", "skyscraper", "mobile-banner"]
export const copy = {
platform: "google",
primary_text: "Winter sale: 25% off every Fenmoor scarf until Sunday, with free returns on every order.",
headline: "25% off scarves, ends Sunday",
description: "Free returns. Shop the winter sale before it ends on Sunday.",
cta: "Shop Now",
}
// Sample brand (forest-night palette, workhorse fonts, pill-caps buttons; invented): previews show this ad in it by default.
export const sampleBrand = {
name: "Fenmoor Knits",
theme: "dark",
background: "#0f1f19",
colors: ["#3ddc97", "#f4b860"],
fonts: ["Archivo", "Inter"],
button: "pill-caps",
}
export default function BannerSaleScarfSpecimen({ state = "landscape" }: { state?: string }) {
const format = (formats.includes(state as BannerFormat) ? state : "landscape") as BannerFormat
return (
<BannerSaleScarf
format={format}
discount="25%"
endsOn="Sunday"
headline="Cold commute? Winter sale, {discount} off scarves."
shortHeadline="{discount} off scarves"
highlight="{discount} off scarves"
endsLine="Ends {endsOn}"
extraTerms="free returns"
cue="Shop the sale"
productImage={slot("product", __studioImage9b1e8dc3)}
productAlt="Folded green ribbed wool scarf"
logo={slot("logo", fenmoorLogo)}
brand="Fenmoor Knits"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalBannerSaleScarf |
DisplayBannerFormat |
Default "landscape"
|
discount RequiredBannerSaleScarf |
string |
|
endsOn RequiredBannerSaleScarf |
string |
|
headline OptionalBannerSaleScarf |
string |
Default "Our winter sale is on."
|
shortHeadline OptionalBannerSaleScarf |
string |
Default ""
|
highlight OptionalBannerSaleScarf |
string |
Default ""
|
endsLine OptionalBannerSaleScarf |
string |
Default "Ends {endsOn}"
|
extraTerms OptionalBannerSaleScarf |
string |
Default ""
|
cue OptionalBannerSaleScarf |
string |
Default "Shop the sale"
|
productImage OptionalBannerSaleScarf |
string |
Default ""
|
productAlt OptionalBannerSaleScarf |
string |
Default ""
|
logo OptionalBannerSaleScarf |
string |
Default ""
|
brand OptionalBannerSaleScarf |
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.
logo- The brand’s logo mark.
product- The main product shot or cover (ebook, kit, bottle).
-
3d4f6d092cf110d9.webp
image/webp · 133 KB