Vip Pass Upgrade 6
Adds a VIP kit to a saved workshop seat: the free seat beside the featured VIP offer, one price well and one action.
Use it in a prompt
Use offer/vip-pass-upgrade-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/vip-pass-upgrade-6.tsx. - Import it and pass your copy and images (Props tab):
import { VipPassUpgrade6 } from "@/components/funneldna/offer/vip-pass-upgrade-6"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/vip-pass-upgrade-6/component.tsx 457 lines
// Adds a VIP kit to a saved workshop seat: the free seat beside the featured VIP offer, one price well and one action.
'use client'
import * as React from 'react'
import { AlertCircle, Check, Loader2, ShieldCheck, Zap } from 'lucide-react'
export type VipPassUpgrade6Props = {
/** Supporting labels and plain-text templates; named placeholders are documented below. */
copy?: Partial<VipPassUpgrade6Copy>
headline?: string
headlineEmphasis?: string
headlineTail?: string
lead?: React.ReactNode
freeTitle?: string
eventName?: string
eventHeadline?: string
freeMeta?: string
freeAccess?: string
freeStatus?: string
/** Optional texture slot image, shown at low opacity behind the band. */
textureImage?: string
/** stampImage is the canonical slot image; freeStampImage is retained for compatibility. */
stampImage?: string
freeStampImage?: string
noteLabelMobile?: string
vipLabel?: string
vipTitle?: string
vipIntro?: string
vipStampImage?: string
items?: VipPassItem[]
totalValueLabel?: string
totalValue?: string
price?: string
priceLabel?: string
priceNote?: string
label?: string
loadingLabel?: string
reassurance?: string[]
declineLabel?: string
/** Deprecated: ignored. The builder wires what happens after the action. */
successTitle?: string
/** Deprecated: ignored. The builder wires what happens after the action. */
successText?: string
errorText?: string
/** Deprecated: ignored. The builder wires what happens after the action. */
declinedTitle?: string
/** Deprecated: ignored. The builder wires what happens after the action. */
declinedText?: string
/** Deprecated: ignored. The builder wires what happens after the action. */
reconsiderLabel?: string
/** productImage is the canonical slot image; kitImage is retained for compatibility. */
productImage?: string
kitImage?: string
kitImageAlt?: string
kitCaption?: string
disabled?: boolean
state?: VipPassState
onAction?: () => void | Promise<void>
/** Legacy alias for onAction; the canonical callback takes precedence. */
onUpgrade?: () => void | Promise<void>
onDecline?: () => void
className?: string
id?: string
}
export function VipPassUpgrade6({
headline = 'Your free seat is saved.',
headlineEmphasis = 'Add the kit.',
headlineTail = 'Build your funnel.',
lead = 'Upgrade to VIP and get the kit to plan your funnel, write your page copy and check every step before you launch.',
freeTitle = 'Free Ticket',
eventName = 'Funnel Starter Workshop',
eventHeadline = 'Map out your first funnel',
freeMeta = 'Free on-demand workshop',
freeAccess = 'Watch the workshop online.',
freeStatus = 'Seat saved',
textureImage,
freeStampImage: legacyFreeStampImage,
stampImage: freeStampImage = legacyFreeStampImage,
noteLabelMobile = 'Add this to your seat',
vipLabel = 'VIP All-Access Pass',
vipTitle = 'Workshop + Starter Kit',
vipIntro = 'Your free workshop, plus the tools to put it into action.',
vipStampImage,
items: suppliedItems = DEFAULT_ITEMS,
totalValueLabel = 'Total value',
totalValue,
price = '$47',
priceLabel = 'Your VIP upgrade today',
priceNote,
label = 'Yes! Upgrade My Pass',
loadingLabel = 'Upgrading your pass…',
reassurance = [],
declineLabel = 'No thanks, keep my free ticket',
errorText = 'We couldn’t upgrade your pass. Please try again.',
kitImage: legacyKitImage,
productImage: kitImage = legacyKitImage,
kitImageAlt = '',
kitCaption,
disabled = false,
state = 'default',
onUpgrade,
onAction = onUpgrade,
onDecline,
className,
id,
copy,
}: VipPassUpgrade6Props) {
const text = { ...DEFAULT_COPY, ...copy }
const items = suppliedItems.map(item => ({ ...item, image: item.itemImage === undefined ? item.image : item.itemImage }))
const [phase, setPhase] = React.useState<Phase>(() => phaseFor(state))
React.useEffect(() => {
setPhase(phaseFor(state))
}, [state])
const mounted = React.useRef(true)
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
// Reveal once when the band enters view; content is fully visible before and without it.
const rootRef = React.useRef<HTMLElement>(null)
const [inView, setInView] = React.useState(false)
React.useEffect(() => {
const el = rootRef.current
if (!el || typeof IntersectionObserver === 'undefined') return
const io = new IntersectionObserver((entries) => {
if (entries.some((entry) => entry.isIntersecting)) {
setInView(true)
io.disconnect()
}
}, { threshold: 0.12 })
io.observe(el)
return () => io.disconnect()
}, [])
const uid = React.useId()
const headingId = uid + '-h'
const vipId = uid + '-vip'
const isDisabled = disabled || state === 'disabled'
const force = state === 'hover' || state === 'active' ? state : undefined
const loading = phase === 'loading'
const save = savingsOf(totalValue, price)
const upgrade = async () => {
if (isDisabled || loading || !onAction) return
setPhase('loading')
try {
await onAction()
if (mounted.current) setPhase('idle')
} catch {
if (mounted.current) setPhase('error')
}
}
const decline = () => {
onDecline?.()
}
const status = phase === 'loading' ? loadingLabel : phase === 'error' ? errorText : ''
return (
<section
ref={rootRef}
id={id}
className={['cf-vip-pass-upgrade-6', className].filter(Boolean).join(' ')}
style={textureImage ? { '--vp6-texture': `url(${JSON.stringify(textureImage)})` } as React.CSSProperties : undefined}
aria-labelledby={headingId}
data-phase={phase}
data-inview={inView ? 'true' : undefined}
>
<style>{CSS}</style>
<div className='vp6-wrap'>
<header className='vp6-head'>
<h2 id={headingId} className='vp6-h'>
<span className='vp6-h-line'>{headline}</span>{' '}
<span className='vp6-h-line'>
<span className='vp6-hl'>{headlineEmphasis}</span> {headlineTail}
</span>
</h2>
{lead ? <p className='vp6-lead'>{lead}</p> : null}
</header>
<div className='vp6-board'>
<article className='vp6-card vp6-free vp6-rise' aria-label={copyText(text.freeAria, { label: freeTitle, event: eventName })}>
<p className='vp6-chip'>
<span className='vp6-badge' aria-hidden='true'><Check /></span>
<span>{freeTitle}</span>
</p>
<h3 className='vp6-event'>{eventName}</h3>
{eventHeadline ? <p className='vp6-event-hl'>{eventHeadline}</p> : null}
{freeMeta ? <p className='vp6-meta'>{freeMeta}</p> : null}
{freeStampImage ? (
<img className='vp6-free-stamp' src={freeStampImage} alt={freeStatus} width={384} height={384} loading='lazy' />
) : (
<p className='vp6-status'>
<span className='vp6-badge vp6-badge-lg' aria-hidden='true'><Check /></span>
<span>{freeStatus}</span>
</p>
)}
{freeAccess ? <p className='vp6-meta'>{freeAccess}</p> : null}
</article>
<div className='vp6-note-m' aria-hidden='true'>
<span>{noteLabelMobile}</span>
</div>
<article className='vp6-card vp6-vip vp6-rise' aria-labelledby={vipId}>
<div className='vp6-vhead'>
<h3 id={vipId} className='vp6-vtitle'>
<span className='vp6-sr'>{vipLabel}: </span>{vipTitle}
</h3>
{vipStampImage ? (
<img className='vp6-vstamp' src={vipStampImage} alt={vipLabel} width={384} height={384} />
) : (
<span className='vp6-vchip' aria-hidden='true'>{text.vipStamp}</span>
)}
{vipIntro ? <p className='vp6-vintro'>{vipIntro}</p> : null}
</div>
<ul className='vp6-items'>
{items.map((item) => (
<li key={item.name} className={item.image ? 'vp6-item' : 'vp6-item vp6-item-noimg'}>
{item.image ? (
<img className='vp6-thumb' src={item.image} alt={item.imageAlt ?? item.name} width={112} height={112} loading='lazy' />
) : null}
<div className='vp6-ibody'>
<p className='vp6-iname'><Check aria-hidden='true' /><span>{item.name}</span></p>
{item.detail ? <p className='vp6-idetail'>{item.detail}</p> : null}
</div>
{item.value ? <p className='vp6-ival'><b>{item.value}</b> {text.itemValue}</p> : null}
</li>
))}
</ul>
<div className='vp6-price'>
<div className='vp6-amt'>
{totalValue ? <p className='vp6-was'>{totalValueLabel} <s>{totalValue}</s></p> : null}
<p className='vp6-now'><span className='vp6-sr'>{priceLabel}: </span>{price}</p>
</div>
<div className='vp6-terms'>
<p className='vp6-tlabel'>{priceLabel}</p>
{priceNote ? <p className='vp6-tnote'>{priceNote}</p> : null}
{save ? <p className='vp6-save'>{copyText(text.savings, { amount: save })}</p> : null}
</div>
</div>
<button type='button' className='vp6-btn' onClick={upgrade} disabled={isDisabled} aria-busy={loading || undefined} data-force={force}>
{loading ? (
<><Loader2 className='vp6-spin' aria-hidden='true' /><span>{loadingLabel}</span></>
) : (
<span>{label}</span>
)}
</button>
{phase === 'error' ? (
<p className='vp6-error' role='alert'><AlertCircle aria-hidden='true' /><span>{errorText}</span></p>
) : null}
{reassurance.length ? (
<ul className='vp6-assure'>
{reassurance.map((line) => {
const { Icon, tone } = assure(line)
return <li key={line}><Icon className={tone} aria-hidden='true' />{line}</li>
})}
</ul>
) : null}
{declineLabel ? (
<button type='button' className='vp6-decline' onClick={decline} disabled={loading}>{declineLabel}</button>
) : null}
</article>
{kitImage ? (
<figure className='vp6-kit vp6-rise'>
<img src={kitImage} alt={kitImageAlt} width={1024} height={768} loading='lazy' />
{kitCaption ? <figcaption>{kitCaption}</figcaption> : null}
</figure>
) : null}
</div>
</div>
<p className='vp6-sr' aria-live='polite'>{status}</p>
</section>
)
}
export default VipPassUpgrade6
export type VipPassItem = {
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
}
export type VipPassState = 'default' | 'hover' | 'active' | 'disabled' | 'error' | 'success'
type Phase = 'idle' | 'loading' | 'error'
const DEFAULT_ITEMS: VipPassItem[] = [
{ 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.' },
]
function amount(v?: string): number | null {
if (!v) return null
const n = Number(v.replace(/[^0-9.]/g, ''))
return Number.isFinite(n) && n > 0 ? n : null
}
function savingsOf(total?: string, price?: string): string | null {
const t = amount(total)
const p = amount(price)
if (t === null || p === null || t <= p || !price) return null
const symbol = price.trim().match(/^[^0-9]*/)?.[0] || '$'
const d = t - p
return symbol + (Number.isInteger(d) ? String(d) : d.toFixed(2))
}
function phaseFor(state?: VipPassState): Phase {
return state === 'error' ? 'error' : 'idle'
}
function assure(line: string): { Icon: typeof Check; tone: string } {
if (/guarantee|refund|money/i.test(line)) return { Icon: ShieldCheck, tone: 'vp6-ic-shield' }
if (/instant|access|download/i.test(line)) return { Icon: Zap, tone: 'vp6-ic-zap' }
return { Icon: Check, tone: 'vp6-ic-shield' }
}
// House recipes only: flat band, token cards, grey well, Belcher button. White glyph in solid status badges is the documented exception.
// The quiet decline link reads the button radius so its focus ring matches the button shape; its colours stay --muted by design.
const CSS = `
.cf-vip-pass-upgrade-6{--vp6-sh:var(--shadow,oklch(0.22 0.03 260));--vp6-line:oklch(from var(--ink) l c h / 0.12);--vp6-well:color-mix(in oklch,var(--ink) 4%,var(--card));position:relative;isolation:isolate;overflow:hidden;background-color:var(--surface);color:var(--ink);font-family:var(--font-body,system-ui,sans-serif);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-vip-pass-upgrade-6::before{content:"";position:absolute;inset:0;z-index:-1;background-image:var(--vp6-texture,none);background-size:cover;background-position:center;opacity:.07;pointer-events:none}
.cf-vip-pass-upgrade-6 *,.cf-vip-pass-upgrade-6 *::before,.cf-vip-pass-upgrade-6 *::after{box-sizing:border-box}
.cf-vip-pass-upgrade-6 :where(h2,h3,p,ul,figure){margin:0}
.cf-vip-pass-upgrade-6 :where(ul){padding:0;list-style:none}
.cf-vip-pass-upgrade-6 :where(img){display:block;max-width:100%}
.cf-vip-pass-upgrade-6 :where(button):focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / 0.55);outline-offset:3px}
:where(.cf-vip-pass-upgrade-6) .vp6-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:where(.cf-vip-pass-upgrade-6) .vp6-wrap{width:min(100%,70rem);margin-inline:auto}
:where(.cf-vip-pass-upgrade-6) .vp6-head{text-align:center}
:where(.cf-vip-pass-upgrade-6) .vp6-h{color:var(--ink);font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance}
:where(.cf-vip-pass-upgrade-6) .vp6-h-line{display:block}
:where(.cf-vip-pass-upgrade-6) .vp6-hl{background-image:linear-gradient(transparent 30%,var(--marker,#fae37c) 30%,var(--marker,#fae37c) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .12em;margin-inline:-.04em;border-radius:.18em}
:where(.cf-vip-pass-upgrade-6) .vp6-lead{max-width:40rem;margin:clamp(16px,1.6vw,24px) auto 0;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty}
:where(.cf-vip-pass-upgrade-6) .vp6-lead strong{font-weight:800}
:where(.cf-vip-pass-upgrade-6) .vp6-board{display:grid;grid-template-columns:minmax(0,20rem) minmax(0,1fr);grid-template-areas:"free vip" "kit vip";grid-template-rows:auto 1fr;column-gap:clamp(32px,5vw,72px);row-gap:32px;align-items:start;margin-top:clamp(40px,5vw,64px)}
:where(.cf-vip-pass-upgrade-6) .vp6-card{position:relative;background:var(--card);border:1px solid var(--card-border,var(--vp6-line));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--vp6-sh) l c h / 0.22),0 4px 10px -2px oklch(from var(--vp6-sh) l c h / 0.2)));padding:clamp(20px,3vw,32px)}
:where(.cf-vip-pass-upgrade-6) .vp6-free{grid-area:free;text-align:center}
:where(.cf-vip-pass-upgrade-6) .vp6-chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:4px 14px 4px 5px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--ink);font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase}
:where(.cf-vip-pass-upgrade-6) .vp6-badge{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;background:var(--success);color:var(--badge-ink,#fff)}
:where(.cf-vip-pass-upgrade-6) .vp6-badge svg{width:14px;height:14px;stroke-width:3}
:where(.cf-vip-pass-upgrade-6) .vp6-badge-lg{width:32px;height:32px}
:where(.cf-vip-pass-upgrade-6) .vp6-badge-lg svg{width:18px;height:18px}
:where(.cf-vip-pass-upgrade-6) .vp6-event{margin-top:16px;color:var(--ink);font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-transform:var(--display-case,none);text-wrap:balance}
:where(.cf-vip-pass-upgrade-6) .vp6-event-hl{margin-top:8px;font-weight:500;line-height:1.4;text-wrap:balance}
:where(.cf-vip-pass-upgrade-6) .vp6-meta{margin-top:12px;color:var(--muted);font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty}
:where(.cf-vip-pass-upgrade-6) .vp6-free-stamp{width:min(100%,11rem);height:auto;margin:16px auto 4px}
:where(.cf-vip-pass-upgrade-6) .vp6-status{display:inline-flex;align-items:center;gap:10px;margin-top:24px;color:var(--success);font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-transform:var(--display-case,none)}
:where(.cf-vip-pass-upgrade-6) .vp6-note-m{display:none}
:where(.cf-vip-pass-upgrade-6) .vp6-vip{grid-area:vip;padding:clamp(20px,3.4vw,40px);border-color:oklch(from var(--accent-fill,var(--accent)) l c h / 0.35);box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--vp6-sh) l c h / 0.22),0 12px 24px -8px oklch(from var(--vp6-sh) l c h / 0.32))}
:where(.cf-vip-pass-upgrade-6) .vp6-vhead{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;align-items:start}
:where(.cf-vip-pass-upgrade-6) .vp6-vtitle{color:var(--ink);font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance}
:where(.cf-vip-pass-upgrade-6) .vp6-vstamp{width:clamp(5.5rem,9vw,8.5rem);height:auto;margin:-12px -8px -20px 0}
:where(.cf-vip-pass-upgrade-6) .vp6-vchip{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase}
:where(.cf-vip-pass-upgrade-6) .vp6-vintro{grid-column:1/-1;font-weight:500;line-height:1.45;text-wrap:pretty}
:where(.cf-vip-pass-upgrade-6) .vp6-items{display:grid;gap:16px;margin-top:24px}
:where(.cf-vip-pass-upgrade-6) .vp6-item{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:4px 16px;align-items:start}
:where(.cf-vip-pass-upgrade-6) .vp6-item-noimg{grid-template-columns:minmax(0,1fr) auto}
:where(.cf-vip-pass-upgrade-6) .vp6-ibody{min-width:0}
:where(.cf-vip-pass-upgrade-6) .vp6-thumb{width:56px;height:56px;object-fit:cover;border-radius:8px}
:where(.cf-vip-pass-upgrade-6) .vp6-iname{display:flex;align-items:flex-start;gap:8px;color:var(--ink);font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);line-height:1.3;text-transform:var(--display-case,none);text-wrap:pretty}
:where(.cf-vip-pass-upgrade-6) .vp6-iname svg{flex:none;width:18px;height:18px;margin-top:.15em;color:var(--success);stroke-width:2.5}
:where(.cf-vip-pass-upgrade-6) .vp6-idetail{margin-top:4px;color:var(--muted);font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty}
:where(.cf-vip-pass-upgrade-6) .vp6-ival{padding-top:2px;color:var(--muted);font-size:.9375rem;font-weight:600;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums}
:where(.cf-vip-pass-upgrade-6) .vp6-ival b{color:var(--ink);font-weight:800}
:where(.cf-vip-pass-upgrade-6) .vp6-price{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;margin-top:32px;padding:20px 24px;border-radius:10px;background:var(--vp6-well)}
:where(.cf-vip-pass-upgrade-6) .vp6-amt{display:grid;gap:8px}
:where(.cf-vip-pass-upgrade-6) .vp6-was{color:var(--muted);font-size:.9375rem;font-weight:600;line-height:1.4}
:where(.cf-vip-pass-upgrade-6) .vp6-was s{color:var(--danger);text-decoration-color:var(--danger);text-decoration-thickness:2px}
:where(.cf-vip-pass-upgrade-6) .vp6-now{color:var(--ink);font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:lining-nums tabular-nums;text-transform:var(--display-case,none)}
:where(.cf-vip-pass-upgrade-6) .vp6-terms{flex:1 1 14rem;min-width:0;display:grid;gap:4px}
:where(.cf-vip-pass-upgrade-6) .vp6-tlabel{color:var(--ink);font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-transform:var(--display-case,none);text-wrap:balance}
:where(.cf-vip-pass-upgrade-6) .vp6-tnote{color:var(--muted);font-size:.9375rem;font-weight:500;line-height:1.4}
:where(.cf-vip-pass-upgrade-6) .vp6-save{margin-top:8px;color:var(--success);font-size:.9375rem;font-weight:800;line-height:1.4}
:where(.cf-vip-pass-upgrade-6) .vp6-btn{--vp6-b:var(--button-bg,var(--cta));--vp6-b2:var(--button-bg-2,var(--cta-2,var(--button-bg,var(--cta))));position:relative;display:flex;width:100%;min-height:72px;align-items:center;justify-content:center;gap:10px;margin-top:24px;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(180deg,oklch(from var(--vp6-b) calc(l + 0.04) c h),oklch(from var(--vp6-b2) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display,inherit));font-weight:var(--button-weight,800);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-wrap:balance;text-transform:var(--button-case,none);text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--vp6-b) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--vp6-b) calc(l - 0.16) c h),0 1px 2px oklch(from var(--vp6-sh) l c h / 0.3),0 8px 16px -6px oklch(from var(--vp6-sh) l c h / 0.45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
:where(.cf-vip-pass-upgrade-6) .vp6-btn svg{flex:none;width:20px;height:20px}
:where(.cf-vip-pass-upgrade-6) .vp6-btn:hover:not(:disabled),:where(.cf-vip-pass-upgrade-6) .vp6-btn[data-force=hover]:not(:disabled){background:linear-gradient(180deg,oklch(from var(--vp6-b) calc(l - 0.01) c h),oklch(from var(--vp6-b2) calc(l - 0.07) c h));transform:translateY(-1px);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--vp6-b) calc(l + 0.1) c h / 0.6),inset 0 -3px 0 oklch(from var(--vp6-b) calc(l - 0.2) c h),0 1px 2px oklch(from var(--vp6-sh) l c h / 0.32),0 12px 20px -6px oklch(from var(--vp6-sh) l c h / 0.5))}
:where(.cf-vip-pass-upgrade-6) .vp6-btn:active:not(:disabled),:where(.cf-vip-pass-upgrade-6) .vp6-btn[data-force=active]:not(:disabled){background:linear-gradient(180deg,oklch(from var(--vp6-b) calc(l - 0.04) c h),oklch(from var(--vp6-b2) calc(l - 0.09) c h));transform:translateY(1px);box-shadow:var(--button-shadow,inset 0 2px 3px oklch(from var(--vp6-b) calc(l - 0.22) c h / 0.55),inset 0 -2px 0 oklch(from var(--vp6-b) calc(l - 0.2) c h),0 1px 2px oklch(from var(--vp6-sh) l c h / 0.3))}
:where(.cf-vip-pass-upgrade-6) .vp6-btn:disabled{cursor:not-allowed;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;transform:none;box-shadow:none}
:where(.cf-vip-pass-upgrade-6) .vp6-btn[aria-busy=true]{cursor:progress}
:where(.cf-vip-pass-upgrade-6) .vp6-spin{animation:vp6-spin .8s linear infinite}
:where(.cf-vip-pass-upgrade-6) .vp6-error{display:flex;align-items:flex-start;gap:8px;margin-top:16px;padding:12px 16px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:.9375rem;font-weight:600;line-height:1.4}
:where(.cf-vip-pass-upgrade-6) .vp6-error svg{flex:none;width:18px;height:18px;margin-top:1px;stroke-width:2.5}
:where(.cf-vip-pass-upgrade-6) .vp6-assure{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px;margin-top:16px;color:var(--ink);font-size:.9375rem;font-weight:500;line-height:1.4;text-align:center}
:where(.cf-vip-pass-upgrade-6) .vp6-assure svg{display:inline-block;width:18px;height:18px;vertical-align:-.2em;margin-inline-end:.4em;stroke-width:2.5}
:where(.cf-vip-pass-upgrade-6) .vp6-ic-zap{color:var(--accent)}
:where(.cf-vip-pass-upgrade-6) .vp6-ic-shield{color:var(--success)}
:where(.cf-vip-pass-upgrade-6) .vp6-decline{display:block;min-height:44px;margin:8px auto 0;padding:10px 12px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:none;color:var(--muted);font-family:var(--font-body,inherit);font-size:.9375rem;font-weight:500;line-height:1.4;text-align:center;text-transform:none;text-decoration:underline;text-decoration-color:oklch(from var(--muted) l c h / 0.5);text-decoration-thickness:1px;text-underline-offset:.2em;cursor:pointer;transition:color .16s ease,text-decoration-color .16s ease}
:where(.cf-vip-pass-upgrade-6) .vp6-decline:hover:not(:disabled){color:var(--ink);text-decoration-color:currentColor}
:where(.cf-vip-pass-upgrade-6) .vp6-decline:disabled{cursor:not-allowed}
:where(.cf-vip-pass-upgrade-6) .vp6-kit{grid-area:kit;display:grid;gap:12px}
:where(.cf-vip-pass-upgrade-6) .vp6-kit img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center;border-radius:12px}
:where(.cf-vip-pass-upgrade-6) .vp6-kit figcaption{color:var(--ink);font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.25;text-align:center;text-transform:var(--display-case,none);text-wrap:balance}
:where(.cf-vip-pass-upgrade-6)[data-inview=true] .vp6-rise{animation:vp6-rise .45s cubic-bezier(.2,.7,.2,1) both}
:where(.cf-vip-pass-upgrade-6)[data-inview=true] .vp6-vip{animation-delay:.07s}
:where(.cf-vip-pass-upgrade-6)[data-inview=true] .vp6-kit{animation-delay:.14s}
@keyframes vp6-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes vp6-spin{to{transform:rotate(360deg)}}
@media (max-width:60rem){
:where(.cf-vip-pass-upgrade-6) .vp6-board{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"free" "notem" "vip" "kit";max-width:36rem;margin-inline:auto;row-gap:24px}
:where(.cf-vip-pass-upgrade-6) .vp6-note-m{grid-area:notem;display:block;padding-top:8px;color:var(--ink);font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-align:center;text-transform:var(--display-case,none);text-wrap:balance}
:where(.cf-vip-pass-upgrade-6) .vp6-kit{margin-top:8px}
}
@media (max-width:30rem){
:where(.cf-vip-pass-upgrade-6) .vp6-card,:where(.cf-vip-pass-upgrade-6) .vp6-vip{padding:24px 20px}
:where(.cf-vip-pass-upgrade-6) .vp6-vstamp{width:5rem;margin:-6px -6px -10px 0}
:where(.cf-vip-pass-upgrade-6) .vp6-item{grid-template-columns:48px minmax(0,1fr);gap:4px 12px}
:where(.cf-vip-pass-upgrade-6) .vp6-item-noimg{grid-template-columns:minmax(0,1fr)}
:where(.cf-vip-pass-upgrade-6) .vp6-thumb{width:48px;height:48px}
:where(.cf-vip-pass-upgrade-6) .vp6-ival{grid-column:2;padding-top:0}
:where(.cf-vip-pass-upgrade-6) .vp6-item-noimg .vp6-ival{grid-column:1}
:where(.cf-vip-pass-upgrade-6) .vp6-price{flex-direction:column;align-items:flex-start;gap:12px;padding:16px 20px}
:where(.cf-vip-pass-upgrade-6) .vp6-terms{flex:none;width:100%}
:where(.cf-vip-pass-upgrade-6) .vp6-btn{min-height:64px;padding-inline:20px}
}
@media (prefers-reduced-motion:reduce){
.cf-vip-pass-upgrade-6 *,.cf-vip-pass-upgrade-6 *::before,.cf-vip-pass-upgrade-6 *::after{animation:none!important;transition:none!important}
:where(.cf-vip-pass-upgrade-6) .vp6-btn:hover:not(:disabled),:where(.cf-vip-pass-upgrade-6) .vp6-btn[data-force=hover]:not(:disabled),:where(.cf-vip-pass-upgrade-6) .vp6-btn:active:not(:disabled),:where(.cf-vip-pass-upgrade-6) .vp6-btn[data-force=active]:not(:disabled){transform:none}
}
@media (forced-colors:active){:where(.cf-vip-pass-upgrade-6) .vp6-card,:where(.cf-vip-pass-upgrade-6) .vp6-btn,:where(.cf-vip-pass-upgrade-6) .vp6-price{border:2px solid ButtonText}}
`
type VipPassUpgrade6Copy = {
itemValue: string
/** Uses {label} and {event}. */
freeAria: string
vipStamp: string
/** Uses {amount}. */
savings: string
}
const DEFAULT_COPY: VipPassUpgrade6Copy = {
itemValue: 'value',
freeAria: '{label}: {event}',
vipStamp: 'VIP',
savings: 'You save {amount}',
}
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/vip-pass-upgrade-6/specimen.tsx 54 lines
import __studioImagec41b2d09 from "../assets/60927a2fb9c03f68.webp";
import __studioImage9e8ee77b from "../assets/b37fca9310d11d3f.webp";
import __studioImage41563420 from "../assets/4f61d485c5c0c902.webp";
import * as React from 'react'
import { VipPassUpgrade6, type VipPassState } from '../vip-pass-upgrade-6'
import { slot } from '../../slots'
import defaults from '../../studio-defaults.json'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function VipPassUpgradeSpecimen({ state = 'default' }: { state?: VipPassState }) {
const s = defaults.sample
const r = s.registration
return (
<VipPassUpgrade6
textureImage={slot('texture', '')}
state={state}
headline='Your free seat is saved.'
headlineEmphasis='Add the kit.'
headlineTail='Build your funnel.'
lead={
<>
Upgrade to VIP and get <strong>{s.name}</strong> to plan your funnel, write your page copy and check every step before you launch.
</>
}
freeTitle='Free Ticket'
eventName={r.name}
eventHeadline={r.headline}
freeMeta={r.eyebrow}
freeAccess='Watch the workshop online.'
freeStatus='Seat saved'
stampImage={slot('stamp', __studioImagec41b2d09)}
vipLabel='VIP All-Access Pass'
vipTitle='Workshop + Starter Kit'
vipIntro='Your free workshop, plus the tools to put it into action.'
vipStampImage={slot('stamp', __studioImage9e8ee77b)}
items={s.items.map((item, i) => ({ ...item, itemImage: slot(`item-${i + 1}`, item.image) }))}
totalValueLabel='Total value'
totalValue={s.regularPrice}
price={s.price}
priceLabel='Your VIP upgrade today'
priceNote={s.note}
label='Yes! Upgrade My Pass'
loadingLabel='Upgrading your pass…'
reassurance={s.reassurance}
declineLabel='No thanks, keep my free ticket'
productImage={slot('product', __studioImage41563420)}
kitImageAlt={s.name + ': planning guide, copy workbook and launch checklist'}
kitCaption='Unlocks instantly with your VIP pass'
/>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalVipPassUpgrade6 |
Partial<VipPassUpgrade6Copy> |
|
headline OptionalVipPassUpgrade6 |
string |
Default 'Your free seat is saved.'
|
headlineEmphasis OptionalVipPassUpgrade6 |
string |
Default 'Add the kit.'
|
headlineTail OptionalVipPassUpgrade6 |
string |
Default 'Build your funnel.'
|
lead OptionalVipPassUpgrade6 |
React.ReactNode |
Default 'Upgrade to VIP and get the kit to plan your funnel, write your page copy and check every step before you launch.'
|
freeTitle OptionalVipPassUpgrade6 |
string |
Default 'Free Ticket'
|
eventName OptionalVipPassUpgrade6 |
string |
Default 'Funnel Starter Workshop'
|
eventHeadline OptionalVipPassUpgrade6 |
string |
Default 'Map out your first funnel'
|
freeMeta OptionalVipPassUpgrade6 |
string |
Default 'Free on-demand workshop'
|
freeAccess OptionalVipPassUpgrade6 |
string |
Default 'Watch the workshop online.'
|
freeStatus OptionalVipPassUpgrade6 |
string |
Default 'Seat saved'
|
textureImage OptionalVipPassUpgrade6 |
string |
|
stampImage OptionalVipPassUpgrade6 |
string |
Default legacyFreeStampImage
|
freeStampImage OptionalVipPassUpgrade6 |
string |
|
noteLabelMobile OptionalVipPassUpgrade6 |
string |
Default 'Add this to your seat'
|
vipLabel OptionalVipPassUpgrade6 |
string |
Default 'VIP All-Access Pass'
|
vipTitle OptionalVipPassUpgrade6 |
string |
Default 'Workshop + Starter Kit'
|
vipIntro OptionalVipPassUpgrade6 |
string |
Default 'Your free workshop, plus the tools to put it into action.'
|
vipStampImage OptionalVipPassUpgrade6 |
string |
|
items OptionalVipPassUpgrade6 |
VipPassItem[] |
Default DEFAULT_ITEMS
|
totalValueLabel OptionalVipPassUpgrade6 |
string |
Default 'Total value'
|
totalValue OptionalVipPassUpgrade6 |
string |
|
price OptionalVipPassUpgrade6 |
string |
Default '$47'
|
priceLabel OptionalVipPassUpgrade6 |
string |
Default 'Your VIP upgrade today'
|
priceNote OptionalVipPassUpgrade6 |
string |
|
label OptionalVipPassUpgrade6 |
string |
Default 'Yes! Upgrade My Pass'
|
loadingLabel OptionalVipPassUpgrade6 |
string |
Default 'Upgrading your pass…'
|
reassurance OptionalVipPassUpgrade6 |
string[] |
Default []
|
declineLabel OptionalVipPassUpgrade6 |
string |
Default 'No thanks, keep my free ticket'
|
successTitle OptionalVipPassUpgrade6 |
string |
|
successText OptionalVipPassUpgrade6 |
string |
|
errorText OptionalVipPassUpgrade6 |
string |
Default 'We couldn’t upgrade your pass. Please try again.'
|
declinedTitle OptionalVipPassUpgrade6 |
string |
|
declinedText OptionalVipPassUpgrade6 |
string |
|
reconsiderLabel OptionalVipPassUpgrade6 |
string |
|
productImage OptionalVipPassUpgrade6 |
string |
Default legacyKitImage
|
kitImage OptionalVipPassUpgrade6 |
string |
|
kitImageAlt OptionalVipPassUpgrade6 |
string |
Default ''
|
kitCaption OptionalVipPassUpgrade6 |
string |
|
disabled OptionalVipPassUpgrade6 |
boolean |
Default false
|
state OptionalVipPassUpgrade6 |
VipPassState |
Default 'default'
|
onAction OptionalVipPassUpgrade6 |
() => void | Promise<void> |
Default onUpgrade
|
onUpgrade OptionalVipPassUpgrade6 |
() => void | Promise<void> |
|
onDecline OptionalVipPassUpgrade6 |
() => void |
|
className OptionalVipPassUpgrade6 |
string |
|
id OptionalVipPassUpgrade6 |
string |
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-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.
--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).
stamp- A stamp or badge graphic, on a transparent background.
texture- A subtle background texture.
-
4f61d485c5c0c902.webp
image/webp · 121 KB
-
60927a2fb9c03f68.webp
image/webp · 138 KB
-
b37fca9310d11d3f.webp
image/webp · 203 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB