Whats Inside 8
Shows everything inside the kit as a numbered flat-lay beside an order card with the price and checkout action.
Use it in a prompt
Use offer/whats-inside-8 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/whats-inside-8.tsx. - Import it and pass your copy and images (Props tab):
import { WhatsInside8 } from "@/components/funneldna/offer/whats-inside-8"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/whats-inside-8/component.tsx 540 lines
// Shows everything inside the kit as a numbered flat-lay beside an order card with the price and checkout action.
'use client'
import * as React from 'react'
import { AlertCircle, Loader2, Lock, ShieldCheck } from 'lucide-react'
import { AmericanExpress, Discover, Mastercard, Visa } from 'react-svg-credit-card-payment-icons/icons/flat-rounded'
export type WhatsInside8State = 'default' | 'hover' | 'active' | 'disabled' | 'error' | 'success'
export type WhatsInside8PaymentMark = 'visa' | 'mastercard' | 'amex' | 'discover'
export type WhatsInside8Item = {
name: string
/** One-line payoff under the name. */
detail?: string
/** Supplied value only, e.g. $49. */
value?: string
/** Image for this item’s item-N slot; builds the spread when no flat-lay is supplied. */
itemImage?: string
image?: string
imageAlt?: string
/** Height of the callout dot on the flat-lay, 5–95 (% from the top). Default 48. */
spotY?: number
/** Horizontal position of the callout dot, 5–95 (% from the left of the flat-lay; of its own tile when tiles are shown). Default: the centre of the item’s column. */
spotX?: number
}
export type WhatsInside8Copy = {
/** Visible label before the struck price. */
regular: string
regularSr: string
todaySr: string
/** {amount} is replaced with the saving. */
save: string
/** {value} is replaced with the item value. */
itemValue: string
payments: string
}
export type WhatsInside8Props = {
copy?: Partial<WhatsInside8Copy>
headline?: string
/** Phrase inside the headline set in the accent colour. */
emphasis?: string
productName?: string | false
/** Opening paragraph; its first letter becomes the drop cap. */
lead?: string | false
/** The big line on the offer card band. */
pullLine?: string
pullNote?: string | false
/** Flat-lay or open-box photo (product slot). Items sit left to right, one per equal column, matching the callouts. */
productImage?: string
/** Legacy alias for productImage. */
image?: string
imageAlt?: string
items?: WhatsInside8Item[]
todayLabel?: string | false
/** Struck-through regular price. Shown only when supplied. */
regularPrice?: string | false
price?: string
/** Line beside the price, e.g. billing terms. Shown only when supplied. */
note?: string | false
showSavings?: boolean
label?: string
loadingLabel?: string
/** Small line under the button, e.g. "Secure checkout". Shown only when supplied. */
sublabel?: string | false
linkLabel?: string | false
guarantee?: string | false
paymentMarks?: WhatsInside8PaymentMark[]
/** Deprecated: ignored. The builder wires what happens after the action. */
successMessage?: string
/** Deprecated: ignored. The builder wires what happens after the action. */
successNote?: string | false
errorMessage?: string
/** Navigation destination: the button and the text link render as links to it. */
href?: string
/** Called when the button or link is pressed. Nothing is sent by this component. */
onAction?: () => void | Promise<unknown>
disabled?: boolean
state?: WhatsInside8State
id?: string
className?: string
style?: React.CSSProperties
}
type Status = 'idle' | 'loading' | 'error'
const DEFAULT_COPY: WhatsInside8Copy = {
regular: 'Regular',
regularSr: 'Regular price',
todaySr: 'Today’s price',
save: 'Save {amount}',
itemValue: '{value} value',
payments: 'Cards accepted',
}
const DEFAULT_ITEMS: WhatsInside8Item[] = [
{ name: 'Funnel Planning Guide', detail: 'Map your offer and the pages your funnel needs.' },
{ name: 'Page Copy Workbook', detail: 'Draft your headline, offer, and call to action.' },
{ name: 'Launch Checklist', detail: 'Review the links, forms, and next steps before launch.' },
]
// Official payment-network marks keep their own colours (theme-contract exception).
const MARKS: Record<WhatsInside8PaymentMark, { Icon: React.ElementType; label: string }> = {
visa: { Icon: Visa, label: 'Visa' },
mastercard: { Icon: Mastercard, label: 'Mastercard' },
amex: { Icon: AmericanExpress, label: 'American Express' },
discover: { Icon: Discover, label: 'Discover' },
}
export function WhatsInside8({
copy,
headline = 'Here’s everything inside.',
emphasis = 'everything inside',
productName = 'The Funnel Starter Kit',
lead = 'Plan your funnel, write your page copy, and check every step before you launch.',
pullLine = 'One download. Yours to keep.',
pullNote = 'The guide, workbook and checklist, together',
image: legacyImage,
productImage: image = legacyImage,
imageAlt = 'The Funnel Starter Kit laid out flat: planning guide, copy workbook and launch checklist',
items: suppliedItems = DEFAULT_ITEMS,
todayLabel = 'Get the complete kit for',
regularPrice,
price = '$47',
note,
showSavings = true,
label = 'Yes! Give Me Access',
loadingLabel = 'Opening secure checkout…',
sublabel,
linkLabel = 'Click here to add the kit to your cart',
guarantee = '30-day money-back guarantee',
paymentMarks = ['visa', 'mastercard', 'amex', 'discover'],
errorMessage = 'We couldn’t open checkout. Please try again.',
href,
onAction,
disabled = false,
state = 'default',
id,
className,
style,
}: WhatsInside8Props) {
const text = { ...DEFAULT_COPY, ...copy }
const items = suppliedItems.map((item) => ({ ...item, image: item.itemImage ?? item.image }))
const n = Math.max(1, items.length)
// Five or more items wrap onto two rows so each column stays readable.
const cols = n > 4 ? Math.ceil(n / 2) : n
const uid = React.useId().replace(/:/g, '')
const [active, setActive] = React.useState<number | null>(null)
const [status, setStatus] = React.useState<Status>(() => statusFor(state))
const alive = React.useRef(true)
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
React.useEffect(() => {
setStatus(statusFor(state))
}, [state])
const isDisabled = disabled || state === 'disabled'
const loading = status === 'loading'
const force = state === 'hover' || state === 'active' ? state : undefined
const amount = showSavings && regularPrice ? savings(regularPrice, price) : null
const tiles = !image && items.length > 0 && items.every((item) => Boolean(item.image))
const hasVisual = Boolean(image) || tiles
const marks = paymentMarks.filter((m) => MARKS[m])
async function run() {
if (isDisabled || loading || !onAction) return
setStatus('loading')
try {
await onAction()
if (alive.current) setStatus('idle')
} catch {
if (alive.current) setStatus('error')
}
}
const btnInner = (
<>
{loading ? <Loader2 className='wi8-spin' aria-hidden='true' strokeWidth={2.75} /> : null}
<span>{loading ? loadingLabel : label}</span>
</>
)
return (
<section
id={id}
className={['cf-wi8', className].filter(Boolean).join(' ')}
style={style}
aria-labelledby={`${uid}-h`}
>
<style>{CSS}</style>
<div className='wi8-wrap'>
<header className='wi8-head'>
<h2 id={`${uid}-h`} className='wi8-h'>
<Headline text={headline} mark={emphasis} />
</h2>
{productName ? <p className='wi8-name'>{productName}</p> : null}
</header>
<div className='wi8-spread'>
{lead ? <p className='wi8-lead'>{lead}</p> : null}
<figure className={['wi8-fig', hasVisual ? '' : 'is-plain', cols < n ? 'is-wrap' : ''].filter(Boolean).join(' ')} style={{ '--n': n, '--cols': cols } as React.CSSProperties}>
{image ? (
<>
<span className='wi8-slab' aria-hidden='true' />
<div className='wi8-photo'>
<img src={image} alt={imageAlt} width={1536} height={1024} decoding='async' />
</div>
</>
) : tiles ? (
<div className='wi8-tiles'>
{items.map((item, i) => (
<div key={`${item.name}-${i}`} className='wi8-tile'>
<img src={item.image} alt={item.imageAlt || item.name} width={600} height={600} decoding='async' />
</div>
))}
</div>
) : null}
{hasVisual ? (
<div className='wi8-marks' aria-hidden='true'>
{items.map((item, i) => {
const x = typeof item.spotX === 'number' && Number.isFinite(item.spotX) ? spot(item.spotX) : null
const vars = {
'--i': i,
'--c': i % cols,
'--r': Math.floor(i / cols),
'--y': `${spot(item.spotY)}%`,
'--yf': spot(item.spotY) / 100,
...(x === null ? {} : { '--x': `${x}%`, '--xf': x / 100 }),
} as React.CSSProperties
const on = active === i ? ' is-on' : ''
return (
<React.Fragment key={`${item.name}-${i}`}>
<span className={`wi8-ld${on}`} style={vars} />
<span
className={`wi8-pin${on}`}
style={vars}
onPointerEnter={() => setActive(i)}
onPointerLeave={() => setActive(null)}
>
{i + 1}
</span>
</React.Fragment>
)
})}
</div>
) : null}
<figcaption className='wi8-figcap'>
<ol className='wi8-caps'>
{items.map((item, i) => (
<li
key={`${item.name}-${i}`}
className={active === i ? 'wi8-cap is-on' : 'wi8-cap'}
style={{ '--i': i } as React.CSSProperties}
onPointerEnter={() => setActive(i)}
onPointerLeave={() => setActive(null)}
>
<span className='wi8-num' aria-hidden='true'>
{i + 1}
</span>
<div className='wi8-ctext'>
<h3 className='wi8-cname'>{item.name}</h3>
{item.detail ? <p className='wi8-cdet'>{item.detail}</p> : null}
{item.value ? <p className='wi8-cval'>{fill(text.itemValue, { value: item.value })}</p> : null}
</div>
</li>
))}
</ol>
</figcaption>
</figure>
<aside className='wi8-offer' aria-labelledby={`${uid}-o`}>
<div className='wi8-top'>
<p id={`${uid}-o`} className='wi8-pull'>
{pullLine}
</p>
{pullNote ? <p className='wi8-pnote'>{pullNote}</p> : null}
</div>
<div className='wi8-body'>
{todayLabel ? <p className='wi8-today'>{todayLabel}</p> : null}
{regularPrice ? (
<p className='wi8-was'>
<span className='wi8-sr'>{text.regularSr}: </span>
<span aria-hidden='true'>{text.regular} </span>
<s>{regularPrice}</s>
</p>
) : null}
<p className='wi8-now'>
<span className='wi8-sr'>{text.todaySr}: </span>
{price}
</p>
{amount || note ? (
<p className='wi8-save'>
{amount ? <span className='wi8-chip'>{fill(text.save, { amount })}</span> : null}
{note ? <span>{note}</span> : null}
</p>
) : null}
<div className='wi8-act'>
<>
{status === 'error' ? (
<p className='wi8-err' role='alert'>
<AlertCircle aria-hidden='true' strokeWidth={2.5} />
<span>{errorMessage}</span>
</p>
) : null}
{href ? (
<a
className='wi8-btn'
href={isDisabled ? undefined : href}
data-force={force}
aria-disabled={isDisabled || undefined}
aria-busy={loading || undefined}
onClick={isDisabled ? undefined : run}
>
{btnInner}
</a>
) : (
<button
type='button'
className='wi8-btn'
data-force={force}
disabled={isDisabled}
aria-busy={loading || undefined}
onClick={run}
>
{btnInner}
</button>
)}
{sublabel ? (
<p className='wi8-sub'>
<Lock aria-hidden='true' strokeWidth={2.5} />
<span>{sublabel}</span>
</p>
) : null}
{linkLabel ? (
href ? (
<a className='wi8-link' href={isDisabled ? undefined : href} aria-disabled={isDisabled || undefined} onClick={isDisabled ? undefined : run}>
{linkLabel}
</a>
) : (
<button type='button' className='wi8-link' disabled={isDisabled} onClick={run}>
{linkLabel}
</button>
)
) : null}
</>
</div>
{guarantee ? (
<p className='wi8-guar'>
<ShieldCheck aria-hidden='true' strokeWidth={2.25} />
<span>{guarantee}</span>
</p>
) : null}
{marks.length > 0 ? (
<div className='wi8-pay' role='group' aria-label={text.payments}>
{marks.map((m) => {
const { Icon, label: markLabel } = MARKS[m]
return (
<span key={m} role='img' aria-label={markLabel}>
<Icon aria-hidden='true' />
</span>
)
})}
</div>
) : null}
</div>
</aside>
</div>
</div>
</section>
)
}
export default WhatsInside8
function Headline({ text, mark }: { text: string; mark?: string }) {
if (!mark) return <>{text}</>
const at = text.toLowerCase().indexOf(mark.toLowerCase())
if (at < 0) return <>{text}</>
return (
<>
{text.slice(0, at)}
<span className='wi8-em'>{text.slice(at, at + mark.length)}</span>
{text.slice(at + mark.length)}
</>
)
}
function statusFor(state: WhatsInside8State): Status {
return state === 'error' ? 'error' : 'idle'
}
function spot(y?: number) {
const v = typeof y === 'number' && Number.isFinite(y) ? y : 48
return Math.min(95, Math.max(5, v))
}
function fill(template: string, vars: Record<string, string>) {
return Object.entries(vars).reduce((out, [k, v]) => out.split('{' + k + '}').join(v), template)
}
function savings(regular: string, now: string) {
const num = (s: string) => parseFloat(s.replace(/[^0-9.]/g, ''))
const a = num(regular)
const b = num(now)
if (!Number.isFinite(a) || !Number.isFinite(b) || a <= b) return null
const symbol = (regular.match(/^[^0-9]*/)?.[0] || '').trim()
const diff = a - b
return symbol + (Number.isInteger(diff) ? String(diff) : diff.toFixed(2))
}
const CSS = `
.cf-wi8{--wi8-col:clamp(16px,2.2vw,28px);--wi8-tgap:var(--wi8-col);--wi8-row:30px;--wi8-shadow:var(--shadow,oklch(0.22 0.03 260));position:relative;background:var(--surface,#ffffff);color:var(--ink,#101828);font-family:var(--font-body,system-ui,sans-serif);padding:clamp(56px,8vw,112px) 20px;overflow-x:clip}
.cf-wi8 *,.cf-wi8 *::before,.cf-wi8 *::after{box-sizing:border-box}
.cf-wi8 :where(h2,h3,p,ol,figure){margin:0}
.wi8-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wi8-wrap{max-width:1200px;margin:0 auto}
.wi8-head{margin-bottom:clamp(32px,4.5vw,60px)}
.wi8-h{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.035em);font-size:clamp(2.5rem,7vw,5.75rem);line-height:.98;color:var(--ink);text-wrap:balance}
.wi8-em{color:var(--accent)}
.wi8-name{margin-top:clamp(14px,1.8vw,24px);font-family:var(--font-display,inherit);font-weight:700;font-size:clamp(1.375rem,2.4vw,2rem);line-height:1.15;letter-spacing:-0.015em;color:var(--ink);text-wrap:balance}
.wi8-spread{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'lead' 'fig' 'offer';gap:clamp(32px,4vw,48px)}
.wi8-lead{grid-area:lead;font-size:clamp(1.125rem,1.4vw,1.25rem);line-height:1.6;color:var(--ink);text-wrap:pretty;max-width:60ch}
.wi8-fig{grid-area:fig;display:grid;grid-template-columns:minmax(0,1fr);row-gap:var(--wi8-row);min-width:0}
.wi8-slab,.wi8-photo,.wi8-tiles,.wi8-marks{grid-row:1;grid-column:1}
.wi8-slab{z-index:0;border-radius:var(--card-radius,var(--radius,16px));background:color-mix(in oklch,var(--ink) 5%,var(--surface));translate:-16px 16px}
.wi8-photo{position:relative;z-index:1;aspect-ratio:3/2;border-radius:var(--card-radius,var(--radius,16px));overflow:hidden;background:var(--card);box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--wi8-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--wi8-shadow) l c h / .2))}
.wi8-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.wi8-tiles{position:relative;z-index:1;align-self:start;display:grid;grid-template-columns:repeat(var(--cols,var(--n)),minmax(0,1fr));gap:var(--wi8-tgap)}
.wi8-tile{aspect-ratio:1;border-radius:var(--card-radius,var(--radius,14px));overflow:hidden;background:var(--card);box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--wi8-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--wi8-shadow) l c h / .2))}
.wi8-tile img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.wi8-marks{position:relative;z-index:2;pointer-events:none}
.wi8-ld,.wi8-pin{position:absolute;top:var(--y);left:var(--x,calc((100% - (var(--n) - 1) * var(--wi8-col)) / var(--n) * (var(--i) + .5) + var(--i) * var(--wi8-col)))}
.wi8-tiles~.wi8-marks{container-type:inline-size}
.wi8-tiles~.wi8-marks :is(.wi8-ld,.wi8-pin){--w:calc((100cqi - (var(--cols) - 1) * var(--wi8-tgap)) / var(--cols));left:calc(var(--c) * (var(--w) + var(--wi8-tgap)) + var(--w) * var(--xf,.5));top:calc(var(--r) * (var(--w) + var(--wi8-tgap)) + var(--w) * var(--yf))}
.wi8-ld{bottom:calc(-1 * var(--wi8-row));width:4px;margin-left:-2px;border-radius:2px;background:var(--card);transform-origin:50% 100%}
.wi8-ld::after{content:'';position:absolute;top:0;bottom:0;left:1px;width:2px;border-radius:1px;background:var(--ink);transition:background-color .2s ease}
.wi8-ld.is-on::after{background:var(--accent-fill,var(--accent))}
.wi8-pin{display:grid;place-items:center;width:30px;height:30px;translate:-50% -50%;border-radius:999px;border:3px solid var(--card);background:var(--ink);color:var(--card);font-family:var(--font-body,inherit);font-weight:700;font-size:13px;line-height:1;box-shadow:var(--shadow-sm,0 1px 1px oklch(from var(--wi8-shadow) l c h / .18),0 1px 3px oklch(from var(--wi8-shadow) l c h / .14));pointer-events:auto;cursor:default;transition:background-color .2s ease,scale .2s ease}
.wi8-pin.is-on{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));scale:1.15}
.wi8-figcap{grid-row:2;grid-column:1;min-width:0}
.wi8-fig.is-plain .wi8-figcap{grid-row:1}
.wi8-caps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(var(--cols,var(--n)),minmax(0,1fr));column-gap:var(--wi8-col);row-gap:20px}
.wi8-cap{min-width:0;text-align:center;transition:translate .2s ease}
.wi8-cap.is-on{translate:0 -2px}
.wi8-num{display:none;place-items:center;width:30px;height:30px;border-radius:999px;background:var(--ink);color:var(--card);font-weight:700;font-size:13px;line-height:1}
.wi8-cap.is-on .wi8-num{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.wi8-fig.is-wrap .wi8-ld{display:none}
.wi8-fig.is-wrap .wi8-caps{row-gap:28px}
@media (min-width:640px){.wi8-fig.is-wrap .wi8-num{display:grid;margin:0 auto 10px}}
.wi8-ctext{min-width:0}
.wi8-cname{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.0625rem,1.45vw,1.25rem);line-height:1.18;letter-spacing:-0.01em;color:var(--accent);text-wrap:balance}
.wi8-cdet{margin-top:6px;font-size:1rem;line-height:1.45;color:var(--ink);text-wrap:pretty}
.wi8-cval{margin-top:8px;font-size:.875rem;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.wi8-offer{grid-area:offer;align-self:start;justify-self:center;width:100%;max-width:560px;background:var(--card);border:1px solid var(--card-border,color-mix(in oklch,var(--ink) 12%,transparent));border-radius:var(--card-radius,var(--radius,16px));overflow:hidden;box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--wi8-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--wi8-shadow) l c h / .32)))}
.wi8-top{background:var(--band);color:var(--band-ink);padding:clamp(26px,3.2vw,36px) clamp(20px,3vw,32px);text-align:center}
.wi8-pull{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.03em);font-size:clamp(1.875rem,3.3vw,2.625rem);line-height:1.02;color:var(--band-ink);text-wrap:balance}
.wi8-pnote{margin-top:12px;font-size:1rem;font-weight:600;line-height:1.4;color:var(--band-ink);text-wrap:pretty}
.wi8-body{padding:clamp(22px,3vw,32px) clamp(20px,3vw,32px) clamp(24px,3vw,32px);text-align:center}
.wi8-today{font-family:var(--font-display,inherit);font-weight:700;font-size:clamp(1.125rem,1.6vw,1.3125rem);line-height:1.25;color:var(--ink);text-wrap:balance}
.wi8-was{margin-top:12px;font-size:1.0625rem;font-weight:600;line-height:1.3;color:var(--muted)}
.wi8-was s{text-decoration-color:var(--danger);text-decoration-thickness:2px}
.wi8-now{margin-top:2px;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(3.75rem,6.4vw,5.25rem);line-height:1;letter-spacing:-0.045em;color:var(--ink);font-variant-numeric:tabular-nums}
.wi8-save{margin-top:14px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 10px;font-size:.9375rem;line-height:1.35;color:var(--muted)}
.wi8-chip{display:inline-flex;align-items:center;padding:4px 12px;border-radius:999px;background:var(--success-soft);color:var(--success);font-weight:700;font-size:.875rem}
.wi8-act{margin-top:24px}
.wi8-btn{--wi8-b:var(--button-bg,var(--cta));display:flex;text-decoration:none;align-items:center;justify-content:center;gap:10px;width:100%;min-height:64px;padding:14px 18px;border:1px solid oklch(from var(--wi8-b) calc(l - .12) c h);border-radius:var(--button-radius,var(--radius,10px));background:linear-gradient(oklch(from var(--wi8-b) calc(l + .045) c h),var(--button-bg-2,var(--cta-2)));color:var(--button-ink,var(--cta-ink));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.0625rem,4.3vw,1.375rem);line-height:1.15;letter-spacing:-0.005em;text-align:center;text-wrap:balance;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wi8-b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--wi8-b) calc(l - .16) c h),0 1px 2px oklch(from var(--wi8-shadow) l c h / .3),0 6px 14px -4px oklch(from var(--wi8-shadow) l c h / .38));transition:translate .15s ease,box-shadow .15s ease,background .15s ease}
.wi8-btn svg{width:1.1em;height:1.1em;flex:none}
.wi8-btn:hover:not(:disabled):not([aria-disabled=true]),.wi8-btn[data-force=hover]{background:linear-gradient(oklch(from var(--wi8-b) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .05) c h));translate:0 -1px}
.wi8-btn:active:not(:disabled):not([aria-disabled=true]),.wi8-btn[data-force=active]{translate:0 1px;background:linear-gradient(oklch(from var(--wi8-b) calc(l - .06) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .08) c h));box-shadow:inset 0 2px 3px oklch(from var(--wi8-shadow) l c h / .3),inset 0 -1px 0 oklch(from var(--wi8-b) calc(l - .16) c h),0 1px 1px oklch(from var(--wi8-shadow) l c h / .25)}
.wi8-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.wi8-btn:disabled,.wi8-btn[aria-disabled=true]{cursor:not-allowed;background:var(--secondary);color:var(--secondary-ink);border-color:color-mix(in oklch,var(--ink) 14%,transparent);text-shadow:none;box-shadow:var(--button-2-shadow, var(--shadow-sm));translate:none}
.wi8-btn[aria-busy=true]{cursor:progress}
.wi8-sub{margin-top:10px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:.875rem;line-height:1.35;color:var(--muted);text-wrap:pretty}
.wi8-sub svg{width:15px;height:15px;flex:none}
.wi8-link{appearance:none;display:inline-block;background:none;border:0;margin-top:12px;padding:4px 2px;font:inherit;font-size:1.0625rem;font-weight:700;line-height:1.35;color:var(--link,var(--accent));text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:oklch(from var(--link,var(--accent)) l c h / .45);text-underline-offset:.18em;text-wrap:balance;cursor:pointer}
.wi8-link:hover:not(:disabled):not([aria-disabled=true]){color:oklch(from var(--link,var(--accent)) calc(l - .08) c h);text-decoration-color:currentColor}
.wi8-link:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px;border-radius:4px}
.wi8-link:disabled,.wi8-link[aria-disabled=true]{color:var(--muted);text-decoration-color:currentColor;cursor:not-allowed}
.wi8-err{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px;padding:12px 14px;border-radius:calc(var(--radius,12px) * .75);background:var(--danger-soft);color:var(--danger);font-size:.9375rem;font-weight:600;line-height:1.4;text-align:left}
.wi8-err svg{width:20px;height:20px;flex:none;margin-top:1px}
.wi8-guar{margin-top:18px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:.9375rem;font-weight:600;line-height:1.35;color:var(--ink)}
.wi8-guar svg{width:20px;height:20px;flex:none;color:var(--success)}
.wi8-pay{margin-top:14px;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.wi8-pay span{display:block;width:40px;height:26px}
.wi8-pay svg{display:block;width:100%;height:100%}
@media (min-width:1024px){
.wi8-spread{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);grid-template-areas:'fig lead' 'fig offer';grid-template-rows:auto 1fr;column-gap:clamp(44px,5vw,72px);row-gap:32px;align-items:start}
.wi8-offer{max-width:none}
.wi8-lead{font-size:1.25rem}
}
@media (max-width:639px){
.cf-wi8{--wi8-col:0px;--wi8-row:22px}
.wi8-ld{display:none}
.wi8-slab{translate:-10px 10px}
.cf-wi8{--wi8-tgap:8px}
.wi8-pin{width:28px;height:28px}
.wi8-caps{grid-template-columns:minmax(0,1fr);row-gap:18px}
.wi8-cap{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:14px;align-items:start;text-align:left}
.wi8-num{display:grid}
.wi8-cname{font-size:1.1875rem}
.wi8-btn{min-height:60px}
}
@media (prefers-reduced-motion:no-preference){
.wi8-photo img{animation:wi8-settle 1.4s cubic-bezier(.2,.7,.2,1) backwards}
.wi8-ld{animation:wi8-draw .7s cubic-bezier(.3,.7,.2,1) backwards;animation-delay:calc(.3s + var(--i) * .14s)}
.wi8-pin{animation:wi8-pop .45s cubic-bezier(.3,1.5,.5,1) backwards;animation-delay:calc(.8s + var(--i) * .14s)}
.wi8-cap{animation:wi8-rise .5s ease-out backwards;animation-delay:calc(.15s + var(--i) * .08s)}
.wi8-spin{animation:wi8-spin .8s linear infinite}
}
@media (prefers-reduced-motion:reduce){
.cf-wi8 *{transition:none !important}
}
@keyframes wi8-settle{from{scale:1.06}to{scale:1}}
@keyframes wi8-draw{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes wi8-pop{from{scale:.3;opacity:0}to{scale:1;opacity:1}}
@keyframes wi8-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes wi8-spin{to{rotate:360deg}}
`
pieces/offer/whats-inside-8/specimen.tsx 34 lines
import __studioImage1bdaed83 from "../assets/b3a884c83ea97136.webp";
import * as React from 'react'
import { WhatsInside8, type WhatsInside8State } from '../whats-inside-8'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function WhatsInside8Specimen({ state = 'default' }: { state?: string }) {
const s = defaults.sample
return (
<WhatsInside8
state={state as WhatsInside8State}
productName={s.name}
lead={s.lead}
productImage={slot('product', __studioImage1bdaed83)}
imageAlt={`${s.name} laid out flat: planning guide, copy workbook and launch checklist`}
items={s.items.map((item, i) => ({
name: item.name,
detail: item.detail,
value: item.value,
itemImage: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}))}
todayLabel={s.todayLabel}
regularPrice={s.regularPrice}
price={s.price}
note={s.note}
label={s.label}
sublabel={s.sublabel}
guarantee={s.guarantee}
/>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalWhatsInside8 |
Partial<WhatsInside8Copy> |
|
headline OptionalWhatsInside8 |
string |
Default 'Here’s everything inside.'
|
emphasis OptionalWhatsInside8 |
string |
Default 'everything inside'
|
productName OptionalWhatsInside8 |
string | false |
Default 'The Funnel Starter Kit'
|
lead OptionalWhatsInside8 |
string | false |
Default 'Plan your funnel, write your page copy, and check every step before you launch.'
|
pullLine OptionalWhatsInside8 |
string |
Default 'One download. Yours to keep.'
|
pullNote OptionalWhatsInside8 |
string | false |
Default 'The guide, workbook and checklist, together'
|
productImage OptionalWhatsInside8 |
string |
Default legacyImage
|
image OptionalWhatsInside8 |
string |
|
imageAlt OptionalWhatsInside8 |
string |
Default 'The Funnel Starter Kit laid out flat: planning guide, copy workbook and launch checklist'
|
items OptionalWhatsInside8 |
WhatsInside8Item[] |
Default DEFAULT_ITEMS
|
todayLabel OptionalWhatsInside8 |
string | false |
Default 'Get the complete kit for'
|
regularPrice OptionalWhatsInside8 |
string | false |
|
price OptionalWhatsInside8 |
string |
Default '$47'
|
note OptionalWhatsInside8 |
string | false |
|
showSavings OptionalWhatsInside8 |
boolean |
Default true
|
label OptionalWhatsInside8 |
string |
Default 'Yes! Give Me Access'
|
loadingLabel OptionalWhatsInside8 |
string |
Default 'Opening secure checkout…'
|
sublabel OptionalWhatsInside8 |
string | false |
|
linkLabel OptionalWhatsInside8 |
string | false |
Default 'Click here to add the kit to your cart'
|
guarantee OptionalWhatsInside8 |
string | false |
Default '30-day money-back guarantee'
|
paymentMarks OptionalWhatsInside8 |
WhatsInside8PaymentMark[] |
Default ['visa', 'mastercard', 'amex', 'discover']
|
successMessage OptionalWhatsInside8 |
string |
|
successNote OptionalWhatsInside8 |
string | false |
|
errorMessage OptionalWhatsInside8 |
string |
Default 'We couldn’t open checkout. Please try again.'
|
href OptionalWhatsInside8 |
string |
|
onAction OptionalWhatsInside8 |
() => void | Promise<unknown> |
|
disabled OptionalWhatsInside8 |
boolean |
Default false
|
state OptionalWhatsInside8 |
WhatsInside8State |
Default 'default'
|
id OptionalWhatsInside8 |
string |
|
className OptionalWhatsInside8 |
string |
|
style OptionalWhatsInside8 |
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-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-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
product- The main product shot or cover (ebook, kit, bottle).
-
b3a884c83ea97136.webp
image/webp · 19.1 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB