Whats Inside 9
Unboxes the kit on a flat dark colour field beside oversized numbered contents, then makes one first-person ask
Use it in a prompt
Use offer/whats-inside-9 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-9.tsx. - Import it and pass your copy and images (Props tab):
import { WhatsInside9 } from "@/components/funneldna/offer/whats-inside-9"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/whats-inside-9/component.tsx 480 lines
// layout: split-contrast
// Unboxes the kit on a flat dark colour field beside oversized numbered contents, then makes one first-person ask
// with the price on the button.
'use client'
import * as React from 'react'
import { AlertCircle, Loader2, Lock, ShieldCheck } from 'lucide-react'
export type WhatsInside9State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type WhatsInside9Item = {
name: string
/** One-line payoff under the name. */
detail?: string
/** Supplied value only, e.g. $49. Shown as a small chip when present. */
value?: string
/** item-N slot image; the spread is built from these when no product image is supplied. */
image?: string
/** Kept for callers; the spread images are decorative and the spread takes `imageAlt` as its label. */
imageAlt?: string
}
export type WhatsInside9Copy = {
/** Value chip text; {value} is replaced with the item's value. */
itemValue: string
/** Accessible name of the contents list. */
listLabel: string
/** Reassurance next to the lock icon. */
secure: string
}
export type WhatsInside9Props = {
/** Generated and accessible copy; any key left out keeps its default. */
copy?: Partial<WhatsInside9Copy>
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
/** Flat-lay or open-box cut-out of the bundle on a transparent background (product slot). */
productImage?: string
/** Alt text for the product image, or the label of the item spread. */
imageAlt?: string
/** Numbered contents of the kit. */
items?: WhatsInside9Item[]
/** Bold line that closes the list. */
closeLine?: string | false
/** Small line under the close line. */
closeNote?: string | false
/** Supplied price, placed on the button's second line. */
price?: string
/** Button main line. */
label?: string
/** Button second line; {price} is replaced with the price. */
sublabel?: string | false
/** Button main line while onAction is pending. */
loadingLabel?: string
/** Reassurance next to the shield icon. */
guarantee?: string | false
/** Shown when onAction rejects or in the error state. */
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
/** Forces a visual state for previews. */
state?: WhatsInside9State
id?: string
className?: string
style?: React.CSSProperties
}
type Status = 'idle' | 'loading' | 'error'
type Enter = 'idle' | 'wait' | 'go'
export function WhatsInside9(props: WhatsInside9Props) {
const {
copy,
headline = 'Here’s everything inside',
emphasis = 'everything inside',
productName = 'The Funnel Starter Kit',
productImage,
imageAlt = 'The Funnel Starter Kit laid out: planning guide, copy workbook and launch checklist',
items = DEFAULT_ITEMS,
closeLine = 'One download. Yours to keep.',
closeNote = 'Instant digital access',
price = '$47',
label = 'Yes! I want the Funnel Starter Kit',
sublabel = 'Just {price} · one payment · instant 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,
} = props
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')
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
React.useEffect(() => {
setStatus(state === 'error' ? 'error' : 'idle')
}, [state])
// One entrance: the colour field wipes in, the shapes snap, the kit drops onto it, the numerals land.
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 errId = `${uid}-err`
async function handleClick(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='wi9-btn-main'>
{loading ? <Loader2 className='wi9-spin' aria-hidden='true' strokeWidth={2.75} /> : null}
<span className='wi9-btn-label'>{loading ? loadingLabel : label}</span>
</span>
{sublabel ? (
<span className='wi9-btn-sub'>
<PriceLine template={sublabel} price={price} />
</span>
) : null}
</>
)
const button =
href && !onAction ? (
<a
className='wi9-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={handleClick}
>
{inner}
</a>
) : (
<button
type='button'
className='wi9-btn'
disabled={isDisabled}
aria-busy={loading || undefined}
aria-describedby={status === 'error' ? errId : undefined}
data-disabled={isDisabled ? '' : undefined}
data-force={force}
onClick={handleClick}
>
{inner}
</button>
)
return (
<section
ref={rootRef}
id={id}
className={['cf-whats-inside-9', className].filter(Boolean).join(' ')}
style={style}
aria-labelledby={headId}
data-enter={enter === 'idle' ? undefined : enter}
>
<style>{CSS}</style>
<header className='wi9-head'>
<h2 id={headId} className='wi9-h'>
<Headline text={headline} mark={emphasis} />
</h2>
{productName ? <p className='wi9-sub'>{productName}</p> : null}
</header>
<div className={hasVisual ? 'wi9-split' : 'wi9-split wi9-split--solo'}>
{hasVisual ? (
<div className='wi9-field'>
<span className='wi9-sh wi9-sh--quarter' aria-hidden='true' />
<span className='wi9-sh wi9-sh--disc' aria-hidden='true' />
<span className='wi9-sh wi9-sh--ring' aria-hidden='true' />
<span className='wi9-sh wi9-sh--bar' aria-hidden='true' />
<div className='wi9-field-in'>
<div className='wi9-visual'>
{productImage ? (
<img className='wi9-img' src={productImage} alt={imageAlt} width={1024} height={1024} decoding='async' />
) : (
<div className='wi9-fan' role='img' aria-label={imageAlt}>
{spread.map((item, i) => (
<img key={item.name} className={`wi9-fan-i wi9-fan-i--${i}`} src={item.image} alt='' loading='lazy' decoding='async' />
))}
</div>
)}
</div>
</div>
</div>
) : null}
<div className='wi9-side'>
<div className='wi9-side-in'>
<ol className='wi9-list' aria-label={text.listLabel}>
{items.map((item, i) => (
<li key={item.name} className='wi9-row'>
<span className='wi9-num' aria-hidden='true' style={{ ['--i' as string]: i } as React.CSSProperties}>
{String(i + 1).padStart(2, '0')}
</span>
<div className='wi9-copy'>
<h3 className='wi9-name'>{item.name}</h3>
{item.detail ? <p className='wi9-detail'>{item.detail}</p> : null}
{item.value ? <span className='wi9-val'>{fill(text.itemValue, { value: item.value })}</span> : null}
</div>
</li>
))}
</ol>
<div className='wi9-close'>
{closeLine ? <p className='wi9-close-line'>{closeLine}</p> : null}
{closeNote ? <p className='wi9-close-note'>{closeNote}</p> : null}
{button}
{status === 'error' ? (
<p id={errId} className='wi9-err' role='alert'>
<AlertCircle aria-hidden='true' strokeWidth={2.5} />
<span>{errorMessage}</span>
</p>
) : null}
<ul className='wi9-assure'>
{guarantee ? (
<li>
<ShieldCheck className='wi9-ok' aria-hidden='true' strokeWidth={2.5} />
{guarantee}
</li>
) : null}
{text.secure ? (
<li>
<Lock aria-hidden='true' strokeWidth={2.5} />
{text.secure}
</li>
) : null}
</ul>
</div>
</div>
</div>
</div>
</section>
)
}
export default WhatsInside9
const useIsoLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect
const DEFAULT_COPY: WhatsInside9Copy = {
itemValue: '{value} value',
listLabel: 'What’s inside the kit',
secure: 'Secure checkout',
}
const DEFAULT_ITEMS: WhatsInside9Item[] = [
{ 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.' },
]
/** Replaces {name} placeholders with text; unknown placeholders are left as written. */
function fill(template: string, vars: Record<string, string>) {
return template.replace(/\{(\w+)\}/g, (match, key: string) => (key in vars ? vars[key] : match))
}
/** Wraps the first case-insensitive match of `mark` in the marker stroke. */
function Headline({ 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='wi9-mark'>{text.slice(at, at + mark.length)}</span>
{text.slice(at + mark.length)}
</>
)
}
/** Renders the sublabel template with every {price} as bold price text. */
function PriceLine({ template, price }: { template: string; price: string }) {
const parts = template.split('{price}')
return (
<>
{parts.map((part, i) => (
<React.Fragment key={i}>
{i > 0 ? <strong className='wi9-price'>{price}</strong> : null}
{part}
</React.Fragment>
))}
</>
)
}
// Theme notes: every colour reads a contract token or an OKLCH recipe on one. The only literal colour outside a var()
// fallback chain is the documented yellow marker default (#fae37c) inside var(--marker, …), which feeds the headline
// stroke and the corner shape. Faces read --font-display / --font-body directly (buttons through --button-font with
// the display fallback); no local font aliases.
const CSS = `
.cf-whats-inside-9{
--wi9-ink:var(--ink,oklch(0.21 0.034 263));
--wi9-muted:var(--muted,oklch(0.446 0.03 258));
--wi9-surface:var(--surface,oklch(1 0 0));
--wi9-card:var(--card,oklch(1 0 0));
--wi9-band:var(--band,oklch(0.273 0.067 256));
--wi9-band-ink:var(--band-ink,oklch(1 0 0));
--wi9-accent:var(--accent,oklch(0.5 0.171 257));
--wi9-marker:var(--marker,#fae37c);
--wi9-success:var(--success,oklch(0.5 0.138 150));
--wi9-shadow:var(--shadow,oklch(0.22 0.03 256));
--wi9-radius:var(--radius,14px);
--wi9-btn-bg:var(--button-bg,var(--cta,oklch(0.576 0.209 29.5)));
--wi9-btn-bg-2:var(--button-bg-2,var(--cta-2,oklch(0.506 0.206 29.5)));
--wi9-btn-ink:var(--button-ink,var(--cta-ink,oklch(1 0 0)));
--wi9-btn2-bg:var(--button-2-bg,var(--secondary,oklch(0.93 0.015 263)));
--wi9-btn2-ink:var(--button-2-ink,var(--secondary-ink,oklch(0.21 0.034 263)));
--wi9-line:oklch(from var(--wi9-ink) l c h / 0.14);
--wi9-side:color-mix(in oklch,var(--wi9-ink) 4%,var(--wi9-surface));
--wi9-soft:color-mix(in oklch,var(--wi9-muted) 72%,var(--wi9-ink));
--wi9-mark:color-mix(in oklch,var(--wi9-marker) 55%,var(--wi9-surface));
position:relative;
box-sizing:border-box;
width:100%;
background:var(--wi9-surface);
color:var(--wi9-ink);
font-family:var(--font-body,system-ui,sans-serif);
overflow-x:clip;
}
.cf-whats-inside-9 *,.cf-whats-inside-9 *::before,.cf-whats-inside-9 *::after{box-sizing:border-box}
.cf-whats-inside-9 .wi9-head{max-width:76rem;margin:0 auto;padding:clamp(3rem,7vw,5.5rem) clamp(1.25rem,4vw,3rem) clamp(2rem,4.5vw,3.25rem);text-align:center}
.cf-whats-inside-9 .wi9-h{margin:0;font-family:var(--font-display,system-ui,sans-serif);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.035em);font-size:clamp(2.5rem,6.6vw,5.5rem);line-height:1.02;text-wrap:balance;color:var(--wi9-ink)}
.cf-whats-inside-9 .wi9-mark{background-image:linear-gradient(transparent 0 46%,var(--wi9-mark) 46% 94%,transparent 94%);padding:0 .08em;margin:0 -.02em;border-radius:.1em .22em .16em .12em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-whats-inside-9 .wi9-sub{margin:clamp(.75rem,1.6vw,1.375rem) 0 0;font-weight:500;font-size:clamp(1.25rem,2.4vw,1.875rem);line-height:1.25;text-wrap:balance;color:var(--wi9-ink)}
.cf-whats-inside-9 .wi9-split{display:grid;grid-template-columns:minmax(0,1fr)}
@media (min-width:960px){
.cf-whats-inside-9 .wi9-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.cf-whats-inside-9 .wi9-split--solo{grid-template-columns:minmax(0,1fr)}
}
.cf-whats-inside-9 .wi9-field{position:relative;isolation:isolate;overflow:hidden;background:var(--wi9-band);padding:clamp(2.5rem,6vw,5rem) clamp(1.25rem,4vw,4rem)}
.cf-whats-inside-9 .wi9-field-in{position:relative;height:100%;max-width:36rem;margin:0 auto}
.cf-whats-inside-9 .wi9-visual{position:relative;width:100%;max-width:34rem;aspect-ratio:1/1;margin:0 auto}
@media (min-width:960px){
.cf-whats-inside-9 .wi9-field-in{margin:0 0 0 auto}
.cf-whats-inside-9 .wi9-visual{position:sticky;top:2rem}
}
.cf-whats-inside-9 .wi9-img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 2px 3px oklch(from var(--wi9-shadow) l c h / .45)) drop-shadow(0 16px 20px oklch(from var(--wi9-shadow) l c h / .38))}
.cf-whats-inside-9 .wi9-fan{position:relative;width:100%;height:100%}
.cf-whats-inside-9 .wi9-fan-i{position:absolute;display:block;width:56%;aspect-ratio:1/1;object-fit:cover;object-position:center;border-radius:var(--wi9-radius);filter:drop-shadow(0 2px 3px oklch(from var(--wi9-shadow) l c h / .45)) drop-shadow(0 12px 16px oklch(from var(--wi9-shadow) l c h / .35))}
.cf-whats-inside-9 .wi9-fan-i--0{left:2%;top:16%;transform:rotate(-7deg)}
.cf-whats-inside-9 .wi9-fan-i--1{left:22%;top:2%;transform:rotate(3deg);z-index:1}
.cf-whats-inside-9 .wi9-fan-i--2{left:42%;top:30%;transform:rotate(9deg);z-index:2}
.cf-whats-inside-9 .wi9-sh{position:absolute;z-index:-1;pointer-events:none;display:block}
.cf-whats-inside-9 .wi9-sh--disc{width:min(68%,26rem);aspect-ratio:1/1;border-radius:50%;background:var(--accent-fill,var(--wi9-accent));right:-14%;top:12%}
.cf-whats-inside-9 .wi9-sh--quarter{width:clamp(5.5rem,12vw,9rem);aspect-ratio:1/1;left:0;top:0;background:var(--wi9-marker);border-radius:0 0 100% 0;transform-origin:0 0}
.cf-whats-inside-9 .wi9-sh--ring{width:clamp(3rem,6vw,4.5rem);aspect-ratio:1/1;border-radius:50%;border:clamp(.5rem,1vw,.75rem) solid oklch(from var(--wi9-band-ink) l c h / .2);left:9%;bottom:8%}
.cf-whats-inside-9 .wi9-sh--bar{width:clamp(5rem,9vw,7.5rem);height:clamp(1rem,1.8vw,1.5rem);border-radius:999px;background:oklch(from var(--wi9-band-ink) l c h / .12);right:11%;bottom:7%;transform:rotate(-24deg)}
.cf-whats-inside-9 .wi9-side{background:var(--wi9-side);padding:clamp(2.25rem,5vw,4.5rem) clamp(1.25rem,4vw,4rem) clamp(2.75rem,6vw,5rem)}
.cf-whats-inside-9 .wi9-side-in{max-width:36rem;margin:0 auto}
@media (min-width:960px){
.cf-whats-inside-9 .wi9-side-in{margin:0 auto 0 0}
.cf-whats-inside-9 .wi9-split--solo .wi9-side-in{margin:0 auto}
}
.cf-whats-inside-9 .wi9-list{list-style:none;margin:0;padding:0}
.cf-whats-inside-9 .wi9-row{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:clamp(1rem,2.6vw,1.75rem);align-items:start;padding:clamp(1.25rem,2.6vw,1.75rem) 0;border-bottom:1px solid var(--wi9-line)}
.cf-whats-inside-9 .wi9-row:first-child{padding-top:0}
.cf-whats-inside-9 .wi9-num{display:block;min-width:1.15em;font-family:var(--font-display,system-ui,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(3.25rem,7.2vw,5.75rem);line-height:.8;letter-spacing:-.06em;font-variant-numeric:tabular-nums;color:var(--wi9-accent)}
.cf-whats-inside-9 .wi9-copy{min-width:0}
.cf-whats-inside-9 .wi9-name{margin:0;padding-top:.15em;font-family:var(--font-display,system-ui,sans-serif);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.375rem,2.3vw,1.875rem);line-height:1.12;letter-spacing:-.015em;text-wrap:balance;color:var(--wi9-ink)}
.cf-whats-inside-9 .wi9-detail{margin:.5rem 0 0;font-size:1.0625rem;line-height:1.5;text-wrap:pretty;color:var(--wi9-soft)}
.cf-whats-inside-9 .wi9-val{display:inline-flex;align-items:center;margin-top:.75rem;padding:.3rem .75rem;border-radius:999px;background:var(--wi9-card);border:1px solid var(--card-border,var(--wi9-line));color:var(--wi9-ink);font-size:.875rem;font-weight:700;line-height:1.3;font-variant-numeric:tabular-nums;box-shadow:var(--shadow-sm,0 1px 2px oklch(from var(--wi9-shadow) l c h / .16))}
.cf-whats-inside-9 .wi9-close{margin-top:clamp(1.75rem,3.5vw,2.5rem)}
.cf-whats-inside-9 .wi9-close-line{margin:0;font-family:var(--font-display,system-ui,sans-serif);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.625rem,3vw,2.375rem);line-height:1.1;letter-spacing:-.02em;text-wrap:balance;color:var(--wi9-ink)}
.cf-whats-inside-9 .wi9-close-note{margin:.625rem 0 0;font-size:1.0625rem;line-height:1.45;text-wrap:pretty;color:var(--wi9-soft)}
.cf-whats-inside-9 .wi9-btn{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;width:100%;max-width:32rem;min-height:4.5rem;margin:clamp(1.25rem,2.5vw,1.5rem) 0 0;padding:1rem 1.5rem 1.125rem;border:1px solid oklch(from var(--wi9-btn-bg) calc(l - .12) c h);border-radius:var(--button-radius,var(--wi9-radius));background:linear-gradient(oklch(from var(--wi9-btn-bg) calc(l + .04) c h),oklch(from var(--wi9-btn-bg-2) calc(l - .02) c h));color:var(--wi9-btn-ink);text-align:center;text-decoration:none;text-shadow:var(--button-text-shadow,none);cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wi9-btn-bg) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--wi9-btn-bg) calc(l - .16) c h),0 1px 2px oklch(from var(--wi9-shadow) l c h / .35),0 8px 16px -6px oklch(from var(--wi9-shadow) l c h / .5))}
.cf-whats-inside-9 .wi9-btn:not([data-disabled]):hover,.cf-whats-inside-9 .wi9-btn[data-force='hover']{background:linear-gradient(oklch(from var(--wi9-btn-bg) calc(l - .01) c h),oklch(from var(--wi9-btn-bg-2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--wi9-btn-bg) calc(l + .12) c h / .6),inset 0 -3px 0 oklch(from var(--wi9-btn-bg) calc(l - .2) c h),0 2px 3px oklch(from var(--wi9-shadow) l c h / .38),0 12px 20px -8px oklch(from var(--wi9-shadow) l c h / .55))}
.cf-whats-inside-9 .wi9-btn:not([data-disabled]):active,.cf-whats-inside-9 .wi9-btn[data-force='active']{background:linear-gradient(oklch(from var(--wi9-btn-bg-2) calc(l - .03) c h),oklch(from var(--wi9-btn-bg-2) calc(l - .08) c h));box-shadow:var(--button-shadow,inset 0 2px 3px oklch(from var(--wi9-btn-bg) calc(l - .22) c h / .6),inset 0 -1px 0 oklch(from var(--wi9-btn-bg) calc(l - .16) c h),0 1px 2px oklch(from var(--wi9-shadow) l c h / .35))}
.cf-whats-inside-9 .wi9-btn:focus-visible{outline:3px solid var(--field-focus,var(--wi9-accent));outline-offset:3px}
.cf-whats-inside-9 .wi9-btn[data-disabled]{cursor:not-allowed;background:var(--wi9-btn2-bg);color:var(--wi9-btn2-ink);border-color:var(--button-2-border,transparent);text-shadow:none;box-shadow:var(--button-2-shadow, var(--shadow-sm))}
.cf-whats-inside-9 .wi9-btn[aria-busy='true']{cursor:progress}
.cf-whats-inside-9 .wi9-btn-main{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;max-width:100%;font-family:var(--button-font,var(--font-display,system-ui,sans-serif));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,2vw,1.375rem);line-height:1.15;letter-spacing:-.01em}
.cf-whats-inside-9 .wi9-btn-label{min-width:0;text-wrap:balance}
.cf-whats-inside-9 .wi9-btn-sub{display:block;font-family:var(--font-body,system-ui,sans-serif);font-weight:500;font-size:.9375rem;line-height:1.3;text-wrap:pretty}
.cf-whats-inside-9 .wi9-price{font-weight:800;font-variant-numeric:tabular-nums}
.cf-whats-inside-9 .wi9-spin{width:1.1em;height:1.1em;flex:none}
.cf-whats-inside-9 .wi9-err{display:flex;align-items:flex-start;gap:.5rem;max-width:32rem;margin:.875rem 0 0;padding:.75rem .875rem;border-radius:calc(var(--wi9-radius) * .7);background:var(--danger-soft,oklch(0.93 0.024 27));color:var(--danger,oklch(0.5 0.17 27));font-size:.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-whats-inside-9 .wi9-err svg{width:1.15em;height:1.15em;flex:none;margin-top:.1em}
.cf-whats-inside-9 .wi9-assure{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;max-width:32rem;margin:1rem 0 0;padding:0;list-style:none;font-size:.9375rem;font-weight:600;line-height:1.35;color:var(--wi9-soft)}
.cf-whats-inside-9 .wi9-assure li{display:inline-flex;align-items:center;gap:.4rem}
.cf-whats-inside-9 .wi9-assure svg{width:1.1em;height:1.1em;flex:none}
.cf-whats-inside-9 .wi9-assure .wi9-ok{color:var(--wi9-success)}
@media (max-width:959px){
.cf-whats-inside-9 .wi9-sh--disc{width:62%;right:-12%;top:14%}
}
@media (prefers-reduced-motion:no-preference){
.cf-whats-inside-9 .wi9-btn{transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-whats-inside-9 .wi9-btn:not([data-disabled]):hover,.cf-whats-inside-9 .wi9-btn[data-force='hover']{transform:translateY(-2px)}
.cf-whats-inside-9 .wi9-btn:not([data-disabled]):active,.cf-whats-inside-9 .wi9-btn[data-force='active']{transform:translateY(1px)}
.cf-whats-inside-9 .wi9-num{transition:transform .25s cubic-bezier(.2,.9,.25,1)}
.cf-whats-inside-9 .wi9-row:hover .wi9-num{transform:translateX(4px)}
.cf-whats-inside-9 .wi9-spin{animation:wi9-spin .8s linear infinite}
.cf-whats-inside-9[data-enter='wait'] .wi9-field{clip-path:inset(0 100% 0 0)}
.cf-whats-inside-9[data-enter='wait'] .wi9-visual,.cf-whats-inside-9[data-enter='wait'] .wi9-num,.cf-whats-inside-9[data-enter='wait'] .wi9-sh{opacity:0}
.cf-whats-inside-9[data-enter='go'] .wi9-field{animation:wi9-wipe .6s cubic-bezier(.65,0,.25,1) backwards}
.cf-whats-inside-9[data-enter='go'] .wi9-sh--quarter{animation:wi9-grow .5s cubic-bezier(.2,1.2,.4,1) .3s backwards}
.cf-whats-inside-9[data-enter='go'] .wi9-sh--disc{animation:wi9-pop .55s cubic-bezier(.2,1.25,.4,1) .22s backwards}
.cf-whats-inside-9[data-enter='go'] .wi9-sh--ring,.cf-whats-inside-9[data-enter='go'] .wi9-sh--bar{animation:wi9-fade .4s ease .36s backwards}
.cf-whats-inside-9[data-enter='go'] .wi9-visual{animation:wi9-drop .6s cubic-bezier(.2,.9,.25,1) .18s backwards}
.cf-whats-inside-9[data-enter='go'] .wi9-num{animation:wi9-num .5s cubic-bezier(.2,.9,.25,1) backwards;animation-delay:calc(.2s + var(--i,0) * .07s)}
}
@keyframes wi9-spin{to{transform:rotate(360deg)}}
@keyframes wi9-wipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes wi9-grow{from{transform:scale(0)}}
@keyframes wi9-pop{from{transform:scale(.55) rotate(-20deg);opacity:0}}
@keyframes wi9-fade{from{opacity:0}}
@keyframes wi9-drop{from{transform:translateY(32px) rotate(-4deg) scale(.95);opacity:0}}
@keyframes wi9-num{from{transform:translateY(.25em);opacity:0}}
`
pieces/offer/whats-inside-9/specimen.tsx 29 lines
import __studioImagef6a3388d from '../assets/89518aed3cce6f75.webp'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
import { WhatsInside9, type WhatsInside9State } from '../whats-inside-9'
const sample = defaults.sample
export const states: WhatsInside9State[] = ['default', 'hover', 'active', 'disabled', 'error']
export default function WhatsInside9Specimen({ state = 'default' }: { state?: WhatsInside9State }) {
return (
<WhatsInside9
state={state}
productName={sample.name}
productImage={slot('product', __studioImagef6a3388d)}
imageAlt='The Funnel Starter Kit laid out: Funnel Planning Guide, Page Copy Workbook and Launch Checklist'
items={sample.items.map((item, i) => ({
name: item.name,
detail: item.detail,
value: item.value,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}))}
price={sample.price}
guarantee={sample.guarantee}
onAction={() => new Promise<void>((resolve) => setTimeout(resolve, 1400))}
/>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalWhatsInside9 |
Partial<WhatsInside9Copy> |
|
headline OptionalWhatsInside9 |
string |
|
emphasis OptionalWhatsInside9 |
string | false |
|
productName OptionalWhatsInside9 |
string | false |
|
productImage OptionalWhatsInside9 |
string |
|
imageAlt OptionalWhatsInside9 |
string |
|
items OptionalWhatsInside9 |
WhatsInside9Item[] |
|
closeLine OptionalWhatsInside9 |
string | false |
|
closeNote OptionalWhatsInside9 |
string | false |
|
price OptionalWhatsInside9 |
string |
|
label OptionalWhatsInside9 |
string |
|
sublabel OptionalWhatsInside9 |
string | false |
|
loadingLabel OptionalWhatsInside9 |
string |
|
guarantee OptionalWhatsInside9 |
string | false |
|
errorMessage OptionalWhatsInside9 |
string |
|
href OptionalWhatsInside9 |
string |
|
onAction OptionalWhatsInside9 |
() => void | Promise<unknown> |
|
disabled OptionalWhatsInside9 |
boolean |
|
state OptionalWhatsInside9 |
WhatsInside9State |
|
id OptionalWhatsInside9 |
string |
|
className OptionalWhatsInside9 |
string |
|
style OptionalWhatsInside9 |
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- 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).
-
89518aed3cce6f75.webp
image/webp · 173 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB