Carousel Recipe Cards 1
A five-card recipe swipe for a meal-kit or food box (the finished dish and the hook, three numbered steps cut from one counter photo, then the box offer); a warm offer-led ad that sends traffic to the order 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 278 characters
- Cooking for two on a Tuesday? This harissa chicken is three steps and one pan. Sear the thighs skin-side down. Add the harissa and chickpeas. Rest five minutes. It's one of three recipes in your first Cobblebrae box: $29, and it ships free. Pick your box and Tuesday's sorted.
- Headline 31 characters
- Your first box: $29, ships free
- Description 17 characters
- 3 recipes for two
- Button 9 characters
- Order Now
What it is for
- Angle
- offer led
- Temperature
- warm
- Archetype
- carousel recipe
- Sends people to
- order page
- Words on the image
- At most 20
Use it in a prompt
Make the ads/carousel-recipe-cards ad from the FunnelDNA library in my brand, at every size (portrait-1, portrait-2, portrait-3, portrait-4, portrait-5, square-1, square-2, square-3, square-4, square-5), 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/carousel-recipe-cards.tsx. - Import it and pass your copy and images (Props tab):
import { CarouselRecipeCards } from "@/components/funneldna/ads/carousel-recipe-cards"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/carousel-recipe-cards/component.tsx 191 lines
// archetype: carousel-recipe
// When to use: A five-card recipe swipe for a meal-kit or food box (the finished dish and the hook, three numbered steps cut from one counter photo, then the box offer); a warm offer-led ad that sends traffic to the order page.
import * as React from "react"
import { AdFrame, AdHeadline, Cue, LogoMark, type AdFormat } from "../fx/ad-kit"
/**
* Recipe carousel: five cards that swipe as one strip. Every card is a photo over one solid band set at the same
* height, so the band runs straight through the swipe.
* - Card 1: the finished dish and the hook.
* - Cards 2–4: one step each. A huge step numeral in the marker tint sits beside the step in a few words. The photo
* above is cut from one wide counter shot, so the pan moves left to right across the three cards.
* - Card 5: the box beside the dish, the price set like a numeral with its per-plate breakdown, then the offer.
* The logo and the cue sit in the same place on every card. The cue carries the offer terms as its note, so the
* price and shipping show on every card.
* Truth: the recipe is a real box recipe. The price, shipping and per-plate figure are copied from the order page.
* Nothing here is proof, so there are no ratings or counts.
* Images: `dishImage` shows its left half on card 1 and its right half on card 5 (dish left, open box right).
* `stepsImage` is cut into thirds for cards 2–4 (sear, sauce, plate, left to right). A step's own `image` replaces
* its third. No text ever sits on a photo: every word is on the band.
*/
export type RecipeStep = {
/** The step in about five words. */
title: string
/** Optional close photo of this moment; replaces this step's third of `stepsImage`. */
image?: string
}
export type CarouselRecipeCardsProps = {
format?: AdFormat
/** Which card of the swipe: 1 the hook, 2–4 the steps, 5 the offer. */
card?: 1 | 2 | 3 | 4 | 5
/** Card 1 hook, 12 words or fewer. A "\n" forces a break. */
headline?: string
/** One phrase in `headline` set in the marker tint. Empty: none. */
highlight?: string
/** The three steps shown on cards 2–4. */
steps?: RecipeStep[]
/** Card 5 headline. */
offerHeadline?: string
/** Card 5 offer terms line (recipes, shipping). Empty: none. */
support?: string
/** Card 5 price, set large like a step numeral. Empty: none. */
price?: string
/** Card 5 breakdown under the price (e.g. per plate), copied from the order page. Empty: none. */
priceNote?: string
cue?: string
/** Offer terms under the cue on cards 1–4 (card 5 uses `support` instead). Empty: none. */
cueNote?: string
/** Wide shot: the finished dish on the left half, the open box on the right half (slot "scene"). */
dishImage?: string
dishAlt?: string
/** Wide counter shot of the three moments left to right, cut into thirds for cards 2–4 (slot "item-1"). */
stepsImage?: string
logo?: string
brand?: string
}
export const formats: AdFormat[] = ["square", "portrait"]
export const lead = "portrait" satisfies AdFormat
export const wordCap = 20
export const cards = [1, 2, 3, 4, 5] as const
const DEFAULT_STEPS: RecipeStep[] = [
{ title: "Brown it in the pan" },
{ title: "Stir in the sauce" },
{ title: "Rest, then plate up" },
]
export function CarouselRecipeCards({
format = "portrait",
card = 1,
headline = "Dinner for two tonight, in three easy steps.",
highlight = "",
steps = DEFAULT_STEPS,
offerHeadline = "Everything for this recipe, in one box.",
support = "",
price = "",
priceNote = "",
cue = "Get my first box",
cueNote = "",
dishImage = "",
dishAlt = "The finished dish beside the recipe box",
stepsImage = "",
logo = "",
brand = "",
}: CarouselRecipeCardsProps) {
const n = card >= 1 && card <= 5 ? Math.round(card) : 1
const kind = n === 1 ? "hook" : n === 5 ? "offer" : "step"
const i = n - 2
const step: RecipeStep | undefined = kind === "step" ? steps[i] ?? DEFAULT_STEPS[i] : undefined
let src = ""
let crop = "full"
let alt = dishAlt
if (step) {
alt = step.title
if (step.image) src = step.image
else if (stepsImage) {
src = stepsImage
crop = String(i + 1)
}
} else if (dishImage) {
src = dishImage
crop = kind === "hook" ? "first" : "last"
}
const text = step ? keepHyphens(step.title) : kind === "offer" ? offerHeadline : headline
const hasLead = Boolean(step) || (kind === "offer" && Boolean(price || priceNote))
const note = kind === "offer" && support ? "" : cueNote
return (
<AdFrame format={format} className={`fd-recipe fd-recipe--${kind}${hasLead ? "" : " fd-recipe--nolead"}`}>
<style href="fd-recipe" precedence="default">{CSS}</style>
<div className="fd-recipe__photo">
{src ? <img src={src} alt={alt} data-crop={crop} /> : null}
</div>
<div className="fd-recipe__band">
{hasLead ? (
<div className="fd-recipe__lead">
{step ? <span className="fd-recipe__num">{i + 1}</span> : null}
{!step && price ? <span className="fd-recipe__price">{price}</span> : null}
{!step && priceNote ? <p className="fd-recipe__small">{priceNote}</p> : null}
</div>
) : null}
<div className="fd-recipe__text">
<AdHeadline as="h1" text={text} highlight={kind === "hook" ? highlight : ""} mark="ink" className="fd-recipe__head" />
{kind === "offer" && support ? <p className="fd-recipe__small">{support}</p> : null}
</div>
<div className="fd-recipe__foot">
<LogoMark src={logo} brand={brand} className="fd-recipe__logo" />
<Cue note={note} className="fd-recipe__cue">{cue}</Cue>
</div>
</div>
</AdFrame>
)
}
/** Keeps hyphenated words such as "skin-side" whole on one line in the big step type. */
function keepHyphens(s: string) {
return s.replace(/-/g, "\u2011")
}
const CSS = `
.fd-recipe{background:var(--band)}
.fd-recipe__photo{position:absolute;left:0;right:0;top:0;overflow:hidden;background:color-mix(in oklch,var(--band-ink) 12%,var(--band))}
.fd-recipe__photo img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.fd-recipe__photo img[data-crop="first"]{width:200%;left:0}
.fd-recipe__photo img[data-crop="last"]{width:200%;left:-100%}
.fd-recipe__photo img[data-crop="1"]{width:300%;left:0}
.fd-recipe__photo img[data-crop="2"]{width:300%;left:-100%}
.fd-recipe__photo img[data-crop="3"]{width:300%;left:-200%}
.fd-recipe__band{position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:var(--lead-w,auto) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"lead text" "foot foot";column-gap:var(--col-gap,44px);row-gap:24px;background:var(--band);color:var(--band-ink)}
.fd-recipe--nolead .fd-recipe__band{grid-template-areas:"text text" "foot foot"}
.fd-recipe__lead{grid-area:lead;display:flex;flex-direction:column;align-items:flex-start;gap:24px;min-width:0}
.fd-recipe__text{grid-area:text;display:flex;flex-direction:column;align-items:flex-start;gap:20px;min-width:0;padding-top:4px}
.fd-recipe--offer .fd-recipe__text{gap:36px}
.fd-recipe .fd-recipe__head{color:var(--band-ink);line-height:1.1}
.fd-recipe__num,.fd-recipe__price{display:block;font-family:var(--font-display);font-weight:var(--display-weight,800);line-height:.8;letter-spacing:-0.04em;font-variant-numeric:lining-nums tabular-nums;white-space:nowrap;color:var(--band-marker,oklch(from var(--marker,#fae37c) max(l,0.86) c h))}
.fd-recipe__price{line-height:1.02;letter-spacing:-0.03em}
.fd-recipe__small{margin:0;font-family:var(--font-body);font-weight:600;line-height:1.25;text-wrap:pretty;color:color-mix(in oklch,var(--band-ink) 86%,var(--band))}
.fd-recipe__foot{grid-area:foot;display:flex;align-items:flex-end;justify-content:space-between;gap:32px;min-width:0}
.fd-recipe__logo{color:var(--band-ink)}
.fd-recipe .fd-recipe__cue{flex:none;margin-left:auto;gap:.42em}
.fd-recipe .fd-recipe__cue>span{line-height:1}
.fd-recipe .fd-recipe__cue small{line-height:1.15}
.fd-recipe[data-format="square"] .fd-recipe__photo{height:480px}
.fd-recipe[data-format="square"] .fd-recipe__band{height:600px;padding:52px 64px 64px;--col-gap:44px}
.fd-recipe[data-format="square"] .fd-recipe__head{font-size:80px}
.fd-recipe--hook[data-format="square"] .fd-recipe__head{font-size:76px}
.fd-recipe--offer[data-format="square"] .fd-recipe__head{font-size:72px}
.fd-recipe--step[data-format="square"] .fd-recipe__band{--lead-w:230px}
.fd-recipe[data-format="square"] .fd-recipe__num{font-size:330px}
.fd-recipe[data-format="square"] .fd-recipe__price{font-size:150px}
.fd-recipe[data-format="square"] .fd-recipe__small{font-size:30px}
.fd-recipe[data-format="square"] .fd-recipe__cue{--cue-fs:36px}
.fd-recipe[data-format="portrait"] .fd-recipe__photo{height:680px}
.fd-recipe[data-format="portrait"] .fd-recipe__band{height:670px;padding:60px 64px 64px;--col-gap:48px}
.fd-recipe[data-format="portrait"] .fd-recipe__head{font-size:96px}
.fd-recipe--hook[data-format="portrait"] .fd-recipe__head{font-size:84px}
.fd-recipe--offer[data-format="portrait"] .fd-recipe__head{font-size:80px}
.fd-recipe--step[data-format="portrait"] .fd-recipe__band{--lead-w:270px}
.fd-recipe[data-format="portrait"] .fd-recipe__num{font-size:400px}
.fd-recipe[data-format="portrait"] .fd-recipe__price{font-size:170px}
.fd-recipe[data-format="portrait"] .fd-recipe__small{font-size:32px}
.fd-recipe[data-format="portrait"] .fd-recipe__cue{--cue-fs:40px}
`
export default CarouselRecipeCards
pieces/ads/carousel-recipe-cards/specimen.tsx 64 lines
import __studioImage0fee9c79 from "../assets/ec4cf55b8e762e13.webp";
import __studioImagef89acdb2 from "../assets/730647a8d565229f.webp";
import * as React from "react"
import { slot } from "../../slots"
import { CarouselRecipeCards, formats } from "../carousel-recipe-cards"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Cobblebrae Kitchen, a recipe box for two. Both photos are generated illustrations.
const cobblebraeLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 350 60"><path fill="currentColor" fill-rule="evenodd" d="M26 10a20 20 0 1 1 0 40a20 20 0 1 1 0-40zm0 8a12 12 0 1 0 0 24a12 12 0 1 0 0-24z"/><rect x="44" y="26" width="20" height="8" rx="4" fill="currentColor"/><text x="76" y="40" font-family="Georgia, serif" font-size="27" font-weight="700" fill="currentColor">cobblebrae kitchen</text></svg>`,
)
// The state switch is format plus card: every card of the swipe at every size.
export const states = [
"portrait-1", "portrait-2", "portrait-3", "portrait-4", "portrait-5",
"square-1", "square-2", "square-3", "square-4", "square-5",
]
export const copy = {
platform: "meta",
primary_text: "Cooking for two on a Tuesday? This harissa chicken is three steps and one pan.\n\nSear the thighs skin-side down. Add the harissa and chickpeas. Rest five minutes.\n\nIt's one of three recipes in your first Cobblebrae box: $29, and it ships free. Pick your box and Tuesday's sorted.",
headline: "Your first box: $29, ships free",
description: "3 recipes for two",
cta: "Order Now",
}
export const sampleBrand = {"name":"Cobblebrae Kitchen","theme":"light","background":"#fff7f6","colors":["#d2345e","#3e3a8e"],"fonts":["Fraunces","DM Sans"],"button":"soft"}
function parseState(state: string): { format: AdFormat; card: 1 | 2 | 3 | 4 | 5 } {
const [f, c] = state.split("-")
const format = (formats.includes(f as AdFormat) ? f : "portrait") as AdFormat
const n = Number(c)
const card = (n >= 1 && n <= 5 ? n : 1) as 1 | 2 | 3 | 4 | 5
return { format, card }
}
export default function CarouselRecipeCardsSpecimen({ state = "portrait-1" }: { state?: string }) {
const { format, card } = parseState(state)
return (
<CarouselRecipeCards
format={format}
card={card}
headline="Cooking for two on a Tuesday? Harissa chicken in three steps."
highlight="three steps."
steps={[
{ title: "Sear skin-side down" },
{ title: "Add harissa and chickpeas" },
{ title: "Rest five minutes" },
]}
offerHeadline="This one, plus two more dinners."
support="3 recipes · ships free"
price="$29"
priceNote="$4.83 a plate"
cue="Get my first box"
cueNote="$29 · ships free"
dishImage={slot("scene", __studioImage0fee9c79)}
dishAlt="Harissa chicken in a skillet beside an open Cobblebrae box of ingredients"
stepsImage={slot("item-1", __studioImagef89acdb2)}
logo={slot("logo", cobblebraeLogo)}
brand="Cobblebrae Kitchen"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalCarouselRecipeCards |
AdFormat |
Default "portrait"
|
card OptionalCarouselRecipeCards |
1 | 2 | 3 | 4 | 5 |
Default 1
|
headline OptionalCarouselRecipeCards |
string |
Default "Dinner for two tonight, in three easy steps."
|
highlight OptionalCarouselRecipeCards |
string |
Default ""
|
steps OptionalCarouselRecipeCards |
RecipeStep[] |
Default DEFAULT_STEPS
|
offerHeadline OptionalCarouselRecipeCards |
string |
Default "Everything for this recipe, in one box."
|
support OptionalCarouselRecipeCards |
string |
Default ""
|
price OptionalCarouselRecipeCards |
string |
Default ""
|
priceNote OptionalCarouselRecipeCards |
string |
Default ""
|
cue OptionalCarouselRecipeCards |
string |
Default "Get my first box"
|
cueNote OptionalCarouselRecipeCards |
string |
Default ""
|
dishImage OptionalCarouselRecipeCards |
string |
Default ""
|
dishAlt OptionalCarouselRecipeCards |
string |
Default "The finished dish beside the recipe box"
|
stepsImage OptionalCarouselRecipeCards |
string |
Default ""
|
logo OptionalCarouselRecipeCards |
string |
Default ""
|
brand OptionalCarouselRecipeCards |
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.
--marker- The highlighter colour behind key phrases.
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.
logo- The brand’s logo mark.
scene- A wide atmosphere photo behind or beside the copy.
-
730647a8d565229f.webp
image/webp · 238 KB
-
ec4cf55b8e762e13.webp
image/webp · 159 KB