Lead Magnet Unpack 1
Lead magnet unpack: a huge curiosity headline, the free guide pinned on a raised plate with its price and a
Use it in a prompt
Use offer/lead-magnet-unpack 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/offer/lead-magnet-unpack.tsx. - Import it and pass your copy and images (Props tab):
import { LeadMagnetUnpack } from "@/components/funneldna/offer/lead-magnet-unpack"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/lead-magnet-unpack/component.tsx 585 lines
// layout: classic-centred-stack
// Lead magnet unpack: a huge curiosity headline, the free guide pinned on a raised plate with its price and a
// page map, numbered fascinations with page chips, a short dear-friend note and one big action to claim it.
import * as React from 'react';
export type LeadMagnetUnpackBullet = {
/** Bold curiosity phrase, usually ending in an ellipsis */
hook: React.ReactNode;
/** The payoff that follows the hook */
payoff?: React.ReactNode;
/** Page inside the guide: shown as a chip and marked on the page map */
page?: number | string;
};
export type LeadMagnetUnpackLetter = {
/** e.g. 'Dear friend,' */
salutation?: string;
paragraphs?: string[];
/** e.g. 'Talk soon,' (shown only with a signoff) */
closing?: string;
/** The owner's name, set as a bold sign-off in the display face; empty hides the closing */
signoff?: string;
};
export type LeadMagnetUnpackCopy = {
/** Page chip; {page} is replaced */
pageChip: string;
/** Page map caption at rest; {count} and {pages} are replaced */
mapIdle: string;
/** Page map caption while a bullet is hovered or tapped; {page} and {pages} are replaced */
mapActive: string;
};
export type LeadMagnetUnpackProps = {
/** Section headline; the highlight phrase gets one marker stroke */
headline?: string;
highlight?: string;
subhead?: string;
/** Slot 'product': the guide cover or product shot */
productImage?: string;
productImageAlt?: string;
/** Lead magnet name */
name?: string;
/** Format line, e.g. '18-page PDF · Checklist' */
format?: string;
/** Today's price, usually 'Free' */
price?: string;
/** What the alternative costs, set beside the price (supplied facts only) */
priceAnchor?: string;
/** Total pages; draws the page map when above 0 */
pageCount?: number;
bullets?: LeadMagnetUnpackBullet[];
/** Short letter before the action; false hides it */
letter?: LeadMagnetUnpackLetter | false;
/** One-line recap above the button; {count} is replaced */
recap?: string;
label?: string;
/** One plain line under the button */
note?: string;
/** Turns the note into a quiet link */
noteHref?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled?: boolean;
state?: 'default' | 'hover' | 'active' | 'disabled';
copy?: Partial<LeadMagnetUnpackCopy>;
className?: string;
};
export function LeadMagnetUnpack({
headline = 'Inside the 18 pages, you’ll discover…',
highlight = '18 pages',
subhead = 'Read it in one sitting. Plan your funnel the same night.',
productImage,
productImageAlt = '',
name = 'Funnel Planning Guide',
format = '18-page PDF guide',
price = 'Free',
priceAnchor,
pageCount = 18,
bullets = DEFAULT_BULLETS,
letter,
recap = 'All {count} inside the free guide.',
label = 'Send Me The Free Guide',
note = 'Free PDF · Instant download',
noteHref,
href,
onAction,
disabled = false,
state = 'default',
copy,
className,
}: LeadMagnetUnpackProps) {
const headId = React.useId();
const [active, setActive] = React.useState<number | null>(null);
const text: LeadMagnetUnpackCopy = { ...DEFAULT_COPY, ...copy };
const pages = pageCount && pageCount > 0 ? Math.min(Math.round(pageCount), 120) : 0;
const marked = new Map<number, number>();
bullets.forEach((b, i) => {
const n = toPage(b.page);
if (n !== null && n <= pages && !marked.has(n)) marked.set(n, i);
});
const activePage = active === null ? null : toPage(bullets[active]?.page);
const isDisabled = disabled || state === 'disabled';
const note_ = letter === false ? null : { ...DEFAULT_LETTER, ...letter };
const hasLetter = !!note_ && (!!note_.salutation || (note_.paragraphs?.length ?? 0) > 0);
const btnClass = ['lmu-btn', state === 'hover' ? 'is-hover' : '', state === 'active' ? 'is-active' : '']
.filter(Boolean)
.join(' ');
const handle = (event: React.MouseEvent<HTMLElement>) => {
if (isDisabled) {
event.preventDefault();
return;
}
onAction?.(event);
};
return (
<section
className={['cf-lead-magnet-unpack', className].filter(Boolean).join(' ')}
aria-labelledby={headId}
>
<style>{CSS}</style>
<header className='lmu-head'>
<h2 id={headId} className='lmu-title'>
{withMarker(headline, highlight)}
</h2>
{subhead ? <p className='lmu-sub'>{subhead}</p> : null}
</header>
<div className='lmu-stage'>
<div className={'lmu-plate lmu-rise' + (productImage ? '' : ' no-cover')}>
{productImage ? (
<figure className='lmu-cover'>
<img
src={productImage}
alt={productImageAlt || name}
width={360}
height={360}
decoding='async'
/>
</figure>
) : null}
<div className='lmu-info'>
<h3 className='lmu-name'>{name}</h3>
{format ? <p className='lmu-format'>{format}</p> : null}
{price ? (
<p className='lmu-price'>
<span className='lmu-price-big'>{price}</span>
{priceAnchor ? <span className='lmu-anchor'>{priceAnchor}</span> : null}
</p>
) : null}
</div>
{pages > 0 ? (
<div className='lmu-map' aria-hidden='true'>
<div className='lmu-slivers' style={{ '--lmu-gap': pages > 40 ? '1px' : '3px' } as React.CSSProperties}>
{Array.from({ length: pages }, (_, i) => {
const p = i + 1;
const cls =
'lmu-sliver' + (marked.has(p) ? ' is-marked' : '') + (p === activePage ? ' is-active' : '');
return <span key={p} className={cls} style={{ '--i': i } as React.CSSProperties} />;
})}
</div>
<p className='lmu-map-cap'>
{activePage !== null && activePage <= pages
? fill(text.mapActive, { page: activePage, pages })
: fill(text.mapIdle, { count: marked.size, pages })}
</p>
</div>
) : null}
</div>
</div>
<div className='lmu-body'>
<ol className='lmu-list' role='list'>
{bullets.map((b, i) => (
<li
key={i}
className={'lmu-item lmu-rise' + (active === i ? ' is-active' : '')}
style={{ '--i': i + 1 } as React.CSSProperties}
onMouseEnter={() => setActive(i)}
onMouseLeave={() => setActive((a) => (a === i ? null : a))}
>
<span className='lmu-num' aria-hidden='true'>
{i + 1}.
</span>
<p className='lmu-text'>
<strong className='lmu-hook'>{b.hook}</strong>
{b.payoff ? <> {b.payoff}</> : null}
{b.page !== undefined && b.page !== '' ? (
<>
{' '}
<span className='lmu-chip'>{fill(text.pageChip, { page: b.page })}</span>
</>
) : null}
</p>
</li>
))}
</ol>
<div className='lmu-close'>
{hasLetter && note_ ? (
<div className='lmu-letter lmu-rise' style={{ '--i': 2 } as React.CSSProperties}>
{note_.salutation ? <p className='lmu-salute'>{note_.salutation}</p> : null}
{note_.paragraphs?.map((p, i) => (
<p key={i} className='lmu-para'>
{p}
</p>
))}
{note_.signoff ? (
<div className='lmu-sign'>
{note_.closing ? <p className='lmu-closing'>{note_.closing}</p> : null}
<p className='lmu-signature'>{note_.signoff}</p>
</div>
) : null}
</div>
) : null}
{recap ? (
<p className={'lmu-recap' + (hasLetter ? '' : ' is-first')}>{fill(recap, { count: bullets.length })}</p>
) : null}
{href && !isDisabled ? (
<a className={btnClass} href={href} onClick={handle}>
{label}
</a>
) : (
<button type='button' className={btnClass} disabled={isDisabled} onClick={handle}>
{label}
</button>
)}
{note ? <p className='lmu-note'>{noteHref ? <a href={noteHref}>{note}</a> : note}</p> : null}
</div>
</div>
</section>
);
}
export default LeadMagnetUnpack;
const DEFAULT_COPY: LeadMagnetUnpackCopy = {
pageChip: 'Page {page}',
mapIdle: '{count} must-read pages out of {pages}',
mapActive: 'Page {page} of {pages}',
};
const DEFAULT_LETTER: LeadMagnetUnpackLetter = {
salutation: 'Dear friend,',
paragraphs: [
'Every page above is short, plain and made to use the same day you read it.',
'Grab your free copy below and start with the page that caught your eye.',
],
closing: 'Talk soon,',
signoff: '',
};
const DEFAULT_BULLETS: LeadMagnetUnpackBullet[] = [
{ hook: 'Why most first funnels stall on page one…', payoff: 'and the one-sentence offer test that fixes it before you build.', page: 3 },
{ hook: 'The three-page starter funnel…', payoff: 'which pages you need on day one, and which can wait.', page: 5 },
{ hook: 'The headline swap…', payoff: 'how to turn a feature into a promise your reader can’t skip.', page: 8 },
{ hook: 'Where the button belongs…', payoff: 'the spot on the page your reader reaches with their mind made up.', page: 10 },
{ hook: 'The 10-minute page map…', payoff: 'a fill-in layout that plans every section before you write a word.', page: 13 },
{ hook: 'Your pre-launch walk-through…', payoff: 'the links, forms and next steps to check before anyone sees the page.', page: 16 },
];
function withMarker(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='lmu-mark'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
function fill(template: string, values: Record<string, string | number>): string {
return Object.keys(values).reduce(
(out, key) => out.split('{' + key + '}').join(String(values[key])),
template,
);
}
function toPage(page: number | string | undefined): number | null {
if (page === undefined || page === '') return null;
const n = typeof page === 'number' ? page : parseInt(String(page).replace(/[^0-9]/g, ''), 10);
return Number.isFinite(n) && n > 0 ? Math.round(n) : null;
}
const CSS = `
.cf-lead-magnet-unpack {
--lmu-sh: var(--shadow, oklch(0.22 0.03 260));
--lmu-well: color-mix(in oklch, var(--ink) 4%, var(--surface));
--lmu-strip: color-mix(in oklch, var(--ink) 5%, var(--surface));
--lmu-marker: color-mix(in oklch, var(--marker, #fae37c) 80%, transparent);
--lmu-r: var(--radius, 10px);
position: relative;
overflow: clip;
padding-block: clamp(3.5rem, 8vw, 6.5rem);
background: var(--surface);
color: var(--ink);
font-family: var(--font-body);
}
.cf-lead-magnet-unpack *, .cf-lead-magnet-unpack *::before, .cf-lead-magnet-unpack *::after { box-sizing: border-box; }
.cf-lead-magnet-unpack .lmu-head { max-width: 54rem; margin: 0 auto; padding-inline: 1.25rem; text-align: center; }
.cf-lead-magnet-unpack .lmu-title {
margin: 0 0 1.1rem;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
letter-spacing: var(--display-tracking, -0.025em);
font-size: clamp(2.125rem, 5.6vw, 4.25rem);
line-height: 1.05;
text-wrap: balance;
color: var(--ink);
}
.cf-lead-magnet-unpack .lmu-mark {
padding: 0 0.14em;
margin: 0 -0.04em;
border-radius: 0.2em;
background-image: linear-gradient(176deg, transparent 50%, var(--lmu-marker) 50%, var(--lmu-marker) 90%, transparent 90%);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.cf-lead-magnet-unpack .lmu-sub {
margin: 0 auto;
max-width: 40rem;
font-size: clamp(1.125rem, 2vw, 1.3125rem);
font-weight: 500;
line-height: 1.5;
color: var(--muted);
text-wrap: pretty;
}
.cf-lead-magnet-unpack .lmu-stage { position: relative; margin-top: clamp(2.25rem, 5vw, 3.5rem); padding-inline: 1.25rem; }
.cf-lead-magnet-unpack .lmu-stage::before { content: ''; position: absolute; inset: 24% 0; background: var(--lmu-strip); }
.cf-lead-magnet-unpack .lmu-plate {
position: relative;
max-width: 50rem;
margin: 0 auto;
display: grid;
grid-template-columns: minmax(0, 14.5rem) minmax(0, 1fr);
grid-template-rows: auto 1fr;
grid-template-areas: 'cover info' 'cover map';
column-gap: clamp(1.5rem, 4vw, 2.75rem);
padding: clamp(1.5rem, 3.5vw, 2.5rem);
background: var(--card);
color: var(--ink);
border: 1px solid var(--card-border, color-mix(in oklch, var(--ink) 12%, transparent));
border-radius: calc(var(--card-radius, var(--lmu-r)) * 1.5);
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--lmu-sh) l c h / 0.22), 0 12px 24px -8px oklch(from var(--lmu-sh) l c h / 0.32)));
}
.cf-lead-magnet-unpack .lmu-plate.no-cover { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'info' 'map'; }
.cf-lead-magnet-unpack .lmu-cover {
grid-area: cover;
margin: 0;
align-self: center;
transform: rotate(-2deg);
transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cf-lead-magnet-unpack .lmu-cover img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 1;
object-fit: cover;
object-position: center;
border-radius: calc(var(--lmu-r) * 0.9);
filter: drop-shadow(0 2px 2px oklch(from var(--lmu-sh) l c h / 0.28)) drop-shadow(0 12px 12px oklch(from var(--lmu-sh) l c h / 0.2));
}
@media (hover: hover) {
.cf-lead-magnet-unpack .lmu-plate:hover .lmu-cover { transform: rotate(-1deg) translateY(-4px); }
}
.cf-lead-magnet-unpack .lmu-info { grid-area: info; min-width: 0; }
.cf-lead-magnet-unpack .lmu-name {
margin: 0;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
font-size: clamp(1.25rem, 2.4vw, 1.75rem);
line-height: 1.15;
letter-spacing: -0.01em;
text-wrap: balance;
}
.cf-lead-magnet-unpack .lmu-format { margin: 0.55rem 0 0; font-size: 1rem; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.cf-lead-magnet-unpack .lmu-price { margin: 1.25rem 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.cf-lead-magnet-unpack .lmu-price-big {
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(2.5rem, 5.5vw, 3.75rem);
line-height: 1;
letter-spacing: -0.03em;
color: var(--ink);
}
.cf-lead-magnet-unpack .lmu-anchor { display: block; max-width: 24rem; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.cf-lead-magnet-unpack .lmu-map { grid-area: map; align-self: end; min-width: 0; margin-top: 1.5rem; }
.cf-lead-magnet-unpack .lmu-slivers { display: flex; align-items: flex-end; gap: var(--lmu-gap, 3px); height: 2.25rem; }
.cf-lead-magnet-unpack .lmu-sliver {
flex: 1 1 0;
min-width: 1px;
height: 45%;
border-radius: 2px;
background: color-mix(in oklch, var(--ink) 13%, var(--card));
transform-origin: bottom;
animation: cf-lmu-grow 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
animation-delay: min(calc(var(--i, 0) * 18ms), 360ms);
transition: background-color 0.2s ease, height 0.2s ease;
}
.cf-lead-magnet-unpack .lmu-sliver.is-marked { height: 78%; background: var(--accent-fill, var(--accent)); }
.cf-lead-magnet-unpack .lmu-sliver.is-active { height: 100%; background: oklch(from var(--accent-fill, var(--accent)) calc(l - 0.1) c h); }
.cf-lead-magnet-unpack .lmu-map-cap { margin: 0.65rem 0 0; font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.cf-lead-magnet-unpack .lmu-body { max-width: 66rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; padding-inline: 1.25rem; }
.cf-lead-magnet-unpack .lmu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
.cf-lead-magnet-unpack .lmu-item {
display: grid;
grid-template-columns: 2.5rem minmax(0, 1fr);
gap: 0.5rem;
align-items: start;
padding: 1rem 1.1rem;
border-radius: calc(var(--lmu-r) * 1.2);
transition: background-color 0.2s ease;
}
.cf-lead-magnet-unpack .lmu-item.is-active { background: var(--lmu-well); }
.cf-lead-magnet-unpack .lmu-num {
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: 1.875rem;
line-height: 1;
color: var(--accent);
font-variant-numeric: tabular-nums;
}
.cf-lead-magnet-unpack .lmu-text { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.cf-lead-magnet-unpack .lmu-hook { font-family: var(--font-display); font-weight: 700; }
.cf-lead-magnet-unpack .lmu-chip {
display: inline-block;
vertical-align: 0.08em;
margin-inline-start: 0.2rem;
padding: 0.1rem 0.75rem;
border-radius: 999px;
background: var(--secondary, color-mix(in oklch, var(--ink) 8%, var(--card)));
color: var(--secondary-ink, var(--ink));
font-family: var(--font-body);
font-size: 0.875rem;
font-weight: 700;
line-height: 1.5;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.cf-lead-magnet-unpack .lmu-close { max-width: 40rem; margin: clamp(2.5rem, 5vw, 3.25rem) auto 0; text-align: center; }
.cf-lead-magnet-unpack .lmu-letter {
text-align: left;
background: var(--lmu-well);
color: var(--ink);
border-radius: calc(var(--lmu-r) * 1.3);
padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3.5vw, 2rem);
}
.cf-lead-magnet-unpack .lmu-salute { margin: 0 0 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.3; }
.cf-lead-magnet-unpack .lmu-para { margin: 0 0 0.75rem; font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }
.cf-lead-magnet-unpack .lmu-para:last-of-type { margin-bottom: 0; }
.cf-lead-magnet-unpack .lmu-sign { margin-top: 1.25rem; }
.cf-lead-magnet-unpack .lmu-closing { margin: 0; font-size: 1.0625rem; line-height: 1.4; }
.cf-lead-magnet-unpack .lmu-signature {
margin: 0.75rem 0 0;
font-family: var(--signature-font, var(--font-display));
font-weight: var(--display-weight, 800);
font-size: 1.625rem;
line-height: 1.15;
letter-spacing: -0.01em;
color: var(--signature-ink, var(--ink));
}
.cf-lead-magnet-unpack .lmu-recap {
margin: 2rem 0 1rem;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(1.25rem, 2.4vw, 1.5rem);
line-height: 1.25;
color: var(--ink);
text-wrap: balance;
}
.cf-lead-magnet-unpack .lmu-recap.is-first { margin-top: 0; }
.cf-lead-magnet-unpack .lmu-btn {
appearance: none;
-webkit-tap-highlight-color: transparent;
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 4rem;
min-width: min(100%, 22rem);
max-width: 100%;
margin: 0 auto;
padding: 1.05rem 2.25rem;
border: 1px solid oklch(from var(--button-bg, var(--cta)) calc(l - 0.12) c h);
border-radius: var(--button-radius, var(--lmu-r));
background: linear-gradient(180deg, oklch(from var(--button-bg, var(--cta)) calc(l + 0.04) c h), var(--button-bg-2, var(--cta-2)));
color: var(--button-ink, var(--cta-ink));
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, 2vw, 1.3125rem);
line-height: 1.2;
letter-spacing: -0.005em;
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(--button-bg, var(--cta)) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--lmu-sh) l c h / 0.3), 0 6px 14px -4px oklch(from var(--lmu-sh) l c h / 0.42));
transition: transform 0.16s ease, background 0.2s ease, box-shadow 0.16s ease;
}
.cf-lead-magnet-unpack .lmu-btn:hover, .cf-lead-magnet-unpack .lmu-btn.is-hover {
transform: translateY(-2px);
background: linear-gradient(180deg, oklch(from var(--button-bg, var(--cta)) calc(l - 0.02) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.06) c h));
}
.cf-lead-magnet-unpack .lmu-btn:active, .cf-lead-magnet-unpack .lmu-btn.is-active {
transform: translateY(1px);
background: linear-gradient(180deg, oklch(from var(--button-bg, var(--cta)) calc(l - 0.08) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.08) c h));
box-shadow: inset 0 2px 3px oklch(from var(--lmu-sh) l c h / 0.3), inset 0 -1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 1px oklch(from var(--lmu-sh) l c h / 0.25);
}
.cf-lead-magnet-unpack .lmu-btn:focus-visible { outline: 3px solid var(--field-focus, var(--accent)); outline-offset: 3px; }
.cf-lead-magnet-unpack .lmu-btn:disabled {
cursor: not-allowed;
transform: none;
border-color: transparent;
background: var(--secondary);
color: var(--secondary-ink);
text-shadow: none;
box-shadow: var(--button-2-shadow, var(--shadow-sm));
}
.cf-lead-magnet-unpack .lmu-note { margin: 0.85rem 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.cf-lead-magnet-unpack .lmu-note a {
color: inherit;
text-decoration: underline;
text-decoration-color: oklch(from var(--muted) l c h / 0.5);
text-underline-offset: 0.18em;
}
.cf-lead-magnet-unpack .lmu-note a:hover { color: var(--ink); text-decoration-color: currentColor; }
.cf-lead-magnet-unpack .lmu-note a:focus-visible { outline: 2px solid var(--field-focus, var(--accent)); outline-offset: 2px; border-radius: 2px; }
.cf-lead-magnet-unpack .lmu-rise {
animation: cf-lmu-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
animation-delay: min(calc(var(--i, 0) * 70ms), 280ms);
}
@keyframes cf-lmu-rise { from { opacity: 0.82; transform: translateY(8px); } }
@keyframes cf-lmu-grow { from { transform: scaleY(0.35); } }
@media (min-width: 860px) {
.cf-lead-magnet-unpack .lmu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 0.5rem; }
}
@media (hover: hover) {
.cf-lead-magnet-unpack .lmu-item:hover { background: var(--lmu-well); }
}
@media (max-width: 639px) {
.cf-lead-magnet-unpack .lmu-stage::before { display: none; }
.cf-lead-magnet-unpack .lmu-plate {
grid-template-columns: 6.75rem minmax(0, 1fr);
grid-template-rows: auto auto;
grid-template-areas: 'cover info' 'map map';
column-gap: 1.1rem;
padding: 1.25rem;
}
.cf-lead-magnet-unpack .lmu-plate.no-cover { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'info' 'map'; }
.cf-lead-magnet-unpack .lmu-cover { align-self: start; margin-top: 0.25rem; }
.cf-lead-magnet-unpack .lmu-format { font-size: 0.9375rem; }
.cf-lead-magnet-unpack .lmu-price { margin-top: 1rem; gap: 0.75rem; }
.cf-lead-magnet-unpack .lmu-price-big { font-size: 2.5rem; }
.cf-lead-magnet-unpack .lmu-anchor { font-size: 0.9375rem; }
.cf-lead-magnet-unpack .lmu-map { margin-top: 1.25rem; }
.cf-lead-magnet-unpack .lmu-item { grid-template-columns: 2.1rem minmax(0, 1fr); padding: 0.9rem 0.6rem; }
.cf-lead-magnet-unpack .lmu-num { font-size: 1.625rem; }
.cf-lead-magnet-unpack .lmu-para { font-size: 1.0625rem; }
.cf-lead-magnet-unpack .lmu-btn { width: 100%; padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
.cf-lead-magnet-unpack .lmu-rise, .cf-lead-magnet-unpack .lmu-sliver { animation: none; }
.cf-lead-magnet-unpack .lmu-cover, .cf-lead-magnet-unpack .lmu-item, .cf-lead-magnet-unpack .lmu-sliver, .cf-lead-magnet-unpack .lmu-btn { transition: none; }
.cf-lead-magnet-unpack .lmu-plate:hover .lmu-cover { transform: rotate(-2deg); }
.cf-lead-magnet-unpack .lmu-btn:hover, .cf-lead-magnet-unpack .lmu-btn.is-hover { transform: none; }
}
`;
pieces/offer/lead-magnet-unpack/specimen.tsx 49 lines
// Specimen: the Funnel Planning Guide unpacked as a free lead magnet, with its six must-read pages.
import * as React from 'react';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
import { LeadMagnetUnpack } from '../lead-magnet-unpack';
export const states = ['default', 'hover', 'active', 'disabled'];
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled';
export default function LeadMagnetUnpackSpecimen({ state = 'default' }: { state?: SpecimenState }) {
const sample = defaults.sample;
const guide = sample.items[0];
return (
<LeadMagnetUnpack
state={state}
headline='Inside the 18 pages, you’ll discover…'
highlight='18 pages'
subhead='Read it in one sitting. Plan your first funnel the same night.'
productImage={slot('product', guide.image)}
productImageAlt={guide.imageAlt}
name={guide.name}
format='18-page PDF · Fill-in page map · Launch checklist'
price='Free'
priceAnchor={`vs. ${guide.value} inside ${sample.name}`}
pageCount={18}
bullets={[
{ hook: 'Why most first funnels stall on page one…', payoff: 'and the one-sentence offer test that fixes it before you build.', page: 3 },
{ hook: 'The three-page starter funnel…', payoff: 'which pages you need on day one, and which can wait.', page: 5 },
{ hook: 'The headline swap…', payoff: 'how to turn a feature into a promise your reader can’t skip.', page: 8 },
{ hook: 'Where the button belongs…', payoff: 'the spot on the page your reader reaches with their mind made up.', page: 10 },
{ hook: 'The 10-minute page map…', payoff: 'a fill-in layout that plans every section before you write a word.', page: 13 },
{ hook: 'Your pre-launch walk-through…', payoff: 'the links, forms and next steps to check before anyone sees the page.', page: 16 },
]}
letter={{
salutation: 'Dear friend,',
paragraphs: [
'I wrote this guide for the night you finally sit down to plan your funnel and wonder where to start.',
'Each idea above takes minutes to read and one evening to use. Grab your copy and start with page 3.',
],
closing: 'Talk soon,',
signoff: 'Maya Ellis',
}}
recap='All {count} inside the free guide.'
label='Send Me The Free Guide'
note='Free 18-page PDF · Instant download'
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalLeadMagnetUnpack |
string |
Default 'Inside the 18 pages, you’ll discover…'
|
highlight OptionalLeadMagnetUnpack |
string |
Default '18 pages'
|
subhead OptionalLeadMagnetUnpack |
string |
Default 'Read it in one sitting. Plan your funnel the same night.'
|
productImage OptionalLeadMagnetUnpack |
string |
|
productImageAlt OptionalLeadMagnetUnpack |
string |
Default ''
|
name OptionalLeadMagnetUnpack |
string |
Default 'Funnel Planning Guide'
|
format OptionalLeadMagnetUnpack |
string |
Default '18-page PDF guide'
|
price OptionalLeadMagnetUnpack |
string |
Default 'Free'
|
priceAnchor OptionalLeadMagnetUnpack |
string |
|
pageCount OptionalLeadMagnetUnpack |
number |
Default 18
|
bullets OptionalLeadMagnetUnpack |
LeadMagnetUnpackBullet[] |
Default DEFAULT_BULLETS
|
letter OptionalLeadMagnetUnpack |
LeadMagnetUnpackLetter | false |
|
recap OptionalLeadMagnetUnpack |
string |
Default 'All {count} inside the free guide.'
|
label OptionalLeadMagnetUnpack |
string |
Default 'Send Me The Free Guide'
|
note OptionalLeadMagnetUnpack |
string |
Default 'Free PDF · Instant download'
|
noteHref OptionalLeadMagnetUnpack |
string |
|
href OptionalLeadMagnetUnpack |
string |
|
onAction OptionalLeadMagnetUnpack |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalLeadMagnetUnpack |
boolean |
Default false
|
state OptionalLeadMagnetUnpack |
'default' | 'hover' | 'active' | 'disabled' |
Default 'default'
|
copy OptionalLeadMagnetUnpack |
Partial<LeadMagnetUnpackCopy> |
|
className OptionalLeadMagnetUnpack |
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.
product- The main product shot or cover (ebook, kit, bottle).
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB