Whats Inside 6
Connects numbered product callouts to the kit contents and order action.
Use it in a prompt
Use offer/whats-inside-6 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-6.tsx. - Import it and pass your copy and images (Props tab):
import { WhatsInside6 } from "@/components/funneldna/offer/whats-inside-6"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/whats-inside-6/component.tsx 450 lines
// Connects numbered product callouts to the kit contents and order 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 WhatsInside6Props = {
/** Supporting labels and plain-text templates; named placeholders are documented below. */
copy?: Partial<WhatsInside6Copy>
headline?: string
emphasis?: string
productName?: string
lead?: string
/** Image for this item’s item-N slot; takes precedence over legacy image. */
itemImage?: string
/** productImage is the canonical slot image; image is retained for compatibility. */
productImage?: string
image?: string
imageAlt?: string
hint?: string | false
items?: WhatsInside6Item[]
valueLabel?: string
regularLabel?: string
/** Struck-through regular price. Shown only when supplied. */
regularPrice?: string
todayLabel?: string
price?: string
showSavings?: boolean
/** Line under the guarantee, e.g. billing terms. Shown only when supplied. */
note?: string
label?: string
loadingLabel?: string
sublabel?: string
linkLabel?: string | false
guarantee?: string
paymentMarks?: WhatsInside6PaymentMark[]
/** Deprecated: ignored. The builder wires what happens after the action. */
successMessage?: string
errorMessage?: string
/** Checkout destination, used when there is no onAction. */
href?: string
onAction?: () => void | Promise<unknown>
disabled?: boolean
state?: WhatsInside6State
id?: string
className?: string
style?: React.CSSProperties
}
export function WhatsInside6({
headline = 'Here’s everything inside',
emphasis = 'everything',
productName = 'The Funnel Starter Kit',
lead = 'Build your first funnel with a clear plan.',
image: legacyImage,
productImage: image = legacyImage,
imageAlt = 'The Funnel Starter Kit laid out: guide, workbook and checklist',
hint = 'Tap a number to spotlight each piece.',
items: suppliedItems = DEFAULT_ITEMS,
valueLabel = 'Value',
regularLabel = 'Regular price',
regularPrice,
todayLabel = 'Get the complete kit for',
price = '$47',
showSavings = true,
note,
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,
copy,
}: WhatsInside6Props) {
const text = { ...DEFAULT_COPY, ...copy }
const items = suppliedItems.map(item => ({ ...item, image: item.itemImage === undefined ? item.image : item.itemImage }))
const uid = React.useId().replace(/:/g, '')
const alive = React.useRef(true)
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
const [hover, setHover] = React.useState<number | null>(null)
const [picked, setPicked] = React.useState<number | null>(null)
const [status, setStatus] = React.useState<'idle' | 'loading' | 'error'>(state === 'error' ? 'error' : 'idle')
React.useEffect(() => {
setStatus(state === 'error' ? 'error' : 'idle')
}, [state])
const active = hover ?? picked
const spots = items.map(spotFor)
const activeSpot = active !== null && spots[active] ? spots[active] : null
const blocked = disabled || state === 'disabled' || status === 'loading'
const save = showSavings ? savings(regularPrice, price) : null
const reassuranceParts = sublabel.split('·').map((part) => part.trim()).filter(Boolean)
const navigates = !!href && !onAction
const run = async () => {
if (blocked || !onAction) return
setStatus('loading')
try {
await onAction()
if (alive.current) setStatus('idle')
} catch {
if (alive.current) setStatus('error')
}
}
const classes = ['cf-whats-inside-6', state === 'hover' ? 'is-hover' : '', state === 'active' ? 'is-press' : '', className || ''].filter(Boolean).join(' ')
return (
<section id={id} className={classes} style={style} aria-labelledby={`${uid}-h`}>
<style>{CSS}</style>
<div className='wi6-wrap'>
<header className='wi6-head'>
<h2 id={`${uid}-h`} className='wi6-h'><Headline text={headline} mark={emphasis} /></h2>
{productName && <p className='wi6-name'>{productName}</p>}
{lead && <p className='wi6-lead'>{lead}</p>}
</header>
<div className='wi6-stage'>
<div className='wi6-bezel'>
<div className={`wi6-canvas${activeSpot ? ' has-active' : ''}`}>
<div className='wi6-frame'>
{image ? (
<img className='wi6-photo' src={image} alt={imageAlt} width={1536} height={1024} decoding='async' />
) : (
<div className='wi6-fbs' role='img' aria-label={imageAlt}>
{items.map((item, i) => item.image ? (
<img key={item.name} className='wi6-fb' src={item.image} alt='' style={{ left: `${spots[i].x}%`, top: `${spots[i].y}%` }} />
) : null)}
</div>
)}
<span aria-hidden className='wi6-spot' style={activeSpot ? { left: `${activeSpot.x}%`, top: `${activeSpot.y}%` } : undefined} />
</div>
{items.map((item, i) => {
const s = spots[i]
const on = active === i
return (
<button
key={item.name}
type='button'
className={`wi6-pin wi6-pin--${s.side}${on ? ' is-on' : ''}`}
style={{ left: `${s.x}%`, top: `${s.y}%`, animationDelay: `${140 + i * 90}ms` }}
aria-label={copyText(text.pinAria, { number: i + 1, name: item.name })}
aria-pressed={picked === i}
aria-describedby={`${uid}-i${i}`}
onMouseEnter={() => setHover(i)}
onMouseLeave={() => setHover(null)}
onFocus={() => setHover(i)}
onBlur={() => setHover(null)}
onClick={() => setPicked((p) => (p === i ? null : i))}
onKeyDown={(e) => {
if (e.key === 'Escape') {
setPicked(null)
setHover(null)
}
}}
>
<span className='wi6-disc' aria-hidden>{i + 1}</span>
<span className='wi6-tag' aria-hidden>{item.name}</span>
</button>
)
})}
</div>
</div>
{hint && <p className='wi6-hint'>{hint}</p>}
</div>
<ol className='wi6-legend' aria-label={productName ? copyText(text.inside, { product: productName }) : text.insideFallback}>
{items.map((item, i) => (
<li key={item.name} id={`${uid}-i${i}`} className={`wi6-item${active === i ? ' is-on' : ''}`} onMouseEnter={() => setHover(i)} onMouseLeave={() => setHover(null)}>
<div className={`wi6-thumb${item.image ? '' : ' is-empty'}`}>
{item.image && <img src={item.image} alt={item.imageAlt || item.name} width={152} height={152} loading='lazy' decoding='async' />}
<span className='wi6-num' aria-hidden>{i + 1}</span>
</div>
<div>
<h3 className='wi6-iname'>{item.name}</h3>
<p className='wi6-idetail'>{item.detail}</p>
{item.value && <p className='wi6-ivalue'>{valueLabel} {item.value}</p>}
</div>
</li>
))}
</ol>
<div className='wi6-close'>
<div className='wi6-card'>
{regularPrice && <p className='wi6-reg'>{regularLabel} <s>{regularPrice}</s></p>}
{todayLabel && <p className='wi6-today'>{todayLabel}</p>}
<p className='wi6-price'>{price}</p>
{save && <p className='wi6-save'>{copyText(text.savings, { amount: save.amount, percent: save.pct })}</p>}
<div className='wi6-action' aria-live='polite'>
<>
{navigates && !blocked ? (
<a className='wi6-btn' href={href}>
<span className='wi6-pad' aria-hidden />
<span className='wi6-btn-l'>{label}</span>
<span className='wi6-pad' aria-hidden />
</a>
) : (
<button type='button' className='wi6-btn' disabled={blocked} aria-busy={status === 'loading'} onClick={run}>
{status === 'loading' ? <Loader2 className='wi6-spin' aria-hidden /> : <span className='wi6-pad' aria-hidden />}
<span className='wi6-btn-l'>{status === 'loading' ? loadingLabel : label}</span>
<span className='wi6-pad' aria-hidden />
</button>
)}
{reassuranceParts.length > 0 && (
<p className='wi6-sub'>
{reassuranceParts.map((part, i) => (
<React.Fragment key={`${i}-${part}`}>
{i > 0 && <span className='wi6-sub-separator' aria-hidden>·</span>}
<span className='wi6-sub-part'>
{i === 0 && <Lock aria-hidden />}
<span>{part}</span>
</span>
</React.Fragment>
))}
</p>
)}
{status === 'error' && <p className='wi6-err' role='alert'><AlertCircle aria-hidden /><span>{errorMessage}</span></p>}
{linkLabel && (navigates && !blocked
? <a className='wi6-link' href={href}><span>{linkLabel}</span></a>
: <button type='button' className='wi6-link' disabled={blocked} onClick={run}><span>{linkLabel}</span></button>)}
</>
</div>
<div className='wi6-trust'>
{guarantee && <p className='wi6-guar'><ShieldCheck aria-hidden /><span>{guarantee}</span></p>}
{note && <p className='wi6-note'>{note}</p>}
{paymentMarks.length > 0 && (
<ul className='wi6-pay' aria-label={text.payments}>
{paymentMarks.map((m) => {
const { Icon } = MARKS[m]
const markLabel = text[m]
return <li key={m}><span role='img' aria-label={markLabel}><Icon width={42} height={28} aria-hidden /></span></li>
})}
</ul>
)}
</div>
</div>
</div>
</div>
</section>
)
}
export default WhatsInside6
export type WhatsInside6Item = {
name: string
detail: string
value?: string
/** Image for this item’s item-N slot; takes precedence over legacy image. */
itemImage?: string
image?: string
imageAlt?: string
spot?: { x: number; y: number; side?: 'left' | 'right' }
}
export type WhatsInside6State = 'default' | 'hover' | 'active' | 'disabled' | 'error' | 'success'
export type WhatsInside6PaymentMark = 'visa' | 'mastercard' | 'amex' | 'discover'
const DEFAULT_ITEMS: WhatsInside6Item[] = [
{ name: 'Funnel Planning Guide', detail: 'Map your offer and the pages your funnel needs.', spot: { x: 24, y: 52, side: 'right' } },
{ name: 'Page Copy Workbook', detail: 'Draft your headline, offer, and call to action.', spot: { x: 70, y: 30, side: 'left' } },
{ name: 'Launch Checklist', detail: 'Review the links, forms, and next steps before launch.', spot: { x: 58, y: 74, side: 'right' } },
]
const FALLBACK_SPOTS = [
{ x: 22, y: 50 },
{ x: 50, y: 40 },
{ x: 78, y: 54 },
{ x: 36, y: 76 },
{ x: 64, y: 24 },
]
const MARKS = {
visa: { Icon: Visa },
mastercard: { Icon: Mastercard },
amex: { Icon: AmericanExpress },
discover: { Icon: Discover },
}
function spotFor(item: WhatsInside6Item, i: number) {
const s = item.spot ?? FALLBACK_SPOTS[i % FALLBACK_SPOTS.length]
const side: 'left' | 'right' = item.spot?.side ?? (s.x > 62 ? 'left' : 'right')
return { x: s.x, y: s.y, side }
}
function toNumber(v?: string) {
if (!v) return null
const n = parseFloat(v.replace(/[^0-9.]/g, ''))
return Number.isFinite(n) ? n : null
}
function savings(regular?: string, now?: string) {
const a = toNumber(regular)
const b = toNumber(now)
if (a === null || b === null || a <= b) return null
const cur = (now || '').match(/^[^0-9]*/)?.[0] || ''
const d = a - b
return { amount: cur + (Number.isInteger(d) ? String(d) : d.toFixed(2)), pct: Math.round((d / a) * 100) }
}
function Headline({ text, mark }: { text: string; mark?: string }) {
const at = mark ? text.indexOf(mark) : -1
if (!mark || at < 0) return <>{text}</>
return <>{text.slice(0, at)}<span className='wi6-gold'>{mark}</span>{text.slice(at + mark.length)}</>
}
// Designed artwork, official payment marks and black/white alpha shadows retain their colours.
const CSS = `
.cf-whats-inside-6{--wi6-band:var(--band,#0f2747);--wi6-on:var(--band-ink,#ffffff);--wi6-soft:var(--band-ink);--wi6-ink:var(--ink,#101828);--wi6-muted:var(--muted,#4a5565);--wi6-card:var(--card,#ffffff);--wi6-g1:var(--band-ink);--wi6-g2:var(--band-ink);--wi6-g3:var(--band-ink);--wi6-cta:var(--cta,#d92d20);--wi6-cta2:var(--cta-2,#b42318);--wi6-cta-ink:var(--cta-ink,#ffffff);--wi6-r:var(--radius,14px);--wi6-stage:var(--band);position:relative;isolation:isolate;overflow:hidden;overflow:clip;background:var(--wi6-band);color:var(--wi6-on);font-family:var(--font-body,Arial,sans-serif);padding:clamp(56px,8vw,112px) clamp(16px,4vw,40px) clamp(64px,8.5vw,120px)}
.cf-whats-inside-6 *,.cf-whats-inside-6 *::before,.cf-whats-inside-6 *::after{box-sizing:border-box}
:where(.cf-whats-inside-6) .wi6-wrap{max-width:1160px;margin:0 auto}
:where(.cf-whats-inside-6) .wi6-head{text-align:center;max-width:960px;margin:0 auto;animation:wi6-rise .5s ease both}
:where(.cf-whats-inside-6) .wi6-h{margin:0 auto;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight, 900);font-size:clamp(2.6rem,7.4vw,5.75rem);line-height:1;letter-spacing:var(--display-tracking, -.035em);color:var(--wi6-on);text-wrap:balance;text-transform:var(--display-case, none)}
:where(.cf-whats-inside-6) .wi6-gold{color:var(--band-ink);padding-bottom:.06em;background-image:none}
@supports ((-webkit-background-clip:text) or (background-clip:text)){:where(.cf-whats-inside-6) .wi6-gold{background-image:none;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:var(--band-ink);-webkit-box-decoration-break:clone;box-decoration-break:clone}}
:where(.cf-whats-inside-6) .wi6-name{margin:clamp(18px,2vw,26px) auto 0;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight, 800);font-size:clamp(1.5rem,3.2vw,2.375rem);line-height:1.12;letter-spacing:var(--display-tracking, -.015em);color:var(--wi6-on);text-wrap:balance;text-transform:var(--display-case, none)}
:where(.cf-whats-inside-6) .wi6-lead{margin:10px auto 0;max-width:40ch;font-size:clamp(1.0625rem,1.7vw,1.3125rem);font-weight:500;line-height:1.5;color:var(--wi6-soft);text-wrap:pretty}
:where(.cf-whats-inside-6) .wi6-stage{margin:clamp(36px,5vw,64px) auto 0;max-width:1100px;animation:wi6-rise .5s ease .08s both}
:where(.cf-whats-inside-6) .wi6-bezel{position:relative;padding:clamp(5px,.8vw,9px);border-radius:var(--card-radius, var(--radius, calc(var(--wi6-r) + 10px)));background:linear-gradient(150deg,oklch(from var(--band) calc(l + 0.08) c h),oklch(from var(--band) calc(l - 0.10) c h),oklch(from var(--band) calc(l + 0.08) c h));box-shadow:var(--card-shadow,var(--shadow-md, 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22), 0 4px 10px -2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.2)));border-color:var(--card-border, oklch(from var(--ink) l c h / 0.12))}
:where(.cf-whats-inside-6) .wi6-canvas{position:relative;aspect-ratio:3/2}
:where(.cf-whats-inside-6) .wi6-frame{position:absolute;inset:0;overflow:hidden;border-radius:calc(var(--wi6-r) + 4px);background:var(--wi6-stage);box-shadow:inset 0 0 0 1px oklch(from var(--surface) min(0.24, calc(l - 0.12)) c h / .6)}
:where(.cf-whats-inside-6) .wi6-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
:where(.cf-whats-inside-6) .wi6-frame::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 1px 3px oklch(from var(--surface) min(0.24, calc(l - 0.12)) c h / 0.35)}
:where(.cf-whats-inside-6) .wi6-fbs{position:absolute;inset:0}
:where(.cf-whats-inside-6) .wi6-fb{position:absolute;width:30%;aspect-ratio:1;object-fit:cover;border-radius:12px;transform:translate(-50%,-50%);box-shadow:0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24)}
:where(.cf-whats-inside-6) .wi6-spot{position:absolute;left:50%;top:50%;width:300%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle closest-side,oklch(from var(--band) calc(l + 0.08) c h) 0,oklch(from var(--band) calc(l - 0.10) c h) 19%);opacity:0;pointer-events:none;transition:opacity .35s ease,left .55s cubic-bezier(.2,.8,.2,1),top .55s cubic-bezier(.2,.8,.2,1)}
:where(.cf-whats-inside-6) .wi6-canvas.has-active .wi6-spot{opacity:1}
:where(.cf-whats-inside-6) .wi6-pin{font:inherit;line-height:1.6;position:absolute;z-index:2;width:52px;height:52px;margin:0;padding:0;border:0;background:none;color:var(--button-2-ink, var(--ink));cursor:pointer;display:grid;place-items:center;border-radius:50%;transform:translate(-50%,-50%);-webkit-tap-highlight-color:transparent;animation:wi6-pop .5s cubic-bezier(.2,.9,.3,1.3) both}
:where(.cf-whats-inside-6) .wi6-disc{position:relative;display:grid;place-items:center;width:42px;height:42px;border-radius:var(--button-radius, 50%);font-family:var(--button-font, var(--font-display));font-weight:var(--button-weight, 900);font-size:18px;line-height:1;color:var(--button-2-ink, var(--ink));background:var(--button-2-bg, var(--card));box-shadow:var(--shadow-sm, 0 1px 1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.18), 0 1px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.14));transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease,opacity .25s ease;text-transform:var(--display-case, none)}
:where(.cf-whats-inside-6) .wi6-disc::after{content:'';position:absolute;inset:-3px;border-radius:50%;border:2px solid var(--wi6-g2);opacity:0;animation:wi6-ring 2.4s ease-out 1s 3}
:where(.cf-whats-inside-6) .wi6-pin:hover .wi6-disc,:where(.cf-whats-inside-6) .wi6-pin.is-on .wi6-disc{transform:scale(1.14);box-shadow:var(--shadow-sm, 0 1px 1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.18), 0 1px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.14))}
:where(.cf-whats-inside-6) .wi6-pin:active .wi6-disc{transform:scale(1.02)}
:where(.cf-whats-inside-6) .wi6-canvas.has-active .wi6-pin:not(.is-on) .wi6-disc{opacity:.62}
:where(.cf-whats-inside-6) .wi6-pin:focus-visible{outline:3px solid var(--card);outline-offset:2px}
:where(.cf-whats-inside-6) .wi6-tag{position:absolute;top:50%;display:none;white-space:nowrap;padding:9px 16px;border-radius:999px;background:var(--band);color:var(--band-ink);font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight, 800);font-size:15px;line-height:1.2;transform:translateY(-50%);box-shadow:inset 0 0 0 1px oklch(from var(--wi6-g2) l c h / 0.6),0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24);transition:background-color .25s ease,color .25s ease;text-transform:var(--display-case, none)}
:where(.cf-whats-inside-6) .wi6-pin--right .wi6-tag{left:calc(100% + 2px)}
:where(.cf-whats-inside-6) .wi6-pin--left .wi6-tag{right:calc(100% + 2px)}
:where(.cf-whats-inside-6) .wi6-pin.is-on .wi6-tag,:where(.cf-whats-inside-6) .wi6-pin:hover .wi6-tag{background:var(--band);color:var(--band-ink)}
@media (min-width:760px){:where(.cf-whats-inside-6) .wi6-tag{display:block}}
@media (max-width:560px){:where(.cf-whats-inside-6) .wi6-disc{width:36px;height:36px;font-size:16px;background:var(--button-2-bg, var(--card));color:var(--button-2-ink, var(--ink));border-radius:var(--button-radius, 50%);font-family:var(--button-font, var(--font-display));font-weight:var(--button-weight, 900)}}
:where(.cf-whats-inside-6) .wi6-hint{margin:14px 0 0;text-align:center;font-size:15px;font-weight:600;color:var(--wi6-soft);text-wrap:pretty}
:where(.cf-whats-inside-6) .wi6-legend{list-style:none;margin:clamp(28px,3.5vw,44px) auto 0;padding:0;max-width:1100px;display:grid;gap:10px;animation:wi6-rise .5s ease .16s both}
@media (min-width:900px){:where(.cf-whats-inside-6) .wi6-legend{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
:where(.cf-whats-inside-6) .wi6-item{display:grid;grid-template-columns:76px minmax(0,1fr);gap:18px;align-items:start;padding:18px 16px 18px 20px;border-radius:var(--card-radius, var(--radius, var(--wi6-r)));background:var(--wi6-band);box-shadow:var(--card-shadow,var(--shadow-md, 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22), 0 4px 10px -2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.2)));transition:background-color .25s ease,box-shadow .25s ease,transform .25s ease;border-color:var(--card-border, oklch(from var(--ink) l c h / 0.12))}
:where(.cf-whats-inside-6) .wi6-item.is-on{background:color-mix(in oklch,var(--wi6-band) 88%,var(--card));box-shadow:inset 0 0 0 1px oklch(from var(--wi6-g2) l c h / 0.72),0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24);transform:translateY(-3px)}
:where(.cf-whats-inside-6) .wi6-thumb{position:relative;width:76px;height:76px;border-radius:12px;background:transparent;box-shadow:none;filter:drop-shadow(0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24))}
:where(.cf-whats-inside-6) .wi6-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
:where(.cf-whats-inside-6) .wi6-thumb.is-empty{width:40px;height:40px;background:none;box-shadow:none}
:where(.cf-whats-inside-6) .wi6-num{position:absolute;top:-9px;left:-9px;display:grid;place-items:center;width:28px;height:28px;border-radius:var(--button-radius, 50%);font-family:var(--button-font, var(--font-display));font-weight:var(--button-weight, 900);font-size:13px;line-height:1;color:var(--button-2-ink, var(--ink));background:var(--button-2-bg, var(--card));box-shadow:inset 0 -2px 3px oklch(from var(--accent-fill,var(--accent)) l c h / 0.4),0 0 0 2px var(--wi6-band),0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24);text-transform:var(--display-case, none)}
:where(.cf-whats-inside-6) .wi6-thumb.is-empty .wi6-num{position:static;width:36px;height:36px;font-size:15px}
:where(.cf-whats-inside-6) .wi6-iname{margin:0;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight, 800);font-size:1.1875rem;line-height:1.2;color:var(--wi6-on);text-wrap:balance;text-transform:var(--display-case, none)}
:where(.cf-whats-inside-6) .wi6-idetail{margin:6px 0 0;font-size:16px;line-height:1.5;color:var(--wi6-soft);text-wrap:pretty}
:where(.cf-whats-inside-6) .wi6-ivalue{margin:8px 0 0;font-size:14px;font-weight:700;letter-spacing:.01em;color:var(--wi6-g2)}
:where(.cf-whats-inside-6) .wi6-close{max-width:600px;margin:clamp(36px,5vw,64px) auto 0;animation:wi6-rise .5s ease .24s both}
:where(.cf-whats-inside-6) .wi6-card{position:relative;background:var(--wi6-card);color:var(--wi6-ink);text-align:center;border-radius:var(--card-radius, var(--radius, calc(var(--wi6-r) + 4px)));padding:clamp(26px,4vw,40px) clamp(20px,4vw,40px) clamp(24px,3.5vw,34px);box-shadow:var(--card-shadow,var(--shadow-md, 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22), 0 4px 10px -2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.2)));border-color:var(--card-border, oklch(from var(--ink) l c h / 0.12))}
:where(.cf-whats-inside-6) .wi6-card::before{content:'';position:absolute;inset:7px;border-radius:calc(var(--wi6-r) - 2px);border:1px solid color-mix(in oklch,var(--wi6-g2) 32%,var(--card));pointer-events:none}
:where(.cf-whats-inside-6) .wi6-reg{margin:0;font-size:17px;font-weight:600;color:var(--wi6-muted)}
:where(.cf-whats-inside-6) .wi6-reg s{color:var(--danger);text-decoration-color:var(--danger);text-decoration-thickness:2px}
:where(.cf-whats-inside-6) .wi6-today{margin:10px 0 0;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight, 800);font-size:clamp(1.25rem,2.6vw,1.5rem);line-height:1.2;color:var(--wi6-ink);text-wrap:balance;text-transform:var(--display-case, none)}
:where(.cf-whats-inside-6) .wi6-price{margin:4px 0 0;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight, 900);font-size:clamp(3.25rem,9vw,4.75rem);line-height:1.02;letter-spacing:var(--display-tracking, -.03em);color:var(--wi6-ink);font-variant-numeric:tabular-nums;text-transform:var(--display-case, none)}
:where(.cf-whats-inside-6) .wi6-save{display:inline-flex;margin:14px 0 0;padding:6px 14px;border-radius:999px;background:var(--success-soft);color:var(--success);font-size:15px;font-weight:800;box-shadow:inset 0 0 0 1px var(--card)}
:where(.cf-whats-inside-6) .wi6-action{position:relative;margin-top:22px}
:where(.cf-whats-inside-6) .wi6-btn{text-decoration:none;text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));position:relative;overflow:hidden;display:grid;grid-template-columns:1.15em minmax(0,1fr) 1.15em;align-items:center;justify-items:center;gap:8px;width:100%;min-height:68px;padding:16px 14px;border:1px solid oklch(from var(--wi6-cta2) calc(l - 0.06) c h);border-radius:var(--button-radius, var(--radius, calc(var(--wi6-r) - 2px)));background:linear-gradient(180deg,var(--button-bg,var(--cta)),var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)));color:var(--button-ink, var(--cta-ink));font-family:var(--button-font, var(--font-display));font-weight:var(--button-weight, 800);font-size:clamp(1.125rem,3.9vw,1.375rem);line-height:1.2;letter-spacing:-.005em;text-align:center;cursor:pointer;box-shadow:var(--button-shadow, 0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24));transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;border-color:var(--button-bg-2, var(--cta-2));text-transform:var(--button-case, none)}
:where(.cf-whats-inside-6) .wi6-btn::after{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(105deg,transparent 35%,oklch(from var(--card) l c h / 0.28) 50%,transparent 65%);transform:translateX(-120%);transition:transform .7s ease;pointer-events:none}
:where(.cf-whats-inside-6) .wi6-btn-l{display:block;min-width:0;max-width:100%;text-wrap:balance;overflow-wrap:anywhere}
:where(.cf-whats-inside-6) .wi6-pad{display:block;width:1.15em;height:1.15em;transition:transform .2s ease}
:where(.cf-whats-inside-6) .wi6-btn:hover:not(:disabled),.cf-whats-inside-6.is-hover .wi6-btn:not(:disabled){transform:translateY(-2px);filter:none;box-shadow:var(--button-shadow, 0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24))}
:where(.cf-whats-inside-6) .wi6-btn:hover:not(:disabled)::after,.cf-whats-inside-6.is-hover .wi6-btn:not(:disabled)::after{transform:translateX(120%)}
:where(.cf-whats-inside-6) .wi6-btn:active:not(:disabled),.cf-whats-inside-6.is-press .wi6-btn:not(:disabled){transform:translateY(3px);filter:none;box-shadow:var(--button-shadow, 0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24))}
:where(.cf-whats-inside-6) .wi6-btn:focus-visible{outline:3px solid var(--accent,#0f5fc2);outline-offset:3px}
:where(.cf-whats-inside-6) .wi6-btn:disabled{text-shadow:none;cursor:not-allowed;opacity:1;filter:none;box-shadow:var(--button-shadow, 0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24));transform:none;background:var(--button-2-bg, var(--card));color:var(--button-2-ink, var(--ink));border-color:var(--button-2-border, oklch(from var(--ink) l c h / 0.22))}
:where(.cf-whats-inside-6) .wi6-btn[aria-busy=true]{opacity:1;filter:none;cursor:progress}
:where(.cf-whats-inside-6) .wi6-spin{display:block;width:1.15em;height:1.15em;animation:wi6-spin .9s linear infinite}
:where(.cf-whats-inside-6) .wi6-sub{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:8px;row-gap:4px;margin:18px 0 0;font-size:15px;font-weight:600;line-height:1.5;color:var(--wi6-muted);text-align:center;text-wrap:pretty}
:where(.cf-whats-inside-6) .wi6-sub-part{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;max-width:100%}
:where(.cf-whats-inside-6) .wi6-sub-part>span{min-width:0;overflow-wrap:anywhere;text-wrap:balance}
:where(.cf-whats-inside-6) .wi6-sub-part svg{display:block;width:16px;height:16px;flex:0 0 16px}
:where(.cf-whats-inside-6) .wi6-sub-separator{flex:0 0 auto}
:where(.cf-whats-inside-6) .wi6-link{display:flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;min-height:44px;margin:6px auto 0;padding:10px 4px;border:0;background:none;font:inherit;font-size:16px;font-weight:var(--button-weight, 700);line-height:1.5;text-align:center;color:var(--link, var(--accent));text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:oklch(from var(--link, var(--accent)) l c h / 0.45);text-underline-offset:0.18em;cursor:pointer;box-shadow:none;font-family:var(--button-font, var(--font-display));text-transform:var(--button-case, none)}
:where(.cf-whats-inside-6) .wi6-link>span{min-width:0;max-width:100%;text-wrap:balance;overflow-wrap:anywhere}
:where(.cf-whats-inside-6) .wi6-link:hover:not(:disabled),:where(.cf-whats-inside-6) .wi6-link:focus-visible{color:oklch(from var(--link, var(--accent)) calc(l - 0.08) c h);text-decoration-color:currentColor}
:where(.cf-whats-inside-6) .wi6-link:focus-visible{outline:2px solid var(--accent,#0f5fc2);outline-offset:2px;border-radius:4px}
:where(.cf-whats-inside-6) .wi6-link:disabled{opacity:.5;cursor:not-allowed}
:where(.cf-whats-inside-6) .wi6-err{display:flex;gap:8px;align-items:flex-start;justify-content:center;margin:12px 0 0;padding:10px 14px;border-radius:10px;background:var(--card);color:var(--ink);font-size:15px;font-weight:700;line-height:1.4;text-align:left;box-shadow:inset 0 0 0 1px var(--card)}
:where(.cf-whats-inside-6) .wi6-err svg{width:18px;height:18px;flex:0 0 auto;margin-top:1px}
:where(.cf-whats-inside-6) .wi6-err>span{min-width:0;overflow-wrap:anywhere;text-wrap:pretty}
:where(.cf-whats-inside-6) .wi6-trust{margin-top:18px;display:grid;gap:8px;justify-items:center}
:where(.cf-whats-inside-6) .wi6-guar{display:flex;align-items:flex-start;justify-content:center;gap:7px;max-width:100%;margin:0;font-size:16px;font-weight:700;line-height:1.5;color:var(--wi6-ink)}
:where(.cf-whats-inside-6) .wi6-guar svg{display:block;width:20px;height:20px;flex:0 0 20px;margin-top:2px;color:var(--success);background:var(--success-soft)}
:where(.cf-whats-inside-6) .wi6-guar>span{min-width:0;text-wrap:balance;overflow-wrap:anywhere}
:where(.cf-whats-inside-6) .wi6-note{margin:0;font-size:15px;line-height:1.5;color:var(--wi6-muted);text-wrap:pretty}
:where(.cf-whats-inside-6) .wi6-pay{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:6px 0 0;padding:0;list-style:none}
:where(.cf-whats-inside-6) .wi6-pay span{display:inline-flex}
:where(.cf-whats-inside-6) .wi6-pay svg{width:42px;height:auto;display:block}
@media (max-width:480px){:where(.cf-whats-inside-6) .wi6-btn{min-height:78px;padding:16px 12px;gap:6px;background:linear-gradient(180deg,var(--button-bg,var(--cta)),var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)));color:var(--button-ink, var(--cta-ink));border-color:var(--button-bg-2, var(--cta-2));box-shadow:var(--button-shadow, 0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24));font-family:var(--button-font, var(--font-display));text-transform:var(--button-case, none)}:where(.cf-whats-inside-6) .wi6-sub{flex-direction:column;gap:4px}:where(.cf-whats-inside-6) .wi6-sub-separator{display:none}:where(.cf-whats-inside-6) .wi6-link{max-width:min(100%,28ch);margin-top:8px;box-shadow:none;font-family:var(--button-font, var(--font-display));text-transform:var(--button-case, none)}:where(.cf-whats-inside-6) .wi6-trust{margin-top:16px}}
@keyframes wi6-pop{from{opacity:.85;transform:translate(-50%,-50%) scale(.7)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes wi6-ring{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(1.7)}}
@keyframes wi6-spin{to{transform:rotate(360deg)}}
@keyframes wi6-rise{from{opacity:.82;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.cf-whats-inside-6 *,.cf-whats-inside-6 *::before,.cf-whats-inside-6 *::after{animation:none !important;transition:none !important}:where(.cf-whats-inside-6) .wi6-btn::after{display:none}}
`
type WhatsInside6Copy = {
/** Uses {number} and {name}. */
pinAria: string
visa: string
mastercard: string
amex: string
discover: string
/** Uses {amount} and {percent}. */
savings: string
/** Uses {product}. */
inside: string
insideFallback: string
payments: string
}
const DEFAULT_COPY: WhatsInside6Copy = {
"pinAria": "{number}. {name}",
"visa": "Visa",
"mastercard": "Mastercard",
"amex": "American Express",
"discover": "Discover",
"savings": "You save {amount} ({percent}% off)",
"inside": "Inside {product}",
"insideFallback": "What’s inside",
"payments": "Accepted payment methods"
}
function copyText(template: string, values: Record<string, string | number>) {
return template.replace(/\{(\w+)\}/g, (match, key: string) => Object.hasOwn(values, key) ? String(values[key]) : match)
}
pieces/offer/whats-inside-6/specimen.tsx 49 lines
import __studioImage5ed28460 from '../assets/fda70b83113aae80.webp'
import * as React from 'react'
import WhatsInside6 from '../whats-inside-6'
import { slot } from '../../slots'
import defaults from '../../studio-defaults.json'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled' | 'error'
const SPOTS: { x: number; y: number; side: 'left' | 'right' }[] = [
{ x: 24, y: 52, side: 'right' },
{ x: 70, y: 30, side: 'left' },
{ x: 58, y: 74, side: 'right' },
]
export default function WhatsInside6Specimen({ state = 'default' }: { state?: SpecimenState }) {
const s = defaults.sample
const items = s.items.map((it, i) => ({
name: it.name,
detail: it.detail,
value: it.value,
itemImage: slot(`item-${i + 1}`, it.image),
imageAlt: it.imageAlt,
spot: SPOTS[i],
}))
return (
<div>
<WhatsInside6
state={state}
headline='Here’s everything inside'
emphasis='everything'
productName={s.name}
lead={`${s.headline}.`}
productImage={slot("product", __studioImage5ed28460)}
imageAlt={`${s.name} laid out: the guide, the workbook and the launch checklist`}
items={items}
regularPrice={s.regularPrice}
todayLabel={s.todayLabel}
price={s.price}
note={s.note}
label={s.label}
sublabel={s.sublabel}
guarantee={s.guarantee}
/>
</div>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalWhatsInside6 |
Partial<WhatsInside6Copy> |
|
headline OptionalWhatsInside6 |
string |
Default 'Here’s everything inside'
|
emphasis OptionalWhatsInside6 |
string |
Default 'everything'
|
productName OptionalWhatsInside6 |
string |
Default 'The Funnel Starter Kit'
|
lead OptionalWhatsInside6 |
string |
Default 'Build your first funnel with a clear plan.'
|
itemImage OptionalWhatsInside6 |
string |
|
productImage OptionalWhatsInside6 |
string |
Default legacyImage
|
image OptionalWhatsInside6 |
string |
|
imageAlt OptionalWhatsInside6 |
string |
Default 'The Funnel Starter Kit laid out: guide, workbook and checklist'
|
hint OptionalWhatsInside6 |
string | false |
Default 'Tap a number to spotlight each piece.'
|
items OptionalWhatsInside6 |
WhatsInside6Item[] |
Default DEFAULT_ITEMS
|
valueLabel OptionalWhatsInside6 |
string |
Default 'Value'
|
regularLabel OptionalWhatsInside6 |
string |
Default 'Regular price'
|
regularPrice OptionalWhatsInside6 |
string |
|
todayLabel OptionalWhatsInside6 |
string |
Default 'Get the complete kit for'
|
price OptionalWhatsInside6 |
string |
Default '$47'
|
showSavings OptionalWhatsInside6 |
boolean |
Default true
|
note OptionalWhatsInside6 |
string |
|
label OptionalWhatsInside6 |
string |
Default 'Yes! Give Me Access'
|
loadingLabel OptionalWhatsInside6 |
string |
Default 'Opening secure checkout…'
|
sublabel OptionalWhatsInside6 |
string |
Default ''
|
linkLabel OptionalWhatsInside6 |
string | false |
Default 'Click here to add the kit to your cart'
|
guarantee OptionalWhatsInside6 |
string |
Default '30-day money-back guarantee'
|
paymentMarks OptionalWhatsInside6 |
WhatsInside6PaymentMark[] |
Default ['visa', 'mastercard', 'amex', 'discover']
|
successMessage OptionalWhatsInside6 |
string |
|
errorMessage OptionalWhatsInside6 |
string |
Default 'We couldn’t open checkout. Please try again.'
|
href OptionalWhatsInside6 |
string |
|
onAction OptionalWhatsInside6 |
() => void | Promise<unknown> |
|
disabled OptionalWhatsInside6 |
boolean |
Default false
|
state OptionalWhatsInside6 |
WhatsInside6State |
Default 'default'
|
id OptionalWhatsInside6 |
string |
|
className OptionalWhatsInside6 |
string |
|
style OptionalWhatsInside6 |
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- 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.
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).
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
fda70b83113aae80.webp
image/webp · 75.4 KB