Free Book Hero 5
Free + shipping B2B book hero: the book arriving on a desk, an editorial dear-friend letter, and an offer card overlapping the photo where the first copy is FREE and extra team copies (the Dream 100 move) add up live.
Use it in a prompt
Use hero/free-book-hero-5 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/free-book-hero-5.tsx. - Import it and pass your copy and images (Props tab):
import { FreeBookHero5 } from "@/components/funneldna/hero/free-book-hero-5"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/free-book-hero-5/component.tsx 515 lines
// layout: magazine-spread
// Free + shipping B2B book hero: the book arriving on a desk, an editorial dear-friend letter, and an offer card overlapping the photo where the first copy is FREE and extra team copies (the Dream 100 move) add up live.
'use client'
import * as React from 'react'
import { Lock, Minus, Plus, Truck } from 'lucide-react'
export type FreeBookHero5State = 'default' | 'hover' | 'active' | 'disabled'
/** What the button hands to onAction: the chosen copies and the live total. */
export type FreeBookHero5Order = {
copies: number
/** Numeric total (extra copies plus shipping) when prices were supplied. */
total?: number
/** The total exactly as shown on the card. */
totalText?: string
}
export type FreeBookHero5Copy = {
/** Anchor beside FREE; {price} is the alternative price (bold), {label} what it is. */
versus: string
/** {amount} is the supplied shipping price. */
shippingAmount: string
shippingNoAmount: string
shippingLater: string
/** {price} is the supplied per-copy price. */
teamNote: string
copiesLabel: string
totalLabel: string
/** Total label when no shipping price is supplied. */
subtotalLabel: string
removeCopy: string
addCopy: string
copyUnit: string
copiesUnit: string
freePart: string
/** {price} is the per-copy price. */
extraOne: string
/** {count} extra copies, {price} the per-copy price. */
extraMany: string
/** {amount} is the live shipping total. */
shippingPart: string
shippingPartLater: string
maxNote: string
disabledNote: string
}
export type FreeBookHero5Props = {
/** Labels, live-total and status copy; named placeholders are documented on FreeBookHero5Copy. */
copy?: Partial<FreeBookHero5Copy>
/** Optional audience pre-headline; off by default. */
preHeadline?: string
headline?: string
/** Phrase inside the headline that gets the marker stroke. */
highlight?: string
lead?: string
/** Full-bleed photo of the book arriving (slot: scene). */
sceneImage?: string
sceneImageAlt?: string
/** Book cut-out on a transparent background (slot: product). */
productImage?: string
productImageAlt?: string
bookName?: string
freeLabel?: string
/** What the reader would otherwise pay, e.g. '$24.95'. Omitted, FREE stands alone. */
alternativePrice?: string
/** What that alternative is, e.g. 'list price'. */
alternativeLabel?: string
/** Shipping for the first copy, e.g. '$7.95'. */
shippingPrice?: string
/** Shipping added per extra copy, e.g. '$1.50'. Omitted, shipping stays flat. */
extraCopyShipping?: string
/** Where it ships, e.g. 'Ships to the US and Canada'. */
shipTo?: string
/** Price of each extra copy. Omitted, the team stepper is hidden. */
perCopyPrice?: string
maxCopies?: number
defaultCopies?: number
/** The Dream 100 line inviting copies for the team. */
teamTitle?: string
/** Overrides how live totals are written; defaults to the supplied prices' format. */
formatPrice?: (value: number) => string
/** Large editorial line set between the letter columns. */
pullLine?: string
salutation?: string
letter?: React.ReactNode[]
/** How many letter paragraphs come before the pull line. */
pullAfter?: number
signoff?: string
signature?: string
signatureRole?: string
/** The plain instruction right above the button. */
instruction?: string
ctaLabel?: string
ctaNote?: string
href?: string
onAction?: (order: FreeBookHero5Order) => void
state?: FreeBookHero5State
id?: string
className?: string
style?: React.CSSProperties
}
export function FreeBookHero5({
copy,
preHeadline,
headline = 'Keep the customers you already paid to win',
highlight = 'already paid to win',
lead = 'The Retention Playbook maps the first 90 days after signup: what to send, what to fix and what to measure, page by page.',
sceneImage,
sceneImageAlt = 'A copy of the book just unboxed on an office desk',
productImage,
productImageAlt = 'The Retention Playbook hardcover',
bookName = 'The Retention Playbook',
freeLabel = 'FREE',
alternativePrice,
alternativeLabel = 'list price',
shippingPrice,
extraCopyShipping,
shipTo = 'Shipped to your office or home',
perCopyPrice,
maxCopies = 10,
defaultCopies = 1,
teamTitle = 'Send a copy to your team',
formatPrice,
pullLine = 'Your copy is free. You just cover shipping.',
salutation = 'Dear founder,',
letter = DEFAULT_LETTER,
pullAfter = 2,
signoff = 'To customers who stay,',
signature = 'The Retention Playbook team',
signatureRole,
instruction = 'Click the button below to claim your copy.',
ctaLabel = 'Order Now',
ctaNote = 'Secure checkout · add your shipping address next',
href,
onAction,
state = 'default',
id,
className,
style,
}: FreeBookHero5Props) {
const text = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const per = parseMoney(perCopyPrice)
const ship = parseMoney(shippingPrice)
const extraShip = parseMoney(extraCopyShipping)
const max = Math.max(1, Math.floor(maxCopies || 1))
const showStepper = Boolean(per) && max > 1
const [copies, setCopies] = React.useState(() => clampCount(defaultCopies, max))
React.useEffect(() => {
setCopies((count) => clampCount(count, max))
}, [max])
const disabled = state === 'disabled'
const extras = showStepper ? copies - 1 : 0
const decimals = Math.max(per?.decimals ?? 0, ship?.decimals ?? 0, extraShip?.decimals ?? 0)
const base = per ?? ship
const money = (value: number) => (formatPrice ? formatPrice(value) : base ? formatMoney(value, base, decimals) : String(value))
const shipTotal = ship ? round(ship.value + extras * (extraShip?.value ?? 0)) : undefined
const total = showStepper && per ? round(extras * per.value + (shipTotal ?? 0)) : ship?.value
const totalText = total === undefined ? undefined : money(total)
const shipLine = ship ? fill(text.shippingAmount, { amount: shippingPrice ?? '' }) : text.shippingNoAmount
const shipSub = [shipTo, ship ? '' : text.shippingLater].filter(Boolean).join(' · ')
const versusParts = text.versus.split('{price}')
const breakdown = [
text.freePart,
extras === 1 ? fill(text.extraOne, { price: perCopyPrice ?? '' }) : '',
extras > 1 ? fill(text.extraMany, { count: extras, price: perCopyPrice ?? '' }) : '',
shipTotal !== undefined ? fill(text.shippingPart, { amount: money(shipTotal) }) : text.shippingPartLater,
].filter(Boolean).join(' · ')
const first = pullLine ? letter.slice(0, Math.max(0, pullAfter)) : letter
const rest = pullLine ? letter.slice(Math.max(0, pullAfter)) : []
function act(event: React.MouseEvent<HTMLElement>) {
if (disabled) {
event.preventDefault()
return
}
onAction?.({ copies: showStepper ? copies : 1, total, totalText })
}
const btnClass = ['fb5-btn', state === 'hover' ? 'is-hover' : '', state === 'active' ? 'is-active' : ''].filter(Boolean).join(' ')
const button = href ? (
disabled ? (
<a className={btnClass} role='link' aria-disabled='true'>{ctaLabel}</a>
) : (
<a className={btnClass} href={href} onClick={act}>{ctaLabel}</a>
)
) : (
<button type='button' className={btnClass} disabled={disabled} onClick={act}>{ctaLabel}</button>
)
return (
<section
id={id}
className={['cf-free-book-hero-5', sceneImage ? '' : 'is-plain', className].filter(Boolean).join(' ')}
style={style}
aria-labelledby={`${uid}-h`}
>
<style>{CSS}</style>
{sceneImage ? (
<div className='fb5-photo'>
<img src={sceneImage} alt={sceneImageAlt} width={1600} height={900} decoding='async' />
</div>
) : null}
<div className='fb5-wrap'>
<div className='fb5-grid'>
<header className='fb5-head'>
{preHeadline ? <p className='fb5-pre'>{preHeadline}</p> : null}
<h1 id={`${uid}-h`} className='fb5-h1'>{renderHeadline(headline, highlight)}</h1>
{lead ? <p className='fb5-lead'>{lead}</p> : null}
</header>
<div className='fb5-card' role='group' aria-labelledby={`${uid}-name`}>
<div className={productImage ? 'fb5-offer' : 'fb5-offer is-solo'}>
{productImage ? (
<img className='fb5-book' src={productImage} alt={productImageAlt} width={224} height={224} decoding='async' />
) : null}
<div className='fb5-offer-copy'>
<h2 id={`${uid}-name`} className='fb5-name'>{bookName}</h2>
<p className='fb5-price'>
<span className='fb5-free'>{freeLabel}</span>
{alternativePrice ? (
<span className='fb5-vs'>
{versusParts[0]}
<strong>{alternativePrice}</strong>
{(versusParts[1] ?? '').split('{label}').join(alternativeLabel)}
</span>
) : null}
</p>
</div>
</div>
<p className='fb5-ship'>
<Truck className='fb5-ico' aria-hidden='true' strokeWidth={2.5} />
<strong>{shipLine}</strong>
{shipSub ? <span className='fb5-ship-sub'>{shipSub}</span> : null}
</p>
{showStepper ? (
<>
<div className='fb5-team'>
<p className='fb5-team-title'>{teamTitle}</p>
<p className='fb5-team-note'>{fill(text.teamNote, { price: perCopyPrice ?? '' })}</p>
<div className='fb5-row'>
<div className='fb5-qty'>
<span className='fb5-label' id={`${uid}-qty`}>{text.copiesLabel}</span>
<div className='fb5-stepper' role='group' aria-labelledby={`${uid}-qty`}>
<button
type='button'
className='fb5-step'
aria-label={text.removeCopy}
disabled={disabled || copies <= 1}
onClick={() => setCopies((count) => clampCount(count - 1, max))}
>
<Minus size={18} strokeWidth={2.5} aria-hidden='true' />
</button>
<output className='fb5-count' aria-live='polite'>
{copies}
<span className='fb5-sr'> {copies === 1 ? text.copyUnit : text.copiesUnit}</span>
</output>
<button
type='button'
className='fb5-step'
aria-label={text.addCopy}
disabled={disabled || copies >= max}
onClick={() => setCopies((count) => clampCount(count + 1, max))}
>
<Plus size={18} strokeWidth={2.5} aria-hidden='true' />
</button>
</div>
</div>
<div className='fb5-total'>
<span className='fb5-label' id={`${uid}-tot`}>{ship ? text.totalLabel : text.subtotalLabel}</span>
<output className='fb5-total-value' aria-live='polite' aria-labelledby={`${uid}-tot`}>
<span key={totalText} className='fb5-tick'>{totalText}</span>
</output>
</div>
</div>
</div>
<p className='fb5-break' aria-live='polite'>
{breakdown}
{copies >= max ? <span className='fb5-max'> {text.maxNote}</span> : null}
</p>
</>
) : null}
<div className='fb5-act'>
{instruction ? <p className='fb5-instr'>{instruction}</p> : null}
{button}
<p className='fb5-note'>
{disabled ? (
text.disabledNote
) : (
<>
<Lock className='fb5-ico-sm' aria-hidden='true' strokeWidth={2.5} />
{ctaNote}
</>
)}
</p>
</div>
</div>
<div className='fb5-body'>
<div className='fb5-cols'>
{salutation ? <p className='fb5-salute'>{salutation}</p> : null}
{first.map((paragraph, i) => (
<p key={`a${i}`}>{paragraph}</p>
))}
</div>
{pullLine ? <p className='fb5-pull'>{pullLine}</p> : null}
{rest.length ? (
<div className='fb5-cols'>
{rest.map((paragraph, i) => (
<p key={`b${i}`}>{paragraph}</p>
))}
</div>
) : null}
{signoff || signature ? (
<div className='fb5-sign'>
{signoff ? <p className='fb5-signoff'>{signoff}</p> : null}
{signature ? <p className='fb5-signature'>{signature}</p> : null}
{signatureRole ? <p className='fb5-role'>{signatureRole}</p> : null}
</div>
) : null}
</div>
</div>
</div>
</section>
)
}
export default FreeBookHero5
const DEFAULT_COPY: FreeBookHero5Copy = {
versus: 'vs. {price} {label}',
shippingAmount: 'You just cover {amount} shipping',
shippingNoAmount: 'You just cover shipping',
shippingLater: 'Shipping is calculated at checkout',
teamNote: 'Your first copy is free. Extra copies are {price} each.',
copiesLabel: 'Copies',
totalLabel: 'Total today',
subtotalLabel: 'Copies today',
removeCopy: 'Remove a copy',
addCopy: 'Add a copy',
copyUnit: 'copy',
copiesUnit: 'copies',
freePart: 'Your copy free',
extraOne: '1 team copy at {price}',
extraMany: '{count} team copies at {price} each',
shippingPart: 'Shipping {amount}',
shippingPartLater: 'Shipping at checkout',
maxNote: 'That’s the most copies per order.',
disabledNote: 'Orders are paused right now.',
}
const DEFAULT_LETTER: React.ReactNode[] = [
'You worked hard for every signup. Then the welcome email goes out, the dashboard sits unopened, and the renewal date arrives before the customer ever saw the value.',
'The Retention Playbook is the plan for those first 90 days: the emails to send, the onboarding steps to fix and the few numbers worth watching each week.',
'It’s printed on purpose. Mark it up, fold the corners, and hand it across the desk.',
'Retention is a team sport, so send a copy to everyone who owns onboarding, success and product. Pick how many copies you need and they ship together.',
]
type Money = { value: number; prefix: string; suffix: string; decimals: number }
function parseMoney(raw?: string): Money | null {
if (!raw) return null
const match = raw.trim().match(/^([^0-9]*)([0-9][0-9,]*(?:[.][0-9]+)?)([^0-9]*)$/)
if (!match) return null
const num = match[2].split(',').join('')
const value = Number(num)
if (!Number.isFinite(value)) return null
return { value, prefix: match[1], suffix: match[3], decimals: (num.split('.')[1] ?? '').length }
}
function formatMoney(value: number, base: Money, decimals: number) {
const [int, dec] = Math.abs(value).toFixed(decimals).split('.')
let grouped = ''
for (let i = 0; i < int.length; i++) {
if (i > 0 && (int.length - i) % 3 === 0) grouped += ','
grouped += int[i]
}
return (value < 0 ? '-' : '') + base.prefix + grouped + (dec ? '.' + dec : '') + base.suffix
}
function round(value: number) {
return Math.round(value * 100) / 100
}
function clampCount(value: number, max: number) {
const n = Math.floor(Number.isFinite(value) ? value : 1)
return Math.min(max, Math.max(1, n))
}
function fill(template: string, vars: Record<string, string | number>) {
return template.replace(/[{]([a-zA-Z]+)[}]/g, (all, key: string) => (key in vars ? String(vars[key]) : all))
}
function renderHeadline(headline: string, highlight?: string) {
const at = highlight ? headline.toLowerCase().indexOf(highlight.toLowerCase()) : -1
if (!highlight || at < 0) return headline
return (
<>
{headline.slice(0, at)}
<span className='fb5-mark'>{headline.slice(at, at + highlight.length)}</span>
{headline.slice(at + highlight.length)}
</>
)
}
const CSS = `
.cf-free-book-hero-5{--fb5-shadow:var(--shadow,oklch(0.22 0.03 260));--fb5-marker:color-mix(in oklab,var(--marker,#fae37c) 62%,var(--surface,#fff));--fb5-gut:clamp(16px,5vw,48px);--fb5-focus:var(--field-focus,var(--accent,#2563eb));--signature-font:var(--signature-face,var(--font-display,inherit));position:relative;isolation:isolate;background:var(--surface,#fff);color:var(--ink,#101828);font-family:var(--font-body,system-ui,sans-serif);padding-bottom:clamp(64px,8.5vw,120px);overflow-x:clip}
.cf-free-book-hero-5 *,.cf-free-book-hero-5 *::before,.cf-free-book-hero-5 *::after{box-sizing:border-box}
.cf-free-book-hero-5.is-plain{padding-top:clamp(56px,8vw,112px)}
.cf-free-book-hero-5 .fb5-photo{position:relative;height:clamp(360px,36vw,540px);overflow:hidden;background:color-mix(in oklch,var(--ink,#101828) 6%,var(--surface,#fff))}
.cf-free-book-hero-5 .fb5-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:32% 58%}
.cf-free-book-hero-5 .fb5-wrap{max-width:calc(1120px + 2 * var(--fb5-gut));margin:0 auto;padding:clamp(40px,4.5vw,64px) var(--fb5-gut) 0}
.cf-free-book-hero-5.is-plain .fb5-wrap{padding-top:0}
.cf-free-book-hero-5 .fb5-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);grid-template-areas:'head card' 'body card';column-gap:clamp(32px,5vw,72px);align-items:start}
.cf-free-book-hero-5 .fb5-head{grid-area:head;min-width:0}
.cf-free-book-hero-5 .fb5-body{grid-area:body;min-width:0;padding-top:clamp(32px,3.5vw,48px)}
.cf-free-book-hero-5 .fb5-pre{margin:0 0 12px;font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#475467)}
.cf-free-book-hero-5 .fb5-h1{margin:0;font-family:var(--font-display,inherit);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;text-wrap:balance;color:var(--ink,#101828)}
.cf-free-book-hero-5 .fb5-mark{background:linear-gradient(transparent 56%,var(--fb5-marker) 56%,var(--fb5-marker) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .06em;border-radius:.14em .05em .12em .07em}
.cf-free-book-hero-5 .fb5-lead{margin:24px 0 0;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;color:var(--muted,#475467);text-wrap:pretty}
.cf-free-book-hero-5 .fb5-card{grid-area:card;position:sticky;top:24px;z-index:2;margin-top:calc(-1 * clamp(140px,14vw,216px));background:var(--card,#fff);color:var(--ink,#101828);border:1px solid color-mix(in oklab,var(--accent,#2563eb) 26%,var(--card-border,var(--card,#fff)));border-radius:var(--card-radius,var(--radius,14px));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)));padding:clamp(20px,3vw,32px)}
.cf-free-book-hero-5.is-plain .fb5-card{margin-top:0}
.cf-free-book-hero-5 .fb5-offer{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;align-items:end}
.cf-free-book-hero-5 .fb5-offer.is-solo{grid-template-columns:minmax(0,1fr)}
.cf-free-book-hero-5 .fb5-book{display:block;width:112px;height:auto;aspect-ratio:1;object-fit:contain;margin-top:-64px;border-radius:0;filter:drop-shadow(0 2px 3px oklch(from var(--fb5-shadow) l c h / .4)) drop-shadow(0 12px 14px oklch(from var(--fb5-shadow) l c h / .26))}
.cf-free-book-hero-5 .fb5-offer-copy{min-width:0}
.cf-free-book-hero-5 .fb5-name{margin:0;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;text-transform:var(--display-case,none);text-wrap:balance}
.cf-free-book-hero-5 .fb5-price{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin:12px 0 0}
.cf-free-book-hero-5 .fb5-free{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(3rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;color:var(--accent,#2563eb)}
.cf-free-book-hero-5 .fb5-vs{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted,#475467)}
.cf-free-book-hero-5 .fb5-vs strong{color:var(--ink,#101828);font-weight:800;font-variant-numeric:tabular-nums}
.cf-free-book-hero-5 .fb5-ship{margin:20px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.45;text-wrap:pretty}
.cf-free-book-hero-5 .fb5-ship strong{font-weight:800}
.cf-free-book-hero-5 .fb5-ship-sub{display:block;margin-top:2px;padding-inline-start:26px;font-size:.9375rem;font-weight:500;color:var(--muted,#475467)}
.cf-free-book-hero-5 .fb5-ico{display:inline-block;width:18px;height:18px;vertical-align:-.15em;margin-inline-end:.4em;color:var(--accent,#2563eb)}
.cf-free-book-hero-5 .fb5-ico-sm{display:inline-block;width:16px;height:16px;vertical-align:-.15em;margin-inline-end:.4em}
.cf-free-book-hero-5 .fb5-team{margin-top:20px;padding:16px;border-radius:10px;background:color-mix(in oklch,var(--ink,#101828) 4%,var(--card,#fff))}
.cf-free-book-hero-5 .fb5-team-title{margin:0;font-family:var(--font-display,inherit);font-weight:800;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;text-wrap:balance}
.cf-free-book-hero-5 .fb5-team-note{margin:4px 0 0;font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-free-book-hero-5 .fb5-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 16px;margin-top:16px}
.cf-free-book-hero-5 .fb5-label{display:block;margin-bottom:8px;font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.cf-free-book-hero-5 .fb5-stepper{display:flex;align-items:center;gap:4px}
.cf-free-book-hero-5 .fb5-step{appearance:none;display:inline-grid;place-items:center;width:44px;height:44px;padding:0;margin:0;border:1px solid var(--button-2-border,transparent);border-radius:10px;background:var(--button-2-bg,var(--secondary,#eef1f5));color:var(--button-2-ink,var(--secondary-ink,#101828));box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(0.22 0.03 260 / 0.2)));cursor:pointer;transition:background .16s ease,transform .16s ease,box-shadow .16s ease;-webkit-tap-highlight-color:transparent}
.cf-free-book-hero-5 .fb5-step:hover:not(:disabled){background:oklch(from var(--button-2-bg,var(--secondary,#eef1f5)) calc(l - .05) c h)}
.cf-free-book-hero-5 .fb5-step:active:not(:disabled){transform:translateY(1px);background:oklch(from var(--button-2-bg,var(--secondary,#eef1f5)) calc(l - .08) c h);box-shadow:none}
.cf-free-book-hero-5 .fb5-step:focus-visible{outline:3px solid var(--fb5-focus);outline-offset:2px}
.cf-free-book-hero-5 .fb5-step:disabled{cursor:not-allowed;opacity:.4;box-shadow:none}
.cf-free-book-hero-5 .fb5-count{display:inline-block;min-width:2.4ch;text-align:center;font-family:var(--font-display,inherit);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1;font-variant-numeric:tabular-nums}
.cf-free-book-hero-5 .fb5-total{min-width:0;margin-left:auto;text-align:right}
.cf-free-book-hero-5 .fb5-total-value{display:block;font-family:var(--font-display,inherit);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:44px;letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-free-book-hero-5 .fb5-tick{display:inline-block}
.cf-free-book-hero-5 .fb5-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-free-book-hero-5 .fb5-break{margin:12px 0 0;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted,#475467);text-wrap:pretty}
.cf-free-book-hero-5 .fb5-max{font-weight:700;color:var(--ink,#101828)}
.cf-free-book-hero-5 .fb5-act{margin-top:24px;text-align:center}
.cf-free-book-hero-5 .fb5-instr{margin:0 0 12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.4;text-wrap:balance}
.cf-free-book-hero-5 .fb5-btn{--fb5-bg:var(--button-bg,var(--cta,#d92d20));--fb5-bg2:var(--button-bg-2,var(--cta-2,var(--fb5-bg)));--fb5-l:0;position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;padding:0 28px;margin:0;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--fb5-bg) calc(l + .04 + var(--fb5-l)) c h),oklch(from var(--fb5-bg2) calc(l + var(--fb5-l)) c h));color:var(--button-ink,var(--cta-ink,#fff));font-family:var(--button-font,var(--font-display,inherit));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.15;letter-spacing:-.005em;text-align:center;text-decoration:none;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--fb5-bg) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--fb5-bg) calc(l - .16) c h),0 1px 2px oklch(from var(--fb5-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--fb5-shadow) l c h / .42));transition:box-shadow .16s ease,transform .16s ease;-webkit-tap-highlight-color:transparent}
.cf-free-book-hero-5 .fb5-btn:hover:not(:disabled):not([aria-disabled='true']),.cf-free-book-hero-5 .fb5-btn.is-hover{--fb5-l:-.05;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--fb5-bg) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--fb5-bg) calc(l - .2) c h),0 1px 2px oklch(from var(--fb5-shadow) l c h / .34),0 10px 18px -6px oklch(from var(--fb5-shadow) l c h / .5))}
.cf-free-book-hero-5 .fb5-btn:active:not(:disabled):not([aria-disabled='true']),.cf-free-book-hero-5 .fb5-btn.is-active{--fb5-l:-.09;transform:translateY(1px);box-shadow:var(--button-shadow,inset 0 2px 4px oklch(from var(--fb5-bg) calc(l - .22) c h / .5),inset 0 -2px 0 oklch(from var(--fb5-bg) calc(l - .16) c h),0 1px 2px oklch(from var(--fb5-shadow) l c h / .3))}
.cf-free-book-hero-5 .fb5-btn:focus-visible{outline:3px solid var(--fb5-focus);outline-offset:3px}
.cf-free-book-hero-5 .fb5-btn:disabled,.cf-free-book-hero-5 .fb5-btn[aria-disabled='true']{cursor:not-allowed;background:var(--button-2-bg,var(--secondary,#eef1f5));color:var(--button-2-ink,var(--secondary-ink,#101828));text-shadow:none;box-shadow:none;transform:none}
.cf-free-book-hero-5 .fb5-note{margin:12px 0 0;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted,#475467);text-wrap:pretty}
.cf-free-book-hero-5 .fb5-cols{columns:2;column-gap:32px}
.cf-free-book-hero-5 .fb5-cols p{margin:0 0 16px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.6;text-wrap:pretty;break-inside:avoid}
.cf-free-book-hero-5 .fb5-salute{font-weight:700}
.cf-free-book-hero-5 .fb5-pull{margin:16px 0 32px;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance;color:var(--ink,#101828)}
.cf-free-book-hero-5 .fb5-sign{margin-top:24px}
.cf-free-book-hero-5 .fb5-signoff{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5}
.cf-free-book-hero-5 .fb5-signature{margin:12px 0 0;font-family:var(--signature-font);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;text-transform:var(--display-case,none);color:var(--signature-ink,var(--ink,#101828))}
.cf-free-book-hero-5 .fb5-role{margin:8px 0 0;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted,#475467)}
@media (max-width:1100px){
.cf-free-book-hero-5 .fb5-grid{grid-template-columns:minmax(0,1fr) minmax(0,384px)}
.cf-free-book-hero-5 .fb5-cols{columns:1}
}
@media (max-width:860px){
.cf-free-book-hero-5 .fb5-photo{height:clamp(180px,48vw,280px)}
.cf-free-book-hero-5 .fb5-wrap{padding-top:32px}
.cf-free-book-hero-5 .fb5-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'card' 'body'}
.cf-free-book-hero-5 .fb5-card{position:relative;top:auto;margin-top:48px}
.cf-free-book-hero-5.is-plain .fb5-card{margin-top:48px}
.cf-free-book-hero-5 .fb5-offer{grid-template-columns:96px minmax(0,1fr)}
.cf-free-book-hero-5 .fb5-book{width:96px;margin-top:-44px}
.cf-free-book-hero-5 .fb5-body{padding-top:40px}
}
@keyframes fb5-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes fb5-tick{from{opacity:.82;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
.cf-free-book-hero-5 .fb5-head,.cf-free-book-hero-5 .fb5-card,.cf-free-book-hero-5 .fb5-body{animation:fb5-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-free-book-hero-5 .fb5-card{animation-delay:.07s}
.cf-free-book-hero-5 .fb5-body{animation-delay:.14s}
.cf-free-book-hero-5 .fb5-tick{animation:fb5-tick .24s cubic-bezier(.2,.7,.2,1) both}
}
@media (prefers-reduced-motion:reduce){
.cf-free-book-hero-5 *{transition:none !important;animation:none !important}
.cf-free-book-hero-5 .fb5-btn.is-active,.cf-free-book-hero-5 .fb5-btn:active,.cf-free-book-hero-5 .fb5-step:active{transform:none}
}
`
pieces/hero/free-book-hero-5/specimen.tsx 46 lines
import __studioImageb15fdb11 from "../assets/4ecedf59e21c91e3.webp";
import __studioImage78290113 from "../assets/b5b54334179db8cc.webp";
import * as React from 'react'
import { FreeBookHero5, type FreeBookHero5State } from '../free-book-hero-5'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled']
export default function FreeBookHero5Specimen({ state = 'default' }: { state?: FreeBookHero5State }) {
return (
<FreeBookHero5
state={state}
sceneImage={slot('scene', __studioImageb15fdb11)}
sceneImageAlt='A copy of The Retention Playbook just unboxed on an office desk'
productImage={slot('product', __studioImage78290113)}
productImageAlt='The Retention Playbook hardcover'
headline='Keep the customers you already paid to win'
highlight='already paid to win'
lead='The Retention Playbook maps the first 90 days after signup for SaaS founders: what to send, what to fix and what to measure, page by page.'
bookName='The Retention Playbook'
alternativePrice='$24.95'
alternativeLabel='list price'
shippingPrice='$7.95'
extraCopyShipping='$1.50'
shipTo='Ships to the US and Canada'
perCopyPrice='$9.95'
maxCopies={10}
teamTitle='Send a copy to everyone on your team'
pullLine='Your copy is free. You just cover shipping.'
salutation='Dear founder,'
letter={[
'You worked hard for every signup. Then the welcome email goes out, the dashboard sits unopened, and the renewal date shows up before the customer ever saw the value.',
'I wrote The Retention Playbook as the plan for those first 90 days: the emails to send, the onboarding steps to fix and the few numbers worth watching each week.',
'It’s printed on purpose. Mark it up, fold the corners, and pass it across the desk at your next team meeting.',
'Retention is a team sport, so don’t keep the plan to yourself. Send a copy to everyone who owns onboarding, success and product. Pick how many you need and they ship together in one box.',
]}
pullAfter={2}
signoff='To customers who stay,'
signature='Maya Ellison'
signatureRole='Author, The Retention Playbook'
instruction='Click the button below to claim your copy.'
ctaLabel='Order Now'
ctaNote='Secure checkout · add your shipping address next'
/>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalFreeBookHero5 |
Partial<FreeBookHero5Copy> |
|
preHeadline OptionalFreeBookHero5 |
string |
|
headline OptionalFreeBookHero5 |
string |
Default 'Keep the customers you already paid to win'
|
highlight OptionalFreeBookHero5 |
string |
Default 'already paid to win'
|
lead OptionalFreeBookHero5 |
string |
Default 'The Retention Playbook maps the first 90 days after signup: what to send, what to fix and what to measure, page by page.'
|
sceneImage OptionalFreeBookHero5 |
string |
|
sceneImageAlt OptionalFreeBookHero5 |
string |
Default 'A copy of the book just unboxed on an office desk'
|
productImage OptionalFreeBookHero5 |
string |
|
productImageAlt OptionalFreeBookHero5 |
string |
Default 'The Retention Playbook hardcover'
|
bookName OptionalFreeBookHero5 |
string |
Default 'The Retention Playbook'
|
freeLabel OptionalFreeBookHero5 |
string |
Default 'FREE'
|
alternativePrice OptionalFreeBookHero5 |
string |
|
alternativeLabel OptionalFreeBookHero5 |
string |
Default 'list price'
|
shippingPrice OptionalFreeBookHero5 |
string |
|
extraCopyShipping OptionalFreeBookHero5 |
string |
|
shipTo OptionalFreeBookHero5 |
string |
Default 'Shipped to your office or home'
|
perCopyPrice OptionalFreeBookHero5 |
string |
|
maxCopies OptionalFreeBookHero5 |
number |
Default 10
|
defaultCopies OptionalFreeBookHero5 |
number |
Default 1
|
teamTitle OptionalFreeBookHero5 |
string |
Default 'Send a copy to your team'
|
formatPrice OptionalFreeBookHero5 |
(value: number) => string |
|
pullLine OptionalFreeBookHero5 |
string |
Default 'Your copy is free. You just cover shipping.'
|
salutation OptionalFreeBookHero5 |
string |
Default 'Dear founder,'
|
letter OptionalFreeBookHero5 |
React.ReactNode[] |
Default DEFAULT_LETTER
|
pullAfter OptionalFreeBookHero5 |
number |
Default 2
|
signoff OptionalFreeBookHero5 |
string |
Default 'To customers who stay,'
|
signature OptionalFreeBookHero5 |
string |
Default 'The Retention Playbook team'
|
signatureRole OptionalFreeBookHero5 |
string |
|
instruction OptionalFreeBookHero5 |
string |
Default 'Click the button below to claim your copy.'
|
ctaLabel OptionalFreeBookHero5 |
string |
Default 'Order Now'
|
ctaNote OptionalFreeBookHero5 |
string |
Default 'Secure checkout · add your shipping address next'
|
href OptionalFreeBookHero5 |
string |
|
onAction OptionalFreeBookHero5 |
(order: FreeBookHero5Order) => void |
|
state OptionalFreeBookHero5 |
FreeBookHero5State |
Default 'default'
|
id OptionalFreeBookHero5 |
string |
|
className OptionalFreeBookHero5 |
string |
|
style OptionalFreeBookHero5 |
React.CSSProperties |
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-border--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.
--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).
scene- A wide atmosphere photo behind or beside the copy.
-
4ecedf59e21c91e3.webp
image/webp · 72.6 KB
-
b5b54334179db8cc.webp
image/webp · 178 KB