Vip Pass Upgrade 4
The host’s backstage invitation: a presenter on a lit stage explains why VIP exists, then an offer card that breaks the stage edge reveals the three VIP additions and carries one upgrade action with the price on the button.
Use it in a prompt
Use offer/vip-pass-upgrade-4 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-4.tsx. - Import it and pass your copy and images (Props tab):
import { VipPassUpgrade4 } from "@/components/funneldna/offer/vip-pass-upgrade-4"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/vip-pass-upgrade-4/component.tsx 465 lines
// layout: photo-overlap-card
// The host’s backstage invitation: a presenter on a lit stage explains why VIP exists, then an offer card that breaks the stage edge reveals the three VIP additions and carries one upgrade action with the price on the button.
'use client'
import * as React from 'react'
import { AlertCircle, Check, Loader2 } from 'lucide-react'
import { Backdrop, FX_HOST, Spot } from '../fx/fx'
import stageBackdrop from '../fx/backdrops/stage'
import starSpot from '../fx/spots/star'
import communitySpot from '../fx/spots/community'
import giftSpot from '../fx/spots/gift'
export type VipPassUpgrade4Item = {
title: string
detail?: string
/** An fx Spot illustration (imported asset URL). Without one, a solid tick badge is shown. */
spot?: string
}
export type VipPassUpgrade4State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type VipPassUpgrade4Copy = {
/** Lead-in before the numbered reasons. '{count}' (a word from countWords) and '{price}' are replaced. */
reasonsLead: string
/** Count words used by reasonsLead: index 0 = one reason. */
countWords: string[]
/** Second line inside the button. '{price}' is replaced. */
buttonSub: string
/** Commitment line above the button. '{guarantee}' is replaced. */
commit: string
/** Inline error when the commitment box is unticked. */
commitError: string
/** Alt text for the presenter image. '{name}' is replaced. */
presenterAlt: string
/** Accessible name of the additions list. */
itemsAria: string
}
export type VipPassUpgrade4Props = {
/** Supporting labels and plain-text templates; placeholders are documented on the copy type. */
copy?: Partial<VipPassUpgrade4Copy>
/** The host’s opening line (the section headline). */
headline?: string
/** The host’s reason-why, in their own voice. */
speech?: React.ReactNode
/** Numbered inline reasons for today’s price. */
reasons?: string[]
/** Overrides the generated reasons lead-in. */
reasonsLead?: string
presenterName?: string
presenterRole?: string
/** presenter-cutout slot: the host on a transparent background. */
presenterImage?: string
presenterImageAlt?: string
/** Stage photo behind the host; the fx Backdrop also reads the page’s scene slot. */
stageImage?: string
itemsHeading?: string
items?: VipPassUpgrade4Item[]
/** product slot: the VIP lanyard on a transparent background (hidden on phones). */
productImage?: string
productImageAlt?: string
productCaption?: string
/** Shown only inside the button’s second line. */
price?: string
/** Feeds the commitment line; the line shows only when a guarantee or commitLabel is supplied. */
guarantee?: string
commitLabel?: string
/** Whether the commitment box starts ticked. */
commitDefaultChecked?: boolean
label?: string
/** Overrides the generated button second line. */
sublabel?: string
loadingLabel?: string
errorText?: string
declineLabel?: string
disabled?: boolean
/** Studio / preview state. 'error' shows the inline commitment error. */
state?: VipPassUpgrade4State
/** Called on upgrade. While its promise is pending the button shows loadingLabel; a rejection shows errorText. */
onAction?: () => void | Promise<void>
onDecline?: () => void
className?: string
id?: string
}
const DEFAULT_COPY: VipPassUpgrade4Copy = {
reasonsLead: '{count} reasons VIP is {price} today:',
countWords: ['One', 'Two', 'Three', 'Four', 'Five'],
buttonSub: 'Add VIP for {price} · One payment',
commit: 'I understand I’m covered by the {guarantee}.',
commitError: 'Tick the box to confirm, then upgrade your ticket.',
presenterAlt: '{name}, your host',
itemsAria: 'What VIP adds',
}
const DEFAULT_ITEMS: VipPassUpgrade4Item[] = [
{ title: 'A reserved seat up front', detail: 'Sit in the VIP rows for every main-stage talk.', spot: starSpot },
{ title: 'The backstage speaker hour', detail: 'Meet the speakers after the talks and ask about your own business.', spot: communitySpot },
{ title: 'The Funnel Starter Kit', detail: 'The planning guide, copy workbook and launch checklist to take home.', spot: giftSpot },
]
type Phase = 'idle' | 'loading' | 'failed'
export function VipPassUpgrade4({
copy,
headline = 'I saved you a seat. Now come backstage with me.',
speech = 'Your free ticket gets you into every talk on the main stage. VIP is for the part I can’t fit up there: the speakers up close, and real time for your questions.',
reasons = ['You’re already registered, so VIP adds straight to your ticket.', 'It’s one payment, with nothing to renew.', 'You keep the kit for good, long after the event ends.'],
reasonsLead,
presenterName = 'Dana Whitfield',
presenterRole = 'Your host',
presenterImage,
presenterImageAlt,
stageImage = stageBackdrop,
itemsHeading = 'Three upgrades your free ticket doesn’t include',
items = DEFAULT_ITEMS,
productImage,
productImageAlt = 'VIP lanyard pass',
productCaption = 'Your VIP pass',
price = '$47',
guarantee,
commitLabel,
commitDefaultChecked = true,
label = 'Yes! Make My Ticket VIP',
sublabel,
loadingLabel = 'Upgrading your ticket…',
errorText = 'We couldn’t upgrade your ticket. Please try again.',
declineLabel = 'No thanks, keep my free seat',
disabled = false,
state = 'default',
onAction,
onDecline,
className,
id,
}: VipPassUpgrade4Props) {
const text = { ...DEFAULT_COPY, ...copy }
const isDisabled = disabled || state === 'disabled'
const force = !isDisabled && (state === 'hover' || state === 'active') ? state : undefined
const [phase, setPhase] = React.useState<Phase>('idle')
const [checked, setChecked] = React.useState(state === 'error' ? false : commitDefaultChecked)
const [fieldError, setFieldError] = React.useState(state === 'error')
React.useEffect(() => {
setPhase('idle')
if (state === 'error') {
setChecked(false)
setFieldError(true)
} else {
setChecked(commitDefaultChecked)
setFieldError(false)
}
}, [state, commitDefaultChecked])
const mounted = React.useRef(true)
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
// Signature: the additions rise in one by one when the card enters view. Content is fully visible without it.
const listRef = React.useRef<HTMLOListElement>(null)
const [reveal, setReveal] = React.useState<'off' | 'armed' | 'run'>('off')
React.useEffect(() => {
const el = listRef.current
if (!el || typeof window === 'undefined' || typeof IntersectionObserver === 'undefined' || !window.matchMedia) return
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return
setReveal('armed')
const io = new IntersectionObserver((entries) => {
if (entries.some((entry) => entry.isIntersecting)) {
setReveal('run')
io.disconnect()
}
}, { threshold: 0.15 })
io.observe(el)
return () => io.disconnect()
}, [])
const uid = React.useId()
const headingId = uid + '-h'
const checkId = uid + '-commit'
const fieldErrId = uid + '-commit-err'
const actionErrId = uid + '-err'
const checkRef = React.useRef<HTMLInputElement>(null)
const loading = phase === 'loading'
const commitText = commitLabel ?? (guarantee ? fill(text.commit, { guarantee }) : '')
const showCommit = Boolean(commitText)
const sub = sublabel ?? (price ? fill(text.buttonSub, { price }) : '')
const countWord = text.countWords[reasons.length - 1] ?? String(reasons.length)
const lead = reasonsLead ?? (price ? fill(text.reasonsLead, { count: countWord, price }) : '')
const presenterAlt = presenterImageAlt ?? (presenterName ? fill(text.presenterAlt, { name: presenterName }) : '')
const upgrade = async () => {
if (isDisabled || loading) return
if (showCommit && !checked) {
setFieldError(true)
checkRef.current?.focus()
return
}
if (!onAction) return
setPhase('loading')
try {
await onAction()
if (mounted.current) setPhase('idle')
} catch {
if (mounted.current) setPhase('failed')
}
}
const decline = () => {
if (isDisabled || loading) return
onDecline?.()
}
const describedBy = [fieldError && showCommit ? fieldErrId : '', phase === 'failed' ? actionErrId : ''].filter(Boolean).join(' ') || undefined
return (
<section id={id} className={['cf-vip-pass-upgrade-4', className].filter(Boolean).join(' ')} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className='vp4-stage' style={FX_HOST}>
<Backdrop src={stageImage} treatment='scrim-dark' side='right' />
<div className='vp4-stage-in' data-presenter={presenterImage ? 'true' : undefined}>
{presenterImage ? (
<div className='vp4-presenter'>
<img src={presenterImage} alt={presenterAlt} width={640} height={640} decoding='async' />
</div>
) : null}
<div className='vp4-speech'>
<span className='vp4-quote' aria-hidden='true'>“</span>
<h2 id={headingId} className='vp4-h'>{headline}</h2>
{speech ? <p className='vp4-lead'>{speech}</p> : null}
{reasons.length ? (
<div className='vp4-reasons'>
{lead ? <p className='vp4-reasons-lead'>{lead}</p> : null}
<ol className='vp4-rlist'>
{reasons.map((reason, i) => (
<li key={i + reason} className='vp4-reason'>
<span className='vp4-num' aria-hidden='true'>{i + 1}</span>
<span>{reason}</span>
</li>
))}
</ol>
</div>
) : null}
{presenterName ? (
<p className='vp4-sign'>
<strong>{presenterName}</strong>
{presenterRole ? <span>{presenterRole}</span> : null}
</p>
) : null}
</div>
</div>
</div>
<div className='vp4-offer'>
<div className='vp4-card' data-lanyard={productImage ? 'true' : undefined}>
<div className='vp4-adds'>
<h3 className='vp4-h3'>{itemsHeading}</h3>
<ol ref={listRef} className='vp4-items' data-reveal={reveal} aria-label={text.itemsAria}>
{items.map((item, i) => (
<li key={item.title} className='vp4-item' style={{ '--i': Math.min(i, 4) } as React.CSSProperties}>
<span className='vp4-spot' aria-hidden='true'>
{item.spot ? (
<Spot src={item.spot} size={56} />
) : (
<span className='vp4-badge'>
<Check size={20} strokeWidth={3} />
</span>
)}
</span>
<span className='vp4-item-body'>
<span className='vp4-item-t'>{item.title}</span>
{item.detail ? <span className='vp4-item-d'>{item.detail}</span> : null}
</span>
</li>
))}
</ol>
</div>
{productImage ? (
<figure className='vp4-lanyard'>
<img src={productImage} alt={productImageAlt} width={360} height={360} loading='lazy' decoding='async' />
{productCaption ? <figcaption>{productCaption}</figcaption> : null}
</figure>
) : null}
<div className='vp4-act'>
{showCommit ? (
<div className='vp4-commit' data-invalid={fieldError ? 'true' : undefined}>
<label className='vp4-check' htmlFor={checkId}>
<input
ref={checkRef}
id={checkId}
type='checkbox'
className='vp4-check-input'
checked={checked}
disabled={isDisabled}
aria-invalid={fieldError || undefined}
aria-describedby={fieldError ? fieldErrId : undefined}
onChange={(e) => {
setChecked(e.target.checked)
if (e.target.checked) setFieldError(false)
}}
/>
<span className='vp4-box' aria-hidden='true'>
<Check size={18} strokeWidth={3} />
</span>
<span className='vp4-check-text'>{commitText}</span>
</label>
{fieldError ? (
<p id={fieldErrId} className='vp4-msg vp4-field-msg'>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden='true' />
{text.commitError}
</p>
) : null}
</div>
) : null}
<div className='vp4-go'>
<button
type='button'
className='vp4-btn'
data-force={force}
disabled={isDisabled}
aria-busy={loading || undefined}
aria-describedby={describedBy}
onClick={upgrade}
>
<span className='vp4-btn-main'>
{loading ? <Loader2 className='vp4-spin' size={20} strokeWidth={2.5} aria-hidden='true' /> : null}
{loading ? loadingLabel : label}
</span>
{sub ? <span className='vp4-btn-sub'>{sub}</span> : null}
</button>
{phase === 'failed' ? (
<p id={actionErrId} className='vp4-msg vp4-action-msg' role='alert'>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden='true' />
{errorText}
</p>
) : null}
{declineLabel ? (
<button type='button' className='vp4-decline' disabled={isDisabled} onClick={decline}>
{declineLabel}
</button>
) : null}
</div>
</div>
</div>
</div>
</section>
)
}
export default VipPassUpgrade4
function fill(template: string, vars: Record<string, string>) {
return Object.keys(vars).reduce((out, key) => out.split('{' + key + '}').join(vars[key]), template)
}
const R = '.cf-vip-pass-upgrade-4'
const CSS = `
${R}{--overlap:clamp(72px,9vw,128px);--poke:clamp(40px,4.5vw,64px);--gut:clamp(16px,5vw,48px);--sh:var(--shadow,oklch(0.22 0.03 260));position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding-bottom:clamp(64px,8.5vw,120px);overflow-x:clip}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} :where(h2,h3,p,ol,figure){margin:0}
${R} .vp4-stage{background:var(--band);color:var(--band-ink);padding:clamp(56px,8vw,112px) var(--gut) 0;overflow:hidden}
${R} .vp4-stage-in{position:relative;z-index:1;max-width:1120px;margin-inline:auto;display:grid;grid-template-columns:minmax(0,1fr)}
${R} .vp4-stage-in:not([data-presenter]) .vp4-speech{max-width:46rem}
${R} .vp4-stage-in[data-presenter]{grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(32px,5vw,72px)}
${R} .vp4-presenter{align-self:end;display:flex;justify-content:center;min-width:0}
${R} .vp4-presenter img{display:block;width:100%;max-width:500px;height:auto;aspect-ratio:1;object-fit:contain;object-position:50% 100%;transform:scale(1.18);transform-origin:50% 100%;filter:drop-shadow(0 2px 3px oklch(from var(--sh) l c h / .35)) drop-shadow(0 18px 22px oklch(from var(--sh) l c h / .4))}
${R} .vp4-speech{align-self:start;min-width:0;padding-bottom:calc(var(--overlap) + var(--poke) + 32px)}
${R} .vp4-quote{display:block;height:40px;overflow:visible;font-family:var(--font-display);font-weight:800;font-size:72px;line-height:1;color:var(--accent-fill,var(--accent));margin-bottom:12px}
${R} .vp4-h{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--band-ink)}
${R} .vp4-lead{margin-top:16px;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty;color:var(--band-ink)}
${R} .vp4-reasons{margin-top:24px;max-width:62ch;color:var(--band-ink)}
${R} .vp4-reasons-lead{font-family:var(--font-display);font-weight:800;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;color:var(--band-ink);text-wrap:balance}
${R} .vp4-rlist{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:8px}
${R} .vp4-reason{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:baseline;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty;color:var(--band-ink)}
${R} .vp4-num{font-family:var(--font-display);font-weight:800;font-size:1.375rem;line-height:1;font-variant-numeric:tabular-nums;color:var(--band-ink)}
${R} .vp4-sign{margin-top:24px;color:var(--band-ink)}
${R} .vp4-sign strong{display:block;font-family:var(--font-display);font-weight:800;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.25}
${R} .vp4-sign span{display:block;margin-top:4px;font-size:15px;font-weight:500;line-height:1.4}
${R} .vp4-offer{position:relative;z-index:2;margin-top:calc(-1 * var(--overlap));padding-inline:var(--gut)}
${R} .vp4-card{max-width:1120px;margin-inline:auto;background:var(--card);color:var(--ink);border:1px solid var(--card-border,color-mix(in oklch,var(--accent) 30%,var(--card)));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--sh) l c h / .22),0 12px 24px -8px oklch(from var(--sh) l c h / .32)));padding:clamp(20px,3vw,32px);display:grid;gap:clamp(24px,3vw,40px);grid-template-columns:minmax(0,1fr);grid-template-areas:'adds' 'act';align-items:start}
${R} .vp4-adds{grid-area:adds;min-width:0}
${R} .vp4-h3{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance;margin-bottom:24px;color:var(--ink)}
${R} .vp4-items{list-style:none;padding:0;display:grid;gap:20px}
${R} .vp4-item{display:grid;grid-template-columns:56px minmax(0,1fr);gap:16px;align-items:start}
${R} .vp4-spot{display:block;width:56px;height:56px}
${R} .vp4-badge{display:grid;place-items:center;width:40px;height:40px;margin:8px;border-radius:999px;background:var(--success);color:var(--success-ink,#fff)}
${R} .vp4-item-body{display:block;min-width:0;padding-top:4px}
${R} .vp4-item-t{display:block;font-family:var(--font-display);font-weight:800;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.25;color:var(--ink)}
${R} .vp4-item-d{display:block;margin-top:4px;color:var(--muted);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
${R} .vp4-items[data-reveal='armed'] .vp4-item{opacity:.82;transform:translateY(8px)}
${R} .vp4-items[data-reveal='armed'] .vp4-spot{transform:scale(.9)}
${R} .vp4-items[data-reveal='run'] .vp4-item{animation:vp4-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * .07s)}
${R} .vp4-items[data-reveal='run'] .vp4-spot{animation:vp4-pop .3s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * .07s + .06s)}
@keyframes vp4-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes vp4-pop{from{transform:scale(.9)}to{transform:none}}
${R} .vp4-lanyard{grid-area:lanyard;display:none;min-width:0;text-align:center}
${R} .vp4-lanyard img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 2px 3px oklch(from var(--sh) l c h / .3)) drop-shadow(0 14px 18px oklch(from var(--sh) l c h / .3))}
${R} .vp4-lanyard figcaption{margin-top:8px;font-size:15px;font-weight:600;line-height:1.4;color:var(--muted);text-wrap:balance}
${R} .vp4-act{grid-area:act;display:grid;gap:16px;min-width:0;background:color-mix(in oklch,var(--ink) 4%,var(--card));border-radius:10px;padding:clamp(16px,2.4vw,24px)}
${R} .vp4-go{display:grid;gap:12px;min-width:0}
${R} .vp4-check{position:relative;display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:start;cursor:pointer}
${R} .vp4-check-input{position:absolute;top:0;left:0;width:26px;height:26px;margin:0;opacity:0;cursor:pointer;z-index:1}
${R} .vp4-check-input:disabled{cursor:not-allowed}
${R} .vp4-box{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;border:2px solid var(--field-border,color-mix(in oklch,var(--ink) 45%,transparent));background:var(--field);color:var(--success-ink,#fff);transition:background .16s ease,border-color .16s ease}
${R} .vp4-box svg{opacity:0;transform:scale(.6);transition:opacity .16s ease,transform .16s ease}
${R} .vp4-check:hover .vp4-check-input:not(:disabled):not(:checked) + .vp4-box{border-color:color-mix(in oklch,var(--ink) 65%,transparent)}
${R} .vp4-check-input:checked + .vp4-box{background:var(--success);border-color:var(--success)}
${R} .vp4-check-input:checked + .vp4-box svg{opacity:1;transform:none}
${R} .vp4-commit[data-invalid] .vp4-box{border-color:var(--danger)}
${R} .vp4-check-input:focus-visible + .vp4-box{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:2px}
${R} .vp4-check-text{font-size:17px;font-weight:600;line-height:1.45;color:var(--ink);text-wrap:pretty}
${R} .vp4-msg{color:var(--danger);font-size:15px;font-weight:600;line-height:1.4;text-wrap:pretty}
${R} .vp4-msg svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
${R} .vp4-field-msg{margin-top:8px;padding-left:38px}
${R} .vp4-action-msg{text-align:center}
${R} .vp4-btn{--bg:var(--button-bg,var(--cta));--bg2:var(--button-bg-2,var(--cta-2));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:72px;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--bg) calc(l + .04) c h),oklch(from var(--bg2) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);text-align:center;cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--bg) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--bg) calc(l - .16) c h),0 1px 2px oklch(from var(--sh) l c h / .3),0 8px 16px -6px oklch(from var(--sh) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
${R} .vp4-btn-main{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-wrap:balance}
${R} .vp4-btn-sub{font-family:var(--font-body);font-size:15px;font-weight:600;line-height:1.3;text-wrap:pretty}
${R} .vp4-btn:hover:not(:disabled),${R} .vp4-btn[data-force='hover']{background:linear-gradient(oklch(from var(--bg) calc(l - .01) c h),oklch(from var(--bg2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--bg) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--bg) calc(l - .2) c h),0 1px 2px oklch(from var(--sh) l c h / .32),0 10px 18px -6px oklch(from var(--sh) l c h / .55))}
${R} .vp4-btn:active:not(:disabled),${R} .vp4-btn[data-force='active']{transform:translateY(1px);background:linear-gradient(oklch(from var(--bg) calc(l - .04) c h),oklch(from var(--bg2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--bg) calc(l - .24) c h / .55),inset 0 -2px 0 oklch(from var(--bg) calc(l - .16) c h),0 1px 2px oklch(from var(--sh) l c h / .3)}
${R} .vp4-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
${R} .vp4-btn[aria-busy='true']{cursor:progress}
${R} .vp4-btn:disabled{cursor:not-allowed;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));transform:none}
${R} .vp4-spin{animation:vp4-spin .8s linear infinite}
@keyframes vp4-spin{to{transform:rotate(360deg)}}
${R} .vp4-decline{justify-self:center;min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:none;color:var(--muted);font-family:var(--font-body);font-size:15px;font-weight:500;line-height:1.4;text-align:center;text-decoration:underline;text-decoration-color:oklch(from var(--muted) l c h / .5);text-underline-offset:.18em;cursor:pointer;transition:color .16s ease}
${R} .vp4-decline:hover:not(:disabled){color:var(--ink);text-decoration-color:currentColor}
${R} .vp4-decline:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
${R} .vp4-decline:disabled{cursor:not-allowed}
@media (min-width:641px){
${R} .vp4-card[data-lanyard]{grid-template-columns:minmax(0,1fr) 200px;grid-template-areas:'adds lanyard' 'act act'}
${R} .vp4-lanyard{display:block;margin-top:calc(-1 * (var(--poke) + clamp(20px,3vw,32px)))}
${R} .vp4-act{grid-template-columns:minmax(0,1fr) minmax(0,360px);align-items:center;column-gap:24px}
}
@media (min-width:1180px){
${R} .vp4-card{grid-template-columns:minmax(0,1fr) minmax(0,380px);grid-template-areas:'adds act'}
${R} .vp4-card[data-lanyard]{grid-template-columns:minmax(0,1fr) 200px minmax(0,360px);grid-template-areas:'adds lanyard act'}
${R} .vp4-act{grid-template-columns:minmax(0,1fr);align-items:stretch;align-self:stretch;align-content:center;padding:clamp(20px,2.4vw,28px)}
}
@media (max-width:640px){
${R}{--overlap:40px;--poke:0px}
${R} .vp4-stage{padding-top:48px}
${R} .vp4-stage-in[data-presenter]{grid-template-columns:minmax(0,1fr)}
${R} .vp4-presenter{align-self:start;justify-content:flex-start;width:112px;height:112px;margin-bottom:20px;border-radius:999px;overflow:hidden;background:oklch(from var(--band-ink) l c h / .12)}
${R} .vp4-presenter img{width:100%;height:100%;max-width:none;aspect-ratio:auto;object-fit:cover;object-position:50% 0;transform:scale(1.7);transform-origin:50% 6%;filter:none}
${R} .vp4-speech{padding-bottom:calc(var(--overlap) + 32px)}
${R} .vp4-quote{display:none}
${R} .vp4-act{padding:16px 12px}
${R} .vp4-btn{min-height:64px;padding-inline:12px}
${R} .vp4-reason{grid-template-columns:24px minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){
${R} .vp4-items .vp4-item,${R} .vp4-items .vp4-spot{animation:none !important;opacity:1 !important;transform:none !important}
${R} .vp4-btn,${R} .vp4-box,${R} .vp4-box svg,${R} .vp4-decline{transition:none}
${R} .vp4-btn:active:not(:disabled),${R} .vp4-btn[data-force='active']{transform:none}
${R} .vp4-spin{animation:none}
}
`
pieces/offer/vip-pass-upgrade-4/specimen.tsx 57 lines
import __studioImage2e7ade8a from "../assets/f2a1d12580a1ef28.webp";
import __studioImage33fd033f from "../assets/8004e952da2ddbca.webp";
// Specimen: the host’s backstage VIP invitation for the fictional Garden City Small Business Expo.
import * as React from 'react'
import { VipPassUpgrade4 } from '../vip-pass-upgrade-4'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
import star from '../../fx/spots/star'
import community from '../../fx/spots/community'
import gift from '../../fx/spots/gift'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled' | 'error'
const hostArt = __studioImage2e7ade8a
const lanyardArt = __studioImage33fd033f
const waitBriefly = () => new Promise<void>((resolve) => {
window.setTimeout(resolve, 900)
})
export default function VipPassUpgrade4Specimen({ state = 'default' }: { state?: SpecimenState }) {
const sample = defaults.sample
return (
<VipPassUpgrade4
state={state}
headline='I saved you a seat. Now come backstage with me.'
speech='Your free ticket gets you into every talk on the main stage. VIP is for the part I can’t fit up there: the speakers up close, and real time for your questions.'
reasons={[
'You’re already registered, so VIP adds straight to your ticket.',
'It’s one payment, with nothing to renew.',
'You keep the kit for good, long after the expo ends.',
]}
presenterName='Dana Whitfield'
presenterRole='Your host, Garden City Small Business Expo'
presenterImage={slot('presenter-cutout', hostArt)}
presenterImageAlt='Dana Whitfield, your expo host, holding a microphone'
itemsHeading='Three upgrades your free ticket doesn’t include'
items={[
{ title: 'A reserved seat up front', detail: 'Sit in the VIP rows for every main-stage talk.', spot: star },
{ title: 'The backstage speaker hour', detail: 'Meet the speakers after the talks and ask about your own business.', spot: community },
{ title: sample.name, detail: 'The planning guide, copy workbook and launch checklist to take home.', spot: gift },
]}
productImage={slot('product', lanyardArt)}
productImageAlt='VIP lanyard pass with a gold clip'
productCaption='Your VIP pass to the Garden City Small Business Expo'
price={sample.price}
guarantee={sample.guarantee}
label='Yes! Make My Ticket VIP'
declineLabel='No thanks, keep my free seat'
onAction={waitBriefly}
onDecline={() => undefined}
/>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalVipPassUpgrade4 |
Partial<VipPassUpgrade4Copy> |
|
headline OptionalVipPassUpgrade4 |
string |
Default 'I saved you a seat. Now come backstage with me.'
|
speech OptionalVipPassUpgrade4 |
React.ReactNode |
Default 'Your free ticket gets you into every talk on the main stage. VIP is for the part I can’t fit up there: the speakers up close, and real time for your questions.'
|
reasons OptionalVipPassUpgrade4 |
string[] |
Default ['You’re already registered, so VIP adds straight to your ticket.', 'It’s one payment, with nothing to renew.', 'You keep the kit for good, long after the event ends.']
|
reasonsLead OptionalVipPassUpgrade4 |
string |
|
presenterName OptionalVipPassUpgrade4 |
string |
Default 'Dana Whitfield'
|
presenterRole OptionalVipPassUpgrade4 |
string |
Default 'Your host'
|
presenterImage OptionalVipPassUpgrade4 |
string |
|
presenterImageAlt OptionalVipPassUpgrade4 |
string |
|
stageImage OptionalVipPassUpgrade4 |
string |
Default stageBackdrop
|
itemsHeading OptionalVipPassUpgrade4 |
string |
Default 'Three upgrades your free ticket doesn’t include'
|
items OptionalVipPassUpgrade4 |
VipPassUpgrade4Item[] |
Default DEFAULT_ITEMS
|
productImage OptionalVipPassUpgrade4 |
string |
|
productImageAlt OptionalVipPassUpgrade4 |
string |
Default 'VIP lanyard pass'
|
productCaption OptionalVipPassUpgrade4 |
string |
Default 'Your VIP pass'
|
price OptionalVipPassUpgrade4 |
string |
Default '$47'
|
guarantee OptionalVipPassUpgrade4 |
string |
|
commitLabel OptionalVipPassUpgrade4 |
string |
|
commitDefaultChecked OptionalVipPassUpgrade4 |
boolean |
Default true
|
label OptionalVipPassUpgrade4 |
string |
Default 'Yes! Make My Ticket VIP'
|
sublabel OptionalVipPassUpgrade4 |
string |
|
loadingLabel OptionalVipPassUpgrade4 |
string |
Default 'Upgrading your ticket…'
|
errorText OptionalVipPassUpgrade4 |
string |
Default 'We couldn’t upgrade your ticket. Please try again.'
|
declineLabel OptionalVipPassUpgrade4 |
string |
Default 'No thanks, keep my free seat'
|
disabled OptionalVipPassUpgrade4 |
boolean |
Default false
|
state OptionalVipPassUpgrade4 |
VipPassUpgrade4State |
Default 'default'
|
onAction OptionalVipPassUpgrade4 |
() => void | Promise<void> |
|
onDecline OptionalVipPassUpgrade4 |
() => void |
|
className OptionalVipPassUpgrade4 |
string |
|
id OptionalVipPassUpgrade4 |
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--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter-cutout- The presenter on a transparent background.
product- The main product shot or cover (ebook, kit, bottle).
-
44c4a68a8f1604d6.webp
image/webp · 18.4 KB
-
5602e47ebdb81810.webp
image/webp · 35.6 KB
-
63571cb07acc4626.webp
image/webp · 17.3 KB
-
8004e952da2ddbca.webp
image/webp · 123 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
f2a1d12580a1ef28.webp
image/webp · 75.6 KB
-
f6a8de367400456e.webp
image/webp · 14.6 KB