Big Promise Hero 1
Big Promise Hero: a magazine-spread sales hero. One huge promise, the story that makes it believable,
Use it in a prompt
Use hero/big-promise-hero 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/hero/big-promise-hero.tsx. - Import it and pass your copy and images (Props tab):
import { BigPromiseHero } from "@/components/funneldna/hero/big-promise-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/big-promise-hero/component.tsx 782 lines
// layout: magazine-spread
// Big Promise Hero: a magazine-spread sales hero. One huge promise, the story that makes it believable,
// and an Add To Cart offer box that stays one tap away, optionally pinned as a top bar once it scrolls away.
import * as React from "react";
import { ChevronDown, Lock, ShieldCheck, ShoppingCart, Star, X } from "lucide-react";
export type BigPromiseHeroItem = {
name: string;
detail?: string;
value?: string;
image?: string;
imageAlt?: string;
};
export type BigPromiseHeroProof = {
/** Real average rating out of 5; omit when there is none. */
rating?: number;
/** Words after the score, e.g. "from 212 kit buyers". */
ratingNote?: string;
/** A short real customer quote. */
quote?: string;
quoteName?: string;
};
export type BigPromiseHeroCopy = {
/** Screen-reader price line. Placeholders: {regularPrice}, {price}. */
priceWithRegular: string;
/** Screen-reader price line without a regular price. Placeholder: {price}. */
priceOnly: string;
insideOpen: string;
insideClose: string;
/** Placeholder: {value}. */
itemValue: string;
/** Placeholder: {score}. */
ratingLabel: string;
barLabel: string;
barClose: string;
};
export type BigPromiseHeroState = "default" | "hover" | "active" | "disabled";
export type BigPromiseHeroProps = {
/** Audience call-out set as the masthead line above the headline. */
preHead?: string;
/** Headline words before the highlighted phrase. */
headline?: React.ReactNode;
/** The one phrase that gets the marker stroke. */
highlight?: React.ReactNode;
/** Words after the highlight, including their own leading space. */
headlineEnd?: React.ReactNode;
deck?: React.ReactNode;
/** Story paragraph; its first letter becomes the drop cap. */
story?: string;
/** Large pull line set from supplied facts. */
pullLine?: string;
productName?: string;
/** Slot "product": transparent product shot. */
productImage?: string;
productImageAlt?: string;
caption?: string;
todayLabel?: string;
/** Only a real, supplied regular price; it is shown slashed. */
regularPrice?: string;
price?: string;
priceNote?: string;
actionLabel?: string;
showPriceOnButton?: boolean;
sublabel?: string;
guarantee?: string;
/** Optional "what's inside" list, revealed by a disclosure. */
items?: BigPromiseHeroItem[];
/** Supplied proof only; nothing renders when empty. */
proof?: BigPromiseHeroProof;
/** Pin a compact Add To Cart bar to the top once the main button scrolls away. */
sticky?: boolean;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled?: boolean;
state?: BigPromiseHeroState;
copy?: Partial<BigPromiseHeroCopy>;
className?: string;
};
export function BigPromiseHero(props: BigPromiseHeroProps) {
const {
preHead = "For first-time funnel builders",
headline = "Build your first funnel with",
highlight = "a clear plan",
headlineEnd,
deck = "Plan your funnel, write your page copy, and check every step before you launch.",
story = "You don't need another tool. You need the order to work in. The guide maps your offer and every page your funnel needs, the workbook drafts your headline and call to action, and the checklist catches broken links and forms before anyone sees them.",
pullLine = "One payment. Yours to keep.",
productName = "The Funnel Starter Kit",
productImage,
productImageAlt = "",
caption = "Everything in one download: the guide, the workbook and the checklist.",
todayLabel = "Get the complete kit for",
regularPrice,
price = "$47",
priceNote = "One payment · Lifetime access",
actionLabel = "Add To Cart",
showPriceOnButton = true,
sublabel = "Secure checkout · Instant download",
guarantee,
items = [],
proof,
sticky = false,
href,
onAction,
disabled = false,
state = "default",
copy: copyProp,
className,
} = props;
const copy: BigPromiseHeroCopy = { ...DEFAULT_COPY, ...copyProp };
const uid = React.useId();
const headingId = uid + "-h";
const panelId = uid + "-inside";
const isDisabled = disabled || state === "disabled";
const hasImage = Boolean(productImage);
const ctaWrapRef = React.useRef<HTMLDivElement>(null);
const toggleRef = React.useRef<HTMLButtonElement>(null);
const [open, setOpen] = React.useState(false);
const [barShown, setBarShown] = React.useState(false);
const [barClosed, setBarClosed] = React.useState(false);
React.useEffect(() => {
if (!sticky || barClosed) return;
const el = ctaWrapRef.current;
if (!el || typeof IntersectionObserver === "undefined") return;
const observer = new IntersectionObserver(
([entry]) => setBarShown(!entry.isIntersecting && entry.boundingClientRect.top < 0),
{ threshold: 0 },
);
observer.observe(el);
return () => observer.disconnect();
}, [sticky, barClosed]);
const closeBar = React.useCallback(() => {
setBarClosed(true);
setBarShown(false);
ctaWrapRef.current?.querySelector<HTMLElement>(".cf-bph-btn")?.focus({ preventScroll: true });
}, []);
const onInsideKey = (event: React.KeyboardEvent<HTMLDivElement>) => {
if (event.key === "Escape" && open) {
event.stopPropagation();
setOpen(false);
toggleRef.current?.focus();
}
};
const priceSummary = regularPrice
? fill(copy.priceWithRegular, { regularPrice, price })
: fill(copy.priceOnly, { price });
const buttonPrice = showPriceOnButton ? price : undefined;
const rating = proof?.rating;
const hasRating = typeof rating === "number" && Number.isFinite(rating);
const quote = proof?.quote;
const rootClass = ["cf-bph", hasImage ? "" : "cf-bph--noimg", className ?? ""].filter(Boolean).join(" ");
return (
<section className={rootClass} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className="cf-bph-wrap">
<div className="cf-bph-grid">
<header className="cf-bph-head cf-bph-in" style={delay(0)}>
{preHead || productName ? (
<div className="cf-bph-mast">
{preHead ? <p className="cf-bph-pre">{preHead}</p> : <span />}
{productName ? <p className="cf-bph-folio">{productName}</p> : null}
</div>
) : null}
<h1 id={headingId} className="cf-bph-h1">
{headline}
{highlight ? (
<>
{" "}
<span className="cf-bph-mark">{highlight}</span>
</>
) : null}
{headlineEnd}
</h1>
</header>
{deck ? (
<p className="cf-bph-lead cf-bph-in" style={delay(1)}>
{deck}
</p>
) : null}
{hasImage ? (
<figure className="cf-bph-visual cf-bph-in" style={delay(2)}>
<img
src={productImage}
alt={productImageAlt || productName || ""}
width={720}
height={720}
loading="eager"
decoding="async"
/>
{caption ? <figcaption className="cf-bph-cap">{caption}</figcaption> : null}
</figure>
) : null}
<div className="cf-bph-offer cf-bph-in" style={delay(2)}>
{todayLabel ? <p className="cf-bph-today">{todayLabel}</p> : null}
<p className="cf-bph-figs">
<span className="cf-bph-sr">{priceSummary}</span>
{regularPrice ? (
<span className="cf-bph-was" aria-hidden="true">
{regularPrice}
</span>
) : null}
<span className="cf-bph-now" aria-hidden="true">
{price}
</span>
</p>
{priceNote ? <p className="cf-bph-note">{priceNote}</p> : null}
<div className="cf-bph-cta" ref={ctaWrapRef}>
<CartButton
label={actionLabel}
price={buttonPrice}
href={href}
onAction={onAction}
disabled={isDisabled}
state={state}
/>
</div>
{sublabel || guarantee ? (
<p className="cf-bph-assure">
{sublabel ? (
<span className="cf-bph-seg">
<Lock className="cf-bph-ic" size={16} strokeWidth={2.5} aria-hidden="true" />
{sublabel}
</span>
) : null}
{guarantee ? (
<span className="cf-bph-seg">
<ShieldCheck className="cf-bph-ic" size={16} strokeWidth={2.5} aria-hidden="true" />
{guarantee}
</span>
) : null}
</p>
) : null}
{items.length > 0 ? (
<div className="cf-bph-inside" onKeyDown={onInsideKey}>
<button
ref={toggleRef}
type="button"
className="cf-bph-toggle"
aria-expanded={open}
aria-controls={panelId}
onClick={() => setOpen((value) => !value)}
>
<span>{open ? copy.insideClose : copy.insideOpen}</span>
<ChevronDown size={18} strokeWidth={2.5} aria-hidden="true" />
</button>
<div id={panelId} className="cf-bph-panel" hidden={!open}>
<ul className="cf-bph-items">
{items.map((item, index) => (
<li
key={item.name + index}
className={"cf-bph-item" + (item.image ? "" : " cf-bph-item--nothumb")}
>
{item.image ? (
<img
className="cf-bph-thumb"
src={item.image}
alt={item.imageAlt || item.name}
width={56}
height={56}
loading="lazy"
/>
) : null}
<span className="cf-bph-item-text">
<span className="cf-bph-item-name">{item.name}</span>
{item.detail ? <span className="cf-bph-item-detail">{item.detail}</span> : null}
</span>
{item.value ? (
<span className="cf-bph-item-value">{fill(copy.itemValue, { value: item.value })}</span>
) : null}
</li>
))}
</ul>
</div>
</div>
) : null}
{hasRating || quote ? (
<div className="cf-bph-proof">
{hasRating ? (
<p className="cf-bph-rating">
<span
className="cf-bph-stars"
role="img"
aria-label={fill(copy.ratingLabel, { score: String(rating) })}
>
{[0, 1, 2, 3, 4].map((index) => (
<Star
key={index}
size={16}
strokeWidth={2.5}
aria-hidden="true"
className={index < Math.round(rating as number) ? "is-on" : "is-off"}
/>
))}
</span>
<span>
<strong>{(rating as number).toFixed(1)}</strong>
{proof?.ratingNote ? " " + proof.ratingNote : ""}
</span>
</p>
) : null}
{quote ? (
<blockquote className="cf-bph-quote">
<p>“{quote}”</p>
{proof?.quoteName ? <footer className="cf-bph-qname">{proof.quoteName}</footer> : null}
</blockquote>
) : null}
</div>
) : null}
</div>
{story || pullLine ? (
<div className="cf-bph-body cf-bph-in" style={delay(3)}>
{story ? <p className="cf-bph-story">{story}</p> : null}
{pullLine ? <p className="cf-bph-pull">{pullLine}</p> : null}
</div>
) : null}
</div>
</div>
{sticky && barShown && !barClosed ? (
<div
className="cf-bph-bar"
role="region"
aria-label={copy.barLabel}
onKeyDown={(event) => {
if (event.key === "Escape") {
event.stopPropagation();
closeBar();
}
}}
>
<div className="cf-bph-bar-in">
<p className="cf-bph-bar-name">
{productName ? <span className="cf-bph-bar-title">{productName}</span> : null}
{showPriceOnButton ? null : <span className="cf-bph-bar-price">{price}</span>}
</p>
<CartButton
variant="bar"
label={actionLabel}
price={buttonPrice}
href={href}
onAction={onAction}
disabled={isDisabled}
state={state}
/>
<button type="button" className="cf-bph-bar-x" aria-label={copy.barClose} onClick={closeBar}>
<X size={20} strokeWidth={2.5} aria-hidden="true" />
</button>
</div>
</div>
) : null}
</section>
);
}
export default BigPromiseHero;
const DEFAULT_COPY: BigPromiseHeroCopy = {
priceWithRegular: "Regular price {regularPrice}. Today {price}.",
priceOnly: "Today {price}.",
insideOpen: "See what's inside the kit",
insideClose: "Hide what's inside",
itemValue: "{value} value",
ratingLabel: "Rated {score} out of 5",
barLabel: "Quick add to cart",
barClose: "Hide this bar",
};
function CartButton({
label,
price,
href,
onAction,
disabled,
state,
variant,
}: {
label: string;
price?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled: boolean;
state: BigPromiseHeroState;
variant?: "bar";
}) {
const cls = "cf-bph-btn" + (variant === "bar" ? " cf-bph-btn--bar" : "");
const dataState = state === "hover" || state === "active" ? state : undefined;
const inner = (
<>
<ShoppingCart className="cf-bph-btn-ic" size={20} strokeWidth={2.5} aria-hidden="true" />
<span>{label}</span>
{price ? <span className="cf-bph-btn-price">{price}</span> : null}
</>
);
if (href && !disabled) {
return (
<a className={cls} href={href} data-state={dataState} onClick={onAction}>
{inner}
</a>
);
}
return (
<button
type="button"
className={cls}
data-state={dataState}
disabled={disabled}
onClick={disabled ? undefined : onAction}
>
{inner}
</button>
);
}
function fill(template: string, values: Record<string, string>): string {
return Object.keys(values).reduce((text, key) => text.split("{" + key + "}").join(values[key]), template);
}
function delay(index: number): React.CSSProperties {
return { animationDelay: Math.min(index * 0.07, 0.28) + "s" };
}
const CSS = `
.cf-bph, .cf-bph *, .cf-bph *::before, .cf-bph *::after { box-sizing: border-box; }
.cf-bph :where(h1, p, ul, li, figure, figcaption, blockquote, footer) { margin: 0; padding: 0; }
.cf-bph :where(ul) { list-style: none; }
.cf-bph {
--cf-bph-shadow: var(--shadow, oklch(0.22 0.03 260));
--cf-bph-line: oklch(from var(--ink, #101828) l c h / 0.14);
--cf-bph-marker: oklch(from color-mix(in oklab, var(--marker, #fae37c) 50%, var(--surface, #ffffff)) l max(c, 0.09) h);
--cf-bph-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
--cf-bph-btn-bg: var(--button-bg, var(--cta, #d92d20));
--cf-bph-btn-bg2: var(--button-bg-2, var(--cta-2, #b42318));
position: relative;
background: var(--surface, #ffffff);
color: var(--ink, #101828);
font-family: var(--font-body);
padding: clamp(40px, 6vw, 88px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
overflow-x: clip;
}
.cf-bph-wrap { max-width: 1120px; margin: 0 auto; }
.cf-bph-grid {
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-areas: "head" "lead" "offer" "visual" "body";
row-gap: 24px;
align-items: start;
}
.cf-bph--noimg .cf-bph-grid { grid-template-areas: "head" "lead" "offer" "body"; }
.cf-bph-head { grid-area: head; min-width: 0; }
.cf-bph-lead { grid-area: lead; }
.cf-bph-body { grid-area: body; }
.cf-bph-visual { grid-area: visual; }
.cf-bph-offer { grid-area: offer; }
@media (min-width: 760px) {
.cf-bph-grid {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
grid-template-areas: "head head" "lead lead" "visual offer" "body body";
column-gap: clamp(28px, 4vw, 48px);
row-gap: 28px;
}
.cf-bph-story { columns: 2; column-gap: 36px; }
.cf-bph--noimg .cf-bph-grid { grid-template-areas: "head head" "lead offer" "body offer"; }
.cf-bph--noimg .cf-bph-story { columns: auto; }
}
@media (min-width: 1140px) {
.cf-bph-grid {
grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr) minmax(0, 1.04fr);
grid-template-areas: "head head head" "lead visual offer" "body visual offer";
grid-template-rows: auto auto 1fr;
column-gap: 40px;
}
.cf-bph-story { columns: auto; }
.cf-bph--noimg .cf-bph-grid {
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
grid-template-areas: "head head" "lead offer" "body offer";
}
}
.cf-bph-mast {
display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
padding-bottom: 12px; margin-bottom: clamp(20px, 3vw, 32px);
border-bottom: 1px solid var(--cf-bph-line);
}
.cf-bph-pre, .cf-bph-folio {
font-size: 0.875rem; line-height: 1.2; font-weight: 800;
letter-spacing: 0.08em; text-transform: uppercase;
}
.cf-bph-pre { color: var(--accent, #2457c5); }
.cf-bph-folio { color: var(--muted, #475467); white-space: nowrap; }
@media (max-width: 559px) { .cf-bph-folio { display: none; } }
.cf-bph-h1 {
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
letter-spacing: var(--display-tracking, -0.025em);
text-transform: var(--display-case, none);
font-size: clamp(2.625rem, 6vw, 5.25rem);
line-height: 1.04;
color: var(--ink, #101828);
text-wrap: balance;
}
.cf-bph-mark {
background-image: linear-gradient(var(--cf-bph-marker), var(--cf-bph-marker));
background-repeat: no-repeat;
background-position: 0 86%;
background-size: 100% 0.5em;
padding: 0 0.1em;
margin: 0 -0.06em;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
animation: cf-bph-sweep 0.6s 0.2s var(--cf-bph-ease) both;
}
.cf-bph-lead {
font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; font-weight: 500;
color: var(--ink, #101828); text-wrap: pretty; max-width: 44rem;
}
.cf-bph-story {
font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.6;
color: var(--ink, #101828); text-wrap: pretty;
}
.cf-bph-pull {
margin-top: 24px;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
letter-spacing: var(--display-tracking, -0.025em);
text-transform: var(--display-case, none);
font-size: clamp(1.75rem, 2.5vw, 2.25rem);
line-height: 1.1;
color: var(--accent, #2457c5);
text-wrap: balance;
}
.cf-bph-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cf-bph-visual img {
display: block; width: 100%; max-width: 300px; height: auto;
aspect-ratio: 1 / 1; object-fit: contain;
filter: drop-shadow(0 2px 3px oklch(from var(--cf-bph-shadow) l c h / 0.28)) drop-shadow(0 16px 18px oklch(from var(--cf-bph-shadow) l c h / 0.2));
}
@media (min-width: 760px) { .cf-bph-visual img { max-width: 460px; } }
.cf-bph-cap {
max-width: 34ch; font-size: 0.9375rem; line-height: 1.4; font-weight: 500;
color: var(--muted, #475467); text-align: center; text-wrap: pretty;
}
.cf-bph-offer {
background: var(--card, #ffffff);
color: var(--ink, #101828);
border: 1px solid var(--card-border, color-mix(in oklch, var(--ink, #101828) 12%, transparent));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--cf-bph-shadow) l c h / 0.22), 0 12px 24px -8px oklch(from var(--cf-bph-shadow) l c h / 0.32)));
padding: clamp(20px, 3vw, 32px);
text-align: center;
}
.cf-bph-today { font-size: 0.9375rem; line-height: 1.4; font-weight: 700; color: var(--muted, #475467); }
.cf-bph-figs {
display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
column-gap: 12px; row-gap: 4px; margin-top: 8px;
}
.cf-bph-was {
position: relative; display: inline-block; padding: 0 0.12em;
font-family: var(--font-display); font-weight: var(--display-weight, 800);
font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1;
color: var(--muted, #475467); font-variant-numeric: tabular-nums;
}
.cf-bph-was::after {
content: "";
position: absolute; left: -0.1em; right: -0.1em; top: 50%;
height: 3px; margin-top: -1.5px; border-radius: 3px;
background: var(--danger, #c0362c);
transform: rotate(-14deg);
transform-origin: left center;
animation: cf-bph-slash 0.35s 0.45s var(--cf-bph-ease) both;
}
.cf-bph-now {
font-family: var(--font-display); font-weight: var(--display-weight, 800);
font-size: clamp(2.5rem, 4.2vw, 3.75rem); line-height: 1; letter-spacing: -0.03em;
color: var(--ink, #101828); font-variant-numeric: tabular-nums;
padding: 0 0.12em;
}
.cf-bph-note { margin-top: 12px; font-size: 0.9375rem; line-height: 1.4; font-weight: 600; color: var(--muted, #475467); }
.cf-bph-cta { margin-top: 24px; }
.cf-bph-btn {
display: inline-flex; align-items: center; justify-content: center; gap: 10px;
width: 100%; min-height: 64px; padding: 0 22px; border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(oklch(from var(--cf-bph-btn-bg) calc(l + 0.04) c h), oklch(from var(--cf-bph-btn-bg2) calc(l - 0.02) c h));
color: var(--button-ink, var(--cta-ink, #ffffff));
font-family: var(--button-font, var(--font-display));
font-weight: var(--button-weight, 800);
font-size: clamp(1.125rem, 1.55vw, 1.375rem);
line-height: 1.15;
text-transform: var(--button-case, none);
text-decoration: none;
text-shadow: var(--button-text-shadow, none);
white-space: nowrap;
cursor: pointer;
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--cf-bph-btn-bg) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--cf-bph-btn-bg) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--cf-bph-shadow) l c h / 0.3), 0 8px 16px -6px oklch(from var(--cf-bph-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-bph-btn:hover, .cf-bph-btn[data-state="hover"] {
background: linear-gradient(oklch(from var(--cf-bph-btn-bg) calc(l - 0.01) c h), oklch(from var(--cf-bph-btn-bg2) calc(l - 0.07) c h));
transform: translateY(-1px);
box-shadow: inset 0 1px 0 oklch(from var(--cf-bph-btn-bg) calc(l + 0.1) c h / 0.6), inset 0 -3px 0 oklch(from var(--cf-bph-btn-bg) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--cf-bph-shadow) l c h / 0.32), 0 12px 20px -6px oklch(from var(--cf-bph-shadow) l c h / 0.5);
}
.cf-bph-btn:active, .cf-bph-btn[data-state="active"] {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--cf-bph-btn-bg) calc(l - 0.05) c h), oklch(from var(--cf-bph-btn-bg2) calc(l - 0.09) c h));
box-shadow: inset 0 2px 4px oklch(from var(--cf-bph-btn-bg) calc(l - 0.22) c h / 0.45), inset 0 -2px 0 oklch(from var(--cf-bph-btn-bg) calc(l - 0.18) c h), 0 1px 2px oklch(from var(--cf-bph-shadow) l c h / 0.3);
}
.cf-bph-btn:focus-visible { outline: 3px solid var(--field-focus, var(--accent, #2457c5)); outline-offset: 3px; }
.cf-bph-btn:disabled, .cf-bph-btn:disabled:hover {
background: var(--secondary, #e7ebf2);
color: var(--secondary-ink, #101828);
text-shadow: none;
box-shadow: inset 0 -2px 0 oklch(from var(--secondary, #e7ebf2) calc(l - 0.1) c h);
transform: none;
cursor: not-allowed;
}
.cf-bph-btn-ic { flex: 0 0 auto; }
.cf-bph-btn-price {
padding: 2px 6px 2px 14px;
border-left: 1px solid oklch(from var(--button-ink, var(--cta-ink, #ffffff)) l c h / 0.4);
font-variant-numeric: tabular-nums;
}
.cf-bph-btn:disabled .cf-bph-btn-price { border-left-color: oklch(from var(--secondary-ink, #101828) l c h / 0.3); }
@media (max-width: 380px) { .cf-bph-btn { padding: 0 14px; gap: 8px; } }
.cf-bph-assure { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; font-weight: 600; color: var(--muted, #475467); }
.cf-bph-seg { display: block; max-width: 100%; margin: 0; text-wrap: balance; }
.cf-bph-seg + .cf-bph-seg { margin-top: 4px; }
.cf-bph-ic { display: inline-block; vertical-align: -0.15em; margin-inline-end: 0.4em; color: var(--accent, #2457c5); }
.cf-bph-inside { margin-top: 16px; }
.cf-bph-toggle {
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
min-height: 44px; padding: 0 12px; border: 0;
border-radius: var(--button-radius, var(--radius, 10px));
background: transparent;
color: var(--link, var(--accent, #2457c5));
font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.2; font-weight: 700;
text-decoration: underline;
text-decoration-color: oklch(from var(--link, var(--accent, #2457c5)) l c h / 0.45);
text-underline-offset: 0.18em;
cursor: pointer;
transition: color 0.16s ease, background 0.16s ease;
}
.cf-bph-toggle:hover {
color: oklch(from var(--link, var(--accent, #2457c5)) calc(l - 0.08) c h);
text-decoration-color: currentColor;
background: color-mix(in oklch, var(--ink, #101828) 4%, var(--card, #ffffff));
}
.cf-bph-toggle:focus-visible { outline: 3px solid var(--field-focus, var(--accent, #2457c5)); outline-offset: 2px; }
.cf-bph-toggle svg { flex: 0 0 auto; transition: transform 0.2s var(--cf-bph-ease); }
.cf-bph-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.cf-bph-panel {
container-type: inline-size;
margin-top: 12px; padding: 4px clamp(16px, 3vw, 20px); border-radius: 10px;
background: color-mix(in oklch, var(--ink, #101828) 4%, var(--card, #ffffff));
text-align: left;
animation: cf-bph-rise 0.3s var(--cf-bph-ease) both;
}
.cf-bph-panel[hidden] { display: none; }
.cf-bph-item {
display: grid;
grid-template-columns: 56px minmax(0, 1fr);
grid-template-areas: "thumb text" "thumb value";
column-gap: 16px; align-items: start;
padding: 16px 0;
}
.cf-bph-item--nothumb { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "value"; }
.cf-bph-item + .cf-bph-item { border-top: 1px solid oklch(from var(--ink, #101828) l c h / 0.1); }
.cf-bph-thumb {
grid-area: thumb; display: block; width: 56px; height: 56px;
border-radius: 8px; object-fit: cover; object-position: center;
}
.cf-bph-item-text { grid-area: text; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cf-bph-item-name { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; color: var(--ink, #101828); text-wrap: pretty; }
.cf-bph-item-detail { font-size: 0.9375rem; line-height: 1.45; font-weight: 500; color: var(--muted, #475467); text-wrap: pretty; }
.cf-bph-item-value {
grid-area: value; justify-self: start;
display: inline-flex; align-items: center; min-height: 28px;
margin-top: 10px; padding: 4px 12px; border-radius: 999px;
background: color-mix(in oklch, var(--ink, #101828) 8%, var(--card, #ffffff));
font-size: 0.875rem; line-height: 1.2; font-weight: 800;
color: var(--ink, #101828); font-variant-numeric: tabular-nums; white-space: nowrap;
}
@container (min-width: 440px) {
.cf-bph-item { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "thumb text value"; }
.cf-bph-item--nothumb { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text value"; }
.cf-bph-item-value { margin-top: 0; }
}
.cf-bph-proof {
margin-top: 20px; padding-top: 20px;
border-top: 1px solid oklch(from var(--ink, #101828) l c h / 0.12);
display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cf-bph-rating {
display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
font-size: 0.9375rem; line-height: 1.4; font-weight: 600; color: var(--ink, #101828);
}
.cf-bph-stars { display: inline-flex; gap: 2px; }
.cf-bph-stars .is-on { color: var(--accent-fill, var(--accent, #2457c5)); fill: currentColor; }
.cf-bph-stars .is-off { color: oklch(from var(--ink, #101828) l c h / 0.28); fill: none; }
.cf-bph-quote { font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.45; font-weight: 500; color: var(--ink, #101828); text-wrap: pretty; }
.cf-bph-qname { margin-top: 4px; font-size: 0.875rem; line-height: 1.2; font-weight: 700; color: var(--muted, #475467); }
.cf-bph-sr {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cf-bph-bar {
position: fixed; top: 0; left: 0; right: 0; z-index: 60;
background: var(--band, #1d2b4f);
color: var(--band-ink, #ffffff);
box-shadow: var(--shadow-md, 0 1px 2px oklch(from var(--cf-bph-shadow) l c h / 0.22), 0 4px 10px -2px oklch(from var(--cf-bph-shadow) l c h / 0.2));
animation: cf-bph-drop 0.28s var(--cf-bph-ease) both;
}
.cf-bph-bar-in {
max-width: calc(1120px + 2 * clamp(16px, 5vw, 48px));
margin: 0 auto;
padding: 10px clamp(16px, 5vw, 48px);
display: flex; align-items: center; gap: 16px;
}
.cf-bph-bar-name { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.cf-bph-bar-title {
min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
font-family: var(--font-display); font-weight: var(--display-weight, 800);
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
}
.cf-bph-bar-price {
font-family: var(--font-display); font-weight: var(--display-weight, 800);
font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-variant-numeric: tabular-nums;
}
.cf-bph-btn--bar { width: auto; flex: 0 0 auto; min-height: 48px; padding: 0 20px; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); }
.cf-bph-bar .cf-bph-btn:focus-visible, .cf-bph-bar-x:focus-visible { outline: 3px solid var(--band-ink, #ffffff); outline-offset: 2px; }
.cf-bph-bar-x {
flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
width: 44px; height: 44px; border: 0;
border-radius: var(--button-radius, var(--radius, 10px));
background: transparent; color: var(--band-ink, #ffffff); cursor: pointer;
transition: background 0.16s ease;
}
.cf-bph-bar-x:hover { background: oklch(from var(--band-ink, #ffffff) l c h / 0.12); }
@media (max-width: 559px) {
.cf-bph-bar-in { gap: 8px; }
.cf-bph-bar-title { display: none; }
}
.cf-bph-in { animation: cf-bph-rise 0.45s var(--cf-bph-ease) both; }
@keyframes cf-bph-rise { from { opacity: 0.82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cf-bph-sweep { from { background-size: 0% 0.5em; } to { background-size: 100% 0.5em; } }
@keyframes cf-bph-slash { from { transform: rotate(-14deg) scaleX(0); } to { transform: rotate(-14deg) scaleX(1); } }
@keyframes cf-bph-drop { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
.cf-bph-in, .cf-bph-mark, .cf-bph-was::after, .cf-bph-panel, .cf-bph-bar { animation: none; }
.cf-bph-btn, .cf-bph-toggle, .cf-bph-toggle svg, .cf-bph-bar-x { transition: none; }
.cf-bph-btn:hover, .cf-bph-btn[data-state="hover"], .cf-bph-btn:active, .cf-bph-btn[data-state="active"] { transform: none; }
}
`;
pieces/hero/big-promise-hero/specimen.tsx 52 lines
import __studioImage30736b3e from "../assets/0b67191110d3125a.webp";
import * as React from "react";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
import { BigPromiseHero } from "../big-promise-hero";
const sample = defaults.sample;
export const states = ["default", "hover", "active", "disabled"];
type SpecimenState = "default" | "hover" | "active" | "disabled";
export default function BigPromiseHeroSpecimen({ state = "default" }: { state?: SpecimenState }) {
const items = sample.items.map((item, index) => {
const image = (item as { image?: string }).image;
return image ? { ...item, image: slot("item-" + (index + 1), image) } : item;
});
return (
<BigPromiseHero
state={state}
preHead="For first-time funnel builders"
headline="Build your first funnel with"
highlight="a clear plan"
deck={sample.lead}
story="You don't need another tool. You need the order to work in. The guide maps your offer and every page your funnel needs, the workbook drafts your headline and call to action, and the checklist catches broken links and forms before anyone sees them."
pullLine="One payment. Yours to keep."
productName={sample.name}
productImage={slot(
"product",
__studioImage30736b3e,
)}
productImageAlt="The Funnel Starter Kit: planning guide, copy workbook and launch checklist"
caption="Everything in one download: the guide, the workbook and the checklist."
todayLabel={sample.todayLabel}
regularPrice={sample.regularPrice}
price={sample.price}
priceNote={sample.note}
actionLabel="Add To Cart"
sublabel={sample.sublabel}
guarantee={sample.guarantee}
items={items}
proof={{
rating: 4.8,
ratingNote: "from 212 kit buyers",
quote: "I had every page of my funnel mapped out in one evening.",
quoteName: "Dana R., Austin",
}}
sticky
/>
);
}
| Name | Type | Details |
|---|---|---|
preHead OptionalBigPromiseHero |
string |
|
headline OptionalBigPromiseHero |
React.ReactNode |
|
highlight OptionalBigPromiseHero |
React.ReactNode |
|
headlineEnd OptionalBigPromiseHero |
React.ReactNode |
|
deck OptionalBigPromiseHero |
React.ReactNode |
|
story OptionalBigPromiseHero |
string |
|
pullLine OptionalBigPromiseHero |
string |
|
productName OptionalBigPromiseHero |
string |
|
productImage OptionalBigPromiseHero |
string |
|
productImageAlt OptionalBigPromiseHero |
string |
|
caption OptionalBigPromiseHero |
string |
|
todayLabel OptionalBigPromiseHero |
string |
|
regularPrice OptionalBigPromiseHero |
string |
|
price OptionalBigPromiseHero |
string |
|
priceNote OptionalBigPromiseHero |
string |
|
actionLabel OptionalBigPromiseHero |
string |
|
showPriceOnButton OptionalBigPromiseHero |
boolean |
|
sublabel OptionalBigPromiseHero |
string |
|
guarantee OptionalBigPromiseHero |
string |
|
items OptionalBigPromiseHero |
BigPromiseHeroItem[] |
|
proof OptionalBigPromiseHero |
BigPromiseHeroProof |
|
sticky OptionalBigPromiseHero |
boolean |
|
href OptionalBigPromiseHero |
string |
|
onAction OptionalBigPromiseHero |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalBigPromiseHero |
boolean |
|
state OptionalBigPromiseHero |
BigPromiseHeroState |
|
copy OptionalBigPromiseHero |
Partial<BigPromiseHeroCopy> |
|
className OptionalBigPromiseHero |
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.
--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.
product- The main product shot or cover (ebook, kit, bottle).
-
0b67191110d3125a.webp
image/webp · 132 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB