Red Headline Box 1
A mid-letter stop sign: a dashed-rule notice with a red "Important:" headline, a Re: dateline, three caps-labelled
Use it in a prompt
Use content/red-headline-box from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details 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/content/red-headline-box.tsx. - Import it and pass your copy and images (Props tab):
import { RedHeadlineBox } from "@/components/funneldna/content/red-headline-box"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/red-headline-box/component.tsx 316 lines
// layout: advertorial-front
// A mid-letter stop sign: a dashed-rule notice with a red "Important:" headline, a Re: dateline, three caps-labelled
// columns (the kit, the price, the guarantee) and a signed close with one action, so a skimming reader still sees the offer.
import * as React from "react"
import { PackageOpen, ShieldCheck, Tag } from "lucide-react"
export type RedHeadlineBoxItem = {
name: string
/** Item photo (theme slot item-n). */
image?: string
imageAlt?: string
}
export type RedHeadlineBoxProps = {
/** Lead-in word set in caps at the start of the headline, e.g. "Important:" or "Warning:". */
label?: string
headline?: React.ReactNode
lead?: React.ReactNode
reLabel?: string
/** Subject on the dateline rule under the headline. Omit to hide the rule. */
re?: string
/** Headline colour: red (danger), amber (warning) or the theme accent. */
tone?: "danger" | "warning" | "accent"
kitLabel?: string
kitText?: React.ReactNode
/** Product photos shown in the kit column. */
items?: RedHeadlineBoxItem[]
priceLabel?: string
/** Price column shows only when a price is supplied. */
price?: string
priceSuffix?: string
priceLine?: string
priceNote?: string
guaranteeLabel?: string
/** Guarantee column shows only when a guarantee is supplied. */
guaranteeTitle?: string
guaranteeText?: React.ReactNode
closing?: string
/** Signed name in the script signature face. */
signature?: string
actionLabel?: string
/** One plain line under the button. */
secondaryText?: string
/** Turns the plain line into a quiet link (e.g. "#whats-inside"). */
secondaryHref?: string
href?: string
onAction?: (event: React.MouseEvent<HTMLElement>) => void
disabled?: boolean
state?: "default" | "hover" | "active" | "disabled"
headingLevel?: 2 | 3
className?: string
}
export function RedHeadlineBox(props: RedHeadlineBoxProps) {
const {
label = "Important:",
headline = "Read this before you build your next page.",
lead,
reLabel = "Re:",
re,
tone = "danger",
kitLabel = "The kit",
kitText,
items = [],
priceLabel = "The price",
price,
priceSuffix = " today.",
priceLine = "That's it.",
priceNote,
guaranteeLabel = "The guarantee",
guaranteeTitle,
guaranteeText,
closing = "Talk soon,",
signature,
actionLabel = "Send Me The Kit",
secondaryText = "or keep reading to see what's inside",
secondaryHref,
href,
onAction,
disabled = false,
state = "default",
headingLevel = 2,
className,
} = props
const id = React.useId()
const headingId = `${id}-headline`
const Heading = headingLevel === 3 ? "h3" : "h2"
const isDisabled = disabled || state === "disabled"
const thumbs = items.filter((item) => Boolean(item.image)).slice(0, 4)
const hasKit = Boolean(kitText) || thumbs.length > 0
const hasPrice = Boolean(price)
const hasGuarantee = Boolean(guaranteeTitle || guaranteeText)
const cols = [hasKit, hasPrice, hasGuarantee].filter(Boolean).length
const hasSign = Boolean(closing || signature)
const hasClose = hasSign || Boolean(actionLabel)
const forced = state === "hover" || state === "active" ? state : undefined
let action: React.ReactNode = null
if (actionLabel) {
if (isDisabled) {
action = (
<button type="button" className="rhb-btn" disabled>
{actionLabel}
</button>
)
} else if (href) {
action = (
<a className="rhb-btn" data-state={forced} href={href} onClick={onAction}>
{actionLabel}
</a>
)
} else {
action = (
<button type="button" className="rhb-btn" data-state={forced} onClick={onAction}>
{actionLabel}
</button>
)
}
}
return (
<article
className={["cf-red-headline-box", className].filter(Boolean).join(" ")}
data-tone={tone}
aria-labelledby={headingId}
>
{signature ? (
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Allura&display=swap" />
) : null}
<style>{css}</style>
<span className="rhb-frame" aria-hidden="true" />
<div className="rhb-in">
<Heading id={headingId} className="rhb-headline">
{label ? <span className="rhb-label">{label}</span> : null}
{label ? " " : null}
{headline}
</Heading>
{re ? (
<p className="rhb-re">
<b>{reLabel}</b>
<span>{re}</span>
</p>
) : null}
{lead ? <p className="rhb-lead">{lead}</p> : null}
{cols > 0 ? (
<div className="rhb-ledger" style={{ "--rhb-cols": cols } as React.CSSProperties}>
{hasKit ? (
<div className="rhb-cell">
<p className="rhb-cap">
<PackageOpen aria-hidden="true" />
{kitLabel}
</p>
{thumbs.length > 0 ? (
<ul className="rhb-thumbs">
{thumbs.map((item, i) => (
<li key={`${item.name}-${i}`}>
<img
src={item.image}
alt={item.imageAlt || item.name}
width={56}
height={56}
loading="lazy"
decoding="async"
/>
</li>
))}
</ul>
) : null}
{kitText ? <p className="rhb-text">{kitText}</p> : null}
</div>
) : null}
{hasPrice ? (
<div className="rhb-cell">
<p className="rhb-cap">
<Tag aria-hidden="true" />
{priceLabel}
</p>
<p className="rhb-price">
<span className="rhb-amount">{price}</span>
{priceSuffix ? <span className="rhb-suffix">{priceSuffix}</span> : null}
</p>
{priceLine ? <p className="rhb-strong">{priceLine}</p> : null}
{priceNote ? <p className="rhb-text">{priceNote}</p> : null}
</div>
) : null}
{hasGuarantee ? (
<div className="rhb-cell">
<p className="rhb-cap" data-kind="guarantee">
<ShieldCheck aria-hidden="true" />
{guaranteeLabel}
</p>
{guaranteeTitle ? <p className="rhb-title">{guaranteeTitle}</p> : null}
{guaranteeText ? <p className="rhb-text">{guaranteeText}</p> : null}
</div>
) : null}
</div>
) : null}
{hasClose ? (
<div className="rhb-close">
{hasSign ? (
<div className="rhb-sign">
{closing ? <p className="rhb-closing">{closing}</p> : null}
{signature ? <p className="rhb-signature">{signature}</p> : null}
</div>
) : null}
{actionLabel ? (
<div className="rhb-action">
{action}
{secondaryText ? (
secondaryHref ? (
<a className="rhb-quiet" href={secondaryHref}>
{secondaryText}
</a>
) : (
<p className="rhb-quiet">{secondaryText}</p>
)
) : null}
</div>
) : null}
</div>
) : null}
</div>
</article>
)
}
export default RedHeadlineBox
const R = ".cf-red-headline-box"
const css = `
${R}{--rhb-ink:var(--ink,oklch(0.21 0.034 263));--rhb-card:var(--card,oklch(1 0 0));--rhb-tone:var(--danger,oklch(0.5 0.17 27));--rhb-shade:var(--shadow,oklch(0.22 0.03 256));--rhb-line:color-mix(in oklch,var(--rhb-ink) 13%,var(--rhb-card));--rhb-well:color-mix(in oklch,var(--rhb-ink) 4%,var(--rhb-card));--rhb-soft-ink:color-mix(in oklch,var(--rhb-ink) 82%,var(--rhb-card));--signature-font:var(--signature-face,'Allura',cursive);position:relative;box-sizing:border-box;container-type:inline-size;width:100%;max-width:56rem;margin-inline:auto;padding:clamp(1.75rem,1rem + 3.5vw,3.25rem);background:var(--rhb-card);color:var(--rhb-ink);font-family:var(--font-body,Arial,sans-serif);border:1px solid var(--card-border,color-mix(in oklch,var(--rhb-ink) 12%,transparent));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(0.22 0.03 256 / 0.22),0 4px 10px -2px oklch(0.22 0.03 256 / 0.2)))}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R}[data-tone='warning']{--rhb-tone:var(--warning,oklch(0.5 0.102 85))}
${R}[data-tone='accent']{--rhb-tone:var(--accent,oklch(0.5 0.17 257))}
${R} .rhb-frame{--rhb-dash:oklch(from var(--rhb-ink) l c h / 0.58);position:absolute;inset:10px;pointer-events:none;background-image:linear-gradient(90deg,var(--rhb-dash) 0 10px,transparent 10px),linear-gradient(90deg,var(--rhb-dash) 0 10px,transparent 10px),linear-gradient(180deg,var(--rhb-dash) 0 10px,transparent 10px),linear-gradient(180deg,var(--rhb-dash) 0 10px,transparent 10px);background-size:17px 2px,17px 2px,2px 17px,2px 17px;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;background-position:0 0,0 100%,0 0,100% 0}
${R} .rhb-in{position:relative;display:flex;flex-direction:column;min-width:0}
${R} .rhb-headline{margin:0 0 0.36em;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.022em);font-size:clamp(1.875rem,1.15rem + 3.3vw,3.25rem);line-height:1.04;color:var(--rhb-tone);text-wrap:balance;overflow-wrap:break-word}
${R} .rhb-label{text-transform:uppercase;letter-spacing:0.005em}
${R} .rhb-re{display:flex;align-items:center;gap:0.625rem;margin:0 0 1.125rem;font-size:1rem;line-height:1.4;color:var(--rhb-ink)}
${R} .rhb-re b{flex:none;font-weight:800}
${R} .rhb-re span{min-width:0;font-weight:600}
${R} .rhb-re::after{content:'';flex:1 1 2rem;height:1px;background:var(--rhb-line)}
${R} .rhb-lead{margin:0;max-width:60ch;font-size:clamp(1.125rem,1rem + 0.55vw,1.375rem);line-height:1.45;font-weight:500;color:var(--rhb-ink);text-wrap:pretty}
${R} .rhb-ledger{display:grid;gap:1px;margin-top:clamp(1.5rem,1rem + 1.5vw,2rem);background:var(--rhb-line);border-radius:calc(var(--radius,14px) * 0.75);overflow:hidden}
${R} .rhb-cell{display:flex;flex-direction:column;gap:0.625rem;min-width:0;padding:1.125rem 1.125rem 1.25rem;background:var(--rhb-well)}
${R} .rhb-cap{display:inline-flex;align-items:center;gap:0.5rem;margin:0 0 0.125rem;font-size:0.875rem;font-weight:800;letter-spacing:0.12em;text-transform:uppercase;line-height:1.2;color:var(--rhb-ink)}
${R} .rhb-cap svg{width:1.125rem;height:1.125rem;flex:none;color:var(--rhb-tone)}
${R} .rhb-cap[data-kind='guarantee'] svg{color:var(--success,oklch(0.5 0.138 150))}
${R} .rhb-text{margin:0;font-size:1rem;line-height:1.5;color:var(--rhb-soft-ink);text-wrap:pretty}
${R} .rhb-strong{margin:0;font-size:1.0625rem;font-weight:800;line-height:1.35;color:var(--rhb-ink)}
${R} .rhb-title{margin:0;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:1.25rem;line-height:1.2;letter-spacing:-0.01em;color:var(--rhb-ink);text-wrap:balance}
${R} .rhb-thumbs{display:flex;flex-wrap:wrap;gap:0.625rem;margin:0.125rem 0 0.25rem;padding:0;list-style:none}
${R} .rhb-thumbs li{flex:none}
${R} .rhb-thumbs img{display:block;width:3.5rem;height:3.5rem;object-fit:cover;object-position:center;border-radius:calc(var(--radius,14px) * 0.5);filter:drop-shadow(0 1px 1px oklch(from var(--rhb-shade) l c h / 0.3)) drop-shadow(0 3px 5px oklch(from var(--rhb-shade) l c h / 0.22));transition:transform 200ms cubic-bezier(.23,1,.32,1)}
${R} .rhb-price{margin:0 0 0.25rem;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);line-height:1.08;letter-spacing:-0.02em;color:var(--rhb-ink);font-variant-numeric:tabular-nums}
${R} .rhb-amount{font-size:clamp(2.25rem,1.8rem + 1.6vw,2.75rem)}
${R} .rhb-suffix{font-size:1.375rem;font-weight:700;letter-spacing:-0.01em}
${R} .rhb-close{display:grid;gap:1.5rem;align-items:end;margin-top:clamp(1.75rem,1.2rem + 1.8vw,2.5rem)}
${R} .rhb-sign{min-width:0}
${R} .rhb-closing{margin:0;font-size:1.0625rem;line-height:1.45;color:var(--rhb-ink)}
${R} .rhb-signature{margin:0.25rem 0 0;font-family:var(--signature-font),var(--font-display,cursive);font-weight:400;font-size:clamp(2.25rem,1.9rem + 1.4vw,2.875rem);line-height:1.15;color:var(--signature-ink,var(--rhb-ink));overflow-wrap:break-word}
${R} .rhb-action{display:flex;flex-direction:column;align-items:stretch;gap:0.75rem;min-width:0}
${R} .rhb-btn{--b1:var(--button-bg,var(--cta,oklch(0.576 0.209 29.5)));--b2:var(--button-bg-2,var(--cta-2,oklch(0.506 0.206 29.5)));appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;width:100%;min-height:3.75rem;margin:0;padding:0.875rem 1.5rem;border:1px solid oklch(from var(--b2) calc(l - 0.06) c h);border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--b1) calc(l + 0.04) c h),var(--b2));color:var(--button-ink,var(--cta-ink,oklch(1 0 0)));text-shadow:var(--button-text-shadow,none);font-family:var(--button-font,var(--font-display,Arial,sans-serif));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.0625rem,1rem + 0.35vw,1.1875rem);line-height:1.2;letter-spacing:-0.005em;text-align:center;text-wrap:balance;text-decoration:none;cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b1) calc(l + 0.14) c h / 0.6),inset 0 -3px 0 oklch(from var(--b2) calc(l - 0.12) c h),0 1px 2px oklch(from var(--rhb-shade) l c h / 0.35),0 6px 12px -4px oklch(from var(--rhb-shade) l c h / 0.42));transition:transform 140ms cubic-bezier(.23,1,.32,1),background 140ms ease,box-shadow 140ms ease;-webkit-tap-highlight-color:transparent}
${R} .rhb-btn:hover:not(:disabled),${R} .rhb-btn[data-state='hover']{transform:translateY(-1px);background:linear-gradient(oklch(from var(--b1) calc(l - 0.01) c h),oklch(from var(--b2) calc(l - 0.05) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b1) calc(l + 0.12) c h / 0.55),inset 0 -3px 0 oklch(from var(--b2) calc(l - 0.16) c h),0 2px 3px oklch(from var(--rhb-shade) l c h / 0.38),0 9px 16px -6px oklch(from var(--rhb-shade) l c h / 0.45))}
${R} .rhb-btn:active:not(:disabled),${R} .rhb-btn[data-state='active']{transform:translateY(1px);background:linear-gradient(oklch(from var(--b2) calc(l - 0.02) c h),oklch(from var(--b2) calc(l - 0.08) c h));box-shadow:inset 0 2px 3px oklch(from var(--b2) calc(l - 0.2) c h / 0.45),inset 0 -1px 0 oklch(from var(--b2) calc(l - 0.12) c h),0 1px 1px oklch(from var(--rhb-shade) l c h / 0.3)}
${R} .rhb-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent,oklch(0.5 0.17 257)));outline-offset:3px}
${R} .rhb-btn:disabled{cursor:not-allowed;transform:none;border-color:transparent;background:var(--button-2-bg,var(--secondary,oklch(0.93 0.015 263)));color:var(--button-2-ink,var(--secondary-ink,oklch(0.21 0.034 263)));text-shadow:none;box-shadow:var(--button-2-shadow, var(--shadow-sm))}
${R} .rhb-quiet{margin:0;text-align:center;font-size:1rem;line-height:1.4;color:var(--muted,oklch(0.446 0.03 258));text-wrap:pretty}
${R} a.rhb-quiet{text-decoration:underline;text-decoration-color:oklch(from var(--muted,oklch(0.446 0.03 258)) l c h / 0.45);text-underline-offset:0.18em}
${R} a.rhb-quiet:hover{color:var(--rhb-ink);text-decoration-color:currentColor}
${R} a.rhb-quiet:focus-visible{outline:2px solid var(--field-focus,var(--accent,oklch(0.5 0.17 257)));outline-offset:3px;border-radius:4px}
@container (min-width: 38rem){
${R} .rhb-ledger{grid-template-columns:repeat(var(--rhb-cols,3),minmax(0,1fr))}
${R} .rhb-cell{padding:1.25rem 1.25rem 1.375rem}
${R} .rhb-close{grid-template-columns:minmax(0,1fr) minmax(18rem,22rem)}
${R} .rhb-close > :only-child{grid-column:1 / -1;justify-self:center;width:min(100%,24rem)}
}
@media (prefers-reduced-motion: no-preference){
${R} .rhb-in > :not(.rhb-ledger){animation:cf-rhb-in 450ms cubic-bezier(.23,1,.32,1) both}
${R} .rhb-in > :nth-child(2){animation-delay:70ms}
${R} .rhb-in > :nth-child(3){animation-delay:140ms}
${R} .rhb-in > :nth-child(5){animation-delay:280ms}
${R} .rhb-cell{animation:cf-rhb-in 450ms cubic-bezier(.23,1,.32,1) both;animation-delay:140ms}
${R} .rhb-cell:nth-child(2){animation-delay:210ms}
${R} .rhb-cell:nth-child(3){animation-delay:280ms}
${R} .rhb-frame{animation:cf-rhb-frame 600ms cubic-bezier(.23,1,.32,1) both}
${R}:hover .rhb-frame{animation:cf-rhb-march 1.6s linear infinite}
${R} .rhb-cell:hover .rhb-thumbs li:nth-child(odd) img{transform:translateY(-2px) rotate(-2deg)}
${R} .rhb-cell:hover .rhb-thumbs li:nth-child(even) img{transform:translateY(-2px) rotate(2deg)}
}
@media (prefers-reduced-motion: reduce){
${R} .rhb-btn,${R} .rhb-thumbs img{transition:none}
${R} .rhb-btn:hover:not(:disabled),${R} .rhb-btn[data-state='hover'],${R} .rhb-btn:active:not(:disabled),${R} .rhb-btn[data-state='active']{transform:none}
}
@keyframes cf-rhb-in{from{opacity:0.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-rhb-frame{from{opacity:0.3;transform:scale(0.985)}to{opacity:1;transform:none}}
@keyframes cf-rhb-march{from{background-position:0 0,0 100%,0 0,100% 0}to{background-position:17px 0,-17px 100%,0 -17px,100% 17px}}
`
pieces/content/red-headline-box/specimen.tsx 44 lines
import * as React from "react"
import { RedHeadlineBox } from "../red-headline-box"
import studioDefaults from "../../studio-defaults.json"
import { slot } from "../../slots"
export const states = ["default", "hover", "active", "disabled"] as const
type SpecimenState = (typeof states)[number]
export default function RedHeadlineBoxSpecimen({ state = "default" }: { state?: SpecimenState }) {
const sample = studioDefaults.sample
const items = sample.items.map((item, i) => ({
name: item.name,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}))
return (
<RedHeadlineBox
state={state}
tone="danger"
label="Important:"
headline={`${sample.headline}.`}
reLabel="Re:"
re={sample.name}
lead={sample.lead}
kitLabel="The kit"
items={items}
kitText="The guide, workbook, and checklist in one download."
priceLabel="The price"
price={sample.price}
priceSuffix=" today."
priceLine="That's it."
priceNote={sample.note}
guaranteeLabel="The guarantee"
guaranteeTitle={sample.guarantee}
guaranteeText="Work through the whole kit. If it isn't right for you, ask for your money back."
closing="Here's to your first funnel,"
signature="The Funnel Starter Team"
actionLabel="Send Me The Starter Kit"
secondaryText="or keep reading to see what's inside"
/>
)
}
| Name | Type | Details |
|---|---|---|
label OptionalRedHeadlineBox |
string |
|
headline OptionalRedHeadlineBox |
React.ReactNode |
|
lead OptionalRedHeadlineBox |
React.ReactNode |
|
reLabel OptionalRedHeadlineBox |
string |
|
re OptionalRedHeadlineBox |
string |
|
tone OptionalRedHeadlineBox |
"danger" | "warning" | "accent" |
|
kitLabel OptionalRedHeadlineBox |
string |
|
kitText OptionalRedHeadlineBox |
React.ReactNode |
|
items OptionalRedHeadlineBox |
RedHeadlineBoxItem[] |
|
priceLabel OptionalRedHeadlineBox |
string |
|
price OptionalRedHeadlineBox |
string |
|
priceSuffix OptionalRedHeadlineBox |
string |
|
priceLine OptionalRedHeadlineBox |
string |
|
priceNote OptionalRedHeadlineBox |
string |
|
guaranteeLabel OptionalRedHeadlineBox |
string |
|
guaranteeTitle OptionalRedHeadlineBox |
string |
|
guaranteeText OptionalRedHeadlineBox |
React.ReactNode |
|
closing OptionalRedHeadlineBox |
string |
|
signature OptionalRedHeadlineBox |
string |
|
actionLabel OptionalRedHeadlineBox |
string |
|
secondaryText OptionalRedHeadlineBox |
string |
|
secondaryHref OptionalRedHeadlineBox |
string |
|
href OptionalRedHeadlineBox |
string |
|
onAction OptionalRedHeadlineBox |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalRedHeadlineBox |
boolean |
|
state OptionalRedHeadlineBox |
"default" | "hover" | "active" | "disabled" |
|
headingLevel OptionalRedHeadlineBox |
2 | 3 |
|
className OptionalRedHeadlineBox |
string |
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.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB