Challenge Day Rail 1
A challenge's days as an oversized number rail, each numeral beside that day's four-word outcome under a headline that names the challenge and its promise; a cold big-promise ad that drives challenge registration.
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 276 characters
- It's 6 p.m. and nobody knows what's for dinner. Again. The 5-Day Meal Prep Reset takes it one small step a day: sort the fridge, plan one week, shop once, cook for two hours, then eat all week. Starts Monday 8 June. It's free. Join the challenge and get Day 1 in your inbox.
- Headline 26 characters
- Free 5-Day Meal Prep Reset
- Description 20 characters
- Starts Monday 8 June
- Button 7 characters
- Sign Up
What it is for
- Angle
- big promise
- Temperature
- cold
- Archetype
- number rail
- Sends people to
- challenge registration
- Words on the image
- At most 40
Use it in a prompt
Make the ads/challenge-day-rail ad from the FunnelDNA library in my brand, at every size (square, portrait, story), 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/challenge-day-rail.tsx. - Import it and pass your copy and images (Props tab):
import { ChallengeDayRail } from "@/components/funneldna/ads/challenge-day-rail"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/challenge-day-rail/component.tsx 125 lines
// archetype: number-rail
// When to use: A challenge's days as an oversized number rail, each numeral beside that day's four-word outcome under a headline that names the challenge and its promise; a cold big-promise ad that drives challenge registration.
import * as React from "react"
import { AdFrame, AdHeadline, Cue, LogoMark, type AdFormat } from "../fx/ad-kit"
/**
* Number rail: a solid accent-fill rail runs down the left of a dark band carrying one oversized display numeral per
* day (about 2.6x the row text, tabular, sized to fill its rail cell top to bottom), each beside what you do that day
* in bold. The rows share the full height between the headline and the start-date line. The featured day (the
* payoff, or today) is the rail reaching across the frame as an accent-fill arm. Below the last day the rail tapers on
* a strong diagonal into the bottom corner, and the start-and-price fact and the cue sit beside it. The numerals are
* the visual: no icons, no photo. Square and portrait stack logo, headline, rail; story starts below the top safe
* line and gives the rows the height.
* Cold · big promise → challenge registration.
* Truth: no weight, health or savings result; the start date and price are copied from the page.
*/
export type ChallengeDayRailProps = {
format?: AdFormat
/** Names the challenge and its promise, 12 words or fewer. A newline character forces a break. */
headline?: string
/** One phrase inside `headline` set in the marker tint. Empty: none. */
highlight?: string
/** The days in order, 3 to 7; each outcome four words or fewer. */
days?: { outcome: string }[]
/** 1-based day set in the accent fill (the active or final day). 0: none. */
featured?: number
/** Start date and price exactly as the page states them, one plain line. Empty: not shown. */
fact?: string
/** The page button's words. */
cue?: string
/** One short line under the cue. Empty: none. */
cueNote?: string
/** The logo slot image. */
logo?: string
brand?: string
}
export const formats: AdFormat[] = ["square", "portrait", "story"]
export const lead = "portrait" satisfies AdFormat
export const wordCap = 40
const DEFAULT_DAYS = [
{ outcome: "Clear the decks" },
{ outcome: "Make the plan" },
{ outcome: "Take the first step" },
{ outcome: "Do the real work" },
{ outcome: "Keep it going" },
]
export function ChallengeDayRail({
format = "portrait",
headline = "Five days to finally do the thing you keep putting off",
highlight = "",
days = DEFAULT_DAYS,
featured = 0,
fact = "",
cue = "Join the challenge",
cueNote = "",
logo = "",
brand = "",
}: ChallengeDayRailProps) {
const f: AdFormat = formats.includes(format) ? format : lead
const list = days.slice(0, 7)
const n = Math.max(list.length, 1)
const bodyStyle = {
"--rows": n,
gridTemplateRows: `repeat(${n}, minmax(0, 1fr)) auto auto`,
} as React.CSSProperties
return (
<AdFrame format={f} className="fd-dayrail">
<style href="fd-dayrail" precedence="default">{CSS}</style>
<div className="fd-dayrail__stack">
<LogoMark src={logo} brand={brand} className="fd-dayrail__logo" />
<AdHeadline as="h1" text={headline} highlight={highlight} mark="ink" className="fd-dayrail__head" />
<div className="fd-dayrail__body" style={bodyStyle}>
{list.map((day, i) => (
<div
key={i}
className={`fd-dayrail__day${featured === i + 1 ? " is-featured" : ""}`}
style={{ gridRow: i + 1 }}
>
<span className="fd-dayrail__num"><span className="fd-dayrail__digit">{i + 1}</span></span>
<p className="fd-dayrail__out">{day.outcome}</p>
</div>
))}
<span aria-hidden className="fd-dayrail__tail" style={{ gridRow: `${n + 1} / span 2` }} />
{fact ? <p className="fd-dayrail__fact" style={{ gridRow: n + 1 }}>{fact}</p> : null}
<div className="fd-dayrail__act" style={{ gridRow: n + 2 }}>
<Cue note={cueNote}>{cue}</Cue>
</div>
</div>
</div>
</AdFrame>
)
}
const CSS = `
.fd-dayrail{background:var(--band);color:var(--band-ink)}
.fd-dayrail .fd-dayrail__stack{position:absolute;inset:0;display:flex;flex-direction:column;align-items:stretch;padding:var(--pad-top) var(--ad-m) 0}
.fd-dayrail .fd-dayrail__logo{align-self:flex-start;color:var(--band-ink)}
.fd-dayrail .fd-dayrail__head{color:var(--band-ink);font-size:var(--h-fs);line-height:1.04;margin:var(--gap-1) 0 var(--gap-2)}
.fd-dayrail .fd-dayrail__body{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:var(--rail-w) minmax(0,1fr);margin-inline:calc(-1 * var(--ad-m))}
.fd-dayrail .fd-dayrail__day{grid-column:1 / -1;display:grid;grid-template-columns:var(--rail-w) minmax(0,1fr);min-height:0}
.fd-dayrail .fd-dayrail__num{container-type:size;min-height:0;display:flex;align-items:center;justify-content:center;overflow:visible;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.fd-dayrail .fd-dayrail__digit{display:block;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:min(var(--num-fs),128cqh);line-height:0.8;letter-spacing:-0.03em;font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"tnum" 1,"lnum" 1}
.fd-dayrail .fd-dayrail__out{margin:0;min-height:0;display:flex;align-items:center;padding:0 var(--ad-m) 0 var(--out-pad);color:var(--band-ink);font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:max(var(--out-min), calc(var(--out-fs) * 5 / max(var(--rows), 5)));line-height:1.04;letter-spacing:var(--display-tracking,-0.01em);text-wrap:balance}
.fd-dayrail .fd-dayrail__day + .fd-dayrail__day .fd-dayrail__num{box-shadow:inset 0 1px 0 oklch(from var(--accent-fill-ink,var(--card)) l c h / 0.24)}
.fd-dayrail .fd-dayrail__day + .fd-dayrail__day .fd-dayrail__out{box-shadow:inset 0 1px 0 oklch(from var(--band-ink) l c h / 0.16)}
.fd-dayrail .fd-dayrail__day.is-featured .fd-dayrail__out{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.fd-dayrail .fd-dayrail__day.is-featured .fd-dayrail__num,
.fd-dayrail .fd-dayrail__day.is-featured .fd-dayrail__out,
.fd-dayrail .fd-dayrail__day.is-featured + .fd-dayrail__day .fd-dayrail__num,
.fd-dayrail .fd-dayrail__day.is-featured + .fd-dayrail__day .fd-dayrail__out{box-shadow:none}
.fd-dayrail .fd-dayrail__tail{grid-column:1;align-self:stretch;background:var(--accent-fill,var(--accent));clip-path:polygon(0 0,100% 0,0 100%)}
.fd-dayrail .fd-dayrail__fact{grid-column:2;margin:0;padding:var(--fact-pad) var(--ad-m) 0 var(--out-pad);font-family:var(--font-body);font-size:max(var(--ad-min), var(--fact-fs));font-weight:600;line-height:1.25;color:color-mix(in oklab,var(--band-ink) 88%,var(--band));text-wrap:pretty}
.fd-dayrail .fd-dayrail__act{grid-column:2;display:flex;align-items:flex-start;padding:var(--cue-pad) var(--ad-m) var(--end) var(--out-pad)}
.fd-dayrail[data-format="square"]{--pad-top:64px;--gap-1:24px;--gap-2:28px;--h-fs:72px;--rail-w:220px;--num-fs:150px;--out-fs:56px;--out-min:40px;--out-pad:44px;--fact-fs:30px;--fact-pad:20px;--cue-pad:18px;--end:64px;--cue-fs:40px}
.fd-dayrail[data-format="portrait"]{--pad-top:64px;--gap-1:28px;--gap-2:32px;--h-fs:84px;--rail-w:232px;--num-fs:170px;--out-fs:64px;--out-min:40px;--out-pad:48px;--fact-fs:32px;--fact-pad:24px;--cue-pad:22px;--end:64px;--cue-fs:44px}
.fd-dayrail[data-format="story"]{--pad-top:calc(var(--safe-top) + 16px);--gap-1:36px;--gap-2:40px;--h-fs:92px;--rail-w:248px;--num-fs:190px;--out-fs:64px;--out-min:48px;--out-pad:52px;--fact-fs:36px;--fact-pad:26px;--cue-pad:24px;--end:calc(var(--safe-bottom) + 16px);--cue-fs:50px}
`
export default ChallengeDayRail
pieces/ads/challenge-day-rail/specimen.tsx 52 lines
import * as React from "react"
import { slot } from "../../slots"
import { ChallengeDayRail, formats } from "../challenge-day-rail"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Greta Lund, a home-cooking coach running a free five-day meal prep challenge.
const lundLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 236 56"><path d="M4 24h44a22 22 0 0 1-44 0z" fill="currentColor"/><path d="M20 6c6 4 6 9 0 13M32 6c6 4 6 9 0 13" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round"/><text x="60" y="39" font-family="Helvetica, Arial, sans-serif" font-size="30" font-weight="700" letter-spacing="-.4" fill="currentColor">greta lund</text></svg>`,
)
export const states = ["square", "portrait", "story"]
export const copy = {
platform: "meta",
primary_text: "It's 6 p.m. and nobody knows what's for dinner. Again.\n\nThe 5-Day Meal Prep Reset takes it one small step a day: sort the fridge, plan one week, shop once, cook for two hours, then eat all week.\n\nStarts Monday 8 June. It's free. Join the challenge and get Day 1 in your inbox.",
headline: "Free 5-Day Meal Prep Reset",
description: "Starts Monday 8 June",
cta: "Sign Up",
}
// Sample brand (berry palette, invented): previews, the pack and the site show this ad in it by default.
export const sampleBrand = {
name: "Greta Lund",
theme: "light",
background: "#fcf5f8",
colors: ["#b0225b", "#2f8f6b"],
fonts: ["Bricolage Grotesque", "Figtree"],
button: "pill-caps",
}
export default function ChallengeDayRailSpecimen({ state = "portrait" }: { state?: string }) {
return (
<ChallengeDayRail
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
headline="The 5-Day Meal Prep Reset: end the 6 p.m. scramble"
highlight="end the 6 p.m. scramble"
days={[
{ outcome: "Sort the fridge" },
{ outcome: "Plan one week" },
{ outcome: "Shop once" },
{ outcome: "Cook two hours" },
{ outcome: "Eat all week" },
]}
featured={5}
fact="Starts Monday 8 June · free"
cue="Join the challenge"
logo={slot("logo", lundLogo)}
brand="Greta Lund"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalChallengeDayRail |
AdFormat |
Default "portrait"
|
headline OptionalChallengeDayRail |
string |
Default "Five days to finally do the thing you keep putting off"
|
highlight OptionalChallengeDayRail |
string |
Default ""
|
days OptionalChallengeDayRail |
{ outcome: string }[] |
Default DEFAULT_DAYS
|
featured OptionalChallengeDayRail |
number |
Default 0
|
fact OptionalChallengeDayRail |
string |
Default ""
|
cue OptionalChallengeDayRail |
string |
Default "Join the challenge"
|
cueNote OptionalChallengeDayRail |
string |
Default ""
|
logo OptionalChallengeDayRail |
string |
Default ""
|
brand OptionalChallengeDayRail |
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-case--display-tracking--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.