Results Gate 7
Shows the sections of the visitor's sealed quiz report and collects their name and email to get it.
Use it in a prompt
Use forms/results-gate-7 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-7.tsx. - Import it and pass your copy and images (Props tab):
import { ResultsGate7 } from "@/components/funneldna/forms/results-gate-7"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/forms/results-gate-7/component.tsx 386 lines
// Shows the sections of the visitor's sealed quiz report and collects their name and email to get it.
import * as React from 'react'
import { AlertCircle, Loader2, Lock, Mail, User } from 'lucide-react'
export type ResultsGate7Props = {
headline?: string
highlight?: string
lead?: string
lockImage?: string
partLabel?: string
chapters?: ResultsVaultChapter[]
sealedTitle?: string
/** Strings support {count}; existing formatter callbacks remain supported. */
sealedNote?: string | ((count: number) => string)
lockedDescription?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
unlockedDescription?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
openTitle?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
openNote?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
unlockedLabel?: string
gateTitle?: string
gateLead?: 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
headingLevel?: 'h2' | 'h3'
/** "success" is accepted for older callers and renders as default. */
state?: ResultsGate7State
/** Receives validated values. A returned promise shows the loading label; a rejection shows the error alert. */
onSubmit?: (values: ResultsVaultValues) => void | Promise<void>
className?: string
style?: React.CSSProperties
}
export function ResultsGate7({
headline = 'Your results are ready',
highlight = 'are ready',
lead = 'Enter your first name and email to unlock your personal report and the next step that fits your answers.',
lockImage,
partLabel = 'Part',
chapters = DEFAULT_CHAPTERS,
sealedTitle = 'Your report is sealed',
sealedNote = '{count} sections, unlocked with your first name and email.',
lockedDescription = 'Locked',
gateTitle = 'See your results',
gateLead = 'Tell us where to send them. Your full report opens the moment you hit the button.',
firstNameLabel = 'First name',
firstNamePlaceholder = 'Your first name',
emailLabel = 'Email address',
emailPlaceholder = 'you@example.com',
label = 'Show Me My Results',
loadingLabel = 'Unlocking your results…',
privacy = 'Get your results and follow-up emails. Unsubscribe anytime.',
nameError = 'Please enter your first name.',
emailError = 'Please enter a valid email address.',
error = 'We couldn’t unlock your results. Please try again.',
headingLevel = 'h2',
state,
onSubmit,
className,
style,
}: ResultsGate7Props) {
const uid = React.useId()
const forced = state && state !== 'default' ? state : undefined
const [values, setValues] = React.useState<ResultsVaultValues>({ firstName: '', email: '' })
const [errors, setErrors] = React.useState<FieldErrors>({})
const [status, setStatus] = React.useState<'idle' | 'loading' | 'error'>('idle')
const nameRef = React.useRef<HTMLInputElement>(null)
const emailRef = React.useRef<HTMLInputElement>(null)
const phase = forced === 'error' ? 'error' : status
const shown: FieldErrors = forced === 'error' ? { email: emailError } : errors
const disabled = forced === 'disabled'
const loading = phase === 'loading'
const Title = headingLevel
const Sub = headingLevel === 'h3' ? 'h4' : 'h3'
const update = (field: keyof ResultsVaultValues) => (e: React.ChangeEvent<HTMLInputElement>) => {
const next = e.target.value
setValues((v) => ({ ...v, [field]: next }))
if (errors[field]) setErrors((er) => ({ ...er, [field]: undefined }))
if (status === 'error') setStatus('idle')
}
async function handleSubmit(e: React.FormEvent<HTMLFormElement>) {
e.preventDefault()
if (disabled || loading || (forced && forced !== 'success')) 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) {
setStatus('idle')
;(next.firstName ? nameRef : emailRef).current?.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 nameErrId = `${uid}-ne`
const emailErrId = `${uid}-ee`
const force = forced === 'hover' || forced === 'active' ? forced : undefined
return (
<section
className={['cf-results-gate-7', className].filter(Boolean).join(' ')}
style={style}
aria-labelledby={`${uid}-h`}
>
<style>{CSS}</style>
<span className='rv-light' aria-hidden='true' />
<span className='rv-light-2' aria-hidden='true' />
<header className='rv-head'>
<Title id={`${uid}-h`} className='rv-title'>{marked(headline, highlight)}</Title>
<p className='rv-lead'>{lead}</p>
</header>
<div className='rv-gate'>
<div className='rv-card'>
<div className='rv-seal-wrap' aria-hidden='true'>
<div className='rv-seal'>
{lockImage ? (
<img className='rv-seal-img' src={lockImage} alt='' width={256} height={256} decoding='async' />
) : (
<Lock className='rv-seal-icon' />
)}
</div>
</div>
<form className='rv-form' noValidate onSubmit={handleSubmit} aria-labelledby={`${uid}-g`}>
<div className='rv-card-head'>
<Sub id={`${uid}-g`} className='rv-gate-title'>{gateTitle}</Sub>
<p className='rv-gate-lead'>{gateLead}</p>
</div>
{phase === 'error' && (
<div className='rv-alert' role='alert'>
<AlertCircle aria-hidden='true' />
<span>{error}</span>
</div>
)}
<fieldset className='rv-fields' disabled={disabled}>
<legend className='rv-sr'>{gateTitle}</legend>
<div className='rv-field' data-invalid={shown.firstName ? '' : undefined}>
<label htmlFor={`${uid}-n`}>{firstNameLabel}</label>
<div className='rv-input'>
<User aria-hidden='true' />
<input
ref={nameRef}
id={`${uid}-n`}
name='firstName'
type='text'
autoComplete='given-name'
placeholder={firstNamePlaceholder}
value={values.firstName}
onChange={update('firstName')}
readOnly={loading}
aria-invalid={shown.firstName ? true : undefined}
aria-describedby={shown.firstName ? nameErrId : undefined}
/>
</div>
{shown.firstName && (
<p id={nameErrId} className='rv-err'><AlertCircle aria-hidden='true' />{shown.firstName}</p>
)}
</div>
<div className='rv-field' data-invalid={shown.email ? '' : undefined}>
<label htmlFor={`${uid}-e`}>{emailLabel}</label>
<div className='rv-input'>
<Mail aria-hidden='true' />
<input
ref={emailRef}
id={`${uid}-e`}
name='email'
type='email'
inputMode='email'
autoComplete='email'
placeholder={emailPlaceholder}
value={values.email}
onChange={update('email')}
readOnly={loading}
aria-invalid={shown.email ? true : undefined}
aria-describedby={shown.email ? emailErrId : undefined}
/>
</div>
{shown.email && (
<p id={emailErrId} className='rv-err'><AlertCircle aria-hidden='true' />{shown.email}</p>
)}
</div>
<button type='submit' className='rv-btn' data-force={force} aria-busy={loading || undefined}>
{loading ? (
<>
<Loader2 className='rv-spin' aria-hidden='true' />
<span>{loadingLabel}</span>
</>
) : (
<span>{label}</span>
)}
</button>
</fieldset>
<p className='rv-privacy'><Lock aria-hidden='true' />{privacy}</p>
</form>
</div>
</div>
<div className='rv-vault'>
<div className='rv-dossier'>
<div className='rv-dossier-top'>
<span className='rv-dossier-icon' aria-hidden='true'><Lock /></span>
<div aria-live='polite'>
<p className='rv-vault-title'>{sealedTitle}</p>
<p className='rv-vault-note'>{typeof sealedNote === 'function' ? sealedNote(chapters.length) : sealedNote.replaceAll('{count}', String(chapters.length))}</p>
</div>
</div>
<ol className='rv-chapters'>
{chapters.map((chapter, i) => (
<li key={chapter.title} className='rv-ch' style={{ '--i': i } as React.CSSProperties}>
<div className='rv-ch-body'>
<p className='rv-ch-head'>
<span className='rv-ch-part'>{partLabel} {i + 1}</span>
<span className='rv-ch-title'>{chapter.title}</span>
</p>
<p className='rv-ch-detail'>{chapter.detail}</p>
<span className='rv-bars' aria-hidden='true'><i /><i /></span>
</div>
<span className='rv-ch-lock' role='img' aria-label={lockedDescription}>
<Lock aria-hidden='true' />
</span>
</li>
))}
</ol>
</div>
</div>
</section>
)
}
export default ResultsGate7
/** "success" is accepted for older callers and renders as default. */
export type ResultsGate7State = 'default' | 'hover' | 'active' | 'disabled' | 'error' | 'success'
export type ResultsVaultValues = { firstName: string; email: string }
export type ResultsVaultChapter = { title: string; detail: string }
type FieldErrors = { firstName?: string; email?: string }
const EMAIL = /^[^ @]+@[^ @]+[.][^ @]{2,}$/
const DEFAULT_CHAPTERS: ResultsVaultChapter[] = [
{ title: 'Your profile', detail: 'Where you stand today, read straight from your answers.' },
{ title: 'The gap holding you back', detail: 'The one missing piece your answers point to, in plain words.' },
{ title: 'Your next three moves', detail: 'A short, ordered plan you can start on this week.' },
{ title: 'Your recommended next step', detail: 'The resource that fits the plan you just built.' },
]
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='rv-em'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
)
}
const CSS = `
.cf-results-gate-7{--rv-cta:var(--cta,#d92d20);--rv-cta2:var(--cta-2,#b42318);--rv-cta-ink:var(--cta-ink,#ffffff);--rv-ink:var(--ink,#101828);--rv-muted:var(--muted,#4a5565);--rv-band:var(--band,#0f2747);--rv-band-ink:var(--band-ink,#ffffff);--rv-accent:var(--accent,#0f5fc2);--rv-card:var(--card,#ffffff);--rv-field:var(--field,#ffffff);--rv-field-ink:var(--field-ink,#101828);--rv-soft:var(--rv-band-ink);--rv-r:var(--radius,24px);position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);grid-template-areas:'head head' 'vault gate';column-gap:clamp(36px,4.5vw,60px);width:100%;max-width:1160px;margin-inline:auto;padding:clamp(48px,6vw,72px) clamp(36px,5vw,64px) clamp(44px,5vw,64px);background:var(--rv-band);color:var(--rv-band-ink);overflow:clip;font-family:var(--font-body,Arial,Helvetica,sans-serif);line-height:1.5;-webkit-font-smoothing:antialiased;--rv-brass:var(--band-ink);--rv-brass-deep:var(--accent);--rv-panel:var(--card);--rv-slab:var(--card);--rv-ok:var(--success);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.35));}
.cf-results-gate-7 *,.cf-results-gate-7 *::before,.cf-results-gate-7 *::after{box-sizing:border-box}
:where(.cf-results-gate-7) .rv-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:normal;}
:where(.cf-results-gate-7) .rv-light{position:absolute;z-index:-1;top:120px;right:-60px;width:620px;height:620px;border-radius:50%;opacity:.04;filter:blur(120px);pointer-events:none;background:none;}
:where(.cf-results-gate-7) .rv-light-2{position:absolute;z-index:-1;bottom:-220px;left:-180px;width:520px;height:520px;border-radius:50%;opacity:.06;filter:blur(120px);pointer-events:none;background:none;}
:where(.cf-results-gate-7) .rv-head{grid-area:head;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);column-gap:clamp(36px,4.5vw,60px);align-items:end;min-width:0}
:where(.cf-results-gate-7) .rv-title{margin:0;font-family:var(--font-display,Arial,sans-serif);font-size:clamp(2.75rem,5.4vw,4.75rem);line-height:.98;color:var(--rv-band-ink);text-wrap:balance;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.04em);text-transform:var(--display-case,none);}
:where(.cf-results-gate-7) .rv-em{color:var(--rv-brass)}
@supports ((-webkit-background-clip:text) or (background-clip:text)){:where(.cf-results-gate-7) .rv-em{background:linear-gradient(var(--band-ink),var(--band-ink)) 0 0/250% 100% no-repeat;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;-webkit-box-decoration-break:clone;box-decoration-break:clone;animation:rv-sheen 1.8s .35s cubic-bezier(.4,0,.2,1) both}}
:where(.cf-results-gate-7) .rv-lead{margin:0;max-width:40ch;padding-bottom:6px;font-size:clamp(1.125rem,1.5vw,1.25rem);font-weight:500;line-height:1.5;color:var(--rv-soft);text-wrap:pretty}
:where(.cf-results-gate-7) .rv-vault{grid-area:vault;min-width:0;margin-top:60px}
:where(.cf-results-gate-7) .rv-dossier{position:relative;padding:10px;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.22));color:var(--ink);}
:where(.cf-results-gate-7) .rv-dossier-top{display:flex;align-items:center;gap:16px;padding:16px 14px 18px}
:where(.cf-results-gate-7) .rv-dossier-icon{flex:none;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--band);color:var(--band-ink);box-shadow:0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.35);}
:where(.cf-results-gate-7) .rv-dossier-icon svg{width:22px;height:22px;stroke-width:2.5}
:where(.cf-results-gate-7) .rv-vault-title{margin:0;font-family:var(--font-display,Arial,sans-serif);font-size:clamp(1.25rem,1.7vw,1.4375rem);line-height:1.2;text-wrap:balance;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.015em);text-transform:var(--display-case,none);color:var(--ink);}
:where(.cf-results-gate-7) .rv-vault-note{margin:6px 0 0;font-size:16px;line-height:1.45;text-wrap:pretty;color:var(--muted);}
:where(.cf-results-gate-7) .rv-chapters{display:grid;gap:8px;margin:0;padding:0;list-style:none}
:where(.cf-results-gate-7) .rv-ch{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;padding:18px 18px 18px 20px;transition:transform .2s ease,box-shadow .2s ease;animation:rv-in .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 70ms + 80ms);background:color-mix(in oklch,var(--ink) 4%,var(--card));border-color:oklch(from var(--ink) l c h / 0.10);border-radius:var(--card-radius,var(--radius));box-shadow:none;color:var(--ink);}
:where(.cf-results-gate-7) .rv-ch:hover{box-shadow:inset 0 0 0 1px oklch(from var(--rv-brass) l c h / 0.35)}
:where(.cf-results-gate-7) .rv-ch-body{min-width:0}
:where(.cf-results-gate-7) .rv-ch-head{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:4px;margin:0}
:where(.cf-results-gate-7) .rv-ch-part{flex:none;font-size:14px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);}
:where(.cf-results-gate-7) .rv-ch-title{font-family:var(--font-display,Arial,sans-serif);font-size:clamp(1.125rem,1.4vw,1.1875rem);line-height:1.25;text-wrap:balance;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,normal);text-transform:var(--display-case,none);color:var(--ink);}
:where(.cf-results-gate-7) .rv-ch-detail{margin:6px 0 0;font-size:16px;line-height:1.5;text-wrap:pretty;color:var(--muted);}
:where(.cf-results-gate-7) .rv-bars{display:grid;gap:8px;margin-top:12px;filter:blur(2.5px);pointer-events:none;user-select:none}
:where(.cf-results-gate-7) .rv-bars i{display:block;height:8px;border-radius:99px;background:color-mix(in oklch,var(--ink) 30%,var(--card));}
:where(.cf-results-gate-7) .rv-bars i:nth-child(1){width:90%}:where(.cf-results-gate-7) .rv-bars i:nth-child(2){width:62%}
:where(.cf-results-gate-7) .rv-ch:nth-child(even) .rv-bars i:nth-child(1){width:78%}:where(.cf-results-gate-7) .rv-ch:nth-child(even) .rv-bars i:nth-child(2){width:86%}
:where(.cf-results-gate-7) .rv-ch-lock{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--band);color:var(--band-ink);box-shadow:0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.35);}
:where(.cf-results-gate-7) .rv-ch-lock svg{width:18px;height:18px;stroke-width:2.25}
:where(.cf-results-gate-7) .rv-gate{grid-area:gate;align-self:start;position:sticky;top:24px;min-width:0;padding-top:60px}
:where(.cf-results-gate-7) .rv-card{position:relative;padding:74px 36px 30px;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.22));color:var(--ink);}
:where(.cf-results-gate-7) .rv-seal-wrap{position:absolute;left:50%;top:0;isolation:isolate;width:112px;height:112px;transform:translate(-50%,-54%)}
:where(.cf-results-gate-7) .rv-seal{position:relative;width:100%;height:100%;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:transparent;box-shadow:none;}
:where(.cf-results-gate-7) .rv-seal>*{grid-area:1/1}
:where(.cf-results-gate-7) .rv-seal-img{width:72%;height:72%;object-fit:contain;transition:transform .6s cubic-bezier(.3,1.4,.5,1),opacity .4s ease;mix-blend-mode:normal;filter:drop-shadow(0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22));}
:where(.cf-results-gate-7) .rv-seal-icon{width:44px;height:44px;color:var(--rv-brass-deep);stroke-width:2.25;transition:transform .6s cubic-bezier(.3,1.4,.5,1),opacity .4s ease}
:where(.cf-results-gate-7) .rv-card-head{text-align:center}
:where(.cf-results-gate-7) .rv-gate-title{margin:0;font-family:var(--font-display,Arial,sans-serif);font-size:clamp(1.875rem,2.7vw,2.375rem);line-height:1.05;color:var(--rv-ink);text-wrap:balance;outline:none;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.03em);text-transform:var(--display-case,none);}
:where(.cf-results-gate-7) .rv-gate-lead{max-width:34ch;margin:12px auto 0;font-size:17px;font-weight:500;line-height:1.5;color:var(--rv-muted);text-wrap:pretty}
:where(.cf-results-gate-7) .rv-alert{display:flex;align-items:flex-start;gap:10px;margin:20px 0 0;padding:12px 14px;font-size:15px;font-weight:600;line-height:1.4;text-wrap:pretty;background:var(--danger-soft);border-color:var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius,var(--radius));box-shadow:none;color:var(--danger);}
:where(.cf-results-gate-7) .rv-alert svg{flex:none;width:20px;height:20px;margin-top:1px}
:where(.cf-results-gate-7) .rv-fields{margin:0;padding:0;border:0;min-width:0}
:where(.cf-results-gate-7) .rv-field{margin-top:22px}
:where(.cf-results-gate-7) .rv-field label{display:block;margin-bottom:8px;font-size:17px;font-weight:800;line-height:1.3;color:var(--label-ink,var(--ink));}
:where(.cf-results-gate-7) .rv-input{position:relative}
:where(.cf-results-gate-7) .rv-input>svg{position:absolute;left:17px;top:50%;width:20px;height:20px;transform:translateY(-50%);color:color-mix(in oklch,var(--rv-field-ink) 55%,var(--rv-field));pointer-events:none;transition:color .15s}
:where(.cf-results-gate-7) .rv-input input{display:block;width:100%;height:58px;margin:0;padding:0 16px 0 50px;border:1.5px solid oklch(from var(--field-ink,var(--ink)) l c h / 0.24);background:var(--rv-field);color:var(--rv-field-ink);font:500 18px/1.2 var(--font-body,Arial,sans-serif);box-shadow:inset 0 2px 3px oklch(from var(--card) calc(l - 0.12) c h / 0.35);transition:border-color .15s,box-shadow .15s;-webkit-appearance:none;appearance:none;border-color:var(--field-border,oklch(from var(--ink) l c h / 0.22));border-radius:var(--field-radius,var(--radius));}
:where(.cf-results-gate-7) .rv-input input::placeholder{opacity:1;color:color-mix(in oklch, var(--field-ink) 65%, var(--field));}
:where(.cf-results-gate-7) .rv-input input:hover{border-color:oklch(from var(--field-ink,var(--ink)) l c h / 0.42)}
:where(.cf-results-gate-7) .rv-input 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-7) .rv-input:focus-within>svg{;color:var(--field-ink);}
:where(.cf-results-gate-7) .rv-field[data-invalid] input{border-color:var(--danger);box-shadow:0 0 0 4px var(--danger-soft)}
:where(.cf-results-gate-7) .rv-field[data-invalid] .rv-input>svg{;color:var(--field-ink);}
:where(.cf-results-gate-7) .rv-err{display:flex;align-items:center;gap:7px;margin:8px 0 0;font-size:15px;font-weight:600;line-height:1.35;color:var(--danger);}
:where(.cf-results-gate-7) .rv-err svg{flex:none;width:17px;height:17px}
:where(.cf-results-gate-7) .rv-fields:disabled .rv-input input{cursor:not-allowed;background:var(--field);}
:where(.cf-results-gate-7) .rv-btn{position:relative;overflow:hidden;text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));width:100%;min-height:66px;margin-top:26px;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:0 22px;letter-spacing:-.01em;text-align:center;text-wrap:balance;text-decoration:none;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,filter .16s 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.1875rem,1.9vw,1.375rem)/1.1 var(--button-font,var(--font-display));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.22));border:1px solid var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h));}
:where(.cf-results-gate-7) .rv-btn::after{content:'';position:absolute;top:0;bottom:0;left:0;width:38%;transform:translateX(-140%) skewX(-18deg);pointer-events:none;background:none;}
:where(.cf-results-gate-7) .rv-btn:hover:not(:disabled),:where(.cf-results-gate-7) .rv-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.22));}
:where(.cf-results-gate-7) .rv-btn:hover:not(:disabled)::after,:where(.cf-results-gate-7) .rv-btn[data-force=hover]::after{animation:rv-shine .8s ease}
:where(.cf-results-gate-7) .rv-btn:active:not(:disabled),:where(.cf-results-gate-7) .rv-btn[data-force=active]{transform:translateY(4px);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.22));}
:where(.cf-results-gate-7) .rv-btn:focus-visible{outline:3px solid var(--rv-accent);outline-offset:3px}
:where(.cf-results-gate-7) .rv-btn:disabled{text-shadow:none;cursor:not-allowed;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);}
:where(.cf-results-gate-7) .rv-btn[aria-busy=true]{cursor:progress}
:where(.cf-results-gate-7) .rv-spin{flex:none;width:22px;height:22px;animation:rv-spin .8s linear infinite}
:where(.cf-results-gate-7) .rv-privacy{max-width:34ch;margin:16px auto 0;font-size:14px;font-weight:500;line-height:1.45;color:var(--rv-muted);text-align:center;text-wrap:pretty}
:where(.cf-results-gate-7) .rv-privacy svg{display:inline-block;width:14px;height:14px;margin-right:6px;vertical-align:-2px}
@keyframes rv-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes rv-sheen{from{background-position:100% 0}to{background-position:0 0}}
@keyframes rv-shine{from{transform:translateX(-140%) skewX(-18deg)}to{transform:translateX(320%) skewX(-18deg)}}
@keyframes rv-spin{to{transform:rotate(360deg)}}
@media (max-width:900px){.cf-results-gate-7{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'gate' 'vault';padding:40px 18px 20px}:where(.cf-results-gate-7) .rv-head{grid-template-columns:minmax(0,1fr)}:where(.cf-results-gate-7) .rv-lead{margin-top:18px;padding-bottom:0}:where(.cf-results-gate-7) .rv-gate{position:static;padding-top:72px}:where(.cf-results-gate-7) .rv-card{padding:66px 20px 24px}:where(.cf-results-gate-7) .rv-seal-wrap{width:96px;height:96px}:where(.cf-results-gate-7) .rv-seal-icon{width:38px;height:38px}:where(.cf-results-gate-7) .rv-vault{margin-top:36px}:where(.cf-results-gate-7) .rv-dossier{padding:8px;border-radius:20px}:where(.cf-results-gate-7) .rv-dossier-top{padding:14px 12px 16px;gap:14px}:where(.cf-results-gate-7) .rv-dossier-icon{width:46px;height:46px}:where(.cf-results-gate-7) .rv-ch{padding:16px 14px 16px 16px;gap:12px}:where(.cf-results-gate-7) .rv-ch-head{flex-direction:column;align-items:flex-start}:where(.cf-results-gate-7) .rv-ch-lock{width:38px;height:38px}:where(.cf-results-gate-7) .rv-ch-lock svg{width:16px;height:16px}:where(.cf-results-gate-7) .rv-light{width:420px;height:420px;top:260px;right:-200px}}
@media (max-width:370px){:where(.cf-results-gate-7) .rv-btn{font-size:1.0625rem;gap:8px;padding:0 14px}}
@media (prefers-reduced-motion:reduce){.cf-results-gate-7 *,.cf-results-gate-7 *::before,.cf-results-gate-7 *::after{animation:none!important;transition:none!important}}
`
export { ResultsGate7 as ResultsVault }
export type ResultsVaultProps = ResultsGate7Props
export type ResultsVaultState = ResultsGate7State
pieces/forms/results-gate-7/specimen.tsx 27 lines
import __studioImageb35ffa1b from "../assets/dd92269ef4dc57a0.webp";
import * as React from 'react'
import { slot } from '../../slots'
import ResultsGate7, { type ResultsGate7State } from '../results-gate-7'
import defaults from '../../studio-defaults.json'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
const sample = defaults.sample
export default function ResultsGate7Specimen({ state = 'default' }: { state?: string }) {
return (
<ResultsGate7
state={state as ResultsGate7State}
headline='Your results are ready'
highlight='are ready'
lead='Enter your first name and email to unlock your personal funnel report and the next step that fits your answers.'
lockImage={slot("stamp", __studioImageb35ffa1b)}
chapters={[
{ title: 'Your funnel profile', detail: 'Where your funnel stands today, read straight from your answers.' },
{ title: 'The gap holding you back', detail: 'The one missing piece your answers point to, in plain words.' },
{ title: 'Your next three moves', detail: 'A short, ordered plan you can start on this week.' },
{ title: `Where ${sample.name} fits`, detail: 'How the planning guide, copy workbook and launch checklist line up with your plan.' },
]}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalResultsGate7 |
string |
Default 'Your results are ready'
|
highlight OptionalResultsGate7 |
string |
Default 'are ready'
|
lead OptionalResultsGate7 |
string |
Default 'Enter your first name and email to unlock your personal report and the next step that fits your answers.'
|
lockImage OptionalResultsGate7 |
string |
|
partLabel OptionalResultsGate7 |
string |
Default 'Part'
|
chapters OptionalResultsGate7 |
ResultsVaultChapter[] |
Default DEFAULT_CHAPTERS
|
sealedTitle OptionalResultsGate7 |
string |
Default 'Your report is sealed'
|
sealedNote OptionalResultsGate7 |
string | ((count: number) => string) |
Default '{count} sections, unlocked with your first name and email.'
|
lockedDescription OptionalResultsGate7 |
string |
Default 'Locked'
|
unlockedDescription OptionalResultsGate7 |
string |
|
openTitle OptionalResultsGate7 |
string |
|
openNote OptionalResultsGate7 |
string |
|
unlockedLabel OptionalResultsGate7 |
string |
|
gateTitle OptionalResultsGate7 |
string |
Default 'See your results'
|
gateLead OptionalResultsGate7 |
string |
Default 'Tell us where to send them. Your full report opens the moment you hit the button.'
|
firstNameLabel OptionalResultsGate7 |
string |
Default 'First name'
|
firstNamePlaceholder OptionalResultsGate7 |
string |
Default 'Your first name'
|
emailLabel OptionalResultsGate7 |
string |
Default 'Email address'
|
emailPlaceholder OptionalResultsGate7 |
string |
Default 'you@example.com'
|
label OptionalResultsGate7 |
string |
Default 'Show Me My Results'
|
loadingLabel OptionalResultsGate7 |
string |
Default 'Unlocking your results…'
|
privacy OptionalResultsGate7 |
string |
Default 'Get your results and follow-up emails. Unsubscribe anytime.'
|
nameError OptionalResultsGate7 |
string |
Default 'Please enter your first name.'
|
emailError OptionalResultsGate7 |
string |
Default 'Please enter a valid email address.'
|
error OptionalResultsGate7 |
string |
Default 'We couldn’t unlock your results. Please try again.'
|
successTitle OptionalResultsGate7 |
string | ((firstName: string) => string) |
|
successTitleTemplate OptionalResultsGate7 |
string |
|
emptySuccessTitle OptionalResultsGate7 |
string |
|
success OptionalResultsGate7 |
string |
|
resultsLabel OptionalResultsGate7 |
string |
|
href OptionalResultsGate7 |
string |
|
resultsHref OptionalResultsGate7 |
string |
|
headingLevel OptionalResultsGate7 |
'h2' | 'h3' |
Default 'h2'
|
state OptionalResultsGate7 |
ResultsGate7State |
|
onSubmit OptionalResultsGate7 |
(values: ResultsVaultValues) => void | Promise<void> |
|
className OptionalResultsGate7 |
string |
|
style OptionalResultsGate7 |
React.CSSProperties |
|
headline OptionalResultsVault |
string |
|
highlight OptionalResultsVault |
string |
|
lead OptionalResultsVault |
string |
|
lockImage OptionalResultsVault |
string |
|
partLabel OptionalResultsVault |
string |
|
chapters OptionalResultsVault |
ResultsVaultChapter[] |
|
sealedTitle OptionalResultsVault |
string |
|
sealedNote OptionalResultsVault |
string | ((count: number) => string) |
|
lockedDescription OptionalResultsVault |
string |
|
unlockedDescription OptionalResultsVault |
string |
|
openTitle OptionalResultsVault |
string |
|
openNote OptionalResultsVault |
string |
|
unlockedLabel OptionalResultsVault |
string |
|
gateTitle OptionalResultsVault |
string |
|
gateLead OptionalResultsVault |
string |
|
firstNameLabel OptionalResultsVault |
string |
|
firstNamePlaceholder OptionalResultsVault |
string |
|
emailLabel OptionalResultsVault |
string |
|
emailPlaceholder OptionalResultsVault |
string |
|
label OptionalResultsVault |
string |
|
loadingLabel OptionalResultsVault |
string |
|
privacy OptionalResultsVault |
string |
|
nameError OptionalResultsVault |
string |
|
emailError OptionalResultsVault |
string |
|
error OptionalResultsVault |
string |
|
successTitle OptionalResultsVault |
string | ((firstName: string) => string) |
|
successTitleTemplate OptionalResultsVault |
string |
|
emptySuccessTitle OptionalResultsVault |
string |
|
success OptionalResultsVault |
string |
|
resultsLabel OptionalResultsVault |
string |
|
href OptionalResultsVault |
string |
|
resultsHref OptionalResultsVault |
string |
|
headingLevel OptionalResultsVault |
'h2' | 'h3' |
|
state OptionalResultsVault |
ResultsGate7State |
|
onSubmit OptionalResultsVault |
(values: ResultsVaultValues) => void | Promise<void> |
|
className OptionalResultsVault |
string |
|
style OptionalResultsVault |
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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
stamp- A stamp or badge graphic, on a transparent background.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
dd92269ef4dc57a0.webp
image/webp · 114 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB