Headline Stack 1
Headline stack: the first five seconds of a sales letter, set as a signed document on a dark stage.
Use it in a prompt
Use content/headline-stack 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/headline-stack.tsx. - Import it and pass your copy and images (Props tab):
import { HeadlineStack } from "@/components/funneldna/content/headline-stack"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/headline-stack/component.tsx 488 lines
// layout: certificate-document
// Headline stack: the first five seconds of a sales letter, set as a signed document on a dark stage.
// The pre-head names who it is for, the promise carries one marker stroke, the sub-head names the mechanism, and a two-line button gives the first action.
import * as React from "react"
import { Check } from "lucide-react"
export type HeadlineStackProps = {
/** Label that opens the pre-head, set in the accent colour. */
attention?: string
/** Who the letter is for. It reads straight after the attention label. */
prehead?: React.ReactNode
/** The big promise. Pass a plain string so `highlight` can mark a phrase inside it. */
headline?: React.ReactNode
/** Phrase inside `headline` that gets the marker stroke. Leave it out for no marker. */
highlight?: string
/** Wraps the headline in curly quotes, the classic sales-letter way. */
quoted?: boolean
/** Sub-head that names the mechanism. Wrap the name in <strong>. */
subhead?: React.ReactNode
/** Italic aside in the author's voice, under the sub-head. */
aside?: React.ReactNode
/** Top line of the button. Leave it empty to hide the action. */
actionLabel?: string
/** Benefit line inside the button, under the label. */
actionSublabel?: string
/** One short reassurance line under the button. */
reassurance?: string
/** Where the button goes. */
href?: string
/** Called when the button is clicked. */
onAction?: () => void
/** Who signs the letter. Empty by default, so a page shows only a real author. */
author?: { name: string; role?: string }
/** Guarantee line beside the seal. Shown only when supplied. */
guarantee?: string
/** One short line explaining the guarantee. */
guaranteeNote?: string
/** Slot "seal-guarantee": transparent money-back seal art. */
sealImage?: string
/** Alt text for the seal. Empty by default because the guarantee line says it. */
sealAlt?: string
state?: "default" | "hover" | "active" | "disabled"
className?: string
}
export function HeadlineStack({
attention = "Attention:",
prehead = "coaches who have an offer worth selling but no funnel to sell it",
headline = "Stop guessing. Build your first funnel with a clear plan for every page.",
highlight = "a clear plan for every page",
quoted = true,
subhead = (
<>
<strong>The starter plan</strong> walks you through three steps: map your offer, write your page copy, and check every step before you launch.
</>
),
aside,
actionLabel = "Show Me The Plan",
actionSublabel = "See everything inside first",
reassurance,
href,
onAction,
author,
guarantee,
guaranteeNote,
sealImage,
sealAlt = "",
state = "default",
className,
}: HeadlineStackProps) {
const id = React.useId()
const headingId = `${id}-headline`
const disabled = state === "disabled"
const forced = state !== "default" ? state : undefined
const showSeal = Boolean(guarantee)
const showFoot = Boolean(author) || showSeal
const footSolo = !(author && showSeal)
const inner = (
<>
<span className="cf-headline-stack__label">{actionLabel}</span>
{actionSublabel ? <span className="cf-headline-stack__sub">{actionSublabel}</span> : null}
</>
)
return (
<section
className={["cf-headline-stack", className].filter(Boolean).join(" ")}
aria-labelledby={headingId}
>
<style>{CSS}</style>
{author ? (
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Mrs+Saint+Delafield&display=swap" />
) : null}
<div className="cf-headline-stack__stack">
<div className="cf-headline-stack__doc">
{prehead ? (
<p className="cf-headline-stack__prehead cf-headline-stack__reveal">
{attention ? <span className="cf-headline-stack__attn">{attention}</span> : null}
{attention ? " " : null}
{prehead}
</p>
) : null}
<h1
id={headingId}
className="cf-headline-stack__h1 cf-headline-stack__reveal"
style={{ ["--hs-d" as string]: "0.07s" } as React.CSSProperties}
>
{quoted ? "“" : null}
{renderHeadline(headline, highlight)}
{quoted ? "”" : null}
</h1>
{subhead ? (
<p
className="cf-headline-stack__subhead cf-headline-stack__reveal"
style={{ ["--hs-d" as string]: "0.14s" } as React.CSSProperties}
>
{subhead}
</p>
) : null}
{aside ? (
<p
className="cf-headline-stack__aside cf-headline-stack__reveal"
style={{ ["--hs-d" as string]: "0.21s" } as React.CSSProperties}
>
{aside}
</p>
) : null}
{actionLabel ? (
<div
className="cf-headline-stack__action cf-headline-stack__reveal"
style={{ ["--hs-d" as string]: "0.28s" } as React.CSSProperties}
>
{href && !disabled ? (
<a className="cf-headline-stack__btn" href={href} onClick={() => onAction?.()} data-state={forced}>
{inner}
</a>
) : (
<button
type="button"
className="cf-headline-stack__btn"
onClick={() => onAction?.()}
disabled={disabled}
aria-disabled={disabled || undefined}
data-state={forced}
>
{inner}
</button>
)}
{reassurance ? (
<p className="cf-headline-stack__reassure">
<Check size={16} strokeWidth={2.5} aria-hidden />
{reassurance}
</p>
) : null}
</div>
) : null}
{showFoot ? (
<div
className={["cf-headline-stack__foot", "cf-headline-stack__reveal", footSolo ? "cf-headline-stack__foot--solo" : ""].filter(Boolean).join(" ")}
style={{ ["--hs-d" as string]: "0.28s" } as React.CSSProperties}
>
{author ? (
<div className="cf-headline-stack__sign">
<span className="cf-headline-stack__script" aria-hidden>
{author.name}
</span>
<span className="cf-headline-stack__name">{author.name}</span>
{author.role ? <span className="cf-headline-stack__role">{author.role}</span> : null}
</div>
) : null}
{showSeal ? (
<div className="cf-headline-stack__seal-row">
{sealImage ? (
<img className="cf-headline-stack__seal" src={sealImage} alt={sealAlt} width={88} height={88} loading="lazy" decoding="async" />
) : null}
<div className="cf-headline-stack__guarantee">
<p className="cf-headline-stack__g-title">{guarantee}</p>
{guaranteeNote ? <p className="cf-headline-stack__g-note">{guaranteeNote}</p> : null}
</div>
</div>
) : null}
</div>
) : null}
</div>
</div>
</section>
)
}
export default HeadlineStack
function renderHeadline(headline: React.ReactNode, highlight?: string) {
if (typeof headline !== "string" || !highlight) return headline
const at = headline.indexOf(highlight)
if (at < 0) return headline
return (
<>
{headline.slice(0, at)}
<span className="cf-headline-stack__mark">{highlight}</span>
{headline.slice(at + highlight.length)}
</>
)
}
const CSS = `
.cf-headline-stack {
--hs-marker: var(--marker, #fae37c);
--hs-shadow: var(--shadow, oklch(0.22 0.03 256));
--hs-cta: var(--button-bg, var(--cta, #d6342c));
--hs-cta-2: var(--button-bg-2, var(--cta-2, var(--cta, #b8271f)));
--signature-font: var(--signature-face, "Mrs Saint Delafield", var(--font-display, cursive));
position: relative;
background: var(--band, oklch(0.27 0.067 256));
color: var(--band-ink, #ffffff);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
font-family: var(--font-body, Arial, sans-serif);
}
.cf-headline-stack *, .cf-headline-stack *::before, .cf-headline-stack *::after { box-sizing: border-box; }
:where(.cf-headline-stack) p { margin: 0; }
.cf-headline-stack__stack { position: relative; max-width: 1040px; margin: 0 auto; }
.cf-headline-stack__stack::before {
content: "";
position: absolute;
left: 3.5%;
right: 3.5%;
bottom: -14px;
height: 50%;
background: color-mix(in oklch, var(--card, #ffffff) 90%, var(--hs-shadow));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--shadow-md, 0 1px 2px oklch(from var(--hs-shadow) l c h / 0.22), 0 4px 10px -2px oklch(from var(--hs-shadow) l c h / 0.2));
}
.cf-headline-stack__doc {
position: relative;
z-index: 1;
background: var(--card, #ffffff);
color: var(--ink, #101828);
border: 1px solid var(--card-border, oklch(from var(--ink, #101828) l c h / 0.12));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--hs-shadow) l c h / 0.22), 0 12px 24px -8px oklch(from var(--hs-shadow) l c h / 0.32)));
padding: clamp(40px, 6.5vw, 88px) clamp(24px, 6.5vw, 96px) clamp(36px, 5vw, 64px);
text-align: center;
}
.cf-headline-stack__doc::after {
content: "";
position: absolute;
inset: 12px;
border: 1px solid oklch(from var(--ink, #101828) l c h / 0.12);
border-radius: max(4px, calc(var(--card-radius, var(--radius, 14px)) - 6px));
pointer-events: none;
}
.cf-headline-stack__prehead {
margin: 0 auto;
max-width: 44rem;
font-family: var(--font-display, inherit);
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 600;
color: var(--ink, #101828);
text-wrap: balance;
}
.cf-headline-stack__attn { color: var(--accent, #1d5fd1); font-weight: 800; }
.cf-headline-stack__h1 {
margin: clamp(16px, 2vw, 24px) 0 0;
font-family: var(--font-display, inherit);
font-size: clamp(2.5rem, 5.4vw, 4.875rem);
line-height: 1.04;
font-weight: var(--display-weight, 800);
letter-spacing: var(--display-tracking, -0.025em);
text-transform: var(--display-case, none);
color: var(--ink, #101828);
text-wrap: balance;
}
.cf-headline-stack__mark {
--hs-marker-solid: oklch(from var(--hs-marker) max(l, 0.88) min(c, 0.16) h / 1);
color: oklch(from var(--ink, #101828) 0.2 min(c, 0.04) h);
background-image: linear-gradient(to bottom, transparent 10%, var(--hs-marker-solid) 10%, var(--hs-marker-solid) 95%, transparent 95%);
background-repeat: no-repeat;
background-size: 100% 100%;
background-position: 0 0;
padding: 0 0.1em;
margin: 0 -0.04em;
border-radius: 0.14em 0.3em 0.2em 0.34em / 0.3em 0.22em 0.34em 0.18em;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
animation: cf-hs-mark 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.32s both;
}
.cf-headline-stack__subhead {
margin: clamp(18px, 2.2vw, 28px) auto 0;
max-width: 42rem;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.45;
font-weight: 500;
color: var(--ink, #101828);
text-wrap: pretty;
}
.cf-headline-stack__subhead strong { font-weight: 800; }
.cf-headline-stack__aside {
margin: 12px auto 0;
max-width: 40rem;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
font-style: italic;
color: var(--muted, #4a5565);
text-wrap: pretty;
}
.cf-headline-stack__action {
margin-top: clamp(28px, 3.5vw, 40px);
display: flex;
flex-direction: column;
align-items: center;
}
.cf-headline-stack__btn {
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
width: min(100%, 30rem);
min-height: 72px;
padding: 12px 32px;
border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(oklch(from var(--hs-cta) calc(l + 0.04) c h), oklch(from var(--hs-cta-2) calc(l - 0.02) c h));
color: var(--button-ink, var(--cta-ink, #ffffff));
font-family: var(--button-font, var(--font-display, inherit));
text-transform: var(--button-case, none);
text-shadow: var(--button-text-shadow, none);
text-align: center;
text-decoration: none;
cursor: pointer;
box-shadow: var(--button-shadow,
inset 0 1px 0 oklch(from var(--hs-cta) calc(l + 0.14) c h / 0.7),
inset 0 -3px 0 oklch(from var(--hs-cta) calc(l - 0.16) c h),
0 1px 2px oklch(from var(--hs-shadow) l c h / 0.3),
0 8px 16px -6px oklch(from var(--hs-shadow) l c h / 0.45));
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
-webkit-tap-highlight-color: transparent;
}
.cf-headline-stack__label {
font-size: clamp(1.125rem, 1.55vw, 1.375rem);
line-height: 1.15;
font-weight: var(--button-weight, 800);
text-wrap: balance;
}
.cf-headline-stack__sub {
font-family: var(--font-body, inherit);
font-size: 0.9375rem;
line-height: 1.3;
font-weight: 600;
text-transform: none;
text-wrap: pretty;
}
.cf-headline-stack__btn:hover,
.cf-headline-stack__btn[data-state="hover"] {
background: linear-gradient(oklch(from var(--hs-cta) calc(l - 0.01) c h), oklch(from var(--hs-cta-2) calc(l - 0.07) c h));
transform: translateY(-1px);
box-shadow:
inset 0 1px 0 oklch(from var(--hs-cta) calc(l + 0.12) c h / 0.6),
inset 0 -3px 0 oklch(from var(--hs-cta) calc(l - 0.2) c h),
0 1px 2px oklch(from var(--hs-shadow) l c h / 0.34),
0 12px 20px -6px oklch(from var(--hs-shadow) l c h / 0.5);
}
.cf-headline-stack__btn:active,
.cf-headline-stack__btn[data-state="active"] {
background: linear-gradient(oklch(from var(--hs-cta) calc(l - 0.04) c h), oklch(from var(--hs-cta-2) calc(l - 0.08) c h));
transform: translateY(1px);
box-shadow:
inset 0 2px 5px oklch(from var(--hs-cta) calc(l - 0.24) c h / 0.55),
inset 0 -2px 0 oklch(from var(--hs-cta) calc(l - 0.16) c h),
0 1px 1px oklch(from var(--hs-shadow) l c h / 0.3);
}
.cf-headline-stack__btn:focus-visible {
outline: 3px solid var(--field-focus, var(--accent, #1d5fd1));
outline-offset: 3px;
}
.cf-headline-stack__btn:disabled,
.cf-headline-stack__btn[data-state="disabled"] {
background: var(--secondary, oklch(0.93 0.015 263));
color: var(--secondary-ink, #101828);
text-shadow: none;
cursor: not-allowed;
transform: none;
box-shadow: var(--button-2-shadow, var(--shadow-sm));
}
.cf-headline-stack__reassure {
margin-top: 12px;
font-size: 0.9375rem;
line-height: 1.4;
font-weight: 600;
color: var(--muted, #4a5565);
text-wrap: pretty;
}
.cf-headline-stack__reassure svg {
display: inline-block;
vertical-align: -0.15em;
margin-inline-end: 0.4em;
color: var(--success, oklch(0.5 0.14 150));
}
.cf-headline-stack__foot {
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-wrap: wrap;
gap: 28px 40px;
margin-top: clamp(40px, 5vw, 64px);
text-align: left;
}
.cf-headline-stack__foot--solo { justify-content: center; }
.cf-headline-stack__sign { display: grid; justify-items: start; min-width: 0; }
.cf-headline-stack__script {
font-family: var(--signature-font);
font-weight: 400;
font-size: clamp(2.25rem, 3.4vw, 2.75rem);
line-height: 1.1;
color: var(--signature-ink, var(--ink, #101828));
padding: 0 12px 2px 4px;
margin-bottom: 8px;
white-space: nowrap;
}
.cf-headline-stack__name { font-size: 0.9375rem; line-height: 1.4; font-weight: 800; color: var(--ink, #101828); }
.cf-headline-stack__role { font-size: 0.9375rem; line-height: 1.4; font-weight: 500; color: var(--muted, #4a5565); }
.cf-headline-stack__seal-row { display: flex; align-items: center; gap: 16px; max-width: 28rem; }
.cf-headline-stack__guarantee { flex: 1; min-width: 0; }
.cf-headline-stack__seal {
width: 88px;
height: 88px;
flex: none;
object-fit: contain;
border-radius: 0;
filter: drop-shadow(0 2px 3px oklch(from var(--hs-shadow) l c h / 0.3)) drop-shadow(0 8px 10px oklch(from var(--hs-shadow) l c h / 0.18));
}
.cf-headline-stack__g-title {
font-family: var(--font-display, inherit);
font-size: clamp(1.125rem, 1.4vw, 1.25rem);
line-height: 1.2;
font-weight: 800;
color: var(--ink, #101828);
text-wrap: balance;
}
.cf-headline-stack__g-note {
margin-top: 4px;
font-size: 0.9375rem;
line-height: 1.4;
font-weight: 500;
color: var(--muted, #4a5565);
text-wrap: pretty;
}
@keyframes cf-hs-rise { from { opacity: 0.82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cf-hs-mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
.cf-headline-stack__reveal { animation: cf-hs-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--hs-d, 0s); }
@media (max-width: 640px) {
.cf-headline-stack__doc { padding: 36px 20px 32px; }
.cf-headline-stack__doc::after { inset: 8px; }
.cf-headline-stack__stack::before { left: 5%; right: 5%; bottom: -10px; }
.cf-headline-stack__btn { width: 100%; padding: 12px 16px; }
.cf-headline-stack__label { font-size: clamp(1rem, 4.4vw, 1.125rem); }
.cf-headline-stack__seal-row { max-width: none; }
.cf-headline-stack__foot { flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.cf-headline-stack__sign { justify-items: center; }
.cf-headline-stack__seal-row { flex-direction: column; gap: 12px; }
.cf-headline-stack__seal { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
.cf-headline-stack__reveal, .cf-headline-stack__mark { animation: none; }
.cf-headline-stack__btn { transition: none; }
.cf-headline-stack__btn:hover,
.cf-headline-stack__btn[data-state="hover"],
.cf-headline-stack__btn:active,
.cf-headline-stack__btn[data-state="active"] { transform: none; }
}
`
pieces/content/headline-stack/specimen.tsx 38 lines
import __studioImage963d97dd from "../assets/6c40173e6678fcf2.webp";
import * as React from "react"
import { HeadlineStack } from "../headline-stack"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
export const states = ["default", "hover", "active", "disabled"]
type SpecimenState = "default" | "hover" | "active" | "disabled"
export default function HeadlineStackSpecimen({ state = "default" }: { state?: SpecimenState }) {
const s = defaults.sample
return (
<HeadlineStack
state={state}
attention="Attention:"
prehead="coaches who have an offer worth selling but no funnel to sell it"
headline="Stop guessing. Build your first funnel with a clear plan for every page."
highlight="a clear plan for every page"
subhead={
<>
<strong>{s.name}</strong> walks you through three steps: plan your funnel, write your page copy, and check every step before you launch.
</>
}
aside="(I know. I didn’t think a plan could be this simple either.)"
actionLabel="Send Me The Starter Kit"
actionSublabel={"Instant download · just " + s.price}
reassurance={s.note}
author={{ name: "Dana Wells", role: "Creator of " + s.name }}
guarantee={s.guarantee}
guaranteeNote="Not for you? Ask within 30 days for a full refund."
sealImage={slot(
"seal-guarantee",
__studioImage963d97dd
)}
/>
)
}
| Name | Type | Details |
|---|---|---|
attention OptionalHeadlineStack |
string |
Default "Attention:"
|
prehead OptionalHeadlineStack |
React.ReactNode |
Default "coaches who have an offer worth selling but no funnel to sell it"
|
headline OptionalHeadlineStack |
React.ReactNode |
Default "Stop guessing. Build your first funnel with a clear plan for every page."
|
highlight OptionalHeadlineStack |
string |
Default "a clear plan for every page"
|
quoted OptionalHeadlineStack |
boolean |
Default true
|
subhead OptionalHeadlineStack |
React.ReactNode |
Default (
<>
<strong>The starter plan</strong> walks you through three steps: map your offer, write your page copy, and check every step before you launch.
</>
)
|
aside OptionalHeadlineStack |
React.ReactNode |
|
actionLabel OptionalHeadlineStack |
string |
Default "Show Me The Plan"
|
actionSublabel OptionalHeadlineStack |
string |
Default "See everything inside first"
|
reassurance OptionalHeadlineStack |
string |
|
href OptionalHeadlineStack |
string |
|
onAction OptionalHeadlineStack |
() => void |
|
author OptionalHeadlineStack |
{ name: string; role?: string } |
|
guarantee OptionalHeadlineStack |
string |
|
guaranteeNote OptionalHeadlineStack |
string |
|
sealImage OptionalHeadlineStack |
string |
|
sealAlt OptionalHeadlineStack |
string |
Default ""
|
state OptionalHeadlineStack |
"default" | "hover" | "active" | "disabled" |
Default "default"
|
className OptionalHeadlineStack |
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-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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
seal-guarantee- The money-back guarantee seal, on a transparent background.
-
6c40173e6678fcf2.webp
image/webp · 502 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB