Lead Magnet Preview 2
Report flip-through: one spread of the free report shown large with its page thumbnails beneath (the last pages blurred and locked), beside the promise and the one action. Seeing the quality raises the value of free.
Use it in a prompt
Use content/lead-magnet-preview-2 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/content/lead-magnet-preview-2.tsx. - Import it and pass your copy and images (Props tab):
import { LeadMagnetPreview2 } from "@/components/funneldna/content/lead-magnet-preview-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/lead-magnet-preview-2/component.tsx 638 lines
// layout: spotlight-row
// Report flip-through: one spread of the free report shown large with its page thumbnails beneath (the last pages blurred and locked), beside the promise and the one action. Seeing the quality raises the value of free.
import * as React from 'react'
import { Lock, ShieldCheck } from 'lucide-react'
import { FX_HOST, Pattern } from '../fx/fx'
export type ReportPage = {
/** Page image src (slot: product for the cover, item-n for inside pages). */
image: string
imageAlt: string
/** Short thumbnail label, e.g. 'Contents'. */
label: string
/** Caption title under the large spread; falls back to the label. */
title?: string
/** One short line about the page. */
detail?: string
/** 'cover' fills the stage (flat-lay photos); 'contain' sits a transparent cut-out on the stage. */
fit?: 'cover' | 'contain'
/** CSS object-position for the image. */
position?: string
/** Blurred with a lock, so the reader knows the rest is inside. */
locked?: boolean
}
export type LeadMagnetPreview2Learning = { title: string; detail?: string }
export type LeadMagnetPreview2Props = {
headline?: string
/** Phrase inside the headline set in the accent colour. */
highlight?: string
lead?: string
/** Cover, contents and inside spreads, in reading order. */
pages: ReportPage[]
/** Index of the page shown large first. */
initialPage?: number
learnHeading?: string
/** Three numbered things the reader will learn. */
learnings?: LeadMagnetPreview2Learning[]
/** Price line above the button, e.g. 'Free. That’s it.' */
priceLine?: string
priceNote?: string
label?: string
/** One short reassurance line under the button. */
note?: string
/** Shown on the card over a locked page. */
lockedTitle?: string
lockedText?: string
/** Appended to a locked thumbnail's accessible name. */
lockedLabel?: string
tablistLabel?: string
/** Template with {current} and {total}. */
counterLabel?: string
href?: string
onAction?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void
disabled?: boolean
state?: 'default' | 'hover' | 'active' | 'disabled'
className?: string
}
export function LeadMagnetPreview2(props: LeadMagnetPreview2Props) {
const {
headline = 'See inside the free report before you grab it',
highlight = 'free report',
lead = 'Flip through the pages below. Every chapter is in the free download.',
pages,
initialPage = 0,
learnHeading = 'Three things you’ll walk away with',
learnings = [],
priceLine = 'Free. That’s it.',
priceNote = '',
label = 'Yes! Send Me the Free Report',
note = 'Free download · Instant access',
lockedTitle = 'The rest is inside the report',
lockedText = 'Get your free copy to read every page.',
lockedLabel = 'locked preview',
tablistLabel = 'Pages in the report',
counterLabel = '{current} / {total}',
href,
onAction,
disabled = false,
state = 'default',
className,
} = props
const count = pages.length
const [active, setActive] = React.useState(() => clampIndex(initialPage, count))
const tabRefs = React.useRef<Array<HTMLButtonElement | null>>([])
const uid = React.useId()
if (count === 0) return null
const index = clampIndex(active, count)
const current = pages[index]
const panelId = `${uid}-panel`
const tabId = (i: number) => `${uid}-tab-${i}`
const counter = counterLabel.replace('{current}', String(index + 1)).replace('{total}', String(count))
const select = (next: number, fromKeyboard: boolean) => {
setActive(next)
if (!fromKeyboard) return
const tab = tabRefs.current[next]
if (!tab) return
tab.focus({ preventScroll: true })
const reduce =
typeof window !== 'undefined' &&
typeof window.matchMedia === 'function' &&
window.matchMedia('(prefers-reduced-motion: reduce)').matches
tab.scrollIntoView({ block: 'nearest', inline: 'nearest', behavior: reduce ? 'auto' : 'smooth' })
}
const onKey = (event: React.KeyboardEvent<HTMLButtonElement>, i: number) => {
let next = -1
if (event.key === 'ArrowRight') next = (i + 1) % count
else if (event.key === 'ArrowLeft') next = (i - 1 + count) % count
else if (event.key === 'Home') next = 0
else if (event.key === 'End') next = count - 1
if (next < 0) return
event.preventDefault()
select(next, true)
}
const isDisabled = disabled || state === 'disabled'
const buttonClass = ['lmp2-btn', state === 'hover' ? 'is-hover' : '', state === 'active' ? 'is-active' : '']
.filter(Boolean)
.join(' ')
const rootClass = ['cf-lead-magnet-preview-2', className ?? ''].filter(Boolean).join(' ')
return (
<section className={rootClass} style={FX_HOST}>
<style>{CSS}</style>
<Pattern name='grid' fade='edges' />
<div className='lmp2-inner'>
<div className='lmp2-grid'>
<header className='lmp2-head'>
<h2 className='lmp2-headline'>
<Accent text={headline} phrase={highlight} />
</h2>
{lead && <p className='lmp2-lead'>{lead}</p>}
</header>
<div className='lmp2-show'>
<div role='tabpanel' id={panelId} aria-labelledby={tabId(index)} tabIndex={0} className='lmp2-panel'>
<div className={current.locked ? 'lmp2-stage is-locked' : 'lmp2-stage'}>
<div key={index} className='lmp2-view' data-fit={current.fit ?? 'cover'}>
<img
src={current.image}
alt={current.imageAlt}
width={1200}
height={800}
decoding='async'
style={{ objectPosition: current.position }}
/>
</div>
{current.locked && (
<div className='lmp2-lockwrap'>
<div className='lmp2-lockcard'>
<span className='lmp2-lockdisc' aria-hidden='true'>
<Lock size={20} strokeWidth={2.5} />
</span>
<p className='lmp2-lock-t'>{lockedTitle}</p>
{lockedText && <p className='lmp2-lock-d'>{lockedText}</p>}
</div>
</div>
)}
</div>
<div className='lmp2-caption'>
<div className='lmp2-caption-text'>
<h3 className='lmp2-caption-t'>{current.title ?? current.label}</h3>
{current.detail && <p className='lmp2-caption-d'>{current.detail}</p>}
</div>
<span className='lmp2-count'>{counter}</span>
</div>
</div>
<div
role='tablist'
aria-label={tablistLabel}
aria-orientation='horizontal'
className='lmp2-thumbs'
style={{ '--lmp2-n': count } as React.CSSProperties}
>
{pages.map((page, i) => {
const selected = i === index
return (
<button
key={`${page.label}-${i}`}
ref={(node) => {
tabRefs.current[i] = node
}}
type='button'
role='tab'
id={tabId(i)}
aria-selected={selected}
aria-controls={panelId}
aria-label={page.locked ? `${page.label}, ${lockedLabel}` : undefined}
tabIndex={selected ? 0 : -1}
className='lmp2-thumb'
data-locked={page.locked ? '' : undefined}
onClick={() => select(i, false)}
onKeyDown={(event) => onKey(event, i)}
>
<span className='lmp2-thumb-frame' data-fit={page.fit ?? 'cover'}>
<img
src={page.image}
alt=''
width={240}
height={180}
loading='lazy'
decoding='async'
style={{ objectPosition: page.position }}
/>
{page.locked && (
<span className='lmp2-thumb-lock' aria-hidden='true'>
<span>
<Lock size={16} strokeWidth={2.5} />
</span>
</span>
)}
</span>
<span className='lmp2-thumb-label'>{page.label}</span>
</button>
)
})}
</div>
</div>
{learnings.length > 0 && (
<div className='lmp2-learn'>
{learnHeading && <h3 className='lmp2-learn-h'>{learnHeading}</h3>}
<ol className='lmp2-list'>
{learnings.map((item, i) => (
<li key={`${item.title}-${i}`}>
<span className='lmp2-num' aria-hidden='true'>
{i + 1}
</span>
<div>
<p className='lmp2-item-t'>{item.title}</p>
{item.detail && <p className='lmp2-item-d'>{item.detail}</p>}
</div>
</li>
))}
</ol>
</div>
)}
<div className='lmp2-act'>
{priceLine && <p className='lmp2-price'>{priceLine}</p>}
{priceNote && <p className='lmp2-price-note'>{priceNote}</p>}
{href && !isDisabled ? (
<a className={buttonClass} href={href} onClick={onAction}>
{label}
</a>
) : (
<button
type='button'
className={buttonClass}
disabled={isDisabled}
onClick={isDisabled ? undefined : onAction}
>
{label}
</button>
)}
{note && (
<p className='lmp2-note'>
<ShieldCheck aria-hidden='true' strokeWidth={2.5} />
{note}
</p>
)}
</div>
</div>
</div>
</section>
)
}
export default LeadMagnetPreview2
function Accent({ text, phrase }: { text: string; phrase?: string }) {
if (!phrase) return <>{text}</>
const at = text.indexOf(phrase)
if (at < 0) return <>{text}</>
return (
<>
{text.slice(0, at)}
<span className='lmp2-em'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
)
}
function clampIndex(value: number, count: number) {
if (count <= 0) return 0
const n = Math.round(value) || 0
return Math.min(Math.max(n, 0), count - 1)
}
const CSS = `
.cf-lead-magnet-preview-2 {
--lmp2-line: oklch(from var(--ink) l c h / 0.12);
--lmp2-well: color-mix(in oklch, var(--ink) 5%, var(--surface));
--lmp2-shade: var(--shadow, oklch(0.22 0.03 260));
--lmp2-ring: oklch(from var(--field-focus, var(--accent)) l c h / 0.5);
position: relative;
background: var(--surface);
color: var(--ink);
font-family: var(--font-body);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
overflow-x: clip;
}
.cf-lead-magnet-preview-2 * { box-sizing: border-box; }
.cf-lead-magnet-preview-2 p { margin: 0; }
.lmp2-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.lmp2-grid {
display: grid;
grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
grid-template-areas: 'show head' 'show learn' 'show act';
grid-template-rows: auto auto 1fr;
column-gap: clamp(32px, 5vw, 72px);
align-items: start;
}
.lmp2-head { grid-area: head; min-width: 0; }
.lmp2-show { grid-area: show; min-width: 0; position: sticky; top: 24px; }
.lmp2-learn { grid-area: learn; min-width: 0; margin-top: 32px; }
.lmp2-act { grid-area: act; min-width: 0; margin-top: 40px; }
.lmp2-headline {
margin: 0;
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(2rem, 3.6vw, 3.25rem);
line-height: 1.06;
color: var(--ink);
text-wrap: balance;
}
.lmp2-em { color: var(--accent); }
.lmp2-lead {
margin-top: 16px !important;
max-width: 60ch;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 500;
color: var(--muted);
text-wrap: pretty;
}
.lmp2-panel { border-radius: var(--card-radius, var(--radius, 14px)); outline: none; }
.lmp2-panel:focus-visible { outline: 3px solid var(--lmp2-ring); outline-offset: 4px; }
.lmp2-stage {
position: relative;
aspect-ratio: 3 / 2;
overflow: hidden;
isolation: isolate;
border-radius: var(--card-radius, var(--radius, 14px));
background: var(--lmp2-well);
border: 1px solid var(--card-border, var(--lmp2-line));
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32)));
}
.lmp2-view { position: absolute; inset: 0; animation: lmp2-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.lmp2-view img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lmp2-view[data-fit=contain] img {
object-fit: contain;
padding: 5% 8%;
filter: drop-shadow(0 2px 3px oklch(from var(--lmp2-shade) l c h / 0.3)) drop-shadow(0 12px 14px oklch(from var(--lmp2-shade) l c h / 0.22));
}
.lmp2-stage.is-locked .lmp2-view img { filter: blur(14px) saturate(0.85); transform: scale(1.08); }
.lmp2-lockwrap {
position: absolute;
inset: 0;
z-index: 1;
display: grid;
place-items: center;
padding: 16px;
background: oklch(from var(--band) l c h / 0.24);
}
.lmp2-lockcard {
max-width: 22rem;
padding: clamp(20px, 3vw, 28px);
text-align: center;
background: var(--card);
color: var(--ink);
border: 1px solid var(--card-border, var(--lmp2-line));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32));
animation: lmp2-pop 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lmp2-lockdisc {
display: inline-grid;
place-items: center;
width: 40px;
height: 40px;
border-radius: 999px;
background: var(--accent-fill, var(--accent));
color: var(--accent-fill-ink, var(--card));
}
.lmp2-lock-t {
margin-top: 12px !important;
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;
text-wrap: balance;
}
.lmp2-lock-d { margin-top: 8px !important; font-size: 0.9375rem; line-height: 1.4; font-weight: 500; color: var(--muted); text-wrap: pretty; }
.lmp2-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 16px; }
.lmp2-caption-text { min-width: 0; }
.lmp2-caption-t {
margin: 0;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.3;
letter-spacing: -0.01em;
color: var(--ink);
text-wrap: balance;
}
.lmp2-caption-d { margin-top: 4px !important; font-size: 0.9375rem; line-height: 1.4; font-weight: 500; color: var(--muted); text-wrap: pretty; }
.lmp2-count {
flex: none;
display: inline-flex;
align-items: center;
min-height: 28px;
padding: 4px 12px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink) 6%, var(--surface));
color: var(--ink);
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.lmp2-thumbs {
display: grid;
grid-template-columns: repeat(var(--lmp2-n, 5), minmax(0, 1fr));
gap: 12px;
margin: 24px -4px 0;
padding: 6px 4px 8px;
}
.lmp2-thumb {
appearance: none;
display: grid;
align-content: start;
gap: 8px;
min-width: 0;
margin: 0;
padding: 0;
border: 0;
background: none;
font: inherit;
text-align: left;
color: var(--muted);
cursor: pointer;
border-radius: 10px;
position: relative;
}
.lmp2-thumb:focus-visible { outline: 3px solid var(--lmp2-ring); outline-offset: 4px; }
.lmp2-thumb-frame {
position: relative;
display: block;
aspect-ratio: 4 / 3;
overflow: hidden;
border-radius: 8px;
background: var(--lmp2-well);
border: 1px solid var(--lmp2-line);
box-shadow: 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));
transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.lmp2-thumb-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lmp2-thumb-frame[data-fit=contain] img {
object-fit: contain;
padding: 8%;
filter: drop-shadow(0 2px 2px oklch(from var(--lmp2-shade) l c h / 0.28));
}
.lmp2-thumb[data-locked] .lmp2-thumb-frame img { filter: blur(3px) saturate(0.85); transform: scale(1.12); }
.lmp2-thumb-lock { position: absolute; inset: 0; display: grid; place-items: center; }
.lmp2-thumb-lock > span {
display: grid;
place-items: center;
width: 32px;
height: 32px;
border-radius: 999px;
background: var(--accent-fill, var(--accent));
color: var(--accent-fill-ink, var(--card));
box-shadow: 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));
}
.lmp2-thumb-label { font-size: 0.875rem; font-weight: 800; line-height: 1.2; text-wrap: balance; }
.lmp2-thumb[aria-selected=true] { color: var(--ink); }
.lmp2-thumb[aria-selected=true] .lmp2-thumb-frame {
border-color: var(--accent);
box-shadow: 0 0 0 1px var(--accent), 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));
transform: translateY(-2px);
}
@media (hover: hover) {
.lmp2-thumb:hover { color: var(--ink); }
.lmp2-thumb:hover .lmp2-thumb-frame {
transform: translateY(-2px);
border-color: oklch(from var(--ink) l c h / 0.24);
box-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));
}
.lmp2-thumb[aria-selected=true]:hover .lmp2-thumb-frame { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 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)); }
}
.lmp2-thumb:active .lmp2-thumb-frame { transform: translateY(0); }
.lmp2-learn-h {
margin: 0;
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);
text-wrap: balance;
}
.lmp2-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.lmp2-list li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 12px; align-items: start; }
.lmp2-num {
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.1;
color: var(--accent);
font-variant-numeric: tabular-nums;
}
.lmp2-item-t { font-weight: 700; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.lmp2-item-d { margin-top: 4px !important; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.lmp2-price {
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);
}
.lmp2-price-note { margin-top: 4px !important; font-size: 0.9375rem; line-height: 1.4; font-weight: 600; color: var(--muted); text-wrap: pretty; }
.lmp2-btn {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 64px;
margin-top: 16px;
padding: 14px 24px;
border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
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.3125rem);
line-height: 1.15;
text-align: center;
text-wrap: balance;
text-decoration: none;
color: var(--button-ink, var(--cta-ink));
text-shadow: var(--button-text-shadow, none);
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l + 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.02) c h));
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(--lmp2-shade) l c h / 0.3), 0 8px 16px -6px oklch(from var(--lmp2-shade) l c h / 0.38));
cursor: pointer;
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.lmp2-btn:focus-visible { outline: 3px solid oklch(from var(--button-bg, var(--cta)) l c h / 0.45); outline-offset: 3px; }
@media (hover: hover) {
.lmp2-btn:not(:disabled):hover {
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - 0.01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.07) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.1) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--lmp2-shade) l c h / 0.34), 0 10px 18px -6px oklch(from var(--lmp2-shade) l c h / 0.45));
}
}
.lmp2-btn.is-hover {
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - 0.01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.07) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.1) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--lmp2-shade) l c h / 0.34), 0 10px 18px -6px oklch(from var(--lmp2-shade) l c h / 0.45));
}
.lmp2-btn:not(:disabled):active,
.lmp2-btn.is-active {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - 0.05) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.08) c h));
box-shadow: inset 0 2px 4px oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.2) c h / 0.5), inset 0 -2px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.18) c h), 0 1px 1px oklch(from var(--lmp2-shade) l c h / 0.3);
}
.lmp2-btn:disabled {
cursor: not-allowed;
transform: none;
background: var(--button-2-bg, var(--secondary));
color: var(--button-2-ink, var(--secondary-ink));
text-shadow: none;
box-shadow: var(--button-2-shadow, var(--shadow-sm));
}
.lmp2-note {
margin-top: 12px !important;
text-align: center;
font-size: 0.9375rem;
line-height: 1.4;
font-weight: 500;
color: var(--muted);
text-wrap: pretty;
}
.lmp2-note svg { display: inline-block; width: 16px; height: 16px; vertical-align: -0.15em; margin-inline-end: 0.4em; }
@keyframes lmp2-in { from { opacity: 0.82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lmp2-pop { from { transform: scale(0.9); } to { transform: none; } }
@media (max-width: 900px) {
.lmp2-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'show' 'learn' 'act'; grid-template-rows: auto; }
.lmp2-show { position: static; margin-top: 32px; }
}
@media (max-width: 640px) {
.lmp2-thumbs { gap: 8px; margin-top: 20px; }
.lmp2-thumb-label {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.lmp2-thumb-frame { border-radius: 8px; }
.lmp2-thumb-lock > span { width: 24px; height: 24px; }
.lmp2-thumb-lock svg { width: 14px; height: 14px; }
.lmp2-act { margin-top: 32px; }
.lmp2-lockwrap { padding: 12px; }
.lmp2-lockcard { padding: 16px; }
.lmp2-lockdisc { width: 36px; height: 36px; }
.lmp2-lock-t { margin-top: 8px !important; }
.lmp2-lock-d { margin-top: 4px !important; }
}
@media (prefers-reduced-motion: reduce) {
.lmp2-view, .lmp2-lockcard { animation: none; }
.lmp2-thumb-frame, .lmp2-btn { transition: none; }
.lmp2-thumb .lmp2-thumb-frame,
.lmp2-thumb:hover .lmp2-thumb-frame,
.lmp2-thumb[aria-selected=true] .lmp2-thumb-frame,
.lmp2-btn:not(:disabled):active,
.lmp2-btn.is-active { transform: none; }
}
`
pieces/content/lead-magnet-preview-2/specimen.tsx 87 lines
import __studioImage0a830e3f from "../assets/021c3f407df0f486.webp";
import __studioImage1344bc8a from "../assets/d86512db99f2635e.webp";
import __studioImageedb6e602 from "../assets/437de8d639e68a89.webp";
import * as React from 'react'
import LeadMagnetPreview2 from '../lead-magnet-preview-2'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
const reportCover = __studioImage0a830e3f
const contentsSpread = __studioImage1344bc8a
const insideSpread = __studioImageedb6e602
export const states = ['default', 'hover', 'active', 'disabled']
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled'
export default function LeadMagnetPreview2Specimen({ state = 'default' }: { state?: SpecimenState }) {
const cover = slot('product', reportCover)
const contents = slot('item-1', contentsSpread)
const inside = slot('item-2', insideSpread)
return (
<LeadMagnetPreview2
state={state}
headline='Quote your 2027 loads at rates you can defend'
highlight='rates you can defend'
lead='Flip through the 2027 Small Fleet Freight Rates Report before you grab it. The full report is free.'
initialPage={2}
pages={[
{
image: cover,
imageAlt: 'Cover of the Haulwise 2027 Small Fleet Freight Rates Report',
label: 'Cover',
title: 'The 2027 Small Fleet Freight Rates Report',
detail: 'Built for owner-operators and fleets of 2 to 50 trucks.',
fit: 'contain',
},
{
image: contents,
imageAlt: 'Contents spread of the freight rates report',
label: 'Contents',
title: 'Six chapters, one pricing plan for 2027',
detail: 'Lane rates, fuel, contracts and a quote checklist.',
},
{
image: inside,
imageAlt: 'Inside spread with lane rate charts and a regional highway map',
label: 'Lane outlook',
title: 'Where lane rates are heading in 2027',
detail: 'Region by region, with the lanes small fleets win.',
},
{
image: inside,
imageAlt: 'Blurred preview of the fuel surcharge chapter',
label: 'Fuel formula',
title: 'The fuel surcharge formula that holds',
detail: 'Inside the free report.',
position: '85% 50%',
locked: true,
},
{
image: contents,
imageAlt: 'Blurred preview of the contract calendar chapter',
label: 'Contract calendar',
title: 'When to lock in contract rates',
detail: 'Inside the free report.',
position: '20% 50%',
locked: true,
},
]}
learnHeading='Three answers you’ll have before your next quote'
learnings={[
{ title: 'Which lanes are worth chasing in 2027', detail: 'Spot where small fleets keep their margin.' },
{ title: 'How to set a fuel surcharge that holds', detail: 'One formula for your next rate sheet.' },
{ title: 'When to sign contract rates', detail: 'The quarters to lock in and when to stay on spot.' },
]}
priceLine='Free. That’s it.'
priceNote='No card, no trial, nothing to cancel.'
label='Yes! Send Me the 2027 Rates Report'
note={defaults.sample.registration.privacy}
lockedTitle='The rest is inside the free report'
lockedText='Get your copy and read every chapter.'
lockedLabel='locked preview'
tablistLabel='Pages in the 2027 rates report'
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalLeadMagnetPreview2 |
string |
|
highlight OptionalLeadMagnetPreview2 |
string |
|
lead OptionalLeadMagnetPreview2 |
string |
|
pages RequiredLeadMagnetPreview2 |
ReportPage[] |
|
initialPage OptionalLeadMagnetPreview2 |
number |
|
learnHeading OptionalLeadMagnetPreview2 |
string |
|
learnings OptionalLeadMagnetPreview2 |
LeadMagnetPreview2Learning[] |
|
priceLine OptionalLeadMagnetPreview2 |
string |
|
priceNote OptionalLeadMagnetPreview2 |
string |
|
label OptionalLeadMagnetPreview2 |
string |
|
note OptionalLeadMagnetPreview2 |
string |
|
lockedTitle OptionalLeadMagnetPreview2 |
string |
|
lockedText OptionalLeadMagnetPreview2 |
string |
|
lockedLabel OptionalLeadMagnetPreview2 |
string |
|
tablistLabel OptionalLeadMagnetPreview2 |
string |
|
counterLabel OptionalLeadMagnetPreview2 |
string |
|
href OptionalLeadMagnetPreview2 |
string |
|
onAction OptionalLeadMagnetPreview2 |
(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void |
|
disabled OptionalLeadMagnetPreview2 |
boolean |
|
state OptionalLeadMagnetPreview2 |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalLeadMagnetPreview2 |
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-bg--button-2-ink--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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
product- The main product shot or cover (ebook, kit, bottle).
-
021c3f407df0f486.webp
image/webp · 28.9 KB
-
437de8d639e68a89.webp
image/webp · 69.6 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d86512db99f2635e.webp
image/webp · 30.5 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB