Full Bleed Image Hero 1
Full-bleed photo hero: the outcome scene fills the band, a theme-token scrim keeps the promise readable, and a sticky offer card keeps the one action a tap away.
Use it in a prompt
Use hero/full-bleed-image-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/full-bleed-image-hero.tsx. - Import it and pass your copy and images (Props tab):
import { FullBleedImageHero } from "@/components/funneldna/hero/full-bleed-image-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/full-bleed-image-hero/component.tsx 688 lines
// layout: sticky-offer-side
// Full-bleed photo hero: the outcome scene fills the band, a theme-token scrim keeps the promise readable, and a sticky offer card keeps the one action a tap away.
import * as React from 'react';
import { BookOpen, Check, ChevronDown, Download, Lock, ShieldCheck, Wallet, X } from 'lucide-react';
export type FullBleedImageHeroProofIcon = 'check' | 'shield' | 'download' | 'lock' | 'wallet' | 'book';
export type FullBleedImageHeroItem = {
name: string;
detail?: string;
value?: string;
/** Slot item-n: product photo for the thumbnail */
image?: string;
imageAlt?: string;
};
export type FullBleedImageHeroSection = {
/** Action-colour mid-copy subhead that names a benefit */
title: string;
body: string;
};
export type FullBleedImageHeroProof = { icon?: FullBleedImageHeroProofIcon; text: string };
export type FullBleedImageHeroProps = {
headline?: string;
/** Phrase inside the headline that takes the emphasis colour */
highlight?: string;
deck?: string;
/** Slot scene: full-bleed photo behind the hero */
sceneImage?: string;
/** Empty keeps the scene decorative */
sceneAlt?: string;
/** CSS object-position for the scene photo */
scenePosition?: string;
/** Slot product: transparent cut-out that rises out of the offer card */
productImage?: string;
productAlt?: string;
productName?: string;
productLine?: string;
/** Small-caps price label, used in the letter copy, the card and the bar */
investmentLabel?: string;
price?: string;
priceTerms?: string;
valueNote?: string;
/** Running-letter sentence that follows the price */
investmentText?: string;
sections?: FullBleedImageHeroSection[];
label?: string;
/** One reassurance line under the button */
sublabel?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
items?: FullBleedImageHeroItem[];
/** Use {count} for the number of items */
itemsToggleLabel?: string;
itemsHideLabel?: string;
/** Slim strip along the bottom edge; empty hides it */
proof?: FullBleedImageHeroProof[];
proofLabel?: string;
/** Desktop: the offer card stays in view while the copy scrolls */
stickyOffer?: boolean;
/** Hello bar pinned to the top once the hero button scrolls away */
stickyBar?: boolean;
/** Bar text on desktop; defaults to the product name */
barText?: string;
barRegionLabel?: string;
barDismissLabel?: string;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
const DEFAULT_SECTIONS: FullBleedImageHeroSection[] = [
{
title: 'Stop guessing which page comes next',
body: 'Most first funnels stall because there is no map. The Funnel Planning Guide lays out every page your offer needs, in order.',
},
{
title: 'Write the copy, then check every step',
body: 'Fill in the Page Copy Workbook for your headline, offer and call to action. Then run the Launch Checklist before anything goes live.',
},
];
const DEFAULT_ITEMS: FullBleedImageHeroItem[] = [
{ name: 'Funnel Planning Guide', detail: 'Map your offer and the pages your funnel needs.', value: '$49' },
{ name: 'Page Copy Workbook', detail: 'Draft your headline, offer, and call to action.', value: '$29' },
{ name: 'Launch Checklist', detail: 'Review the links, forms, and next steps before launch.', value: '$19' },
];
export function FullBleedImageHero(props: FullBleedImageHeroProps) {
const {
headline = 'Build your first funnel with a clear plan',
highlight = 'a clear plan',
deck = 'Plan your funnel, write your page copy, and check every step before you launch.',
sceneImage,
sceneAlt = '',
scenePosition = '62% 35%',
productImage,
productAlt = 'The Funnel Starter Kit: guide, workbook and checklist',
productName = 'The Funnel Starter Kit',
productLine = 'The guide, workbook and checklist in one download.',
investmentLabel = 'Your investment',
price = '$47',
priceTerms = 'One payment · Lifetime access',
valueNote = 'Valued at $97',
investmentText = '— one payment. The guide, workbook and checklist are valued at $97, and the 30-day money-back guarantee covers you.',
sections = DEFAULT_SECTIONS,
label = 'Start planning my funnel',
sublabel = 'Secure checkout · Instant download',
href,
onAction,
items = DEFAULT_ITEMS,
itemsToggleLabel = 'See the {count} tools inside',
itemsHideLabel = 'Hide the tools',
proof = [],
proofLabel = 'What comes with your kit',
stickyOffer = true,
stickyBar = false,
barText,
barRegionLabel = 'Quick access to the offer',
barDismissLabel = 'Hide this bar',
state = 'default',
className,
} = props;
const uid = React.useId();
const titleId = uid + '-title';
const listId = uid + '-tools';
const toggleRef = React.useRef<HTMLButtonElement>(null);
const ctaWrapRef = React.useRef<HTMLDivElement>(null);
const [open, setOpen] = React.useState(false);
const [barOn, setBarOn] = React.useState(false);
const [dismissed, setDismissed] = React.useState(false);
React.useEffect(() => {
if (!stickyBar) return;
const el = ctaWrapRef.current;
if (!el || typeof IntersectionObserver === 'undefined') return;
const io = new IntersectionObserver(([entry]) => {
setBarOn(!entry.isIntersecting && entry.boundingClientRect.top < 0);
});
io.observe(el);
return () => io.disconnect();
}, [stickyBar]);
const isDisabled = state === 'disabled';
const forced = state === 'hover' || state === 'active' ? state : undefined;
const hasProduct = Boolean(productImage);
const hasScene = Boolean(sceneImage);
const showBar = stickyBar && barOn && !dismissed;
const toggleText = (open ? itemsHideLabel : itemsToggleLabel).replace('{count}', String(items.length));
const rootClass = ['cf-fbh', stickyOffer ? 'cf-fbh--sticky' : '', hasScene ? '' : 'cf-fbh--bare', className ?? '']
.filter(Boolean)
.join(' ');
const onWellKey = (event: React.KeyboardEvent<HTMLDivElement>) => {
if (event.key === 'Escape' && open) {
event.stopPropagation();
setOpen(false);
toggleRef.current?.focus();
}
};
const onBarKey = (event: React.KeyboardEvent<HTMLDivElement>) => {
if (event.key === 'Escape') setDismissed(true);
};
return (
<section className={rootClass}>
<style>{CSS}</style>
{hasScene ? (
<div className='cf-fbh__media' style={{ '--fbh-pos': scenePosition } as React.CSSProperties}>
<img src={sceneImage} alt={sceneAlt} />
<div className='cf-fbh__scrim' aria-hidden='true' />
</div>
) : null}
<div className='cf-fbh__inner'>
<header className='cf-fbh__head cf-fbh__rv' style={{ '--i': 0 } as React.CSSProperties}>
<h1 className='cf-fbh__h1'>{emphasise(headline, highlight)}</h1>
{deck ? <p className='cf-fbh__deck'>{deck}</p> : null}
</header>
<aside
className={'cf-fbh__offer cf-fbh__rv' + (hasProduct ? ' cf-fbh__offer--product' : '')}
aria-labelledby={titleId}
style={{ '--i': 1 } as React.CSSProperties}
>
{hasProduct ? (
<img className='cf-fbh__product' src={productImage} alt={productAlt} width={232} height={232} />
) : null}
<h2 id={titleId} className='cf-fbh__title'>{productName}</h2>
{productLine ? <p className='cf-fbh__line'>{productLine}</p> : null}
{price ? (
<div className='cf-fbh__price'>
<span className='cf-fbh__num'>{price}</span>
{priceTerms || valueNote ? (
<span className='cf-fbh__terms'>
{priceTerms ? <span className='cf-fbh__terms-line'>{priceTerms}</span> : null}
{valueNote ? <span className='cf-fbh__value'>{valueNote}</span> : null}
</span>
) : null}
</div>
) : null}
<div ref={ctaWrapRef}>
<Cta className='cf-fbh__cta' href={href} onAction={onAction} disabled={isDisabled} state={forced}>
{label}
</Cta>
</div>
{sublabel ? (
<p className='cf-fbh__assure'>
<Lock size={16} strokeWidth={2.5} aria-hidden='true' />
{sublabel}
</p>
) : null}
{items.length > 0 ? (
<div className='cf-fbh__well' onKeyDown={onWellKey}>
<button
ref={toggleRef}
type='button'
className='cf-fbh__toggle'
aria-expanded={open}
aria-controls={listId}
onClick={() => setOpen((v) => !v)}
>
<span>{toggleText}</span>
<ChevronDown size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
<ul id={listId} className='cf-fbh__items' hidden={!open}>
{items.map((item, i) => (
<li key={i} data-thumb={item.image ? '' : undefined}>
{item.image ? (
<img
className='cf-fbh__thumb'
src={item.image}
alt={item.imageAlt ?? item.name}
width={56}
height={56}
loading='lazy'
/>
) : null}
<div>
<p className='cf-fbh__item-name'>{item.name}</p>
{item.detail ? <p className='cf-fbh__item-detail'>{item.detail}</p> : null}
</div>
{item.value ? <span className='cf-fbh__item-value'>{item.value}</span> : null}
</li>
))}
</ul>
</div>
) : null}
</aside>
<div className='cf-fbh__letter cf-fbh__rv' style={{ '--i': 2 } as React.CSSProperties}>
{sections.map((section, i) => (
<div key={i}>
<h2 className='cf-fbh__subhead'>{section.title}</h2>
<p className='cf-fbh__p'>{section.body}</p>
</div>
))}
{price ? (
<p className='cf-fbh__p cf-fbh__invest'>
<span className='cf-fbh__sc'>{investmentLabel}:</span> <strong>{price}</strong> {investmentText}
</p>
) : null}
</div>
</div>
{proof.length > 0 ? (
<ul className='cf-fbh__proof' aria-label={proofLabel}>
{proof.map((p, i) => {
const Icon = PROOF_ICONS[p.icon ?? 'check'];
return (
<li key={i}>
<Icon size={18} strokeWidth={2.5} aria-hidden='true' />
{p.text}
</li>
);
})}
</ul>
) : null}
{stickyBar ? (
<div
className='cf-fbh-bar'
data-on={showBar ? '' : undefined}
role='region'
aria-label={barRegionLabel}
aria-hidden={showBar ? undefined : true}
onKeyDown={onBarKey}
>
<div className='cf-fbh-bar__in'>
<p className='cf-fbh-bar__text'>
<strong>{barText ?? productName}</strong>
{price ? (
<span>
<span className='cf-fbh__sc'>{investmentLabel}:</span> {price}
</span>
) : null}
</p>
<Cta className='cf-fbh__cta cf-fbh-bar__cta' href={href} onAction={onAction} disabled={isDisabled}>
{label}
</Cta>
<button type='button' className='cf-fbh-bar__x' aria-label={barDismissLabel} onClick={() => setDismissed(true)}>
<X size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
</div>
</div>
) : null}
</section>
);
}
export default FullBleedImageHero;
const PROOF_ICONS = {
check: Check,
shield: ShieldCheck,
download: Download,
lock: Lock,
wallet: Wallet,
book: BookOpen,
} as const;
function emphasise(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className='cf-fbh__em'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
function Cta({
href,
onAction,
disabled,
state,
className,
children,
}: {
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled?: boolean;
state?: string;
className: string;
children: React.ReactNode;
}) {
// The primary-button role face is also read inline so the role is visible on the element itself;
// it matches the .cf-fbh__cta rule exactly, so nothing changes visually.
if (href && !disabled) {
return (
<a
className={className}
href={href}
data-state={state}
onClick={onAction}
style={{ fontFamily: 'var(--button-font, var(--font-display))' }}
>
{children}
</a>
);
}
return (
<button
type='button'
className={className}
data-state={state}
disabled={disabled}
onClick={onAction}
style={{ fontFamily: 'var(--button-font, var(--font-display))' }}
>
{children}
</button>
);
}
const CSS = `
.cf-fbh {
--fbh-band: var(--band, oklch(0.27 0.067 256));
--fbh-ink: var(--band-ink, oklch(1 0 0));
--fbh-copy: color-mix(in oklch, var(--fbh-ink) 88%, var(--fbh-band));
--fbh-em: var(--hero-emphasis, color-mix(in oklch, var(--fbh-ink) 45%, var(--accent, oklch(0.5 0.17 257))));
--fbh-subhead: var(--subhead-ink, color-mix(in oklch, var(--fbh-ink) 40%, var(--cta, oklch(0.58 0.21 29.5))));
--fbh-sh: var(--shadow, oklch(0.22 0.03 260));
--fbh-gutter: clamp(16px, 5vw, 48px);
--fbh-overhang: 64px;
position: relative;
overflow: clip;
background: var(--fbh-band);
color: var(--fbh-ink);
font-family: var(--font-body);
}
.cf-fbh *, .cf-fbh *::before, .cf-fbh *::after { box-sizing: border-box; }
.cf-fbh__media { position: relative; height: clamp(240px, 64vw, 440px); overflow: clip; }
.cf-fbh__media img {
position: absolute; inset: 0; width: 100%; height: 100%;
object-fit: cover; object-position: var(--fbh-pos, 62% 35%);
animation: cf-fbh-settle 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.cf-fbh__scrim {
position: absolute; inset: 0;
background: linear-gradient(180deg,
oklch(from var(--fbh-band) l c h / 0.08) 0%,
oklch(from var(--fbh-band) l c h / 0.14) 45%,
oklch(from var(--fbh-band) l c h / 0.72) 80%,
var(--fbh-band) 100%);
}
.cf-fbh__inner {
position: relative; z-index: 1;
max-width: calc(1120px + 2 * var(--fbh-gutter));
margin: 0 auto;
padding: 8px var(--fbh-gutter) 48px;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-areas: 'head' 'offer' 'letter';
row-gap: 32px;
}
.cf-fbh--bare .cf-fbh__inner { padding-top: clamp(56px, 8vw, 112px); }
.cf-fbh__head { grid-area: head; min-width: 0; }
.cf-fbh__h1 {
margin: 0 0 0.3em;
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.5rem, 5.4vw, 4.875rem);
line-height: 1.04;
color: var(--fbh-ink);
text-wrap: balance;
}
.cf-fbh__em { color: var(--fbh-em); }
.cf-fbh__deck {
margin: 0; max-width: 56ch;
font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; font-weight: 500;
color: var(--fbh-copy); text-wrap: pretty;
}
.cf-fbh__letter { grid-area: letter; display: grid; gap: 32px; max-width: 64ch; min-width: 0; }
.cf-fbh__subhead {
margin: 0 0 12px;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15; letter-spacing: -0.01em;
color: var(--fbh-subhead); text-wrap: balance;
}
.cf-fbh__p {
margin: 0;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.55;
color: var(--fbh-copy); text-wrap: pretty;
}
.cf-fbh__sc { font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-weight: 800; }
.cf-fbh__invest .cf-fbh__sc, .cf-fbh__invest strong { color: var(--fbh-ink); }
.cf-fbh__invest strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.cf-fbh__offer {
grid-area: offer; position: relative; min-width: 0;
background: var(--card, oklch(1 0 0));
color: var(--ink, oklch(0.21 0.034 263));
border: 1px solid var(--card-border, oklch(from var(--ink, oklch(0.21 0.034 263)) l c h / 0.12));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 3px oklch(from var(--fbh-sh) l c h / 0.22), 0 12px 24px -8px oklch(from var(--fbh-sh) l c h / 0.32)));
padding: clamp(20px, 3vw, 32px);
text-align: center;
}
.cf-fbh__offer--product { padding-top: 0; margin-top: var(--fbh-overhang); }
.cf-fbh__product {
display: block; width: min(232px, 66%); height: auto; aspect-ratio: 1; object-fit: contain;
margin: calc(-1 * var(--fbh-overhang)) auto 0;
filter: drop-shadow(0 2px 3px oklch(from var(--fbh-sh) l c h / 0.35)) drop-shadow(0 14px 14px oklch(from var(--fbh-sh) l c h / 0.28));
}
.cf-fbh__title {
margin: 8px 0 8px;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15; letter-spacing: -0.01em;
color: var(--ink, oklch(0.21 0.034 263)); text-wrap: balance;
}
.cf-fbh__offer:not(.cf-fbh__offer--product) .cf-fbh__title { margin-top: 0; }
.cf-fbh__line { margin: 0; font-size: 1.0625rem; line-height: 1.45; color: var(--muted, oklch(0.45 0.03 258)); text-wrap: pretty; }
.cf-fbh__price {
margin: 24px auto; width: 100%;
display: flex; flex-direction: column; align-items: center; gap: 12px;
text-align: center;
}
.cf-fbh__num {
display: block;
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;
font-variant-numeric: tabular-nums; color: var(--ink, oklch(0.21 0.034 263));
}
.cf-fbh__terms {
display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px;
max-width: 100%;
}
.cf-fbh__terms-line {
font-size: 0.9375rem; line-height: 1.4; font-weight: 600;
color: var(--muted, oklch(0.45 0.03 258)); text-wrap: balance;
}
.cf-fbh__value {
display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink, oklch(0.21 0.034 263)) 6%, var(--card, oklch(1 0 0)));
color: var(--ink, oklch(0.21 0.034 263));
font-size: 0.875rem; line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.cf-fbh__cta {
--fbh-b: var(--button-bg, var(--cta, oklch(0.58 0.21 29.5)));
--fbh-b2: var(--button-bg-2, var(--cta-2, oklch(0.51 0.21 29.5)));
display: flex; align-items: center; justify-content: center;
width: 100%; min-height: 72px; margin: 0; padding: 10px 20px;
letter-spacing: 0;
border: 0; border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(oklch(from var(--fbh-b) calc(l + 0.04) c h), oklch(from var(--fbh-b2) calc(l - 0.02) c h));
color: var(--button-ink, var(--cta-ink, oklch(1 0 0)));
font-family: var(--button-font, var(--font-display));
font-weight: var(--button-weight, 800);
text-transform: var(--button-case, none);
font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.15;
text-align: center; text-wrap: balance; text-decoration: none;
text-shadow: var(--button-text-shadow, none);
cursor: pointer;
box-shadow: var(--button-shadow,
inset 0 1px 0 oklch(from var(--fbh-b) calc(l + 0.14) c h / 0.7),
inset 0 -3px 0 oklch(from var(--fbh-b) calc(l - 0.16) c h),
0 1px 2px oklch(from var(--fbh-sh) l c h / 0.35),
0 8px 16px -6px oklch(from var(--fbh-sh) l c h / 0.45));
transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cf-fbh__cta:not(:disabled):hover, .cf-fbh__cta[data-state='hover'] {
background: linear-gradient(oklch(from var(--fbh-b) calc(l - 0.01) c h), oklch(from var(--fbh-b2) calc(l - 0.07) c h));
box-shadow:
inset 0 1px 0 oklch(from var(--fbh-b) calc(l + 0.12) c h / 0.6),
inset 0 -3px 0 oklch(from var(--fbh-b) calc(l - 0.2) c h),
0 1px 2px oklch(from var(--fbh-sh) l c h / 0.4),
0 10px 20px -6px oklch(from var(--fbh-sh) l c h / 0.55);
}
.cf-fbh__cta:not(:disabled):active, .cf-fbh__cta[data-state='active'] {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--fbh-b) calc(l - 0.06) c h), oklch(from var(--fbh-b2) calc(l - 0.08) c h));
box-shadow:
inset 0 2px 4px oklch(from var(--fbh-b) calc(l - 0.24) c h / 0.5),
inset 0 -2px 0 oklch(from var(--fbh-b) calc(l - 0.18) c h),
0 1px 2px oklch(from var(--fbh-sh) l c h / 0.3);
}
.cf-fbh__cta:disabled { cursor: not-allowed; opacity: 0.55; filter: saturate(0.5); }
.cf-fbh__assure {
margin: 12px 0 0; font-size: 0.9375rem; line-height: 1.4; font-weight: 600;
color: var(--muted, oklch(0.45 0.03 258)); text-wrap: pretty;
}
.cf-fbh__assure svg { display: inline-block; vertical-align: -0.15em; margin-inline-end: 0.4em; }
.cf-fbh__well {
margin-top: 20px; text-align: left;
background: color-mix(in oklch, var(--ink, oklch(0.21 0.034 263)) 4%, var(--card, oklch(1 0 0)));
border-radius: 10px;
}
.cf-fbh__toggle {
display: flex; align-items: center; justify-content: space-between; gap: 12px;
width: 100%; min-height: 48px; padding: 11px 15px;
border: 1px solid var(--button-2-border, transparent); border-radius: 10px; background: transparent;
color: var(--ink, oklch(0.21 0.034 263));
font-family: var(--font-body); font-size: 1rem; line-height: 1.3; font-weight: 700;
text-align: left; cursor: pointer;
transition: background .16s ease;
}
.cf-fbh__toggle:hover { background: color-mix(in oklch, var(--ink, oklch(0.21 0.034 263)) 5%, transparent); }
.cf-fbh__toggle svg { flex: 0 0 auto; transition: transform .16s ease; }
.cf-fbh__toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.cf-fbh__items { list-style: none; margin: 0; padding: 0 16px 16px; display: grid; gap: 12px; }
.cf-fbh__items[hidden] { display: none; }
.cf-fbh__items li {
display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start;
padding-top: 12px; border-top: 1px solid oklch(from var(--ink, oklch(0.21 0.034 263)) l c h / 0.1);
}
.cf-fbh__items li[data-thumb] { grid-template-columns: 56px minmax(0, 1fr) auto; }
.cf-fbh__thumb { display: block; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.cf-fbh__item-name { margin: 0; font-size: 1rem; line-height: 1.25; font-weight: 800; color: var(--ink, oklch(0.21 0.034 263)); }
.cf-fbh__item-detail { margin: 4px 0 0; font-size: 0.9375rem; line-height: 1.4; color: var(--muted, oklch(0.45 0.03 258)); text-wrap: pretty; }
.cf-fbh__item-value { font-size: 0.9375rem; line-height: 1.25; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink, oklch(0.21 0.034 263)); }
.cf-fbh__proof {
position: relative; z-index: 1; list-style: none; margin: 0;
padding: 16px var(--fbh-gutter);
display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px;
background: color-mix(in oklch, var(--fbh-ink) 8%, var(--fbh-band));
color: var(--fbh-ink);
font-size: 0.9375rem; line-height: 1.4; font-weight: 600;
}
.cf-fbh__proof li { text-align: center; text-wrap: pretty; }
.cf-fbh__proof svg { display: inline-block; vertical-align: -0.2em; margin-inline-end: 0.45em; }
.cf-fbh-bar {
position: fixed; top: 0; left: 0; right: 0; z-index: 60;
background: var(--fbh-band); color: var(--fbh-ink);
box-shadow: 0 1px 2px oklch(from var(--fbh-sh) l c h / 0.35), 0 8px 16px -6px oklch(from var(--fbh-sh) l c h / 0.4);
transform: translateY(-110%); visibility: hidden;
transition: transform .28s cubic-bezier(.2,.7,.2,1), visibility 0s linear .28s;
}
.cf-fbh-bar[data-on] { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.cf-fbh-bar__in {
max-width: calc(1120px + 2 * var(--fbh-gutter)); margin: 0 auto;
min-height: 64px; padding: 8px var(--fbh-gutter);
display: flex; align-items: center; gap: 16px;
}
.cf-fbh-bar__text {
flex: 1 1 auto; min-width: 0; margin: 0;
display: flex; align-items: baseline; gap: 16px;
font-size: 0.9375rem; line-height: 1.3; font-weight: 600;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cf-fbh-bar__text strong { font-family: var(--font-display); font-weight: var(--display-weight, 800); font-size: 1.0625rem; overflow: hidden; text-overflow: ellipsis; }
.cf-fbh-bar__cta.cf-fbh__cta {
flex: 0 0 auto; width: auto; min-height: 48px; padding: 0 20px;
font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cf-fbh-bar__x {
flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
width: 44px; height: 44px; padding: 0; border: 1px solid var(--button-2-border, transparent); border-radius: 999px;
background: transparent; color: var(--fbh-ink); cursor: pointer;
transition: background .16s ease;
}
.cf-fbh-bar__x:hover { background: oklch(from var(--fbh-ink) l c h / 0.12); }
.cf-fbh :is(a, button):focus-visible {
outline: 3px solid oklch(from var(--field-focus, var(--accent, oklch(0.5 0.17 257))) l c h / 0.6);
outline-offset: 3px;
}
.cf-fbh-bar :is(a, button):focus-visible { outline-color: var(--fbh-ink); }
.cf-fbh__rv { animation: cf-fbh-rise .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * .07s); }
@keyframes cf-fbh-rise { from { opacity: .82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cf-fbh-settle { from { transform: scale(1.04); } to { transform: none; } }
@media (max-width: 639px) {
.cf-fbh-bar__text { display: none; }
.cf-fbh-bar__in { gap: 8px; }
.cf-fbh-bar__cta.cf-fbh__cta { flex: 1 1 auto; padding: 0 16px; }
.cf-fbh__product { width: min(200px, 60%); }
}
@media (min-width: 960px) {
.cf-fbh { --fbh-overhang: 84px; }
.cf-fbh__media { position: absolute; inset: 0; height: auto; z-index: 0; }
.cf-fbh__scrim {
background:
linear-gradient(90deg,
oklch(from var(--fbh-band) l c h / 0.95) 0%,
oklch(from var(--fbh-band) l c h / 0.91) 58%,
oklch(from var(--fbh-band) l c h / 0.5) 80%,
oklch(from var(--fbh-band) l c h / 0.32) 100%),
linear-gradient(0deg, oklch(from var(--fbh-band) l c h / 0.7) 0%, transparent 22%);
}
.cf-fbh__inner {
grid-template-columns: minmax(0, 1fr) 424px;
grid-template-rows: auto 1fr;
grid-template-areas: 'head offer' 'letter offer';
column-gap: clamp(32px, 5vw, 72px);
row-gap: 40px;
padding: clamp(56px, 8vw, 112px) var(--fbh-gutter) clamp(64px, 8.5vw, 120px);
}
.cf-fbh__letter { align-self: start; }
.cf-fbh__offer { align-self: start; }
.cf-fbh--sticky .cf-fbh__offer { position: sticky; top: 24px; }
.cf-fbh--sticky .cf-fbh__offer--product { top: calc(var(--fbh-overhang) + 24px); }
}
@media (min-width: 960px) and (max-height: 759px) {
.cf-fbh--sticky .cf-fbh__offer, .cf-fbh--sticky .cf-fbh__offer--product { position: relative; top: auto; }
}
@media (prefers-reduced-motion: reduce) {
.cf-fbh__rv, .cf-fbh__media img { animation: none; }
.cf-fbh__cta, .cf-fbh__toggle, .cf-fbh__toggle svg, .cf-fbh-bar, .cf-fbh-bar[data-on], .cf-fbh-bar__x { transition: none; }
}
`;
pieces/hero/full-bleed-image-hero/specimen.tsx 46 lines
import __studioImage9a90743d from "../assets/3a251cbb3dc4b888.webp";
import __studioImage6f568805 from "../assets/30416937bc297630.webp";
import * as React from 'react';
import { FullBleedImageHero } from '../full-bleed-image-hero';
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 FullBleedImageHeroSpecimen({ state = 'default' }: { state?: SpecimenState }) {
const sample = defaults.sample;
return (
<FullBleedImageHero
state={state}
headline={sample.headline}
highlight='a clear plan'
deck={sample.lead}
sceneImage={slot('scene', __studioImage9a90743d)}
scenePosition='64% 40%'
productImage={slot('product', __studioImage6f568805)}
productAlt={`${sample.name}: guide, workbook and checklist`}
productName={sample.name}
price={sample.price}
priceTerms={sample.note}
valueNote={`Valued at ${sample.regularPrice}`}
investmentText={`— one payment. The guide, workbook and checklist are valued at ${sample.regularPrice}, and the ${sample.guarantee} covers you.`}
sublabel={sample.sublabel}
items={sample.items.map((item, i) => ({
name: item.name,
detail: item.detail,
value: item.value,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}))}
proof={[
{ icon: 'download', text: sample.reassurance[0] },
{ icon: 'shield', text: sample.reassurance[1] },
{ icon: 'wallet', text: sample.note },
{ icon: 'book', text: 'Guide, workbook and checklist' },
]}
stickyBar
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalFullBleedImageHero |
string |
|
highlight OptionalFullBleedImageHero |
string |
|
deck OptionalFullBleedImageHero |
string |
|
sceneImage OptionalFullBleedImageHero |
string |
|
sceneAlt OptionalFullBleedImageHero |
string |
|
scenePosition OptionalFullBleedImageHero |
string |
|
productImage OptionalFullBleedImageHero |
string |
|
productAlt OptionalFullBleedImageHero |
string |
|
productName OptionalFullBleedImageHero |
string |
|
productLine OptionalFullBleedImageHero |
string |
|
investmentLabel OptionalFullBleedImageHero |
string |
|
price OptionalFullBleedImageHero |
string |
|
priceTerms OptionalFullBleedImageHero |
string |
|
valueNote OptionalFullBleedImageHero |
string |
|
investmentText OptionalFullBleedImageHero |
string |
|
sections OptionalFullBleedImageHero |
FullBleedImageHeroSection[] |
|
label OptionalFullBleedImageHero |
string |
|
sublabel OptionalFullBleedImageHero |
string |
|
href OptionalFullBleedImageHero |
string |
|
onAction OptionalFullBleedImageHero |
(event: React.MouseEvent<HTMLElement>) => void |
|
items OptionalFullBleedImageHero |
FullBleedImageHeroItem[] |
|
itemsToggleLabel OptionalFullBleedImageHero |
string |
|
itemsHideLabel OptionalFullBleedImageHero |
string |
|
proof OptionalFullBleedImageHero |
FullBleedImageHeroProof[] |
|
proofLabel OptionalFullBleedImageHero |
string |
|
stickyOffer OptionalFullBleedImageHero |
boolean |
|
stickyBar OptionalFullBleedImageHero |
boolean |
|
barText OptionalFullBleedImageHero |
string |
|
barRegionLabel OptionalFullBleedImageHero |
string |
|
barDismissLabel OptionalFullBleedImageHero |
string |
|
state OptionalFullBleedImageHero |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalFullBleedImageHero |
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-border- 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.
product- The main product shot or cover (ebook, kit, bottle).
scene- A wide atmosphere photo behind or beside the copy.
-
30416937bc297630.webp
image/webp · 152 KB
-
3a251cbb3dc4b888.webp
image/webp · 80.1 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB