Results Gate 8
Previews the sealed cards in the visitor's quiz results and collects their name and email to get them.
Use it in a prompt
Use forms/results-gate-8 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/forms/results-gate-8.tsx. - Import it and pass your copy and images (Props tab):
import { ResultsGate8 } from "@/components/funneldna/forms/results-gate-8"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/forms/results-gate-8/component.tsx 439 lines
// Previews the sealed cards in the visitor's quiz results and collects their name and email to get them.
import * as React from 'react'
import { AlertCircle, Loader2, Lock, Mail, User } from 'lucide-react'
export type ResultsGate8Props = {
/** Big promise printed on the reply sheet. */
headline?: string
/** One continuous phrase inside the headline that gets the marker stroke. */
highlight?: string
lead?: string
/** Up to three sealed index cards fanned beside the reply sheet. Keep tab labels short (one or two words). */
cards?: ResultsFanCard[]
sealedLabel?: string
sealedNote?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
openLabel?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
openNote?: string
fanHint?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
openHint?: string
tabsLabel?: string
firstNameLabel?: string
firstNamePlaceholder?: string
emailLabel?: string
emailPlaceholder?: string
label?: string
loadingLabel?: string
privacy?: string
nameError?: string
emailError?: string
error?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
successTitle?: string | ((firstName: string) => string)
/** @deprecated No longer rendered: the builder wires what happens after submit. */
successTitleTemplate?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
emptySuccessTitle?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
success?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
resultsLabel?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
href?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
resultsHref?: string
/** Retained for compatibility; cards now use the solid theme surface. */
paper?: string
/** Modern 3D results badge on a transparent background, shown top right with a soft drop shadow. */
badgeImage?: string
/** Legacy alias for badgeImage. */
badge?: string
/** @deprecated Use badge. */
stamp?: string
headingLevel?: 'h2' | 'h3'
/** "success" is accepted for older callers and renders as default. */
state?: ResultsGate8State
/** Receives validated values. A returned promise shows the loading label; a rejection shows the error alert. */
onSubmit?: (values: ResultsFanValues) => void | Promise<void>
className?: string
style?: React.CSSProperties
}
export function ResultsGate8({
headline = 'Your results are ready',
highlight = 'results',
lead = 'Enter your first name and email to open your quiz results and see exactly what to do next.',
cards = DEFAULT_CARDS,
sealedLabel = 'Sealed',
sealedNote = 'Opens when you send your details',
fanHint = 'Tap a tab to see what’s sealed inside.',
tabsLabel = 'What’s inside your results',
firstNameLabel = 'First name',
firstNamePlaceholder = 'Your first name',
emailLabel = 'Email address',
emailPlaceholder = 'you@example.com',
label = 'See My Results',
loadingLabel = 'Opening your results…',
privacy = 'We respect your inbox. Unsubscribe anytime.',
nameError = 'Add your first name so we know who the results are for.',
emailError = 'Enter a valid email so we can send your results.',
error = 'We couldn’t open your results just now. Please try again.',
badge,
stamp,
badgeImage = badge ?? stamp,
headingLevel = 'h2',
state = 'default',
onSubmit,
className,
style,
}: ResultsGate8Props) {
const uid = React.useId().replace(/:/g, '')
const [values, setValues] = React.useState<ResultsFanValues>({ firstName: '', email: '' })
const [errors, setErrors] = React.useState<FieldErrors>({})
const [status, setStatus] = React.useState<'idle' | 'loading' | 'error'>('idle')
const [active, setActive] = React.useState(0)
const tabRefs = React.useRef<Array<HTMLButtonElement | null>>([])
const badgeSrc = badgeImage
const deck = cards.slice(0, 3)
const n = deck.length
const loading = status === 'loading'
const disabled = state === 'disabled'
const showAlert = status === 'error'
const shown: FieldErrors = state === 'error' && !errors.firstName && !errors.email ? { email: emailError } : errors
const Heading = headingLevel as 'h2'
const Sub = (headingLevel === 'h2' ? 'h3' : 'h4') as 'h3'
function update(field: keyof ResultsFanValues, value: string) {
setValues((v) => ({ ...v, [field]: value }))
if (errors[field]) setErrors((er) => ({ ...er, [field]: undefined }))
if (status === 'error') setStatus('idle')
}
function onTabKey(e: React.KeyboardEvent<HTMLButtonElement>, i: number) {
let next = -1
if (e.key === 'ArrowRight' || e.key === 'ArrowDown') next = (i + 1) % n
else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') next = (i - 1 + n) % n
else if (e.key === 'Home') next = 0
else if (e.key === 'End') next = n - 1
if (next < 0) return
e.preventDefault()
setActive(next)
tabRefs.current[next]?.focus()
}
async function handleSubmit(e: React.FormEvent<HTMLFormElement>) {
e.preventDefault()
if (disabled || loading) return
const next: FieldErrors = {}
if (!values.firstName.trim()) next.firstName = nameError
if (!EMAIL.test(values.email.trim())) next.email = emailError
setErrors(next)
if (next.firstName || next.email) {
document.getElementById(next.firstName ? `${uid}-fn` : `${uid}-em`)?.focus()
return
}
try {
const result = onSubmit?.({ firstName: values.firstName.trim(), email: values.email.trim() })
if (!result) return
setStatus('loading')
await result
setStatus('idle')
} catch {
setStatus('error')
}
}
const force = state === 'hover' || state === 'active' ? state : undefined
return (
<div className={['cf-results-gate-8', className].filter(Boolean).join(' ')} style={style}>
<style>{CSS}</style>
<div className='rgf' data-state={state}>
<div className='rgf-back' aria-hidden='true' />
<div className='rgf-paper' aria-hidden='true' />
<div className='rgf-head'>
{badgeSrc ? <img className='rgf-badge' src={badgeSrc} alt='' width={256} height={256} /> : null}
<Heading className='rgf-title' id={`${uid}-title`}>
{marked(headline, highlight)}
</Heading>
<p className='rgf-lead'>{lead}</p>
</div>
<div className='rgf-fan'>
<div className='rgf-deck' role='tablist' aria-label={tabsLabel}>
{deck.map((card, i) => {
const pos = (i - active + n) % n
const isActive = pos === 0
const bars = BARS[i % BARS.length]
return (
<div
key={card.tab + i}
role='presentation'
className='rgf-card'
data-i={i}
data-pos={pos}
style={{ '--slot': i } as React.CSSProperties}
onClick={() => setActive(i)}
>
<button
ref={(el) => {
tabRefs.current[i] = el
}}
type='button'
role='tab'
id={`${uid}-tab-${i}`}
className='rgf-tab'
aria-selected={isActive}
aria-controls={`${uid}-panel-${i}`}
tabIndex={isActive ? 0 : -1}
onClick={(e) => {
e.stopPropagation()
setActive(i)
}}
onKeyDown={(e) => onTabKey(e, i)}
>
{card.tab}
</button>
<div className='rgf-panel' role='tabpanel' id={`${uid}-panel-${i}`} aria-labelledby={`${uid}-tab-${i}`} aria-hidden={!isActive}>
<Sub className='rgf-ctitle'>{card.title}</Sub>
<p className='rgf-cdetail'>{card.detail}</p>
<div className='rgf-redact' aria-hidden='true'>
{bars.map((w, b) => (
<i key={b} style={{ width: w }} />
))}
</div>
<div className='rgf-seal'>
<span className='rgf-seal-ico' aria-hidden='true'>
<Lock />
</span>
<span>
<b>{sealedLabel}</b>
<span className='rgf-seal-note'>{sealedNote}</span>
</span>
</div>
</div>
</div>
)
})}
</div>
<p className='rgf-hint' aria-live='polite'>
{fanHint}
</p>
</div>
<div className='rgf-form-area'>
<form className='rgf-form' noValidate onSubmit={handleSubmit} aria-labelledby={`${uid}-title`}>
{showAlert ? (
<div className='rgf-alert' role='alert'>
<AlertCircle aria-hidden='true' />
<span>{error}</span>
</div>
) : null}
<div className='rgf-field'>
<label className='rgf-label' htmlFor={`${uid}-fn`}>
{firstNameLabel}
</label>
<div className='rgf-control'>
<User aria-hidden='true' />
<input
id={`${uid}-fn`}
className='rgf-input'
name='firstName'
type='text'
autoComplete='given-name'
placeholder={firstNamePlaceholder}
value={values.firstName}
onChange={(e) => update('firstName', e.target.value)}
disabled={disabled || loading}
aria-invalid={shown.firstName ? true : undefined}
aria-describedby={shown.firstName ? `${uid}-fn-err` : undefined}
/>
</div>
{shown.firstName ? (
<p className='rgf-ferr' id={`${uid}-fn-err`}>
<AlertCircle aria-hidden='true' />
{shown.firstName}
</p>
) : null}
</div>
<div className='rgf-field'>
<label className='rgf-label' htmlFor={`${uid}-em`}>
{emailLabel}
</label>
<div className='rgf-control'>
<Mail aria-hidden='true' />
<input
id={`${uid}-em`}
className='rgf-input'
name='email'
type='email'
inputMode='email'
autoComplete='email'
placeholder={emailPlaceholder}
value={values.email}
onChange={(e) => update('email', e.target.value)}
disabled={disabled || loading}
aria-invalid={shown.email ? true : undefined}
aria-describedby={shown.email ? `${uid}-em-err` : undefined}
/>
</div>
{shown.email ? (
<p className='rgf-ferr' id={`${uid}-em-err`}>
<AlertCircle aria-hidden='true' />
{shown.email}
</p>
) : null}
</div>
<button type='submit' className='rgf-btn' data-force={force} disabled={disabled || loading} aria-busy={loading || undefined}>
<span>{loading ? loadingLabel : label}</span>
{loading ? <Loader2 className='rgf-spin' aria-hidden='true' /> : null}
</button>
<p className='rgf-privacy'>
<Lock aria-hidden='true' />
<span>{privacy}</span>
</p>
</form>
</div>
</div>
</div>
)
}
export default ResultsGate8
/** "success" is accepted for older callers and renders as default. */
export type ResultsGate8State = 'default' | 'hover' | 'active' | 'disabled' | 'error' | 'success'
export type ResultsFanValues = { firstName: string; email: string }
export type ResultsFanCard = { tab: string; title: string; detail: string }
type FieldErrors = { firstName?: string; email?: string }
const EMAIL = /^[^ @]+@[^ @]+[.][^ @]{2,}$/
const BARS = [
['92%', '70%', '84%', '56%'],
['78%', '90%', '62%', '74%'],
['86%', '60%', '80%', '66%'],
]
const DEFAULT_CARDS: ResultsFanCard[] = [
{ tab: 'Result', title: 'Your quiz result', detail: 'The result your answers point to, in plain words.' },
{ tab: 'Why it fits', title: 'Why it fits you', detail: 'What your answers say about where you stand today.' },
{ tab: 'Next steps', title: 'Your next steps', detail: 'The first moves to make, in the order to make them.' },
]
function marked(text: string, phrase?: string) {
if (!phrase) return text
const at = text.indexOf(phrase)
if (at < 0) return text
return (
<>
{text.slice(0, at)}
<span className='rgf-mark'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
)
}
const CSS = `
.cf-results-gate-8{container:rgf / inline-size;width:100%}
:where(.cf-results-gate-8) .rgf{--rgf-cta:var(--cta,#d92d20);--rgf-cta2:var(--cta-2,#b42318);--rgf-cta-ink:var(--cta-ink,#ffffff);--rgf-ink:var(--ink,#101828);--rgf-muted:var(--muted,#4a5565);--rgf-accent:var(--accent,#0f5fc2);--rgf-band:var(--band,#0f2747);--rgf-band-ink:var(--band-ink,#ffffff);--rgf-card:var(--card,#ffffff);--rgf-field:var(--field,#ffffff);--rgf-field-ink:var(--field-ink,#101828);--rgf-line:oklch(from var(--rgf-ink) l c h / 0.11);--rgf-shade:oklch(from var(--rgf-ink) l c h / 0.24);position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'fan' 'form';width:100%;max-width:1120px;margin-inline:auto;padding:0 0 16px;color:var(--rgf-ink);font-family:var(--font-body,Arial,Helvetica,sans-serif);line-height:1.5;-webkit-font-smoothing:antialiased;--rgf-paper:var(--card);--rgf-marker:var(--marker,color-mix(in oklch,var(--accent) 12%,var(--card)));--rgf-ochre:var(--band);--rgf-err:var(--danger);--rgf-r:var(--card-radius,var(--radius));--rgf-index:var(--card);}
:where(.cf-results-gate-8) .rgf *,:where(.cf-results-gate-8) .rgf *::before,:where(.cf-results-gate-8) .rgf *::after{box-sizing:border-box}
:where(.cf-results-gate-8) .rgf-back,:where(.cf-results-gate-8) .rgf-paper{grid-column:1;grid-row:1 / 4;border-radius:var(--rgf-r)}
:where(.cf-results-gate-8) .rgf-back{position:relative;z-index:-1;margin:14px 6px -14px;border:1px solid var(--rgf-line);background:var(--card);border-color:var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius,var(--radius));box-shadow:var(--card-shadow,0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21));}
:where(.cf-results-gate-8) .rgf-paper{position:relative;z-index:0;border:1px solid var(--rgf-line);background:var(--card);border-color:var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius,var(--radius));box-shadow:var(--card-shadow,0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21));}
:where(.cf-results-gate-8) .rgf-head{grid-area:head;position:relative;z-index:6;min-width:0;padding:36px 26px 0}
:where(.cf-results-gate-8) .rgf-head::after{content:'';display:table;clear:both}
:where(.cf-results-gate-8) .rgf-badge{float:right;width:84px;height:auto;margin:-14px -8px 10px 14px;animation:rgf-badge-in .6s cubic-bezier(.2,.9,.3,1.2) .45s backwards,rgf-float 5.5s ease-in-out 1.2s infinite;pointer-events:none;filter:drop-shadow(0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21));object-fit:contain;}
:where(.cf-results-gate-8) .rgf-title{margin:0;font-family:var(--font-display,Georgia,serif);font-size:clamp(2.15rem,6.4cqi,4.5rem);line-height:1.02;color:var(--rgf-ink);text-wrap:balance;font-weight:var(--display-weight,900);letter-spacing:var(--display-tracking,-.022em);text-transform:var(--display-case,none);}
:where(.cf-results-gate-8) .rgf-mark{padding:0 .12em;margin:0 -.05em;border-radius:.35em .8em .4em .7em / .7em .4em .8em .45em;background-image:linear-gradient(175deg in oklch,transparent 0 40%,oklch(from var(--rgf-marker) l c h / 0.92) 40% 95%,transparent 95%);background-repeat:no-repeat;background-size:100% 100%;-webkit-box-decoration-break:clone;box-decoration-break:clone;animation:rgf-mark .75s cubic-bezier(.3,.7,.2,1) .25s backwards}
:where(.cf-results-gate-8) .rgf-lead{margin:16px 0 0;max-width:40ch;font-size:clamp(1.0625rem,1.9cqi,1.3rem);font-weight:500;line-height:1.5;color:var(--rgf-muted);text-wrap:pretty}
:where(.cf-results-gate-8) .rgf-fan{grid-area:fan;position:relative;min-width:0;padding:124px 28px 0}
:where(.cf-results-gate-8) .rgf-deck{position:relative;display:grid}
:where(.cf-results-gate-8) .rgf-card{--tx:0px;--ty:0px;--rot:0deg;grid-area:1 / 1;position:relative;min-width:0;padding:24px 22px 22px;border:1px solid oklch(from var(--rgf-ink) l c h / 0.13);transform:translate(var(--tx),var(--ty)) rotate(var(--rot));transform-origin:50% 100%;transition:transform .5s cubic-bezier(.22,1,.36,1);animation:rgf-deal .7s cubic-bezier(.22,1,.36,1) backwards;background:var(--card);border-color:var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius,var(--radius));box-shadow:var(--card-shadow,0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21));}
:where(.cf-results-gate-8) .rgf-card[data-i='0']{animation-delay:.26s;--rgf-tabc:var(--button-2-bg,var(--card));--rgf-tabink:var(--button-2-ink,var(--ink));}
:where(.cf-results-gate-8) .rgf-card[data-i='1']{animation-delay:.17s;--rgf-tabc:var(--button-2-bg,var(--card));--rgf-tabink:var(--button-2-ink,var(--ink));}
:where(.cf-results-gate-8) .rgf-card[data-i='2']{animation-delay:.08s;--rgf-tabc:var(--button-2-bg,var(--card));--rgf-tabink:var(--button-2-ink,var(--ink));}
:where(.cf-results-gate-8) .rgf-card[data-pos='0']{z-index:3}
:where(.cf-results-gate-8) .rgf-card[data-pos='1']{--tx:-6px;--ty:-38px;--rot:-2.2deg;z-index:2;cursor:pointer}
:where(.cf-results-gate-8) .rgf-card[data-pos='2']{--tx:8px;--ty:-76px;--rot:2deg;z-index:1;cursor:pointer}
:where(.cf-results-gate-8) .rgf-card:not([data-pos='0'])::before{content:'';position:absolute;inset:18px;border-radius:2px;pointer-events:none;background:var(--card);}
:where(.cf-results-gate-8) .rgf-card:not([data-pos='0']) .rgf-panel{visibility:hidden}
:where(.cf-results-gate-8) .rgf-tab{position:absolute;bottom:100%;left:calc(10px + var(--slot) * ((100% - 20px) / 3));width:calc((100% - 20px) / 3 - 6px);height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px;border:0;white-space:nowrap;cursor:pointer;transition:filter .2s ease,transform .2s ease;background:var(--button-2-bg,var(--card));color:var(--button-2-ink,var(--ink));border-radius:var(--button-radius,var(--radius)) var(--button-radius,var(--radius)) 0 0;font:var(--button-weight,800) 14px/1 var(--button-font,var(--font-body));text-transform:var(--button-case,none);box-shadow:var(--button-shadow,inset 0 0 0 1px var(--button-2-border,oklch(from var(--ink) l c h / 0.22)),0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21));}
:where(.cf-results-gate-8) .rgf-tab[aria-selected='false']{;box-shadow:var(--button-shadow,inset 0 -2px 0 oklch(from var(--card) calc(l - 0.12) c h / 0.35));}
:where(.cf-results-gate-8) .rgf-tab:hover{transform:translateY(-2px);filter:none;}
:where(.cf-results-gate-8) .rgf-tab:focus-visible{outline:3px solid var(--rgf-ink);outline-offset:2px}
:where(.cf-results-gate-8) .rgf-panel{display:flex;flex-direction:column;height:100%}
:where(.cf-results-gate-8) .rgf-ctitle{margin:0;font-family:var(--font-display,Georgia,serif);font-size:clamp(1.375rem,2.4cqi,1.75rem);line-height:1.12;color:var(--rgf-ink);text-wrap:balance;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.012em);text-transform:var(--display-case,none);}
:where(.cf-results-gate-8) .rgf-cdetail{margin:10px 0 0;font-size:16px;font-weight:500;line-height:1.45;color:var(--rgf-muted);text-wrap:pretty}
:where(.cf-results-gate-8) .rgf-redact{margin:18px 0 0;padding:16px 14px;display:grid;gap:11px;overflow:hidden;background:color-mix(in oklch,var(--ink) 4%,var(--card));border-radius:var(--card-radius,var(--radius));box-shadow:none;}
:where(.cf-results-gate-8) .rgf-redact i{display:block;height:10px;border-radius:99px;background:oklch(from var(--rgf-ink) l c h / 0.24);filter:blur(3px)}
:where(.cf-results-gate-8) .rgf-seal{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:18px}
:where(.cf-results-gate-8) .rgf-seal-ico{flex:none;width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:var(--rgf-band);color:var(--rgf-band-ink);box-shadow:inset 0 1px 0 oklch(from var(--band) calc(l + 0.04) c h / 0.6),0 3px 6px -1px oklch(from var(--band) calc(l - 0.12) c h / 0.35)}
:where(.cf-results-gate-8) .rgf-seal-ico svg{width:20px;height:20px;stroke-width:2.4}
:where(.cf-results-gate-8) .rgf-seal b{display:block;font-size:17px;font-weight:800;line-height:1.2;color:var(--rgf-ink)}
:where(.cf-results-gate-8) .rgf-seal-note{display:block;margin-top:2px;font-size:14px;font-weight:500;line-height:1.35;color:var(--rgf-muted);text-wrap:pretty}
:where(.cf-results-gate-8) .rgf-hint{margin:22px 0 0;text-align:center;font-size:14px;font-weight:600;line-height:1.4;color:var(--rgf-muted);text-wrap:pretty}
:where(.cf-results-gate-8) .rgf-form-area{grid-area:form;position:relative;z-index:6;min-width:0;padding:32px 26px 38px}
:where(.cf-results-gate-8) .rgf-form{display:grid;gap:18px}
:where(.cf-results-gate-8) .rgf-field{display:grid;gap:8px;min-width:0}
:where(.cf-results-gate-8) .rgf-label{font-size:18px;font-weight:800;line-height:1.2;color:var(--label-ink,var(--ink));}
:where(.cf-results-gate-8) .rgf-control{position:relative}
:where(.cf-results-gate-8) .rgf-control>svg{position:absolute;left:16px;top:50%;width:20px;height:20px;transform:translateY(-50%);color:color-mix(in oklch,var(--rgf-field-ink) 58%,var(--rgf-field));pointer-events:none}
:where(.cf-results-gate-8) .rgf-input{width:100%;height:58px;padding:0 16px 0 48px;border:1.5px solid oklch(from var(--rgf-ink) l c h / 0.28);background:var(--rgf-field);color:var(--rgf-field-ink);font:600 18px/1.2 var(--font-body,Arial,sans-serif);appearance:none;transition:border-color .2s ease,box-shadow .2s ease;border-color:var(--field-border,oklch(from var(--ink) l c h / 0.22));border-radius:var(--field-radius,var(--radius));box-shadow:inset 0 2px 3px oklch(from var(--card) calc(l - 0.12) c h / 0.35);}
:where(.cf-results-gate-8) .rgf-input::placeholder{opacity:1;font-weight:500;color:color-mix(in oklch, var(--field-ink) 65%, var(--field));}
:where(.cf-results-gate-8) .rgf-input:hover:not(:disabled){border-color:oklch(from var(--rgf-ink) l c h / 0.5)}
:where(.cf-results-gate-8) .rgf-input:focus{outline:none;border-color:var(--field-focus,var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent)) l c h / 0.22);}
:where(.cf-results-gate-8) .rgf-input[aria-invalid='true']{border-color:var(--rgf-err);box-shadow:0 0 0 4px var(--danger-soft)}
:where(.cf-results-gate-8) .rgf-input:disabled{cursor:not-allowed;background:var(--field);color:var(--field-ink);}
:where(.cf-results-gate-8) .rgf-ferr{display:flex;align-items:flex-start;gap:7px;margin:0;font-size:15px;font-weight:700;line-height:1.35;color:var(--rgf-err);text-wrap:pretty}
:where(.cf-results-gate-8) .rgf-ferr svg{flex:none;width:17px;height:17px;margin-top:1px}
:where(.cf-results-gate-8) .rgf-alert{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;color:var(--danger);font-size:16px;font-weight:600;line-height:1.4;background:var(--danger-soft);border-color:var(--danger);border-radius:var(--card-radius,var(--radius));box-shadow:var(--card-shadow,0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21));}
:where(.cf-results-gate-8) .rgf-alert svg{flex:none;width:20px;height:20px;color:var(--rgf-err)}
:where(.cf-results-gate-8) .rgf-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:66px;margin-top:6px;padding:12px 20px;letter-spacing:-.005em;text-decoration:none;text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,filter .2s ease;background:linear-gradient(180deg in oklch,var(--button-bg,var(--cta)),var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)));color:var(--button-ink,var(--cta-ink));border-color:var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h));border-radius:var(--button-radius,var(--radius));font:var(--button-weight,800) clamp(1.25rem,2.6cqi,1.5rem)/1.1 var(--button-font,var(--font-body));text-transform:var(--button-case,none);box-shadow:var(--button-shadow,inset 0 -2px 0 oklch(from var(--card) calc(l - 0.12) c h / 0.35),0 3px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21));border:1px solid var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h));}
:where(.cf-results-gate-8) .rgf-btn>span{min-width:0;text-align:center;text-wrap:balance}
:where(.cf-results-gate-8) .rgf-btn svg{flex:none;width:24px;height:24px;stroke-width:2.6;transition:transform .2s ease}
:where(.cf-results-gate-8) .rgf-btn:hover:not(:disabled),:where(.cf-results-gate-8) .rgf-btn[data-force='hover']{transform:translateY(-2px);filter:none;box-shadow:var(--button-shadow,inset 0 -2px 0 oklch(from var(--card) calc(l - 0.12) c h / 0.35),0 3px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21));}
:where(.cf-results-gate-8) .rgf-btn:active:not(:disabled),:where(.cf-results-gate-8) .rgf-btn[data-force='active']{transform:translateY(3px);filter:none;box-shadow:var(--button-shadow,inset 0 -2px 0 oklch(from var(--card) calc(l - 0.12) c h / 0.35),0 3px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21));}
:where(.cf-results-gate-8) .rgf-btn:focus-visible{outline:3px solid var(--rgf-ink);outline-offset:3px}
:where(.cf-results-gate-8) .rgf-btn:disabled{cursor:not-allowed;transform:none;background:var(--button-2-bg,var(--card));color:var(--button-2-ink,var(--ink));border-color:var(--button-2-border,oklch(from var(--ink) l c h / 0.22));border-radius:var(--button-radius,var(--radius));box-shadow:var(--button-shadow,none);filter:none;opacity:1;}
:where(.cf-results-gate-8) .rgf-btn[aria-busy='true']{cursor:progress;filter:none;opacity:1}
:where(.cf-results-gate-8) .rgf-spin{animation:rgf-spin .9s linear infinite}
:where(.cf-results-gate-8) .rgf-privacy{display:block;margin:4px 0 0;font-size:14px;font-weight:500;line-height:1.4;text-align:center;color:var(--rgf-muted);text-wrap:pretty}
:where(.cf-results-gate-8) .rgf-privacy svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em;width:15px;height:15px}
@keyframes rgf-deal{from{transform:translate(0,28px) rotate(0deg)}}
@keyframes rgf-mark{from{background-size:0% 100%}}
@keyframes rgf-badge-in{from{opacity:0;transform:translateY(12px) scale(.82)}}
@keyframes rgf-float{50%{transform:translateY(-5px)}}
@keyframes rgf-spin{to{transform:rotate(360deg)}}
@container rgf (min-width:860px){
:where(.cf-results-gate-8) .rgf{grid-template-columns:minmax(0,390px) minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:'fan head' 'fan form';padding:0 20px 24px 0}
:where(.cf-results-gate-8) .rgf-back,:where(.cf-results-gate-8) .rgf-paper{grid-column:2;grid-row:1 / 3}
:where(.cf-results-gate-8) .rgf-back{z-index:1;margin:0;transform:translate(12px,14px) rotate(1.2deg)}
:where(.cf-results-gate-8) .rgf-paper{z-index:2}
:where(.cf-results-gate-8) .rgf-fan{align-self:start;margin:40px -24px 0 0;padding:118px 4px 0 56px}
:where(.cf-results-gate-8) .rgf-card{padding:30px 26px 26px}
:where(.cf-results-gate-8) .rgf-card[data-pos='0']{z-index:5;--rot:-1.4deg}
:where(.cf-results-gate-8) .rgf-card[data-pos='1']{--tx:-12px;--ty:-34px;--rot:-4.2deg;z-index:4}
:where(.cf-results-gate-8) .rgf-card[data-pos='2']{--tx:16px;--ty:-66px;--rot:3.4deg;z-index:3}
:where(.cf-results-gate-8) .rgf-head{padding:60px 64px 0 84px}
:where(.cf-results-gate-8) .rgf-badge{width:128px;margin:-26px -22px 12px 24px}
:where(.cf-results-gate-8) .rgf-lead{margin-top:22px}
:where(.cf-results-gate-8) .rgf-form-area{padding:38px 64px 60px 84px}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){@container rgf (min-width:860px){:where(.cf-results-gate-8) .rgf-deck:hover .rgf-card[data-pos='1']{--tx:-16px;--ty:-42px;--rot:-5.2deg}:where(.cf-results-gate-8) .rgf-deck:hover .rgf-card[data-pos='2']{--tx:18px;--ty:-76px;--rot:4deg}}}
@media (prefers-reduced-motion:reduce){:where(.cf-results-gate-8) .rgf *,:where(.cf-results-gate-8) .rgf *::before,:where(.cf-results-gate-8) .rgf *::after{animation:none!important;transition:none!important}:where(.cf-results-gate-8) .rgf-btn:hover:not(:disabled),:where(.cf-results-gate-8) .rgf-btn[data-force='hover'],:where(.cf-results-gate-8) .rgf-tab:hover{transform:none}}
`
export { ResultsGate8 as ResultsFanGate }
export type ResultsFanGateProps = ResultsGate8Props
export type ResultsFanState = ResultsGate8State
pieces/forms/results-gate-8/specimen.tsx 22 lines
import __studioImage8d6769c9 from "../assets/aa86cec06b49eee9.webp";
'use client'
import * as React from 'react'
import { slot } from '../../slots'
import ResultsGate8, { type ResultsGate8State } from '../results-gate-8'
import defaults from '../../studio-defaults.json'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function ResultsGate8Specimen({ state = 'default' }: { state?: ResultsGate8State }) {
return (
<ResultsGate8
state={state}
headline='Your results are ready'
highlight='results'
lead='Enter your first name and email to open your funnel quiz results and see the first step to build your funnel.'
privacy={defaults.sample.registration.privacy}
badgeImage={slot("stamp", __studioImage8d6769c9)}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalResultsGate8 |
string |
Default 'Your results are ready'
|
highlight OptionalResultsGate8 |
string |
Default 'results'
|
lead OptionalResultsGate8 |
string |
Default 'Enter your first name and email to open your quiz results and see exactly what to do next.'
|
cards OptionalResultsGate8 |
ResultsFanCard[] |
Default DEFAULT_CARDS
|
sealedLabel OptionalResultsGate8 |
string |
Default 'Sealed'
|
sealedNote OptionalResultsGate8 |
string |
Default 'Opens when you send your details'
|
openLabel OptionalResultsGate8 |
string |
|
openNote OptionalResultsGate8 |
string |
|
fanHint OptionalResultsGate8 |
string |
Default 'Tap a tab to see what’s sealed inside.'
|
openHint OptionalResultsGate8 |
string |
|
tabsLabel OptionalResultsGate8 |
string |
Default 'What’s inside your results'
|
firstNameLabel OptionalResultsGate8 |
string |
Default 'First name'
|
firstNamePlaceholder OptionalResultsGate8 |
string |
Default 'Your first name'
|
emailLabel OptionalResultsGate8 |
string |
Default 'Email address'
|
emailPlaceholder OptionalResultsGate8 |
string |
Default 'you@example.com'
|
label OptionalResultsGate8 |
string |
Default 'See My Results'
|
loadingLabel OptionalResultsGate8 |
string |
Default 'Opening your results…'
|
privacy OptionalResultsGate8 |
string |
Default 'We respect your inbox. Unsubscribe anytime.'
|
nameError OptionalResultsGate8 |
string |
Default 'Add your first name so we know who the results are for.'
|
emailError OptionalResultsGate8 |
string |
Default 'Enter a valid email so we can send your results.'
|
error OptionalResultsGate8 |
string |
Default 'We couldn’t open your results just now. Please try again.'
|
successTitle OptionalResultsGate8 |
string | ((firstName: string) => string) |
|
successTitleTemplate OptionalResultsGate8 |
string |
|
emptySuccessTitle OptionalResultsGate8 |
string |
|
success OptionalResultsGate8 |
string |
|
resultsLabel OptionalResultsGate8 |
string |
|
href OptionalResultsGate8 |
string |
|
resultsHref OptionalResultsGate8 |
string |
|
paper OptionalResultsGate8 |
string |
|
badgeImage OptionalResultsGate8 |
string |
Default badge ?? stamp
|
badge OptionalResultsGate8 |
string |
|
stamp OptionalResultsGate8 |
string |
|
headingLevel OptionalResultsGate8 |
'h2' | 'h3' |
Default 'h2'
|
state OptionalResultsGate8 |
ResultsGate8State |
Default 'default'
|
onSubmit OptionalResultsGate8 |
(values: ResultsFanValues) => void | Promise<void> |
|
className OptionalResultsGate8 |
string |
|
style OptionalResultsGate8 |
React.CSSProperties |
|
headline OptionalResultsFanGate |
string |
|
highlight OptionalResultsFanGate |
string |
|
lead OptionalResultsFanGate |
string |
|
cards OptionalResultsFanGate |
ResultsFanCard[] |
|
sealedLabel OptionalResultsFanGate |
string |
|
sealedNote OptionalResultsFanGate |
string |
|
openLabel OptionalResultsFanGate |
string |
|
openNote OptionalResultsFanGate |
string |
|
fanHint OptionalResultsFanGate |
string |
|
openHint OptionalResultsFanGate |
string |
|
tabsLabel OptionalResultsFanGate |
string |
|
firstNameLabel OptionalResultsFanGate |
string |
|
firstNamePlaceholder OptionalResultsFanGate |
string |
|
emailLabel OptionalResultsFanGate |
string |
|
emailPlaceholder OptionalResultsFanGate |
string |
|
label OptionalResultsFanGate |
string |
|
loadingLabel OptionalResultsFanGate |
string |
|
privacy OptionalResultsFanGate |
string |
|
nameError OptionalResultsFanGate |
string |
|
emailError OptionalResultsFanGate |
string |
|
error OptionalResultsFanGate |
string |
|
successTitle OptionalResultsFanGate |
string | ((firstName: string) => string) |
|
successTitleTemplate OptionalResultsFanGate |
string |
|
emptySuccessTitle OptionalResultsFanGate |
string |
|
success OptionalResultsFanGate |
string |
|
resultsLabel OptionalResultsFanGate |
string |
|
href OptionalResultsFanGate |
string |
|
resultsHref OptionalResultsFanGate |
string |
|
paper OptionalResultsFanGate |
string |
|
badgeImage OptionalResultsFanGate |
string |
|
badge OptionalResultsFanGate |
string |
|
stamp OptionalResultsFanGate |
string |
|
headingLevel OptionalResultsFanGate |
'h2' | 'h3' |
|
state OptionalResultsFanGate |
ResultsGate8State |
|
onSubmit OptionalResultsFanGate |
(values: ResultsFanValues) => void | Promise<void> |
|
className OptionalResultsFanGate |
string |
|
style OptionalResultsFanGate |
React.CSSProperties |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- 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.
stamp- A stamp or badge graphic, on a transparent background.
-
aa86cec06b49eee9.webp
image/webp · 81.5 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB