Confirmation Hero 2
Thank-you hero: stamps the visitor's access pass, then fans out three 'do these now' steps with a live progress meter so they arrive ready.
Use it in a prompt
Use hero/confirmation-hero-2 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/hero/confirmation-hero-2.tsx. - Import it and pass your copy and images (Props tab):
import { ConfirmationHero2 } from "@/components/funneldna/hero/confirmation-hero-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/confirmation-hero-2/component.tsx 863 lines
// layout: card-fan
// Thank-you hero: stamps the visitor's access pass, then fans out three 'do these now' steps with a live progress meter so they arrive ready.
'use client'
import * as React from 'react'
import { Check, Copy } from 'lucide-react'
export type ConfirmationHero2State = 'default' | 'hover' | 'active' | 'disabled' | 'success'
export type PassDetail = { label: string; value: string }
export type ConfirmationStep = {
/** Stable key, also passed to onStep. */
id: string
title: string
detail?: React.ReactNode
/** copy: shows and copies `value` (e.g. the sender address); calendar: Google / Apple / Outlook; link: opens `href`. */
kind: 'copy' | 'calendar' | 'link'
/** Button label, or the copy button's accessible label. */
actionLabel?: string
/** Text the copy step shows and copies. */
value?: string
/** Destination for a link step, e.g. the group invite. */
href?: string
}
export type ConfirmationCalendarEvent = {
title: string
details?: string
location?: string
/** ISO start time. Without one the entry is blocked for tomorrow at 7pm, the visitor's local time. */
start?: string
durationMinutes?: number
}
export type ConfirmationPass = {
/** Product or event name printed on the pass. */
title?: string
/** Label above the visitor's name. */
guestLabel?: string
/** One short line under the name, e.g. 'Seat confirmed'. */
status?: string
/** Up to four label / value rows. */
details?: PassDetail[]
codeLabel?: string
/** Access or order code the visitor can copy. Omit to hide the code row. */
code?: string
/** Accessible name for the pass. */
ariaLabel?: string
}
export type ConfirmationLetter = {
/** Overrides the generated 'Dear {name},' salutation. */
salutation?: React.ReactNode
paragraphs?: React.ReactNode[]
closing?: React.ReactNode
/** Handwritten sign-off name. Omit to hide the signature. */
signature?: string
signerRole?: React.ReactNode
}
export type ConfirmationHero2Copy = {
/** '{name}' is the visitor's first name. */
headline: string
headlineNoName: string
/** '{name}' is the visitor's first name. */
salutation: string
salutationNoName: string
/** Shown on the pass when no name was supplied. */
guestFallback: string
copy: string
copied: string
copySelected: string
/** '{label}' names what was copied. */
copiedAnnounce: string
copyFailedAnnounce: string
/** '{label}' names the thing to copy. */
copyAria: string
/** '{title}' is the step title. */
markDone: string
markUndone: string
stepDone: string
/** '{n}' is the step number. */
stepNumber: string
/** '{done}' and '{total}' are step counts. */
meter: string
meterLabel: string
complete: string
calendarGroup: string
google: string
apple: string
outlook: string
googleAria: string
appleAria: string
outlookAria: string
icsFileName: string
}
export type ConfirmationHero2Props = {
/** The visitor's name from the opt-in or order; a missing name falls back to the no-name copy. */
name?: string
/** Replaces the generated 'You’re in, {name}.' headline. */
headline?: React.ReactNode
copy?: Partial<ConfirmationHero2Copy>
/** Short dear-friend note from the host, set before the action. */
letter?: ConfirmationLetter
/** The one next action, e.g. into the workshop. */
cta?: { label: string; href?: string; disabled?: boolean } | null
/** Navigation destination; takes precedence over cta.href. */
href?: string
/** Called on a CTA click. */
onAction?: () => void
/** Plain secondary line under the button; without href it scrolls to the steps. */
quietLink?: { label: string; href?: string } | null
pass?: ConfirmationPass
/** Generated printed pass (slot: product), transparent background. */
passImage?: string
passImageAlt?: string
/** Seal that stamps onto the pass on load (slot: stamp), transparent background. */
sealImage?: string
sealImageAlt?: string
stepsHeading?: React.ReactNode
stepsLead?: React.ReactNode
/** Up to three steps, in order. */
steps?: ConfirmationStep[]
/** The entry the calendar step adds. */
event?: ConfirmationCalendarEvent
/** Step ids already ticked. */
initialDone?: string[]
onStep?: (id: string, done: boolean) => void
onCopy?: (value: string) => void
onCalendar?: (provider: 'google' | 'apple' | 'outlook') => void
/** Called once when every step is ticked. */
onComplete?: () => void
/** Studio preview state: 'success' shows every step ticked. */
state?: ConfirmationHero2State
className?: string
}
type Copied = { key: string; ok: boolean } | null
export function ConfirmationHero2({
name,
headline,
copy,
letter,
cta = { label: 'Take me to the workshop' },
href = cta?.href,
onAction,
quietLink = { label: 'or finish the three steps below first' },
pass,
passImage,
passImageAlt = '',
sealImage,
sealImageAlt = '',
stepsHeading = 'Do these three things now',
stepsLead = 'Tick them off as you go, so nothing from the workshop gets missed.',
steps = DEFAULT_STEPS,
event = DEFAULT_EVENT,
initialDone,
onStep,
onCopy,
onCalendar,
onComplete,
state = 'default',
className,
}: ConfirmationHero2Props) {
const t = { ...DEFAULT_COPY, ...copy }
const p = { ...DEFAULT_PASS, ...pass }
const lt = { ...DEFAULT_LETTER, ...letter }
const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, '')
const titleId = `cch2-title-${uid}`
const stepsId = `cch2-steps-${uid}`
const headId = `cch2-steps-h-${uid}`
const fullName = (name ?? '').trim()
const first = fullName.split(' ')[0] ?? ''
const list = steps.slice(0, 3)
const details = (p.details ?? []).slice(0, 4)
const seed = () => (state === 'success' ? list.map((s) => s.id) : initialDone ?? [])
const [done, setDone] = React.useState<string[]>(seed)
const [copied, setCopied] = React.useState<Copied>(null)
const [announce, setAnnounce] = React.useState('')
const timer = React.useRef<ReturnType<typeof setTimeout> | undefined>(undefined)
React.useEffect(() => {
setDone(seed())
// Re-seed only when the studio preview state changes.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [state])
React.useEffect(
() => () => {
if (timer.current) clearTimeout(timer.current)
},
[],
)
const doneCount = list.filter((s) => done.includes(s.id)).length
const complete = list.length > 0 && doneCount === list.length
const activeIndex = list.findIndex((s) => !done.includes(s.id))
const pct = list.length ? Math.round((doneCount / list.length) * 100) : 0
const wasComplete = React.useRef(complete)
React.useEffect(() => {
if (complete && !wasComplete.current) onComplete?.()
wasComplete.current = complete
}, [complete, onComplete])
const cal = React.useMemo(() => buildCalendar(event), [event])
function setStep(id: string, value: boolean) {
if (done.includes(id) === value) return
setDone((prev) => (value ? (prev.includes(id) ? prev : [...prev, id]) : prev.filter((x) => x !== id)))
onStep?.(id, value)
}
async function copyValue(key: string, value: string, label: string, target: HTMLElement | null) {
let ok = false
try {
if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) {
await navigator.clipboard.writeText(value)
ok = true
}
} catch {
ok = false
}
if (!ok && target) selectContents(target)
setCopied({ key, ok })
setAnnounce(ok ? fill(t.copiedAnnounce, { label }) : t.copyFailedAnnounce)
if (timer.current) clearTimeout(timer.current)
timer.current = setTimeout(() => setCopied(null), 2400)
onCopy?.(value)
}
function toSteps(e: React.MouseEvent<HTMLAnchorElement>) {
if (quietLink?.href) return
const el = document.getElementById(stepsId)
if (!el) return
e.preventDefault()
const reduce = window.matchMedia?.('(prefers-reduced-motion: reduce)').matches
el.scrollIntoView({ behavior: reduce ? 'auto' : 'smooth', block: 'start' })
}
const h1 = headline ?? (first ? fill(t.headline, { name: first }) : t.headlineNoName)
const salutation = lt.salutation ?? (first ? fill(t.salutation, { name: first }) : t.salutationNoName)
const paragraphs = lt.paragraphs ?? []
const ctaDisabled = state === 'disabled' || Boolean(cta?.disabled)
const ctaPreview = state === 'hover' ? 'hover' : state === 'active' ? 'active' : undefined
const providers = [
{ id: 'google' as const, label: t.google, aria: t.googleAria, href: cal.google, download: undefined, Mark: GoogleMark },
{ id: 'apple' as const, label: t.apple, aria: t.appleAria, href: cal.ics, download: t.icsFileName, Mark: AppleMark },
{ id: 'outlook' as const, label: t.outlook, aria: t.outlookAria, href: cal.outlook, download: undefined, Mark: OutlookMark },
]
function renderAction(s: ConfirmationStep) {
if (s.kind === 'copy' && s.value) {
const value = s.value
return (
<CopyWell
value={value}
email
copyKey={s.id}
copied={copied}
text={t}
ariaLabel={s.actionLabel ?? fill(t.copyAria, { label: s.title })}
onCopy={(el) => {
void copyValue(s.id, value, s.title, el)
setStep(s.id, true)
}}
/>
)
}
if (s.kind === 'calendar') {
return (
<div className='cch2-cal' role='group' aria-label={t.calendarGroup}>
{providers.map(({ id, label, aria, href: link, download, Mark }) => (
<a
key={id}
className='cch2-btn2 cch2-calbtn'
href={link}
download={download}
target={download ? undefined : '_blank'}
rel='noopener noreferrer'
aria-label={aria}
onClick={() => {
setStep(s.id, true)
onCalendar?.(id)
}}
>
<Mark className='cch2-mark' />
<span>{label}</span>
</a>
))}
</div>
)
}
const label = s.actionLabel ?? s.title
if (s.kind === 'link' && s.href) {
return (
<a className='cch2-btn2 cch2-wide' href={s.href} target='_blank' rel='noopener noreferrer' onClick={() => setStep(s.id, true)}>
{label}
</a>
)
}
return (
<button type='button' className='cch2-btn2 cch2-wide' onClick={() => setStep(s.id, true)}>
{label}
</button>
)
}
return (
<section className={cx('cf-confirmation-hero-2', className)} aria-labelledby={titleId}>
<style>{CSS}</style>
<div className='cch2-stage'>
<div className='cch2-shell cch2-top'>
<div className='cch2-headcell cch2-in'>
<h1 id={titleId} className='cch2-h1'>
{h1}
</h1>
</div>
<div className='cch2-passwrap cch2-in' style={delay('.06s')}>
{passImage && (
<img
className='cch2-pass-art'
src={passImage}
alt={passImageAlt}
aria-hidden={passImageAlt ? undefined : true}
width={640}
height={640}
decoding='async'
/>
)}
<div className='cch2-pass' role='group' aria-label={p.ariaLabel}>
<span className='cch2-lanyard' aria-hidden='true' />
{p.title && <p className='cch2-pass-title'>{p.title}</p>}
<div className='cch2-guest'>
{p.guestLabel && <span className='cch2-micro'>{p.guestLabel}</span>}
<p className='cch2-guest-name'>{fullName || t.guestFallback}</p>
{p.status && (
<p className='cch2-status'>
<Check size={16} strokeWidth={3} aria-hidden='true' />
{p.status}
</p>
)}
</div>
{details.length > 0 && (
<dl className='cch2-details'>
{details.map((d) => (
<div key={d.label}>
<dt className='cch2-micro'>{d.label}</dt>
<dd>{d.value}</dd>
</div>
))}
</dl>
)}
{p.code && (
<CopyWell
label={p.codeLabel}
value={p.code}
copyKey='pass-code'
copied={copied}
text={t}
ariaLabel={fill(t.copyAria, { label: p.codeLabel ?? p.code })}
onCopy={(el) => void copyValue('pass-code', p.code as string, p.codeLabel ?? p.code ?? '', el)}
/>
)}
{sealImage && (
<img
className='cch2-seal'
src={sealImage}
alt={sealImageAlt}
aria-hidden={sealImageAlt ? undefined : true}
width={256}
height={256}
decoding='async'
/>
)}
</div>
</div>
<div className='cch2-body cch2-in' style={delay('.1s')}>
{(paragraphs.length > 0 || lt.signature) && (
<div className='cch2-letter'>
<p className='cch2-salute'>{salutation}</p>
{paragraphs.map((para, i) => (
<p key={i}>{para}</p>
))}
{(lt.closing || lt.signature) && (
<div className='cch2-sign'>
{lt.closing && <p>{lt.closing}</p>}
{lt.signature && <p className='cch2-signature'>{lt.signature}</p>}
{lt.signerRole && <p className='cch2-role'>{lt.signerRole}</p>}
</div>
)}
</div>
)}
{(cta || quietLink) && (
<div className='cch2-actions'>
{cta &&
(href ? (
<a
className='cch2-cta'
data-preview={ctaPreview}
href={ctaDisabled ? undefined : href}
role='link'
aria-disabled={ctaDisabled || undefined}
tabIndex={ctaDisabled ? -1 : undefined}
onClick={(e) => {
if (ctaDisabled) {
e.preventDefault()
return
}
onAction?.()
}}
>
{cta.label}
</a>
) : (
<button type='button' className='cch2-cta' data-preview={ctaPreview} disabled={ctaDisabled} onClick={() => onAction?.()}>
{cta.label}
</button>
))}
{quietLink && (
<a className='cch2-quiet' href={quietLink.href ?? `#${stepsId}`} onClick={toSteps}>
{quietLink.label}
</a>
)}
</div>
)}
</div>
</div>
<div className='cch2-shell cch2-head2' id={stepsId}>
<h2 id={headId} className='cch2-h2'>
{stepsHeading}
</h2>
{stepsLead && <p className='cch2-lead2'>{stepsLead}</p>}
<div className='cch2-meter'>
<p className={cx('cch2-meter-text', complete && 'is-complete')} aria-live='polite'>
{complete ? (
<>
<span className='cch2-meter-badge' aria-hidden='true'>
<Check size={16} strokeWidth={3} />
</span>
{t.complete}
</>
) : (
fill(t.meter, { done: doneCount, total: list.length })
)}
</p>
<div
className='cch2-track'
role='progressbar'
aria-label={t.meterLabel}
aria-valuemin={0}
aria-valuemax={list.length}
aria-valuenow={doneCount}
aria-valuetext={fill(t.meter, { done: doneCount, total: list.length })}
>
<span className='cch2-fill' style={{ width: `${pct}%` }} />
</div>
</div>
</div>
</div>
<div className='cch2-floor'>
<ol className='cch2-fan' aria-labelledby={headId}>
{list.map((s, i) => {
const isDone = done.includes(s.id)
const isActive = i === activeIndex
return (
<li
key={s.id}
className={cx('cch2-step', isDone && 'is-done', isActive && 'is-active')}
data-pos={i}
style={{ zIndex: isActive ? 3 : i === 1 ? 2 : 1 }}
>
<div className='cch2-step-top'>
<span className='cch2-num' aria-hidden='true'>
{i + 1}
</span>
{isDone && <span className='cch2-donetag'>{t.stepDone}</span>}
<button
type='button'
className='cch2-tick'
aria-pressed={isDone}
aria-label={fill(isDone ? t.markUndone : t.markDone, { title: s.title })}
onClick={() => setStep(s.id, !isDone)}
>
<Check size={20} strokeWidth={3} aria-hidden='true' />
</button>
</div>
<h3 className='cch2-h3'>
<span className='cch2-sr'>{fill(t.stepNumber, { n: i + 1 })} </span>
{s.title}
</h3>
{s.detail && <p className='cch2-step-detail'>{s.detail}</p>}
<div className='cch2-step-action'>{renderAction(s)}</div>
</li>
)
})}
</ol>
<span className='cch2-sr' aria-live='polite'>
{announce}
</span>
</div>
</section>
)
}
export default ConfirmationHero2
const DEFAULT_COPY: ConfirmationHero2Copy = {
headline: 'You’re in, {name}.',
headlineNoName: 'Your seat is confirmed',
salutation: 'Dear {name},',
salutationNoName: 'Dear friend,',
guestFallback: 'Confirmed guest',
copy: 'Copy',
copied: 'Copied',
copySelected: 'Selected',
copiedAnnounce: '{label} copied.',
copyFailedAnnounce: 'Copy was blocked. The text is selected, so press Ctrl+C or ⌘C.',
copyAria: 'Copy {label}',
markDone: 'Mark “{title}” as done',
markUndone: 'Mark “{title}” as not done',
stepDone: 'Done',
stepNumber: 'Step {n}:',
meter: '{done} of {total} done',
meterLabel: 'Your setup progress',
complete: 'All set. Your workshop is ready whenever you are.',
calendarGroup: 'Add to your calendar',
google: 'Google',
apple: 'Apple',
outlook: 'Outlook',
googleAria: 'Add to Google Calendar',
appleAria: 'Add to Apple Calendar (downloads an .ics file)',
outlookAria: 'Add to Outlook Calendar',
icsFileName: 'workshop.ics',
}
const DEFAULT_PASS: ConfirmationPass = {
title: 'Funnel Starter Workshop',
guestLabel: 'Guest',
status: 'Seat confirmed',
details: [
{ label: 'Access', value: 'Free, on demand' },
{ label: 'Watch', value: 'Online' },
],
codeLabel: 'Your access code',
ariaLabel: 'Your access pass',
}
const DEFAULT_LETTER: ConfirmationLetter = {
paragraphs: [
'Your seat is saved and your access link is on its way to your inbox.',
'Take a moment for the three steps below, then press play.',
],
}
const DEFAULT_STEPS: ConfirmationStep[] = [
{
id: 'whitelist',
kind: 'copy',
title: 'Whitelist our email',
detail: 'Add our address to your contacts so workshop emails skip the spam folder.',
actionLabel: 'Add us to your contacts',
},
{
id: 'calendar',
kind: 'calendar',
title: 'Block an hour to watch',
detail: 'Save the time now, so the workshop actually gets watched.',
},
{
id: 'group',
kind: 'link',
title: 'Join the group',
detail: 'Build your first funnel alongside everyone else taking the workshop.',
actionLabel: 'Join the group',
},
]
const DEFAULT_EVENT: ConfirmationCalendarEvent = {
title: 'Watch the Funnel Starter Workshop',
details: 'Your on-demand workshop. Open your access email and press play.',
location: 'Online',
durationMinutes: 60,
}
function CopyWell({
label,
value,
copyKey,
copied,
text,
ariaLabel,
email,
onCopy,
}: {
label?: string
value: string
copyKey: string
copied: Copied
text: Pick<ConfirmationHero2Copy, 'copy' | 'copied' | 'copySelected'>
ariaLabel: string
email?: boolean
onCopy: (el: HTMLElement | null) => void
}) {
const ref = React.useRef<HTMLSpanElement>(null)
const mine = copied?.key === copyKey
const ok = mine && Boolean(copied?.ok)
return (
<div className='cch2-well'>
<div className='cch2-well-text'>
{label && <span className='cch2-micro'>{label}</span>}
<span ref={ref} className={cx('cch2-code', email && 'is-email')}>
{value}
</span>
</div>
<button type='button' className='cch2-btn2 cch2-copy' data-copied={ok || undefined} aria-label={ariaLabel} onClick={() => onCopy(ref.current)}>
{ok ? <Check size={18} strokeWidth={2.5} aria-hidden='true' /> : <Copy size={18} strokeWidth={2.5} aria-hidden='true' />}
<span>{mine ? (ok ? text.copied : text.copySelected) : text.copy}</span>
</button>
</div>
)
}
// Official provider marks keep their own colours (theme-contract §3 exception); the SVGs only.
function GoogleMark({ className }: { className?: string }) {
return (
<svg className={className} viewBox='0 0 48 48' aria-hidden='true' data-official-mark='Google'>
<path fill='#FBBC05' d='M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z' />
<path fill='#EA4335' d='M6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z' />
<path fill='#34A853' d='M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.91 11.91 0 0124 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z' />
<path fill='#4285F4' d='M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 01-4.087 5.571l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z' />
</svg>
)
}
function OutlookMark({ className }: { className?: string }) {
return (
<svg className={className} viewBox='0 0 24 24' aria-hidden='true' data-official-mark='Microsoft Outlook'>
<rect x='8' y='5' width='14' height='14' rx='2' fill='#28A8EA' />
<path d='M8 8.5l7 4.5 7-4.5' fill='none' stroke='#0F6CBD' strokeWidth='1.4' />
<rect x='2' y='6.5' width='11' height='11' rx='1.8' fill='#0F6CBD' />
<ellipse cx='7.5' cy='12' rx='2.4' ry='2.9' fill='none' stroke='#FFFFFF' strokeWidth='1.7' />
</svg>
)
}
function AppleMark({ className }: { className?: string }) {
return (
<svg className={className} viewBox='0 0 24 24' aria-hidden='true' data-official-mark='Apple' fill='currentColor'>
<path d='M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.090-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.830-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701' />
</svg>
)
}
const CRLF = String.fromCharCode(13, 10)
const BS = String.fromCharCode(92)
const LF = String.fromCharCode(10)
const CR = String.fromCharCode(13)
function escICS(s: string) {
let out = ''
for (const ch of s) {
if (ch === BS || ch === ',' || ch === ';') out += BS + ch
else if (ch === LF) out += BS + 'n'
else if (ch !== CR) out += ch
}
return out
}
function icsDate(d: Date) {
const p = (n: number) => String(n).padStart(2, '0')
return `${d.getUTCFullYear()}${p(d.getUTCMonth() + 1)}${p(d.getUTCDate())}T${p(d.getUTCHours())}${p(d.getUTCMinutes())}${p(d.getUTCSeconds())}Z`
}
function defaultStart() {
const d = new Date()
d.setDate(d.getDate() + 1)
d.setHours(19, 0, 0, 0)
return d
}
function buildCalendar(event: ConfirmationCalendarEvent) {
let start = event.start ? new Date(event.start) : defaultStart()
if (Number.isNaN(start.getTime())) start = defaultStart()
const end = new Date(start.getTime() + (event.durationMinutes ?? 60) * 60000)
const details = event.details ?? ''
const location = event.location ?? ''
const google =
'https://calendar.google.com/calendar/render?' +
new URLSearchParams({ action: 'TEMPLATE', text: event.title, dates: `${icsDate(start)}/${icsDate(end)}`, details, location }).toString()
const outlook =
'https://outlook.live.com/calendar/0/deeplink/compose?' +
new URLSearchParams({
path: '/calendar/action/compose',
rru: 'addevent',
subject: event.title,
startdt: start.toISOString(),
enddt: end.toISOString(),
body: details,
location,
}).toString()
const lines = [
'BEGIN:VCALENDAR',
'VERSION:2.0',
'PRODID:-//CF//Confirmation Hero//EN',
'CALSCALE:GREGORIAN',
'BEGIN:VEVENT',
`UID:${start.getTime()}-cf-confirmation@funnel`,
`DTSTAMP:${icsDate(new Date())}`,
`DTSTART:${icsDate(start)}`,
`DTEND:${icsDate(end)}`,
`SUMMARY:${escICS(event.title)}`,
details ? `DESCRIPTION:${escICS(details)}` : '',
location ? `LOCATION:${escICS(location)}` : '',
'END:VEVENT',
'END:VCALENDAR',
].filter(Boolean)
const ics = 'data:text/calendar;charset=utf-8,' + encodeURIComponent(lines.join(CRLF))
return { google, outlook, ics }
}
function selectContents(el: HTMLElement) {
const range = document.createRange()
range.selectNodeContents(el)
const sel = window.getSelection()
sel?.removeAllRanges()
sel?.addRange(range)
}
function fill(template: string, values: Record<string, string | number>) {
return template.replace(/[{]([a-zA-Z]+)[}]/g, (m, k: string) => (k in values ? String(values[k]) : m))
}
function cx(...c: (string | false | null | undefined)[]) {
return c.filter(Boolean).join(' ')
}
function delay(d: string): React.CSSProperties {
return { animationDelay: d }
}
const R = '.cf-confirmation-hero-2'
const CSS = `
${R}{--cch2-gutter:clamp(16px,5vw,48px);--cch2-overlap:clamp(80px,9vw,128px);--signature-font:var(--signature-face,var(--font-display));position:relative;isolation:isolate;background:var(--surface);color:var(--ink);font-family:var(--font-body)}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} .cch2-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
${R} .cch2-stage{position:relative;background:var(--band);color:var(--band-ink);padding:clamp(56px,8vw,112px) 0 calc(var(--cch2-overlap) + clamp(32px,4vw,56px));overflow:clip}
${R} .cch2-shell{width:100%;max-width:calc(1120px + 2 * var(--cch2-gutter));margin-inline:auto;padding-inline:var(--cch2-gutter)}
${R} .cch2-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);grid-template-areas:'head pass' 'body pass';grid-template-rows:auto 1fr;column-gap:clamp(32px,5vw,72px);align-items:start}
${R} .cch2-headcell{grid-area:head;min-width:0}
${R} .cch2-body{grid-area:body;min-width:0;margin-top:clamp(20px,2.4vw,28px)}
${R} .cch2-passwrap{grid-area:pass;position:relative;min-width:0;padding-top:clamp(72px,9vw,120px)}
${R} .cch2-h1{margin:0;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(2.5rem,5.4vw,4.875rem);line-height:1.04;color:var(--band-ink);text-wrap:balance;overflow-wrap:break-word}
${R} .cch2-letter{max-width:36rem;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.55;color:var(--band-ink)}
${R} .cch2-letter p{margin:0 0 12px;text-wrap:pretty}
${R} .cch2-letter .cch2-salute{font-weight:700}
${R} .cch2-sign{margin-top:20px}
${R} .cch2-letter .cch2-sign p{margin:0}
${R} .cch2-letter .cch2-sign .cch2-signature{margin:8px 0 12px;font-family:var(--signature-font);font-size:clamp(1.625rem,2.4vw,2rem);line-height:1.1;font-weight:var(--display-weight,800);text-transform:none;letter-spacing:var(--display-tracking,-0.025em);color:var(--band-ink)}
${R} .cch2-letter .cch2-sign .cch2-role{font-size:.9375rem;font-weight:600;line-height:1.4}
${R} .cch2-actions{margin-top:clamp(24px,3vw,32px);max-width:36rem;display:flex;flex-direction:column;align-items:stretch;gap:16px}
${R} .cch2-cta{--b:var(--button-bg,var(--cta));display:flex;width:100%;align-items:center;justify-content:center;min-height:72px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));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-align:center;text-decoration:none;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--b) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--b) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .4),0 8px 16px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .55));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease;-webkit-tap-highlight-color:transparent}
${R} .cch2-cta:not([aria-disabled='true']):not(:disabled):hover,${R} .cch2-cta[data-preview='hover']:not([aria-disabled='true']):not(:disabled){background:linear-gradient(oklch(from var(--b) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b) calc(l + .1) c h / .6),inset 0 -3px 0 oklch(from var(--b) calc(l - .2) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .45),0 12px 20px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .6))}
${R} .cch2-cta:not([aria-disabled='true']):not(:disabled):active,${R} .cch2-cta[data-preview='active']:not([aria-disabled='true']):not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--b) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--b) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .35)}
${R} .cch2-cta:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
${R} .cch2-cta[aria-disabled='true'],${R} .cch2-cta:disabled{background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:not-allowed;transform:none}
${R} .cch2-quiet{align-self:center;text-align:center;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--band-ink);text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:oklch(from var(--band-ink) l c h / .5);text-underline-offset:.18em;border-radius:4px;text-wrap:pretty}
${R} .cch2-quiet:hover{text-decoration-color:var(--band-ink)}
${R} .cch2-quiet:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
${R} .cch2-pass-art{position:absolute;top:0;left:-6%;width:76%;height:auto;aspect-ratio:1;object-fit:contain;rotate:-10deg;z-index:0;pointer-events:none;filter:drop-shadow(0 2px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .45)) drop-shadow(0 14px 18px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .35))}
${R} .cch2-pass{position:relative;z-index:1;margin-left:auto;width:min(100%,440px);padding:40px clamp(20px,3vw,32px) clamp(20px,3vw,28px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .22),0 12px 24px -8px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .32)));rotate:2deg}
${R} .cch2-lanyard{position:absolute;top:14px;left:50%;translate:-50% 0;width:56px;height:8px;border-radius:999px;background:color-mix(in oklch,var(--ink) 14%,var(--card));box-shadow:inset 0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .35)}
${R} .cch2-pass-title{margin:0;padding-right:76px;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:1.0625rem;line-height:1.25;color:var(--accent);text-wrap:balance}
${R} .cch2-guest{margin-top:20px}
${R} .cch2-micro{display:block;font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
${R} .cch2-guest-name{margin:8px 0 0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(1.625rem,2.4vw,2rem);line-height:1.1;color:var(--ink);overflow-wrap:anywhere;text-wrap:balance}
${R} .cch2-status{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:700;color:var(--success)}
${R} .cch2-status svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
${R} .cch2-details{margin:20px 0 0;padding-top:20px;border-top:1px solid oklch(from var(--ink) l c h / .12);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
${R} .cch2-details dd{margin:6px 0 0;font-size:1.0625rem;line-height:1.35;font-weight:700;color:var(--ink);text-wrap:pretty}
${R} .cch2-well{margin-top:20px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 12px 12px 16px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
${R} .cch2-step .cch2-well{margin-top:0;padding:14px 16px 16px}
${R} .cch2-step .cch2-well-text{flex-basis:100%}
${R} .cch2-well-text{flex:1 1 9rem;min-width:0;display:flex;flex-direction:column;gap:4px}
${R} .cch2-code{font-family:var(--font-display);font-weight:800;font-size:1.25rem;line-height:1.2;letter-spacing:.06em;font-variant-numeric:tabular-nums;color:var(--ink);overflow-wrap:anywhere}
${R} .cch2-code.is-email{font-family:var(--font-body);font-size:1rem;letter-spacing:0;font-weight:700;overflow-wrap:break-word}
${R} .cch2-seal{position:absolute;top:-34px;right:-26px;z-index:2;width:clamp(96px,10vw,128px);height:auto;aspect-ratio:1;object-fit:contain;rotate:-12deg;pointer-events:none;filter:drop-shadow(0 2px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .45)) drop-shadow(0 8px 12px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3));animation:cch2-stamp .62s cubic-bezier(.2,.7,.2,1) .5s both}
${R} .cch2-head2{margin-top:clamp(56px,7vw,96px);max-width:calc(46rem + 2 * var(--cch2-gutter));text-align:center;scroll-margin-top:24px}
${R} .cch2-h2{margin:0;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;color:var(--band-ink);text-wrap:balance}
${R} .cch2-lead2{margin:14px auto 0;max-width:40rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--band-ink);text-wrap:pretty}
${R} .cch2-meter{margin:28px auto 0;max-width:520px}
${R} .cch2-meter-text{margin:0;min-height:1.4em;font-size:1rem;line-height:1.4;font-weight:700;color:var(--band-ink);text-wrap:pretty}
${R} .cch2-meter-badge{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:999px;background:var(--success);color:var(--success-ink,#fff);vertical-align:-.4em;margin-inline-end:.5em}
${R} .cch2-track{margin-top:12px;height:12px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .16);overflow:hidden}
${R} .cch2-fill{display:block;height:100%;border-radius:inherit;background:var(--accent-fill,var(--accent));box-shadow:inset 0 1px 0 oklch(from var(--accent-fill,var(--accent)) calc(l + .14) c h / .7);transition:width .45s cubic-bezier(.2,.7,.2,1)}
${R} .cch2-floor{position:relative;z-index:1;padding-bottom:clamp(64px,8.5vw,120px)}
${R} .cch2-fan{list-style:none;margin:calc(-1 * var(--cch2-overlap)) auto 0;padding:0 var(--cch2-gutter);max-width:calc(1080px + 2 * var(--cch2-gutter));display:grid;gap:16px}
${R} .cch2-step{position:relative;display:flex;flex-direction:column;min-width:0;padding:clamp(20px,3vw,28px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .22),0 4px 10px -2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .2)));transition:translate .3s cubic-bezier(.2,.7,.2,1),rotate .3s cubic-bezier(.2,.7,.2,1),box-shadow .2s ease,border-color .2s ease}
${R} .cch2-step.is-active{border-color:oklch(from var(--accent) l c h / .45);box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .22),0 12px 24px -8px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .32))}
${R} .cch2-step.is-done{border-color:oklch(from var(--success) l c h / .5)}
${R} .cch2-step-top{display:flex;align-items:center;gap:12px;margin-bottom:12px}
${R} .cch2-num{font-family:var(--font-display);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.25rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--accent)}
${R} .cch2-donetag{font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--success)}
${R} .cch2-tick{margin-left:auto;flex:0 0 auto;width:44px;height:44px;display:grid;place-items:center;padding:0;border-radius:999px;border:2px solid color-mix(in oklch,var(--ink) 50%,var(--card));background:var(--card);color:color-mix(in oklch,var(--ink) 50%,var(--card));font-family:var(--button-font,var(--font-display));cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
${R} .cch2-tick:hover{border-color:var(--success);color:var(--success)}
${R} .cch2-tick:active{transform:scale(.94)}
${R} .cch2-tick[aria-pressed='true']{background:var(--success);border-color:var(--success);color:var(--success-ink,#fff);animation:cch2-pop .3s cubic-bezier(.2,.7,.2,1) both}
${R} .cch2-h3{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;color:var(--ink);text-wrap:balance}
${R} .cch2-step-detail{margin:8px 0 0;font-size:1.0625rem;line-height:1.5;color:var(--muted);text-wrap:pretty}
${R} .cch2-step-action{margin-top:auto;padding-top:20px}
${R} .cch2-btn2{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--radius,12px));background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:var(--button-2-shadow,var(--shadow-sm));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:1rem;line-height:1.15;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background .16s ease,transform .16s ease,box-shadow .16s ease;-webkit-tap-highlight-color:transparent}
${R} .cch2-btn2:hover{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .04) c h)}
${R} .cch2-btn2:active{transform:translateY(1px);box-shadow:none}
${R} .cch2-btn2:focus-visible,${R} .cch2-tick:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .6);outline-offset:2px}
${R} .cch2-copy{min-height:44px;padding:0 14px}
${R} .cch2-copy[data-copied] svg{color:var(--success)}
${R} .cch2-wide{width:100%}
${R} .cch2-cal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
${R} .cch2-calbtn{flex-direction:column;gap:6px;min-height:68px;min-width:0;padding:10px 6px;font-size:.9375rem}
${R} .cch2-mark{width:20px;height:20px;flex:0 0 auto}
${R} .cch2-in{animation:cch2-rise .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes cch2-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cch2-stamp{0%{opacity:0;scale:1.75;rotate:-30deg}60%{opacity:1;scale:.9;rotate:-10deg}82%{scale:1.04}100%{opacity:1;scale:1;rotate:-12deg}}
@keyframes cch2-pop{from{scale:.9}to{scale:1}}
@media (min-width:960px){
${R} .cch2-fan{display:flex;align-items:stretch;justify-content:center;gap:0}
${R} .cch2-step{flex:0 0 calc((100% + 48px) / 3);padding:30px 36px 32px;transform-origin:50% 140%}
${R} .cch2-step + .cch2-step{margin-left:-24px}
${R} .cch2-step[data-pos='0']{rotate:-3deg;translate:0 14px}
${R} .cch2-step[data-pos='1']{rotate:0deg;translate:0 0}
${R} .cch2-step[data-pos='2']{rotate:3deg;translate:0 14px}
${R} .cch2-step.is-active{translate:0 -10px}
}
@media (max-width:959px){
${R} .cch2-top{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'pass' 'body';grid-template-rows:auto}
${R} .cch2-passwrap{margin-top:24px;padding-top:clamp(64px,18vw,96px)}
${R} .cch2-pass{margin-inline:auto;width:min(100%,460px);rotate:0deg}
${R} .cch2-pass-art{left:50%;translate:-64% 0;width:min(72%,340px)}
${R} .cch2-body{margin-top:32px}
}
@media (max-width:599px){
${R} .cch2-actions{max-width:none}
${R} .cch2-cta{padding:0 20px}
${R} .cch2-seal{top:-24px;right:-6px;width:88px}
${R} .cch2-pass-title{padding-right:60px}
}
@media (prefers-reduced-motion:reduce){
${R} .cch2-in,${R} .cch2-seal,${R} .cch2-tick[aria-pressed='true']{animation:none}
${R} .cch2-step,${R} .cch2-fill,${R} .cch2-cta,${R} .cch2-btn2,${R} .cch2-tick{transition:none}
}
`
pieces/hero/confirmation-hero-2/specimen.tsx 81 lines
import __studioImagee7c98d7d from "../assets/f068d0fe4cc9f77a.webp";
import __studioImage7e2ac247 from "../assets/c437192aae2795ab.webp";
import * as React from 'react'
import { ConfirmationHero2 } from '../confirmation-hero-2'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
const reg = defaults.sample.registration
export const states = ['default', 'hover', 'active', 'disabled', 'success'] as const
export default function ConfirmationHero2Specimen({ state = 'default' }: { state?: (typeof states)[number] }) {
return (
<ConfirmationHero2
state={state}
name='Dana Rivera'
letter={{
paragraphs: [
`Your seat in the ${reg.name} is saved, and your access link is on its way to your inbox.`,
'Do the three quick steps below, then press play. You will map your offer, your page copy and your next steps in one sitting.',
],
closing: 'Talk soon,',
signature: 'Jordan',
signerRole: 'Your workshop host',
}}
cta={{ label: 'Take me to the workshop' }}
quietLink={{ label: 'or finish the three steps below first' }}
pass={{
title: reg.name,
guestLabel: 'Guest',
status: 'Seat confirmed',
details: [
{ label: 'Access', value: 'Free, on demand' },
{ label: 'Watch', value: 'Online, any device' },
],
codeLabel: 'Your access code',
code: 'FSW-2741',
}}
passImage={slot(
'product',
__studioImagee7c98d7d,
)}
passImageAlt={`${reg.name} printed access pass`}
sealImage={slot(
'stamp',
__studioImage7e2ac247,
)}
stepsHeading='Do these three things now'
stepsLead='Tick them off as you go, so nothing from the workshop gets missed.'
steps={[
{
id: 'whitelist',
kind: 'copy',
title: 'Whitelist our email',
detail: 'Add this address to your contacts so your workshop emails skip the spam folder.',
value: 'hello@funnelstarter.example',
actionLabel: 'Copy our email address',
},
{
id: 'calendar',
kind: 'calendar',
title: 'Block an hour to watch',
detail: 'Save the time now, so the workshop actually gets watched.',
},
{
id: 'group',
kind: 'link',
title: 'Join the group',
detail: 'Build your first funnel alongside everyone else taking the workshop.',
actionLabel: 'Join the group',
},
]}
event={{
title: `Watch the ${reg.name}`,
details: reg.lead,
location: 'Online',
durationMinutes: 60,
}}
/>
)
}
| Name | Type | Details |
|---|---|---|
name OptionalConfirmationHero2 |
string |
|
headline OptionalConfirmationHero2 |
React.ReactNode |
|
copy OptionalConfirmationHero2 |
Partial<ConfirmationHero2Copy> |
|
letter OptionalConfirmationHero2 |
ConfirmationLetter |
|
cta OptionalConfirmationHero2 |
{ label: string; href?: string; disabled?: boolean } | null |
Default { label: 'Take me to the workshop' }
|
href OptionalConfirmationHero2 |
string |
Default cta?.href
|
onAction OptionalConfirmationHero2 |
() => void |
|
quietLink OptionalConfirmationHero2 |
{ label: string; href?: string } | null |
Default { label: 'or finish the three steps below first' }
|
pass OptionalConfirmationHero2 |
ConfirmationPass |
|
passImage OptionalConfirmationHero2 |
string |
|
passImageAlt OptionalConfirmationHero2 |
string |
Default ''
|
sealImage OptionalConfirmationHero2 |
string |
|
sealImageAlt OptionalConfirmationHero2 |
string |
Default ''
|
stepsHeading OptionalConfirmationHero2 |
React.ReactNode |
Default 'Do these three things now'
|
stepsLead OptionalConfirmationHero2 |
React.ReactNode |
Default 'Tick them off as you go, so nothing from the workshop gets missed.'
|
steps OptionalConfirmationHero2 |
ConfirmationStep[] |
Default DEFAULT_STEPS
|
event OptionalConfirmationHero2 |
ConfirmationCalendarEvent |
Default DEFAULT_EVENT
|
initialDone OptionalConfirmationHero2 |
string[] |
|
onStep OptionalConfirmationHero2 |
(id: string, done: boolean) => void |
|
onCopy OptionalConfirmationHero2 |
(value: string) => void |
|
onCalendar OptionalConfirmationHero2 |
(provider: 'google' | 'apple' | 'outlook') => void |
|
onComplete OptionalConfirmationHero2 |
() => void |
|
state OptionalConfirmationHero2 |
ConfirmationHero2State |
Default 'default'
|
className OptionalConfirmationHero2 |
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-border--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-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
stamp- A stamp or badge graphic, on a transparent background.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
c437192aae2795ab.webp
image/webp · 407 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f068d0fe4cc9f77a.webp
image/webp · 186 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB