Results Gate 9
Shows the visitor their quiz report is ready but locked, and collects their name and email to get it.
Use it in a prompt
Use forms/results-gate-9 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-9.tsx. - Import it and pass your copy and images (Props tab):
import { ResultsGate9 } from "@/components/funneldna/forms/results-gate-9"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/forms/results-gate-9/component.tsx 385 lines
// Shows the visitor their quiz report is ready but locked, and collects their name and email to get it.
// layout: split-contrast
import * as React from 'react'
import { AlertCircle, Loader2, Lock, Mail, User } from 'lucide-react'
export type ResultsGate9Props = {
/** Big editorial promise on the light half. */
headline?: string
/** One continuous phrase inside the headline, set in the accent colour. */
highlight?: string
lead?: string
/** Title of the locked report on the dark half. */
previewTitle?: string
previewNote?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
openNote?: string
/** Up to four report section names. Their contents stay redacted; no score is ever shown before submit. */
sections?: string[]
hiddenLabel?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
readyLabel?: string
lockedLabel?: string
lockedNote?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
unlockedLabel?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
unlockedNote?: 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. */
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
headingLevel?: 'h2' | 'h3'
/** "success" is accepted for older callers and renders as default. */
state?: ResultsGate9State
/** Receives validated values. A returned promise shows the loading label; a rejection shows the error alert. */
onSubmit?: (values: ResultsGate9Values) => void | Promise<void>
className?: string
style?: React.CSSProperties
}
export function ResultsGate9({
headline = 'Your results are ready.',
highlight = 'are ready.',
lead = 'Enter your details to see your results and get funnel-building emails.',
previewTitle = 'Your funnel results',
previewNote = 'Built from the answers you just gave.',
sections = ['Your funnel type', 'Why it fits your answers', 'Your first three steps'],
hiddenLabel = 'Hidden until you enter your details',
lockedLabel = 'Ready to reveal',
lockedNote = 'Enter your first name and email to open it.',
firstNameLabel = 'First name',
firstNamePlaceholder = 'Your first name',
emailLabel = 'Email address',
emailPlaceholder = 'you@example.com',
label = 'See My Results',
loadingLabel = 'Unlocking your results…',
privacy = 'Free to see. Unsubscribe anytime.',
nameError = 'Add your first name so we know who the results are for.',
emailError = 'Enter a valid email so we can unlock your results.',
error = 'We couldn’t unlock your results just now. Please try again.',
headingLevel = 'h2',
state = 'default',
onSubmit,
className,
style,
}: ResultsGate9Props) {
const uid = React.useId().replace(/:/g, '')
const ids = {
title: `${uid}-t`,
preview: `${uid}-p`,
name: `${uid}-n`,
email: `${uid}-e`,
nameErr: `${uid}-ne`,
emailErr: `${uid}-ee`,
}
const [values, setValues] = React.useState<ResultsGate9Values>({ firstName: '', email: '' })
const [errors, setErrors] = React.useState<FieldErrors>({})
const [touched, setTouched] = React.useState(false)
const [status, setStatus] = React.useState<'idle' | 'loading' | 'failed'>('idle')
const nameRef = React.useRef<HTMLInputElement>(null)
const emailRef = React.useRef<HTMLInputElement>(null)
const forced = state !== 'default' ? state : undefined
const loading = status === 'loading'
const disabled = forced === 'disabled'
const force = !loading && (forced === 'hover' || forced === 'active') ? forced : undefined
const nameErr = errors.firstName
const emailErr = errors.email ?? (forced === 'error' && !touched ? emailError : undefined)
const failed = status === 'failed'
const H = headingLevel as 'h2'
const rows = sections.slice(0, 4)
const update = (key: keyof ResultsGate9Values) => (e: React.ChangeEvent<HTMLInputElement>) => {
const v = e.target.value
setTouched(true)
setValues((p) => ({ ...p, [key]: v }))
if (errors[key]) setErrors((p) => ({ ...p, [key]: undefined }))
if (status === 'failed') setStatus('idle')
}
async function handleSubmit(e: React.FormEvent<HTMLFormElement>) {
e.preventDefault()
if (disabled || loading) return
setTouched(true)
const firstName = values.firstName.trim()
const email = values.email.trim()
const next: FieldErrors = {}
if (!firstName) next.firstName = nameError
if (!EMAIL.test(email)) next.email = emailError
setErrors(next)
if (next.firstName || next.email) {
setStatus('idle')
;(next.firstName ? nameRef : emailRef).current?.focus()
return
}
try {
const result = onSubmit?.({ firstName, email })
if (!result) return
setStatus('loading')
await result
setStatus('idle')
} catch {
setStatus('failed')
}
}
return (
<div
className={['cf-results-gate-9', className].filter(Boolean).join(' ')}
style={style}
>
<style>{CSS}</style>
<div className='rg9-card'>
<header className='rg9-head'>
<H id={ids.title} className='rg9-h'>{emphasize(headline, highlight)}</H>
{lead ? <p className='rg9-lead'>{lead}</p> : null}
</header>
<div className='rg9-preview' role='group' aria-labelledby={ids.preview}>
<div className='rg9-ptop'>
<p id={ids.preview} className='rg9-ptitle'>{previewTitle}</p>
<p className='rg9-pnote'>{previewNote}</p>
</div>
<ul className='rg9-sheet'>
{rows.map((section, i) => (
<li key={section + i} className='rg9-row' style={{ ['--i' as string]: i } as React.CSSProperties}>
<span className='rg9-rlabel'>{section}</span>
<span className='rg9-rbody'>
<span className='rg9-lines' aria-hidden='true'>
{LINES[i % LINES.length].map((line, j) => (
<span key={j} className='rg9-line'>
{line.map((w, k) => (
<span key={k} className='rg9-word' style={{ width: `${w}%` }} />
))}
</span>
))}
</span>
<span className='rg9-sr'>{hiddenLabel}</span>
</span>
</li>
))}
</ul>
<div className='rg9-lockrow' aria-live='polite'>
<span className='rg9-seal' aria-hidden='true'>
<Lock strokeWidth={2.25} />
</span>
<span className='rg9-lockcopy'>
<strong>{lockedLabel}</strong>
<span>{lockedNote}</span>
</span>
</div>
</div>
<div className='rg9-formwrap'>
<form className='rg9-form' noValidate onSubmit={handleSubmit} aria-labelledby={ids.title} aria-busy={loading || undefined}>
{failed ? (
<p className='rg9-alert' role='alert'>
<AlertCircle aria-hidden='true' />
{error}
</p>
) : null}
<fieldset className='rg9-fs' disabled={disabled}>
<div className='rg9-field'>
<label className='rg9-label' htmlFor={ids.name}>{firstNameLabel}</label>
<div className='rg9-control'>
<User aria-hidden='true' />
<input
ref={nameRef}
id={ids.name}
className='rg9-input'
name='firstName'
type='text'
autoComplete='given-name'
placeholder={firstNamePlaceholder}
value={values.firstName}
onChange={update('firstName')}
readOnly={loading}
required
aria-invalid={nameErr ? true : undefined}
aria-describedby={nameErr ? ids.nameErr : undefined}
/>
</div>
{nameErr ? (
<p id={ids.nameErr} className='rg9-err'>
<AlertCircle aria-hidden='true' />
{nameErr}
</p>
) : null}
</div>
<div className='rg9-field'>
<label className='rg9-label' htmlFor={ids.email}>{emailLabel}</label>
<div className='rg9-control'>
<Mail aria-hidden='true' />
<input
ref={emailRef}
id={ids.email}
className='rg9-input'
name='email'
type='email'
inputMode='email'
autoComplete='email'
placeholder={emailPlaceholder}
value={values.email}
onChange={update('email')}
readOnly={loading}
required
aria-invalid={emailErr ? true : undefined}
aria-describedby={emailErr ? ids.emailErr : undefined}
/>
</div>
{emailErr ? (
<p id={ids.emailErr} className='rg9-err'>
<AlertCircle aria-hidden='true' />
{emailErr}
</p>
) : null}
</div>
<button
type='submit'
className='rg9-btn'
data-force={force}
aria-disabled={loading || undefined}
>
{loading ? (
<>
<Loader2 className='rg9-spin' aria-hidden='true' />
<span>{loadingLabel}</span>
</>
) : (
<span>{label}</span>
)}
</button>
</fieldset>
{privacy ? (
<p className='rg9-privacy'>
<Lock aria-hidden='true' />
{privacy}
</p>
) : null}
</form>
</div>
</div>
</div>
)
}
export default ResultsGate9
/** "success" is accepted for older callers and renders as default. */
export type ResultsGate9State = 'default' | 'hover' | 'active' | 'disabled' | 'error' | 'success'
export type ResultsGate9Values = { firstName: string; email: string }
type FieldErrors = Partial<Record<keyof ResultsGate9Values, string>>
const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/
/** Redacted "word" widths (percent of the line) for each section's two blurred lines. */
const LINES: number[][][] = [
[[18, 26, 12, 22, 14], [24, 16, 20]],
[[14, 22, 18, 28], [20, 12, 26, 10]],
[[26, 12, 20, 16, 14], [18, 24, 14]],
[[16, 20, 24, 14], [22, 18, 12]],
]
function emphasize(text: string, phrase?: string) {
if (!phrase) return text
const i = text.indexOf(phrase)
if (i < 0) return text
return (
<>
{text.slice(0, i)}
<span className='rg9-em'>{phrase}</span>
{text.slice(i + phrase.length)}
</>
)
}
const CSS = `
.cf-results-gate-9{container:rg9/inline-size;width:100%;max-width:1080px;margin-inline:auto;font-family:var(--font-body);color:var(--ink);--rg9-r:var(--card-radius,var(--radius,18px));--rg9-line:var(--card-border,color-mix(in oklch,var(--ink) 12%,transparent))}
.cf-results-gate-9 *,.cf-results-gate-9 *::before,.cf-results-gate-9 *::after{box-sizing:border-box}
:where(.cf-results-gate-9) .rg9-card{display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);grid-template-areas:'preview head' 'preview form';grid-template-rows:auto 1fr;align-items:start;background:var(--card,#fff);border:1px solid var(--rg9-line);border-radius:var(--rg9-r);padding:12px;box-shadow:var(--card-shadow,inset 0 1px 0 oklch(from var(--card) calc(l + .04) c h / .6),0 1px 2px oklch(from var(--band) calc(l - .12) c h / .14),0 24px 48px -30px oklch(from var(--band) calc(l - .12) c h / .55))}
:where(.cf-results-gate-9) .rg9-preview{grid-area:preview;align-self:stretch;position:relative;overflow:hidden;display:flex;flex-direction:column;gap:26px;padding:clamp(28px,4.6cqi,48px);background:var(--band);color:var(--band-ink);border-radius:max(0px,calc(var(--rg9-r) - 6px));box-shadow:inset 0 0 0 1px oklch(from var(--band-ink) l c h / .08),inset 0 1px 0 oklch(from var(--band-ink) l c h / .12)}
:where(.cf-results-gate-9) .rg9-ptitle{margin:0 0 12px;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-.02em);font-size:clamp(1.65rem,3.7cqi,2.45rem);line-height:1.06;text-wrap:balance;color:var(--band-ink)}
:where(.cf-results-gate-9) .rg9-pnote{margin:0;font-size:1.0625rem;line-height:1.45;font-weight:500;color:color-mix(in oklch,var(--band-ink) 82%,var(--band));text-wrap:pretty}
:where(.cf-results-gate-9) .rg9-sheet{flex:1;list-style:none;margin:0;padding:22px 24px;display:grid;align-content:space-evenly;gap:18px;background:var(--band);border:1px solid oklch(from var(--band-ink) l c h / .12);border-radius:max(0px,calc(var(--rg9-r) - 10px));box-shadow:inset 0 1px 0 oklch(from var(--band-ink) l c h / .1),0 2px 3px oklch(from var(--band) calc(l - .12) c h / .35)}
:where(.cf-results-gate-9) .rg9-row{display:grid;gap:10px;animation:rg9-in .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * 70ms)}
:where(.cf-results-gate-9) .rg9-row+.rg9-row{padding-top:18px;border-top:1px solid oklch(from var(--band-ink) l c h / .1)}
:where(.cf-results-gate-9) .rg9-rlabel{font-size:1.0625rem;font-weight:700;line-height:1.3;color:var(--band-ink);text-wrap:pretty}
:where(.cf-results-gate-9) .rg9-rbody{position:relative;display:grid;min-height:34px}
:where(.cf-results-gate-9) .rg9-lines{grid-area:1/1}
:where(.cf-results-gate-9) .rg9-lines{display:grid;gap:8px;align-content:center}
:where(.cf-results-gate-9) .rg9-line{position:relative;display:flex;gap:7px;padding-block:2px;overflow:hidden;transform-origin:left center;transition:transform .55s cubic-bezier(.65,0,.25,1),opacity .4s ease;transition-delay:calc(var(--i,0) * 90ms)}
:where(.cf-results-gate-9) .rg9-line::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,oklch(from var(--band-ink) l c h / .2),transparent);transform:translateX(-100%);animation:rg9-scan 2.2s ease-in-out 2;animation-delay:calc(.5s + var(--i,0) * .25s)}
:where(.cf-results-gate-9) .rg9-word{flex:0 1 auto;min-width:0;height:11px;border-radius:99px;background:color-mix(in oklch,var(--band-ink) 34%,var(--band));filter:blur(1.4px)}
:where(.cf-results-gate-9) .rg9-lockrow{display:flex;align-items:center;gap:20px}
:where(.cf-results-gate-9) .rg9-seal{flex:none;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--band-ink);color:var(--band);box-shadow:0 0 0 7px oklch(from var(--band-ink) l c h / .12),0 2px 3px oklch(from var(--band) calc(l - .12) c h / .35)}
:where(.cf-results-gate-9) .rg9-seal svg{grid-area:1/1;width:28px;height:28px;transition:opacity .35s ease,transform .45s cubic-bezier(.2,.8,.2,1)}
:where(.cf-results-gate-9) .rg9-lockcopy{display:grid;gap:4px;min-width:0}
:where(.cf-results-gate-9) .rg9-lockcopy strong{font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-.01em);font-size:clamp(1.3rem,2.8cqi,1.6rem);line-height:1.15;color:var(--band-ink)}
:where(.cf-results-gate-9) .rg9-lockcopy span{font-size:1rem;line-height:1.4;color:color-mix(in oklch,var(--band-ink) 82%,var(--band));text-wrap:pretty}
:where(.cf-results-gate-9) .rg9-head{grid-area:head;padding:clamp(28px,4.6cqi,48px) clamp(22px,5cqi,56px) 0}
:where(.cf-results-gate-9) .rg9-h{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-.03em);font-size:clamp(2.3rem,6.6cqi,4.4rem);line-height:.98;color:var(--ink);text-wrap:balance}
:where(.cf-results-gate-9) .rg9-em{color:var(--accent)}
:where(.cf-results-gate-9) .rg9-lead{margin:clamp(16px,2cqi,22px) 0 0;max-width:34ch;font-size:clamp(1.0625rem,2cqi,1.3rem);line-height:1.45;font-weight:500;color:var(--muted);text-wrap:pretty}
:where(.cf-results-gate-9) .rg9-formwrap{grid-area:form;padding:clamp(24px,3.4cqi,36px) clamp(22px,5cqi,56px) clamp(24px,4.6cqi,48px)}
:where(.cf-results-gate-9) .rg9-form{display:grid;gap:16px;margin:0}
:where(.cf-results-gate-9) .rg9-fs{display:grid;gap:18px;min-width:0;margin:0;padding:0;border:0}
:where(.cf-results-gate-9) .rg9-field{display:grid;gap:8px}
:where(.cf-results-gate-9) .rg9-label{font-size:1.0625rem;font-weight:800;line-height:1.25;color:var(--label-ink,var(--ink))}
:where(.cf-results-gate-9) .rg9-control{position:relative}
:where(.cf-results-gate-9) .rg9-control>svg{position:absolute;left:16px;top:50%;width:20px;height:20px;transform:translateY(-50%);color:var(--field-ink);pointer-events:none;transition:color .2s ease}
:where(.cf-results-gate-9) .rg9-input{display:block;width:100%;min-height:58px;padding:0 16px 0 48px;font:500 1.125rem/1.2 var(--font-body);color:var(--field-ink);background:var(--field,#fff);border:1.5px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));box-shadow:inset 0 1px 2px oklch(from var(--field-ink) l c h / .06);outline:none;transition:border-color .2s ease,box-shadow .2s ease;-webkit-appearance:none;appearance:none}
:where(.cf-results-gate-9) .rg9-input::placeholder{color:color-mix(in oklch, var(--field-ink) 65%, var(--field));opacity:1}
:where(.cf-results-gate-9) .rg9-input:hover{border-color:color-mix(in oklch,var(--field-ink) 40%,var(--field))}
:where(.cf-results-gate-9) .rg9-input:focus{border-color:var(--field-focus,var(--accent));box-shadow:0 0 0 4px color-mix(in oklch,var(--field-focus,var(--accent)) 22%,transparent)}
:where(.cf-results-gate-9) .rg9-control:focus-within>svg{color:var(--field-focus,var(--accent))}
:where(.cf-results-gate-9) .rg9-input[aria-invalid='true']{border-color:var(--danger)}
:where(.cf-results-gate-9) .rg9-input[aria-invalid='true']:focus{box-shadow:0 0 0 4px oklch(from var(--danger) l c h / .2)}
:where(.cf-results-gate-9) .rg9-input:disabled{cursor:not-allowed;opacity:1}
:where(.cf-results-gate-9) .rg9-err{display:flex;align-items:flex-start;gap:6px;margin:0;font-size:.9375rem;font-weight:600;line-height:1.35;color:var(--danger);text-wrap:pretty}
:where(.cf-results-gate-9) .rg9-err svg,:where(.cf-results-gate-9) .rg9-alert svg{flex:none;width:18px;height:18px;margin-top:1px}
:where(.cf-results-gate-9) .rg9-alert{display:flex;gap:10px;align-items:flex-start;margin:0;padding:12px 14px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--danger);background:var(--danger-soft);border:1px solid oklch(from var(--danger) l c h / .28);border-radius:var(--field-radius,var(--radius,12px));text-wrap:pretty}
:where(.cf-results-gate-9) .rg9-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:62px;margin-top:6px;padding:14px 22px;font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.1875rem,2.3cqi,1.375rem);line-height:1.15;letter-spacing:-.005em;text-align:center;text-decoration:none;text-wrap:balance;color:var(--button-ink,var(--cta-ink));background:linear-gradient(var(--button-bg,var(--cta)),var(--button-bg-2,var(--cta-2)));border:1px solid oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .06) c h);border-radius:var(--button-radius,var(--radius,12px));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .75),inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h),0 6px 10px -6px oklch(from var(--band) calc(l - .15) c h / .6));cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .15s ease,background .2s ease,box-shadow .15s ease}
:where(.cf-results-gate-9) .rg9-btn:hover:not(:disabled):not([aria-disabled='true']),:where(.cf-results-gate-9) .rg9-btn[data-force='hover']{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .02) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .04) c h));transform:translateY(-1px)}
:where(.cf-results-gate-9) .rg9-btn:active:not(:disabled):not([aria-disabled='true']),:where(.cf-results-gate-9) .rg9-btn[data-force='active']{background:linear-gradient(oklch(from var(--button-bg-2,var(--cta-2)) l c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .03) c h));transform:translateY(3px);box-shadow:var(--button-shadow, inset 0 2px 4px oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .14) c h / .45),0 0 0 oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .1) c h))}
:where(.cf-results-gate-9) .rg9-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
:where(.cf-results-gate-9) .rg9-btn:disabled{cursor:not-allowed;opacity:1;transform:none;background:var(--button-2-bg,var(--card));color:var(--button-2-ink,var(--muted));box-shadow:none}
:where(.cf-results-gate-9) .rg9-btn[aria-disabled='true']{cursor:progress}
:where(.cf-results-gate-9) .rg9-spin{flex:none;width:22px;height:22px;animation:rg9-spin .8s linear infinite}
:where(.cf-results-gate-9) .rg9-privacy{display:block;max-width:36ch;margin:0 auto;font-size:.9375rem;line-height:1.45;color:var(--muted);text-align:center;text-wrap:balance}
:where(.cf-results-gate-9) .rg9-privacy svg{display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-2px}
:where(.cf-results-gate-9) .rg9-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@keyframes rg9-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes rg9-scan{to{transform:translateX(100%)}}
@keyframes rg9-spin{to{transform:rotate(360deg)}}
@container rg9 (max-width:760px){
:where(.cf-results-gate-9) .rg9-card{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'preview' 'form';grid-template-rows:auto;padding:10px}
:where(.cf-results-gate-9) .rg9-head{padding:24px 14px}
:where(.cf-results-gate-9) .rg9-h{font-size:clamp(2.2rem,11cqi,3.4rem)}
:where(.cf-results-gate-9) .rg9-preview{padding:24px 18px;gap:20px}
:where(.cf-results-gate-9) .rg9-ptitle{font-size:clamp(1.5rem,6.4cqi,2rem)}
:where(.cf-results-gate-9) .rg9-sheet{flex:none;padding:18px 16px;gap:14px}
:where(.cf-results-gate-9) .rg9-row+.rg9-row{padding-top:14px}
:where(.cf-results-gate-9) .rg9-seal{width:52px;height:52px;box-shadow:0 0 0 6px oklch(from var(--band-ink) l c h / .12)}
:where(.cf-results-gate-9) .rg9-seal svg{width:24px;height:24px}
:where(.cf-results-gate-9) .rg9-lockrow{gap:18px;padding-left:6px}
:where(.cf-results-gate-9) .rg9-formwrap{padding:26px 14px 18px}
}
@media (prefers-reduced-motion:reduce){.cf-results-gate-9 *,.cf-results-gate-9 *::before,.cf-results-gate-9 *::after{animation:none!important;transition-duration:.01ms!important;transition-delay:0s!important}}
`
pieces/forms/results-gate-9/specimen.tsx 15 lines
import * as React from 'react'
import { ResultsGate9, type ResultsGate9State } from '../results-gate-9'
import defaults from '../../studio-defaults.json'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function ResultsGate9Specimen({ state = 'default' }: { state?: string }) {
return (
<ResultsGate9
state={state as ResultsGate9State}
privacy={defaults.sample.registration.privacy}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalResultsGate9 |
string |
Default 'Your results are ready.'
|
highlight OptionalResultsGate9 |
string |
Default 'are ready.'
|
lead OptionalResultsGate9 |
string |
Default 'Enter your details to see your results and get funnel-building emails.'
|
previewTitle OptionalResultsGate9 |
string |
Default 'Your funnel results'
|
previewNote OptionalResultsGate9 |
string |
Default 'Built from the answers you just gave.'
|
openNote OptionalResultsGate9 |
string |
|
sections OptionalResultsGate9 |
string[] |
Default ['Your funnel type', 'Why it fits your answers', 'Your first three steps']
|
hiddenLabel OptionalResultsGate9 |
string |
Default 'Hidden until you enter your details'
|
readyLabel OptionalResultsGate9 |
string |
|
lockedLabel OptionalResultsGate9 |
string |
Default 'Ready to reveal'
|
lockedNote OptionalResultsGate9 |
string |
Default 'Enter your first name and email to open it.'
|
unlockedLabel OptionalResultsGate9 |
string |
|
unlockedNote OptionalResultsGate9 |
string |
|
firstNameLabel OptionalResultsGate9 |
string |
Default 'First name'
|
firstNamePlaceholder OptionalResultsGate9 |
string |
Default 'Your first name'
|
emailLabel OptionalResultsGate9 |
string |
Default 'Email address'
|
emailPlaceholder OptionalResultsGate9 |
string |
Default 'you@example.com'
|
label OptionalResultsGate9 |
string |
Default 'See My Results'
|
loadingLabel OptionalResultsGate9 |
string |
Default 'Unlocking your results…'
|
privacy OptionalResultsGate9 |
string |
Default 'Free to see. Unsubscribe anytime.'
|
nameError OptionalResultsGate9 |
string |
Default 'Add your first name so we know who the results are for.'
|
emailError OptionalResultsGate9 |
string |
Default 'Enter a valid email so we can unlock your results.'
|
error OptionalResultsGate9 |
string |
Default 'We couldn’t unlock your results just now. Please try again.'
|
successTitleTemplate OptionalResultsGate9 |
string |
|
emptySuccessTitle OptionalResultsGate9 |
string |
|
success OptionalResultsGate9 |
string |
|
resultsLabel OptionalResultsGate9 |
string |
|
href OptionalResultsGate9 |
string |
|
headingLevel OptionalResultsGate9 |
'h2' | 'h3' |
Default 'h2'
|
state OptionalResultsGate9 |
ResultsGate9State |
Default 'default'
|
onSubmit OptionalResultsGate9 |
(values: ResultsGate9Values) => void | Promise<void> |
|
className OptionalResultsGate9 |
string |
|
style OptionalResultsGate9 |
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-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--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.
This piece reads no image slots.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB