Whats Inside 11
Unboxes the kit as a before/after. The blank-page moment sits beside the opened kit, with its numbered contents, one price line and the action.
Use it in a prompt
Use offer/whats-inside-11 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-11.tsx. - Import it and pass your copy and images (Props tab):
import { WhatsInside11 } from "@/components/funneldna/offer/whats-inside-11"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/whats-inside-11/component.tsx 494 lines
// layout: before-after-split
// Unboxes the kit as a before/after. The blank-page moment sits beside the opened kit, with its numbered contents, one price line and the action.
'use client'
import * as React from 'react'
import { AlertCircle, Loader2, ShieldCheck, X } from 'lucide-react'
export type WhatsInside11State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type WhatsInside11Item = {
name: string
/** One-line payoff under the name. */
detail?: string
/** item-N slot image; the spread is built from these when no productImage is supplied. */
image?: string
imageAlt?: string
}
export type WhatsInside11Copy = {
/** Heading over the before side. */
beforeTitle: string
/** Heading over the after side. */
afterTitle: string
/** Accessible name of the before list. */
beforeListLabel: string
/** Accessible name of the contents list. */
afterListLabel: string
/** Price line; {price} is replaced with the price. */
priceLine: string
}
export type WhatsInside11Props = {
copy?: Partial<WhatsInside11Copy>
headline?: string
/** Phrase inside the headline that gets the marker stroke. */
emphasis?: string | false
/** Sub-headline under the headline, usually the product name. */
productName?: string | false
/** The before photo (scene slot): the blank-page moment the kit replaces. */
sceneImage?: string
sceneAlt?: string
/** Before-side lines, one per item, in the same order as items. */
before?: string[]
/** Flat-lay or open-box cut-out of the bundle on a transparent background (product slot). */
productImage?: string
imageAlt?: string
items?: WhatsInside11Item[]
/** Bold line above the price. */
closeLine?: string | false
/** Phrase inside closeLine that gets the marker stroke. */
closeEmphasis?: string | false
price?: string
/** The value said in words beside the price. */
priceWords?: string | false
label?: string
/** Second line inside the button. */
sublabel?: string | false
loadingLabel?: string
guarantee?: string | false
errorMessage?: string
/** Checkout destination, used when there is no onAction. */
href?: string
/** Called when the button is pressed. Nothing is sent by this component. */
onAction?: () => void | Promise<unknown>
disabled?: boolean
state?: WhatsInside11State
id?: string
className?: string
style?: React.CSSProperties
}
type Status = 'idle' | 'loading' | 'error'
type Enter = 'idle' | 'wait' | 'go'
const DEFAULT_COPY: WhatsInside11Copy = {
beforeTitle: 'Without the kit',
afterTitle: 'With the kit',
beforeListLabel: 'Where you are right now',
afterListLabel: 'What’s inside the kit',
priceLine: 'Just {price}',
}
const DEFAULT_BEFORE = [
'Guessing which pages your funnel needs',
'Staring at a blank headline',
'Launching and hoping every link works',
]
const DEFAULT_ITEMS: WhatsInside11Item[] = [
{ 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.' },
]
const FAN = [
{ left: '2%', top: '10%', rotate: -7 },
{ left: '28%', top: '2%', rotate: 0 },
{ left: '54%', top: '10%', rotate: 7 },
]
const useIsoLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect
export function WhatsInside11({
copy,
headline = 'Here’s everything inside',
emphasis = 'everything inside',
productName = 'The Funnel Starter Kit',
sceneImage,
sceneAlt = 'A blank notebook page and loose sticky notes on a desk late at night',
before = DEFAULT_BEFORE,
productImage,
imageAlt = 'The Funnel Starter Kit unboxed: planning guide, copy workbook and launch checklist',
items = DEFAULT_ITEMS,
closeLine = 'All three in one download. Yours to keep.',
closeEmphasis = 'Yours to keep.',
price = '$47',
priceWords = 'for all three. One payment, lifetime access.',
label = 'Send me the kit',
sublabel = 'Instant digital download',
loadingLabel = 'Opening secure checkout…',
guarantee = '30-day money-back guarantee',
errorMessage = 'We couldn’t open checkout. Please try again.',
href,
onAction,
disabled = false,
state = 'default',
id,
className,
style,
}: WhatsInside11Props) {
const text = { ...DEFAULT_COPY, ...copy }
const uid = React.useId().replace(/:/g, '')
const rootRef = React.useRef<HTMLElement>(null)
const alive = React.useRef(true)
const [enter, setEnter] = React.useState<Enter>('idle')
const [status, setStatus] = React.useState<Status>(state === 'error' ? 'error' : 'idle')
const [lit, setLit] = React.useState<number | null>(null)
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
React.useEffect(() => {
setStatus(state === 'error' ? 'error' : 'idle')
}, [state])
// One entrance: the contents rise in, then each before line is struck through in turn.
useIsoLayoutEffect(() => {
const el = rootRef.current
if (!el || typeof window === 'undefined' || typeof IntersectionObserver === 'undefined') return
if (window.matchMedia?.('(prefers-reduced-motion: reduce)').matches) return
setEnter('wait')
const io = new IntersectionObserver(
(entries) => {
if (entries.some((entry) => entry.isIntersecting)) {
setEnter('go')
io.disconnect()
}
},
{ threshold: 0.12 },
)
io.observe(el)
return () => io.disconnect()
}, [])
const isDisabled = disabled || state === 'disabled'
const loading = status === 'loading'
const force = state === 'hover' || state === 'active' ? state : undefined
const spread = productImage ? [] : items.filter((item) => item.image).slice(0, 3)
const hasVisual = Boolean(productImage) || spread.length > 0
const headId = `${uid}-h`
const beforeId = `${uid}-b`
const afterId = `${uid}-a`
const errId = `${uid}-err`
const priceText = text.priceLine.replace('{price}', price)
async function handle(e: React.MouseEvent<HTMLElement>) {
if (isDisabled || loading) {
e.preventDefault()
return
}
if (!onAction) return
e.preventDefault()
setStatus('loading')
try {
await onAction()
if (alive.current) setStatus('idle')
} catch {
if (alive.current) setStatus('error')
}
}
const inner = (
<>
<span className='wi11-btn-main'>
{loading ? <Loader2 className='wi11-spin' aria-hidden='true' strokeWidth={2.75} /> : null}
<span>{loading ? loadingLabel : label}</span>
</span>
{sublabel ? <span className='wi11-btn-sub'>{sublabel}</span> : null}
</>
)
const button =
href && !onAction ? (
<a
className='wi11-btn'
href={isDisabled ? undefined : href}
role={isDisabled ? 'link' : undefined}
aria-disabled={isDisabled || undefined}
aria-describedby={status === 'error' ? errId : undefined}
data-disabled={isDisabled ? '' : undefined}
data-force={force}
onClick={handle}
>
{inner}
</a>
) : (
<button
type='button'
className='wi11-btn'
disabled={isDisabled}
aria-busy={loading || undefined}
aria-describedby={status === 'error' ? errId : undefined}
data-disabled={isDisabled ? '' : undefined}
data-force={force}
onClick={handle}
>
{inner}
</button>
)
return (
<section
ref={rootRef}
id={id}
className={['cf-whats-inside-11', className].filter(Boolean).join(' ')}
style={style}
data-enter={enter === 'idle' ? undefined : enter}
aria-labelledby={headId}
>
<style>{CSS}</style>
<div className='wi11-wrap'>
<header className='wi11-head'>
<h2 id={headId} className='wi11-h'>
<Marked text={headline} mark={emphasis} />
</h2>
{productName ? <p className='wi11-sub'>{productName}</p> : null}
</header>
<div className='wi11-split'>
<div className='wi11-before' role='group' aria-labelledby={beforeId}>
<h3 id={beforeId} className='wi11-ptitle wi11-ptitle--before'>
{text.beforeTitle}
</h3>
{sceneImage ? (
<img className='wi11-scene' src={sceneImage} alt={sceneAlt} width={1536} height={1152} loading='lazy' decoding='async' />
) : null}
{before.length > 0 ? (
<ul className='wi11-pains' aria-label={text.beforeListLabel}>
{before.map((line, i) => (
<li key={line} className={lit === i ? 'is-lit' : undefined} style={{ '--i': i } as React.CSSProperties}>
<span className='wi11-x' aria-hidden='true'>
<X strokeWidth={3} />
</span>
<span className='wi11-pain'>
<span className='wi11-strike'>{line}</span>
</span>
</li>
))}
</ul>
) : null}
</div>
<div className='wi11-div' aria-hidden='true'>
<span className='wi11-line wi11-line--a' />
<span className='wi11-line wi11-line--b' />
</div>
<div className='wi11-after' role='group' aria-labelledby={afterId}>
<h3 id={afterId} className='wi11-ptitle'>
{text.afterTitle}
</h3>
{hasVisual ? (
<figure className={productImage ? 'wi11-stage' : 'wi11-stage wi11-stage--fan'}>
{productImage ? (
<img className='wi11-photo' src={productImage} alt={imageAlt} width={1024} height={1024} decoding='async' />
) : (
spread.map((item, i) => (
<img
key={item.name}
className='wi11-fan'
src={item.image}
alt={item.imageAlt || item.name}
loading='lazy'
decoding='async'
style={{ left: FAN[i].left, top: FAN[i].top, transform: `rotate(${FAN[i].rotate}deg)`, zIndex: i === 1 ? 2 : 1 }}
/>
))
)}
</figure>
) : null}
<ol className='wi11-items' aria-label={text.afterListLabel}>
{items.map((item, i) => (
<li
key={item.name}
className={lit === i ? 'is-lit' : undefined}
style={{ '--i': i } as React.CSSProperties}
onMouseEnter={() => setLit(i)}
onMouseLeave={() => setLit((v) => (v === i ? null : v))}
>
<span className='wi11-num' aria-hidden='true'>
{pad(i + 1)}
</span>
<div className='wi11-itext'>
<p className='wi11-iname'>{item.name}</p>
{item.detail ? <p className='wi11-idetail'>{item.detail}</p> : null}
</div>
</li>
))}
</ol>
<div className='wi11-close'>
{closeLine ? (
<p className='wi11-closeline'>
<Marked text={closeLine} mark={closeEmphasis} />
</p>
) : null}
<p className='wi11-price'>
<strong>{priceText}</strong>
{priceWords ? <span>{priceWords}</span> : null}
</p>
{button}
{status === 'error' ? (
<p id={errId} role='alert' className='wi11-err'>
<AlertCircle aria-hidden='true' strokeWidth={2.5} />
<span>{errorMessage}</span>
</p>
) : null}
{guarantee ? (
<p className='wi11-guar'>
<ShieldCheck aria-hidden='true' strokeWidth={2.25} />
<span>{guarantee}</span>
</p>
) : null}
</div>
</div>
</div>
</div>
</section>
)
}
export default WhatsInside11
function Marked({ text, mark }: { text: string; mark?: string | false }) {
if (!mark) return <>{text}</>
const at = text.toLowerCase().indexOf(mark.toLowerCase())
if (at < 0) return <>{text}</>
return (
<>
{text.slice(0, at)}
<span className='wi11-mark'>{text.slice(at, at + mark.length)}</span>
{text.slice(at + mark.length)}
</>
)
}
function pad(n: number) {
return String(n).padStart(2, '0')
}
const CSS = `
.cf-whats-inside-11{
--wi11-ink:var(--band-ink,#ffffff);
--wi11-soft:color-mix(in oklch,var(--band-ink,#ffffff) 76%,var(--band,#1b2a4a));
--wi11-hair:oklch(from var(--band-ink,#ffffff) l c h / 0.14);
--wi11-glass:color-mix(in oklch,var(--band-ink,#ffffff) 7%,var(--band,#1b2a4a));
--wi11-well:oklch(from var(--band,#1b2a4a) calc(l - 0.04) c h);
--wi11-light:oklch(from var(--accent,#2f6fdb) max(l,0.8) min(c,0.14) h);
--wi11-no:oklch(from var(--danger,#c0392b) max(l,0.74) c h);
--wi11-yes:oklch(from var(--success,#1f8a4c) max(l,0.78) c h);
--wi11-marker:oklch(from var(--marker,#fae37c) l c h / 1);
--wi11-marker-ink:oklch(from var(--marker,#fae37c) 0.2 0.03 h);
--wi11-shadow:var(--shadow,oklch(0.22 0.03 260));
--wi11-r:var(--card-radius,var(--radius,14px));
--wi11-cta:var(--button-bg,var(--cta,#d9342b));
position:relative;
isolation:isolate;
overflow-x:clip;
background:var(--band,#1b2a4a);
color:var(--wi11-ink);
font-family:var(--font-body,system-ui,sans-serif);
padding:clamp(3.5rem,8vw,6.5rem) clamp(1.25rem,4vw,2.5rem);
}
.cf-whats-inside-11 *,.cf-whats-inside-11 *::before,.cf-whats-inside-11 *::after{box-sizing:border-box}
.cf-whats-inside-11 :where(h2,h3,p,ul,ol,figure){margin:0}
.wi11-wrap{max-width:75rem;margin:0 auto}
.wi11-head{text-align:center;max-width:58rem;margin:0 auto}
.wi11-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.025em);font-size:clamp(2.35rem,1.3rem + 4.6vw,5rem);line-height:1.04;text-wrap:balance;color:var(--wi11-ink)}
.wi11-sub{margin-top:clamp(0.9rem,1.8vw,1.4rem);font-size:clamp(1.15rem,1rem + 0.7vw,1.5rem);font-weight:500;line-height:1.35;color:var(--wi11-soft);text-wrap:balance}
.wi11-mark{color:var(--wi11-marker-ink);background-image:linear-gradient(transparent 10%,var(--wi11-marker) 10%,var(--wi11-marker) 92%,transparent 92%);padding:0 0.14em;margin:0 -0.04em;border-radius:0.2em 0.45em 0.3em 0.5em / 0.5em 0.3em 0.45em 0.25em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.wi11-split{display:grid;grid-template-columns:minmax(0,1fr);gap:1.25rem;margin-top:clamp(2.25rem,5vw,3.75rem)}
.wi11-before,.wi11-after{min-width:0;border-radius:var(--wi11-r);border:1px solid var(--wi11-hair)}
.wi11-before{background:var(--wi11-well);padding:clamp(1.1rem,2.4vw,1.6rem)}
.wi11-after{background:var(--wi11-glass);padding:clamp(1.25rem,3vw,2.25rem);box-shadow:inset 0 1px 0 oklch(from var(--band-ink,#ffffff) l c h / 0.12),var(--shadow-lg,0 2px 4px oklch(from var(--wi11-shadow) l c h / 0.3),0 12px 24px -8px oklch(from var(--wi11-shadow) l c h / 0.45))}
.wi11-ptitle{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:-0.01em;font-size:clamp(1.35rem,1.1rem + 0.9vw,1.85rem);line-height:1.15;text-wrap:balance;color:var(--wi11-ink)}
.wi11-ptitle--before{color:var(--wi11-soft)}
.wi11-scene{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center;margin-top:1rem;border-radius:max(0px,calc(var(--wi11-r) - 4px));filter:saturate(0.55) brightness(0.86)}
.wi11-pains{list-style:none;padding:0;margin-top:1rem;display:grid;gap:0.25rem}
.wi11-pains li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0.75rem;align-items:start;padding:0.6rem;border-radius:max(0px,calc(var(--wi11-r) - 6px));transition:background-color .2s ease}
.wi11-pains li.is-lit{background:oklch(from var(--band-ink,#ffffff) l c h / 0.06)}
.wi11-x{display:grid;place-items:center;flex:none;width:1.65rem;height:1.65rem;border-radius:50%;background:oklch(from var(--danger,#c0392b) l c h / 0.22);color:var(--wi11-no)}
.wi11-x svg{width:1rem;height:1rem}
.wi11-pain{padding-top:0.1rem;font-size:1.0625rem;line-height:1.45;color:var(--wi11-soft);text-wrap:pretty}
.wi11-strike{background-image:linear-gradient(var(--wi11-no),var(--wi11-no));background-repeat:no-repeat;background-position:0 60%;background-size:100% 2px;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .2s ease}
.wi11-pains li.is-lit .wi11-strike{background-size:100% 3px}
.wi11-pains li.is-lit .wi11-pain{color:var(--wi11-ink)}
.wi11-div{display:flex;align-items:center}
.wi11-line{flex:1;height:1px;background:var(--wi11-hair)}
.wi11-stage{position:relative;width:min(100%,26rem);aspect-ratio:1/1;margin:0.75rem auto 0}
.wi11-stage::before{content:'';position:absolute;left:12%;right:12%;bottom:6%;height:18%;border-radius:50%;background:radial-gradient(closest-side,oklch(from var(--accent-fill,var(--accent,#2f6fdb)) max(l,0.72) min(c,0.14) h / 0.24),transparent);pointer-events:none}
.wi11-photo{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 2px oklch(from var(--wi11-shadow) calc(l - 0.1) c h / 0.55)) drop-shadow(0 14px 14px oklch(from var(--wi11-shadow) calc(l - 0.1) c h / 0.45))}
.wi11-stage--fan{aspect-ratio:16/10;width:min(100%,32rem)}
.wi11-fan{position:absolute;width:44%;aspect-ratio:1/1;object-fit:cover;border-radius:max(0px,calc(var(--wi11-r) - 4px));filter:drop-shadow(0 2px 2px oklch(from var(--wi11-shadow) calc(l - 0.1) c h / 0.5)) drop-shadow(0 10px 12px oklch(from var(--wi11-shadow) calc(l - 0.1) c h / 0.4))}
.wi11-items{list-style:none;padding:0;margin-top:1rem}
.wi11-items li{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:1rem;align-items:start;padding:1rem 0.75rem;border-radius:max(0px,calc(var(--wi11-r) - 6px));transition:background-color .2s ease}
.wi11-items li + li::before{content:'';position:absolute;left:0.75rem;right:0.75rem;top:0;height:1px;background:var(--wi11-hair);transition:opacity .2s ease}
.wi11-items li.is-lit{background:oklch(from var(--band-ink,#ffffff) l c h / 0.06)}
.wi11-items li.is-lit::before,.wi11-items li.is-lit + li::before{opacity:0}
.wi11-num{min-width:2.1ch;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(2rem,1.4rem + 1.6vw,2.75rem);line-height:0.95;letter-spacing:-0.02em;font-variant-numeric:tabular-nums;color:var(--wi11-light)}
.wi11-itext{min-width:0;padding-top:0.15rem}
.wi11-iname{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.2rem,1.05rem + 0.6vw,1.45rem);line-height:1.2;color:var(--wi11-ink);text-wrap:balance}
.wi11-idetail{margin-top:0.4rem;font-size:1.0625rem;line-height:1.5;color:var(--wi11-soft);text-wrap:pretty}
.wi11-close{margin-top:clamp(1.25rem,2.6vw,1.75rem);padding-inline:0.75rem}
.wi11-closeline{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3rem,1.1rem + 0.9vw,1.7rem);line-height:1.3;color:var(--wi11-ink);text-wrap:balance}
.wi11-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:0.35rem 0.8rem;margin-top:1rem}
.wi11-price strong{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(2.1rem,1.6rem + 1.8vw,3rem);line-height:1;letter-spacing:-0.02em;color:var(--wi11-ink);font-variant-numeric:tabular-nums}
.wi11-price span{font-size:1.0625rem;line-height:1.4;color:var(--wi11-soft);text-wrap:pretty}
.wi11-btn{appearance:none;border:0;cursor:pointer;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:0.2rem;width:100%;max-width:28rem;min-height:4.4rem;margin-top:1.15rem;padding:0.85rem 1.5rem;text-align:center;text-decoration:none;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(var(--wi11-cta),var(--button-bg-2,var(--cta-2,var(--wi11-cta))));color:var(--button-ink,var(--cta-ink,#ffffff));text-shadow:var(--button-text-shadow,none);font-family:var(--button-font,var(--font-display,inherit));text-transform:var(--button-case,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wi11-cta) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--wi11-cta) calc(l - 0.16) c h),0 1px 2px oklch(from var(--wi11-shadow) calc(l - 0.08) c h / 0.6),0 6px 14px -4px oklch(from var(--wi11-shadow) calc(l - 0.08) c h / 0.6));-webkit-tap-highlight-color:transparent}
.wi11-btn-main{display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;font-size:clamp(1.2rem,1rem + 0.8vw,1.45rem);font-weight:var(--button-weight,800);line-height:1.15}
.wi11-btn-sub{font-family:var(--font-body,inherit);font-size:1rem;font-weight:600;line-height:1.3;text-transform:none;text-wrap:pretty}
.wi11-spin{width:1.1em;height:1.1em;flex:none}
.wi11-btn:hover:not([data-disabled]),.wi11-btn[data-force='hover']{background:linear-gradient(oklch(from var(--wi11-cta) calc(l + 0.03) c h),oklch(from var(--wi11-cta) calc(l - 0.06) c h));transform:translateY(-2px)}
.wi11-btn:active:not([data-disabled]),.wi11-btn[data-force='active']{background:linear-gradient(oklch(from var(--wi11-cta) calc(l - 0.06) c h),oklch(from var(--wi11-cta) calc(l - 0.1) c h));transform:translateY(1px);box-shadow:inset 0 2px 3px oklch(from var(--wi11-cta) calc(l - 0.22) c h / 0.6),0 1px 2px oklch(from var(--wi11-shadow) calc(l - 0.08) c h / 0.6)}
.wi11-btn:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent,#2f6fdb)) max(l,0.8) c h);outline-offset:3px}
.wi11-btn[data-disabled]{cursor:not-allowed;opacity:0.5;transform:none}
.wi11-err{display:inline-flex;align-items:center;gap:0.5rem;margin-top:0.85rem;padding:0.55rem 0.9rem;border-radius:var(--radius,12px);background:var(--danger-soft,#f6dedb);color:var(--danger,#a32a1d);font-size:0.9375rem;font-weight:600;line-height:1.35;text-wrap:pretty}
.wi11-err svg{width:1.1rem;height:1.1rem;flex:none}
.wi11-guar{display:flex;align-items:center;gap:0.5rem;margin-top:0.95rem;font-size:0.975rem;font-weight:600;line-height:1.35;color:var(--wi11-soft)}
.wi11-guar svg{width:1.2rem;height:1.2rem;flex:none;color:var(--wi11-yes)}
@media (min-width:900px){
.wi11-split{grid-template-columns:minmax(0,0.84fr) auto minmax(0,1.16fr);gap:clamp(1rem,2.2vw,1.75rem);align-items:start}
.wi11-before{position:sticky;top:1.5rem}
.wi11-div{flex-direction:column;align-self:stretch}
.wi11-line{width:1px;height:auto;flex:1}
.wi11-line--a{flex:none;height:clamp(7rem,13vw,10.5rem)}
.wi11-line--b{background:linear-gradient(var(--wi11-hair),transparent)}
}
@media (max-width:480px){
.wi11-items li{gap:0.8rem;padding:0.9rem 0.25rem}
.wi11-items li + li::before{left:0.25rem;right:0.25rem}
.wi11-close{padding-inline:0.25rem}
.wi11-btn{padding-inline:1rem}
}
@media (prefers-reduced-motion:no-preference){
.wi11-btn{transition:transform .15s ease,background .15s ease,box-shadow .15s ease}
.wi11-spin{animation:wi11-spin .8s linear infinite}
.cf-whats-inside-11[data-enter='wait'] .wi11-items li,.cf-whats-inside-11[data-enter='wait'] .wi11-stage{opacity:0.82;transform:translateY(10px)}
.cf-whats-inside-11[data-enter='wait'] .wi11-strike{background-size:0% 2px}
.cf-whats-inside-11[data-enter='go'] .wi11-items li{animation:wi11-rise .5s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * 70ms + 80ms)}
.cf-whats-inside-11[data-enter='go'] .wi11-stage{animation:wi11-lift .55s cubic-bezier(.2,.7,.2,1) both}
.cf-whats-inside-11[data-enter='go'] .wi11-strike{animation:wi11-strike .5s ease-out both;animation-delay:calc(var(--i,0) * 180ms + 350ms)}
}
@media (prefers-reduced-motion:reduce){
.wi11-pains li,.wi11-items li,.wi11-strike,.wi11-items li + li::before{transition:none}
}
@keyframes wi11-spin{to{transform:rotate(360deg)}}
@keyframes wi11-rise{from{opacity:0.82;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes wi11-lift{from{opacity:0.82;transform:translateY(10px) scale(0.98)}to{opacity:1;transform:none}}
@keyframes wi11-strike{from{background-size:0% 2px}to{background-size:100% 2px}}
`
pieces/offer/whats-inside-11/specimen.tsx 33 lines
import __studioImagec8255db9 from "../assets/39e32c9ab746e046.webp";
import __studioImage6e6d50d1 from "../assets/e80517c88edb182a.webp";
import * as React from 'react'
import { WhatsInside11 } from '../whats-inside-11'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export default function WhatsInside11Specimen({ state = 'default' }: { state?: SpecimenState }) {
const sample = defaults.sample
return (
<WhatsInside11
productName={sample.name}
sceneImage={slot('scene', __studioImagec8255db9)}
sceneAlt='A blank notebook page and loose sticky notes on a desk late at night'
productImage={slot('product', __studioImage6e6d50d1)}
imageAlt='The Funnel Starter Kit unboxed: planning guide, copy workbook and launch checklist'
items={sample.items.map((item, i) => ({
name: item.name,
detail: item.detail,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}))}
price={sample.price}
guarantee={sample.guarantee}
state={state}
onAction={() => new Promise<void>((resolve) => setTimeout(resolve, 900))}
/>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalWhatsInside11 |
Partial<WhatsInside11Copy> |
|
headline OptionalWhatsInside11 |
string |
Default 'Here’s everything inside'
|
emphasis OptionalWhatsInside11 |
string | false |
Default 'everything inside'
|
productName OptionalWhatsInside11 |
string | false |
Default 'The Funnel Starter Kit'
|
sceneImage OptionalWhatsInside11 |
string |
|
sceneAlt OptionalWhatsInside11 |
string |
Default 'A blank notebook page and loose sticky notes on a desk late at night'
|
before OptionalWhatsInside11 |
string[] |
Default DEFAULT_BEFORE
|
productImage OptionalWhatsInside11 |
string |
|
imageAlt OptionalWhatsInside11 |
string |
Default 'The Funnel Starter Kit unboxed: planning guide, copy workbook and launch checklist'
|
items OptionalWhatsInside11 |
WhatsInside11Item[] |
Default DEFAULT_ITEMS
|
closeLine OptionalWhatsInside11 |
string | false |
Default 'All three in one download. Yours to keep.'
|
closeEmphasis OptionalWhatsInside11 |
string | false |
Default 'Yours to keep.'
|
price OptionalWhatsInside11 |
string |
Default '$47'
|
priceWords OptionalWhatsInside11 |
string | false |
Default 'for all three. One payment, lifetime access.'
|
label OptionalWhatsInside11 |
string |
Default 'Send me the kit'
|
sublabel OptionalWhatsInside11 |
string | false |
Default 'Instant digital download'
|
loadingLabel OptionalWhatsInside11 |
string |
Default 'Opening secure checkout…'
|
guarantee OptionalWhatsInside11 |
string | false |
Default '30-day money-back guarantee'
|
errorMessage OptionalWhatsInside11 |
string |
Default 'We couldn’t open checkout. Please try again.'
|
href OptionalWhatsInside11 |
string |
|
onAction OptionalWhatsInside11 |
() => void | Promise<unknown> |
|
disabled OptionalWhatsInside11 |
boolean |
Default false
|
state OptionalWhatsInside11 |
WhatsInside11State |
Default 'default'
|
id OptionalWhatsInside11 |
string |
|
className OptionalWhatsInside11 |
string |
|
style OptionalWhatsInside11 |
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.
--card-radius- 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.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
product- The main product shot or cover (ebook, kit, bottle).
scene- A wide atmosphere photo behind or beside the copy.
-
39e32c9ab746e046.webp
image/webp · 33.8 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
e80517c88edb182a.webp
image/webp · 150 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB