Hero Band 1
Leads with the promise on a full-width band and brings the offer card into the first screen.
Use it in a prompt
Use kit/hero-band 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/kit/hero-band.tsx. - Import it and pass your copy and images (Props tab):
import { HeroBand } from "@/components/funneldna/kit/hero-band"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/kit/hero-band/component.tsx 187 lines
// pages: all
// Leads with the promise on a full-width band and brings the offer card into the first screen.
import type { ReactNode } from "react";
import { Check, Download, Lock, ShieldCheck } from "lucide-react";
import { Eyebrow, heroH1, heroLead, keepHyphensIn } from "./core";
export type HeroBandProps = {
prehead?: ReactNode;
title?: ReactNode;
lead?: ReactNode;
/** Decision card or action control, which owns its navigation or callback. */
action: ReactNode;
/** Optional wide content below the decision card. */
stage?: ReactNode;
/** Scene slot; overrides the legacy backdrop when supplied, including an empty string. */
sceneImage?: string;
/** Legacy scene image, or false to hide both the image and blueprint decoration. */
backdrop?: string | false;
className?: string;
};
export function HeroBand({
prehead, title = "Build your first funnel with a clear plan", lead, action, stage, sceneImage, backdrop, className,
}: HeroBandProps) {
const backgroundImage = sceneImage !== undefined ? sceneImage : backdrop;
return (
<div data-hero="band" className={[`cf-hero-band flex flex-col ${stage ? "" : "pb-14"}`, className].filter(Boolean).join(" ")}>
<style>{HERO_BAND_CSS}</style>
<div data-band className="relative isolate overflow-hidden bg-[var(--band)] text-[var(--band-ink)] px-5 pb-28 pt-[clamp(2.75rem,5vw,4.5rem)] sm:px-8" style={{ boxShadow: `inset 0 -1px 0 ${heroBandMix(10)}, inset 0 -2px 3px oklch(from var(--band) calc(l - 0.12) c h / 0.35)` }}>
{backgroundImage !== false && <HeroBandBackdrop sceneImage={backgroundImage || undefined} />}
<div className="relative mx-auto flex w-full max-w-[var(--section-max,1120px)] flex-col items-center gap-8 text-center [--heading-align:center]">
{prehead && <Eyebrow>{prehead}</Eyebrow>}
<h1 className={heroH1(" [text-wrap:balance] lg:text-[length:min(calc(var(--fs-h1,4.25rem)*1.1),7vw)]")}>{title}</h1>
{lead && <p className={heroLead}>{keepHyphensIn(lead)}</p>}
</div>
</div>
<div className="relative z-10 -mt-20 px-5 sm:px-8">
<div className="relative mx-auto w-full max-w-[580px]">
<div aria-hidden className="absolute -bottom-8 left-1/2 h-12 w-[78%] -translate-x-1/2 rounded-[50%] blur-sm" style={{ background: "oklch(from var(--surface) min(0.25,calc(l - 0.12)) c h / 0.35)" }} />
<div className="relative">{action}</div>
</div>
</div>
{stage && <div className="mx-auto w-full max-w-[var(--section-max,1120px)] px-5 pb-[calc(4rem*var(--density,1))] pt-14 sm:px-8 md:pb-[calc(6rem*var(--density,1))]">{stage}</div>}
</div>
);
}
export default HeroBand;
const heroBandMix = (pct: number) => `oklch(from var(--ink,#101828) l c h / ${pct / 100})`;
/** Subtle blueprint backdrop: fine grid plus funnel-page wireframes kept to the band's edges. Low contrast, never behind the words. */
// private
function HeroBandBackdrop({ sceneImage }: { sceneImage?: string }) {
const fade = "radial-gradient(ellipse 52% 62% at 50% 42%, transparent 38%, var(--ink) 100%)";
const page = (x: number, y: number, w: number, h: number, key: string) => (
<g key={key}>
<rect x={x} y={y} width={w} height={h} rx="8" fill="none" stroke="currentColor" strokeWidth="1.5" />
<path d={`M${x} ${y + 22}H${x + w}`} stroke="currentColor" strokeWidth="1.5" />
<circle cx={x + 12} cy={y + 11} r="3" fill="currentColor" />
<circle cx={x + 22} cy={y + 11} r="3" fill="currentColor" />
<rect x={x + 18} y={y + 42} width={w * 0.62} height="10" rx="3" fill="currentColor" />
<rect x={x + 18} y={y + 62} width={w * 0.44} height="6" rx="3" fill="currentColor" opacity=".7" />
<path d={`M${x + 18} ${y + 86}H${x + w - 18}M${x + 18} ${y + 100}H${x + w - 30}M${x + 18} ${y + 114}H${x + w - 44}`} stroke="currentColor" strokeWidth="1.5" />
<rect x={x + 18} y={y + h - 40} width={w - 36} height="22" rx="6" fill="none" stroke="currentColor" strokeWidth="1.5" />
</g>
);
return (
<div aria-hidden className="pointer-events-none absolute inset-0 overflow-hidden">
{sceneImage && <img src={sceneImage} alt="" className="absolute inset-0 h-full w-full object-cover" style={{ opacity: 0.1, filter: "grayscale(1) contrast(1.05)" }} />}
<svg viewBox="0 0 1440 680" preserveAspectRatio="xMidYMid slice" className="absolute inset-0 h-full w-full" style={{ color: heroBandMix(9), maskImage: fade, WebkitMaskImage: fade }}>
<defs>
<pattern id="hero-band-grid" width="40" height="40" patternUnits="userSpaceOnUse">
<path d="M40 0H0V40" fill="none" stroke="currentColor" strokeWidth="1" opacity=".55" />
</pattern>
</defs>
<rect width="1440" height="680" fill="url(#hero-band-grid)" />
{page(70, 110, 190, 250, "a")}
{page(150, 420, 170, 220, "b")}
{page(1180, 90, 190, 250, "c")}
{page(1110, 400, 170, 220, "d")}
<path d="M260 300C330 330 300 420 330 470M1180 290C1110 320 1150 400 1120 440" fill="none" stroke="currentColor" strokeWidth="2" strokeDasharray="6 8" />
<path d="M322 458l8 14 10-12M1112 430l8 12 10-12" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
</svg>
</div>
);
}
const heroBandReassureIcon = (text: ReactNode) => {
const t = typeof text === "string" ? text : "";
if (/guarantee|refund/i.test(t)) return ShieldCheck;
if (/instant|download|access/i.test(t)) return Download;
return Check;
};
/**
* Price card for the band hero: tinted head strip with the product, a clear today's price beside the struck
* regular value, an included-items checklist, the button slot and reassurance with icons.
*/
export type HeroBandOfferProps = {
label?: ReactNode;
name?: ReactNode;
secureNote?: ReactNode;
todayLabel?: ReactNode;
price?: ReactNode;
regularPrice?: ReactNode;
regularLabel?: ReactNode;
note?: ReactNode;
/** Records are canonical; legacy rich text items remain supported. */
includes?: ({ title: ReactNode } | ReactNode)[];
button: ReactNode;
/** Records are canonical; icon selection still uses each item's supplied text. */
reassurance?: ({ title: ReactNode } | ReactNode)[];
className?: string;
};
// private
export function HeroBandOffer({
label, name = "The Funnel Starter Kit", secureNote, todayLabel = "Today's price", price,
regularPrice, regularLabel = "Regular value", note, includes = [], button, reassurance = [], className,
}: HeroBandOfferProps) {
const surface = "var(--card,#ffffff)";
const muted = "var(--muted,#4a5565)";
return (
<div data-offer="band" className={["cf-hero-band-offer relative", className].filter(Boolean).join(" ")}>
<style>{HERO_BAND_CSS}</style>
<div aria-hidden className="absolute inset-x-6 -bottom-3 top-6 rounded-[var(--card-radius,calc(var(--radius,14px)+4px))] border" style={{ background: surface, borderColor: "var(--card-border,oklch(from var(--ink) l c h / 0.12))", boxShadow: "var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)))" }} />
<article className="relative overflow-hidden rounded-[var(--card-radius,calc(var(--radius,14px)+4px))] border text-left" style={{ background: surface, color: "var(--ink,#101828)", borderColor: "var(--card-border,oklch(from var(--ink) l c h / 0.12))", boxShadow: "var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)))" }}>
<div className="flex items-center justify-between gap-4 border-b px-5 py-4 sm:px-7" style={{ background: `oklch(from ${surface} calc(l - 0.03) c h)`, borderColor: heroBandMix(10) }}>
<div className="min-w-0">
{label && <p className="mb-1 text-[0.875rem] font-semibold uppercase tracking-[0.08em]" style={{ color: muted }}>{label}</p>}
<p className="text-[1.125rem] [font-weight:var(--display-weight,800)] leading-tight sm:text-[1.25rem]" style={{ fontFamily: "var(--font-display)", textTransform: "var(--display-case,none)" }}>{name}</p>
</div>
{secureNote && <span className="inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap text-[0.875rem] font-semibold" style={{ color: muted }}><Lock aria-hidden size={15} strokeWidth={2.4} />{secureNote}</span>}
</div>
<div className="px-5 pb-6 pt-6 sm:px-7 sm:pb-7">
<div className="flex flex-wrap items-end justify-between gap-x-6 gap-y-4 rounded-[var(--card-radius,var(--radius,14px))] px-5 py-5 sm:px-6" style={{ background: `color-mix(in oklch,var(--ink) 4%,${surface})`, border: "1px solid oklch(from var(--ink) l c h / 0.08)" }}>
<div>
<p className="text-[0.9375rem] font-semibold" style={{ color: muted }}>{todayLabel}</p>
<p className="mt-2 text-[clamp(3rem,10vw,3.75rem)] [font-weight:var(--display-weight,900)] leading-none tracking-[var(--display-tracking,-0.03em)]" style={{ fontFamily: "var(--font-display)", textTransform: "var(--display-case,none)" }}>{price}</p>
</div>
{regularPrice && (
<div className="pb-1 text-right">
<p className="text-[0.875rem] font-medium" style={{ color: muted }}>{regularLabel}</p>
<p className="mt-1 text-[1.5rem] font-bold leading-none" style={{ color: "var(--danger)" }}><s className="decoration-2">{regularPrice}</s></p>
</div>
)}
{note && <p className="basis-full text-[0.9375rem] font-semibold" style={{ color: "var(--ink,#101828)" }}>{note}</p>}
</div>
{includes.length > 0 && (
<ul className="mt-6 grid gap-3">
{includes.map((item, i) => (
<li key={i} className="flex items-start gap-3 text-[1rem] font-semibold leading-snug">
<span className="mt-px grid size-6 shrink-0 place-items-center rounded-full" style={{ background: "var(--success)", color: "var(--card)", boxShadow: "var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / 0.18), 0 1px 3px oklch(0.22 0.03 260 / 0.14))" }}><Check aria-hidden size={14} strokeWidth={3} /></span>
<span className="pt-0.5">{heroBandItemTitle(item)}</span>
</li>
))}
</ul>
)}
<div className="mt-7">{button}</div>
{reassurance.length > 0 && (
<ul className="mt-4 flex flex-wrap items-center justify-center gap-x-5 gap-y-2 text-[0.875rem] font-medium" style={{ color: muted }}>
{reassurance.map((r, i) => { const title = heroBandItemTitle(r); const Icon = heroBandReassureIcon(title); return <li key={i} className="inline-flex items-center gap-1.5"><Icon aria-hidden size={16} strokeWidth={2.2} style={{ color: "var(--success)" }} />{title}</li>; })}
</ul>
)}
</div>
</article>
</div>
);
}
function heroBandItemTitle(item: { title: ReactNode } | ReactNode): ReactNode {
return item !== null && typeof item === "object" && "title" in item ? item.title : item;
}
// Photographic backdrops retain their colours; paint derives from theme tokens.
const HERO_BAND_CSS = `
.cf-hero-band{--hb-ink:var(--ink);font-family:var(--font-body);color:var(--ink)}
.cf-hero-band [data-band] :is(h1,p){color:var(--band-ink)}
.cf-hero-band [data-band] h1{font-family:var(--font-display);font-weight:var(--display-weight,700);letter-spacing:var(--display-tracking,-.01em);text-transform:var(--display-case,none)}
.cf-hero-band [data-band] h1 .box-decoration-clone{color:var(--hb-ink);background-image:linear-gradient(var(--marker,#fae37c),var(--marker,#fae37c))}
.cf-hero-band-offer{font-family:var(--font-body)}
.cf-hero-band-offer :is(a,button){border-color:var(--button-bg-2,var(--cta-2));border-radius:var(--button-radius,var(--radius,14px));background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) l c h),oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,700);text-transform:var(--button-case,none);text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / .3), var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / 0.18), 0 1px 3px oklch(0.22 0.03 260 / 0.14)), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h))}
.cf-hero-band-offer :is(a,button)>span{opacity:1}
.cf-hero-band-offer :is(a,button)>span:first-child{font-weight:inherit}
`;
pieces/kit/hero-band/specimen.tsx 37 lines
// Specimen for hero-band.tsx. Fictional Funnel Starter Kit from studio defaults; proof remains unsupplied.
import { HeroBand, HeroBandOffer } from "../hero-band";
import { Section } from "../core";
import { CtaButton } from "../cta-button";
import { Emph } from "../emph";
import defaults from "../../studio-defaults.json";
export const states = ["default"];
export default function Page({ state }: { state?: string }) {
const s = defaults.sample;
const button = <CtaButton label={s.label} />;
const card = (
<HeroBandOffer
label="Digital kit"
name={s.name}
secureNote="Secure checkout"
todayLabel={s.todayLabel}
price={s.price}
regularPrice={s.regularPrice}
regularLabel="Regular price"
note={s.note}
includes={s.items.map((item) => ({ title: item.name }))}
button={button}
reassurance={s.reassurance.map(title => ({ title }))}
/>
);
const title = <>Build your first funnel with <Emph variant="swipe">a clear plan</Emph></>;
return (
<>
<Section bleed>
<HeroBand prehead={s.eyebrow} title={title} lead={s.lead} action={card} />
</Section>
</>
);
}
| Name | Type | Details |
|---|---|---|
prehead OptionalHeroBand |
ReactNode |
|
title OptionalHeroBand |
ReactNode |
Default "Build your first funnel with a clear plan"
|
lead OptionalHeroBand |
ReactNode |
|
action RequiredHeroBand |
ReactNode |
|
stage OptionalHeroBand |
ReactNode |
|
sceneImage OptionalHeroBand |
string |
|
backdrop OptionalHeroBand |
string | false |
|
className OptionalHeroBand |
string |
|
label OptionalHeroBandOffer |
ReactNode |
|
name OptionalHeroBandOffer |
ReactNode |
Default "The Funnel Starter Kit"
|
secureNote OptionalHeroBandOffer |
ReactNode |
|
todayLabel OptionalHeroBandOffer |
ReactNode |
Default "Today's price"
|
price OptionalHeroBandOffer |
ReactNode |
|
regularPrice OptionalHeroBandOffer |
ReactNode |
|
regularLabel OptionalHeroBandOffer |
ReactNode |
Default "Regular value"
|
note OptionalHeroBandOffer |
ReactNode |
|
includes OptionalHeroBandOffer |
({ title: ReactNode } | ReactNode)[] |
Default []
|
button RequiredHeroBandOffer |
ReactNode |
|
reassurance OptionalHeroBandOffer |
({ title: ReactNode } | ReactNode)[] |
Default []
|
className OptionalHeroBandOffer |
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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
c5c36baf6b897f22.svg image/svg+xml · 236 Bytes
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB