Summit Hero 8
Registers summit visitors for a free ticket. A huge promise sits beside a bold accent ticket block, and its itemised ledger totals to Free and ends in the sign-up form.
Use it in a prompt
Use hero/summit-hero-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/hero/summit-hero-8.tsx. - Import it and pass your copy and images (Props tab):
import { SummitHero8 } from "@/components/funneldna/hero/summit-hero-8"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/summit-hero-8/component.tsx 501 lines
// layout: ledger-receipt
// Registers summit visitors for a free ticket. A huge promise sits beside a bold accent ticket block, and its itemised ledger totals to Free and ends in the sign-up form.
'use client'
import * as React from 'react'
import { CircleAlert, CircleCheck, Loader2, Lock, MonitorPlay } from 'lucide-react'
export type SummitHero8State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type SummitHero8Point = {
/** Bold lead-in phrase that opens the paragraph, e.g. 'Your offer.' */
lead: string
text: string
}
export type SummitHero8Row = {
label: string
value: string
}
export type SummitHero8Field = {
name: string
label: string
type?: string
autoComplete?: string
placeholder?: string
}
export type SummitHero8Props = {
summitName?: string
headline?: string
/** One continuous phrase inside the headline, set in the accent colour. */
highlight?: string
lead?: string
/** Short paragraphs, each opening with a bold lead-in. */
points?: SummitHero8Point[]
/** Heading on the accent ticket block. */
ticketTitle?: string
/** Line under the ticket heading, e.g. the event format. */
format?: string
/** Itemised ticket lines with dotted leaders. */
ledger?: SummitHero8Row[]
/** Supplied session or speaker counts only. They are added to the ledger, and nothing renders when the list is empty. */
counts?: SummitHero8Row[]
totalLabel?: string
totalValue?: string
fields?: SummitHero8Field[]
label?: string
/** Second line on the button: the product and its price. */
sublabel?: string
loadingLabel?: string
privacy?: string
/** Shown when onSubmit returns a promise that rejects. */
errorMessage?: string
state?: SummitHero8State
/** Receives validated, trimmed values. Return a promise to show the loading label. */
onSubmit?: (values: Record<string, string>) => void | Promise<unknown>
/** Legacy alias for onSubmit. It is used only when onSubmit is undefined. */
onRegister?: (values: Record<string, string>) => void | Promise<unknown>
copy?: {
namePlaceholder?: string
emailPlaceholder?: string
phonePlaceholder?: string
/** Replaces {label} with the lower-case field label. */
fieldPlaceholder?: string
/** Replaces {label} with the lower-case field label. */
requiredError?: string
emailError?: string
/** Accessible name for the bold lead-in list. */
pointsLabel?: string
/** Prefilled values for the forced error state. */
demoName?: string
demoEmail?: string
}
className?: string
}
export function SummitHero8({
summitName = 'Funnel Starter Workshop',
headline = 'Map out your first funnel',
highlight = 'first funnel',
lead = 'Join the Funnel Starter Workshop and walk through your offer, page copy, and next steps.',
points = DEFAULT_POINTS,
ticketTitle = 'Your free ticket',
format = 'Free on-demand workshop',
ledger = DEFAULT_LEDGER,
counts = [],
totalLabel = 'Your ticket',
totalValue = 'Free',
fields = DEFAULT_FIELDS,
label = 'Yes! Save My Seat',
sublabel = 'Funnel Starter Workshop · Free',
loadingLabel = 'Saving your seat…',
privacy = 'We respect your inbox. Unsubscribe anytime.',
errorMessage = 'We couldn’t complete your registration. Please try again.',
state = 'default',
onSubmit,
onRegister,
copy = {},
className,
}: SummitHero8Props) {
const {
namePlaceholder = 'Jane Smith',
emailPlaceholder = 'you@example.com',
phonePlaceholder = '(555) 123-4567',
fieldPlaceholder = 'Your {label}',
requiredError = 'Please enter your {label}.',
emailError = 'Enter an email like name@example.com.',
pointsLabel = 'What you’ll cover',
demoName = 'Alex Morgan',
demoEmail = 'alex@email',
} = copy
const messages: Messages = { requiredError, emailError }
const uid = React.useId()
const formRef = React.useRef<HTMLFormElement>(null)
const alive = React.useRef(true)
const [values, setValues] = React.useState<Record<string, string>>(() =>
state === 'error' ? demoValues(fields, demoName, demoEmail) : {},
)
const [errors, setErrors] = React.useState<Record<string, string>>(() =>
state === 'error' ? validate(fields, demoValues(fields, demoName, demoEmail), messages) : {},
)
const [busy, setBusy] = React.useState(false)
const [failed, setFailed] = React.useState(false)
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
React.useEffect(() => {
const next = state === 'error' ? demoValues(fields, demoName, demoEmail) : {}
setValues(next)
setErrors(state === 'error' ? validate(fields, next, messages) : {})
setBusy(false)
setFailed(false)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [state])
const disabled = state === 'disabled'
const force = state === 'hover' || state === 'active' ? state : undefined
const rows = [...ledger, ...counts]
const [before, marked, after] = splitHighlight(headline, highlight)
const placeholderFor = (field: SummitHero8Field) => {
if (field.placeholder) return field.placeholder
if (isEmailField(field)) return emailPlaceholder
if (field.type === 'tel') return phonePlaceholder
if (isNameField(field)) return namePlaceholder
return fieldPlaceholder.replace('{label}', field.label.toLowerCase())
}
const recheck = (name: string, value: string) => {
const field = fields.find((f) => f.name === name)
const message = field ? fieldError(field, value.trim(), messages) : ''
setErrors((prev) => {
const next = { ...prev }
if (message) next[name] = message
else delete next[name]
return next
})
}
const onChange = (name: string) => (event: React.ChangeEvent<HTMLInputElement>) => {
const value = event.target.value
setValues((prev) => ({ ...prev, [name]: value }))
if (failed) setFailed(false)
if (errors[name]) recheck(name, value)
}
const onBlur = (name: string) => () => {
const value = values[name] ?? ''
if (!value.trim()) return
recheck(name, value)
}
function handleSubmit(event: React.FormEvent<HTMLFormElement>) {
event.preventDefault()
if (disabled || busy) return
const clean: Record<string, string> = {}
for (const field of fields) clean[field.name] = (values[field.name] ?? '').trim()
const next = validate(fields, clean, messages)
setErrors(next)
const firstBad = fields.find((f) => next[f.name])
if (firstBad) {
const input = formRef.current?.elements.namedItem(firstBad.name)
if (input instanceof HTMLInputElement) input.focus()
return
}
setFailed(false)
const submit = onSubmit ?? onRegister
let result: unknown
try {
result = submit?.(clean)
} catch {
setFailed(true)
return
}
if (isThenable(result)) {
setBusy(true)
Promise.resolve(result).then(
() => {
if (alive.current) setBusy(false)
},
() => {
if (alive.current) {
setBusy(false)
setFailed(true)
}
},
)
}
}
return (
<section className={`cf-summit-hero-8${className ? ` ${className}` : ''}`} aria-labelledby={`${uid}-h`}>
<style>{CSS}</style>
<div className='sh8-wrap'>
<div className='sh8-copy'>
{summitName ? (
<p className='sh8-name sh8-rise' style={delay(0)}>
{summitName}
</p>
) : null}
<h1 id={`${uid}-h`} className='sh8-h1 sh8-rise' style={delay(60)}>
{before}
{marked ? <span className='sh8-em'>{marked}</span> : null}
{after}
</h1>
{lead ? (
<p className='sh8-lead sh8-rise' style={delay(120)}>
{lead}
</p>
) : null}
{points.length ? (
<ul className='sh8-points' aria-label={pointsLabel}>
{points.map((point, index) => (
<li key={`${point.lead}-${index}`} className='sh8-rise' style={delay(180 + index * 70)}>
<CircleCheck className='sh8-tick' aria-hidden='true' strokeWidth={2.25} />
<p>
<strong>{point.lead}</strong> {point.text}
</p>
</li>
))}
</ul>
) : null}
</div>
<div className='sh8-rt'>
<div className='sh8-slab sh8-rise' style={delay(80)}>
<MonitorPlay className='sh8-slab-icon' aria-hidden='true' strokeWidth={1.75} />
<h2 id={`${uid}-t`} className='sh8-slab-title'>
{ticketTitle}
</h2>
{format ? <p className='sh8-slab-format'>{format}</p> : null}
</div>
<div className='sh8-card sh8-rise' style={delay(160)}>
<dl className='sh8-ledger'>
{rows.map((row, index) => (
<div key={`${row.label}-${index}`} className='sh8-row' style={{ '--i': index } as React.CSSProperties}>
<dt>{row.label}</dt>
<dd>{row.value}</dd>
</div>
))}
<div className='sh8-row sh8-total' style={{ '--i': rows.length } as React.CSSProperties}>
<dt>{totalLabel}</dt>
<dd>{totalValue}</dd>
</div>
</dl>
<form ref={formRef} className='sh8-form' noValidate onSubmit={handleSubmit} aria-labelledby={`${uid}-t`}>
{fields.map((field) => {
const id = `${uid}-${field.name}`
const error = errors[field.name]
return (
<div key={field.name} className='sh8-field'>
<label htmlFor={id}>{field.label}</label>
<input
id={id}
name={field.name}
type={field.type ?? 'text'}
autoComplete={field.autoComplete}
placeholder={placeholderFor(field)}
value={values[field.name] ?? ''}
onChange={onChange(field.name)}
onBlur={onBlur(field.name)}
disabled={disabled}
required
aria-invalid={error ? true : undefined}
aria-describedby={error ? `${id}-err` : undefined}
/>
{error ? (
<p id={`${id}-err`} className='sh8-err'>
<CircleAlert aria-hidden='true' size={17} strokeWidth={2.25} />
<span>{error}</span>
</p>
) : null}
</div>
)
})}
<button type='submit' className='sh8-btn' data-force={force} disabled={disabled} aria-busy={busy || undefined}>
<span className='sh8-btn-label'>
{busy ? <Loader2 className='sh8-spin' aria-hidden='true' size={22} strokeWidth={2.5} /> : null}
<span>{busy ? loadingLabel : label}</span>
</span>
{sublabel ? <span className='sh8-btn-sub'>{sublabel}</span> : null}
</button>
{failed ? (
<p className='sh8-fail' role='alert'>
<CircleAlert aria-hidden='true' size={18} strokeWidth={2.25} />
<span>{errorMessage}</span>
</p>
) : null}
{privacy ? (
<p className='sh8-privacy'>
<Lock aria-hidden='true' size={15} strokeWidth={2.25} />
<span>{privacy}</span>
</p>
) : null}
</form>
</div>
</div>
</div>
</section>
)
}
export default SummitHero8
type Messages = { requiredError: string; emailError: string }
const DEFAULT_POINTS: SummitHero8Point[] = [
{ lead: 'Your offer.', text: 'Pin down what you sell and who it’s for.' },
{ lead: 'Your page copy.', text: 'Draft the headline and call to action your page needs.' },
{ lead: 'Your next steps.', text: 'Leave with a short list of what to build first.' },
]
const DEFAULT_LEDGER: SummitHero8Row[] = [
{ label: 'Format', value: 'Watch online' },
{ label: 'Access', value: 'On demand' },
{ label: 'Covers', value: 'Offer, copy, next steps' },
]
const DEFAULT_FIELDS: SummitHero8Field[] = [
{ name: 'name', label: 'Full name', autoComplete: 'name' },
{ name: 'email', label: 'Email address', type: 'email', autoComplete: 'email' },
]
const EMAIL = /^[^@ ]+@[^@ ]+[.][^@ ]{2,}$/
function delay(ms: number): React.CSSProperties {
return { '--d': `${ms}ms` } as React.CSSProperties
}
function isThenable(value: unknown): value is PromiseLike<unknown> {
return typeof value === 'object' && value !== null && typeof (value as { then?: unknown }).then === 'function'
}
function isEmailField(field: SummitHero8Field) {
return field.type === 'email' || field.name.toLowerCase().includes('email')
}
function isNameField(field: SummitHero8Field) {
return field.name.toLowerCase().includes('name')
}
function fieldError(field: SummitHero8Field, value: string, messages: Messages) {
if (!value) return messages.requiredError.replace('{label}', field.label.toLowerCase())
if (isEmailField(field) && !EMAIL.test(value)) return messages.emailError
return ''
}
function validate(fields: SummitHero8Field[], values: Record<string, string>, messages: Messages) {
const out: Record<string, string> = {}
for (const field of fields) {
const message = fieldError(field, (values[field.name] ?? '').trim(), messages)
if (message) out[field.name] = message
}
return out
}
function demoValues(fields: SummitHero8Field[], name: string, email: string) {
const out: Record<string, string> = {}
for (const field of fields) {
if (isEmailField(field)) out[field.name] = email
else if (isNameField(field)) out[field.name] = name
}
return out
}
function splitHighlight(text: string, phrase?: string): [string, string, string] {
if (!phrase) return [text, '', '']
const at = text.toLowerCase().indexOf(phrase.toLowerCase())
if (at < 0) return [text, '', '']
return [text.slice(0, at), text.slice(at, at + phrase.length), text.slice(at + phrase.length)]
}
const CSS = `
.cf-summit-hero-8{
--sh8-ink:var(--ink,oklch(0.21 0.034 263));
--sh8-block:var(--band,oklch(0.27 0.067 256));
--sh8-block-ink:var(--band-ink,oklch(1 0 0));
--sh8-shadow:var(--shadow,oklch(0.22 0.03 256));
--sh8-btn:var(--button-bg,var(--cta,oklch(0.58 0.21 29)));
--sh8-btn-2:var(--button-bg-2,var(--cta-2,oklch(0.51 0.21 29)));
--sh8-line:color-mix(in oklch,var(--sh8-ink) 30%,transparent);
position:relative;box-sizing:border-box;width:100%;overflow-x:clip;
padding:clamp(56px,7vw,112px) 0 clamp(64px,8vw,120px);
background:var(--surface,oklch(1 0 0));color:var(--sh8-ink);
font-family:var(--font-body,system-ui,sans-serif);
}
.cf-summit-hero-8{
--sh8-block:var(--accent,oklch(0.5 0.17 257));
--sh8-block-ink:oklch(from var(--sh8-block) calc((0.58 - l) * 1000) 0 0);
}
.cf-summit-hero-8 *,.cf-summit-hero-8 *::before,.cf-summit-hero-8 *::after{box-sizing:border-box}
.cf-summit-hero-8 .sh8-wrap{max-width:1240px;margin:0 auto;padding:0 clamp(20px,4vw,48px);display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,0.92fr);gap:clamp(40px,5.5vw,88px);align-items:start}
.cf-summit-hero-8 .sh8-copy{min-width:0;padding-top:clamp(0px,1vw,12px)}
.cf-summit-hero-8 .sh8-name{margin:0 0 clamp(14px,1.4vw,20px);font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(1.25rem,1.1rem + 0.6vw,1.75rem);line-height:1.2;letter-spacing:-0.01em;color:var(--accent,oklch(0.5 0.17 257));text-wrap:balance}
.cf-summit-hero-8 .sh8-h1{margin:0 0 clamp(18px,1.9vw,26px);font-family:var(--font-display,inherit);font-weight:var(--display-weight,900);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.035em);font-size:clamp(2.75rem,1rem + 4.6vw,5.25rem);line-height:0.98;color:var(--sh8-ink);text-wrap:balance}
.cf-summit-hero-8 .sh8-em{color:var(--accent,oklch(0.5 0.17 257))}
.cf-summit-hero-8 .sh8-lead{margin:0;max-width:34em;font-size:clamp(1.125rem,1rem + 0.45vw,1.375rem);font-weight:500;line-height:1.5;color:var(--muted,oklch(0.45 0.03 258));text-wrap:pretty}
.cf-summit-hero-8 .sh8-points{list-style:none;margin:clamp(26px,3vw,40px) 0 0;padding:0;display:grid;gap:14px;max-width:36em}
.cf-summit-hero-8 .sh8-points li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start}
.cf-summit-hero-8 .sh8-tick{width:22px;height:22px;margin-top:2px;color:var(--success,oklch(0.5 0.14 150))}
.cf-summit-hero-8 .sh8-points p{margin:0;font-size:17px;line-height:1.5;color:var(--sh8-ink);text-wrap:pretty}
.cf-summit-hero-8 .sh8-points strong{font-weight:800}
.cf-summit-hero-8 .sh8-rt{position:relative;min-width:0}
.cf-summit-hero-8 .sh8-slab{position:relative;margin-left:56px;padding:34px 40px 150px;border-radius:calc(var(--radius,12px) + 6px);background:var(--sh8-block);color:var(--sh8-block-ink);overflow:hidden}
.cf-summit-hero-8 .sh8-slab-icon{position:absolute;top:28px;right:30px;width:64px;height:64px;transform:rotate(-8deg)}
.cf-summit-hero-8 .sh8-slab-title{margin:0 0 12px;padding-right:84px;font-family:var(--font-display,inherit);font-weight:var(--display-weight,900);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.03em);font-size:clamp(2rem,1.2rem + 1.8vw,2.875rem);line-height:1;color:inherit;text-wrap:balance}
.cf-summit-hero-8 .sh8-slab-format{margin:0;padding-right:84px;font-size:19px;font-weight:700;line-height:1.35;color:inherit;text-wrap:pretty}
.cf-summit-hero-8 .sh8-card{position:relative;margin:-118px 28px 0 0;padding:30px 32px 28px;color:var(--sh8-ink);background:var(--card,oklch(1 0 0));border:1px solid var(--card-border,color-mix(in oklch,var(--sh8-ink) 12%,transparent));border-radius:var(--card-radius,var(--radius,12px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(0.22 0.03 256 / 0.22),0 12px 24px -8px oklch(0.22 0.03 256 / 0.32)))}
.cf-summit-hero-8 .sh8-ledger{margin:0}
.cf-summit-hero-8 .sh8-row{display:flex;align-items:baseline;padding:7px 0}
.cf-summit-hero-8 .sh8-row dt{display:flex;align-items:baseline;flex:1 1 auto;min-width:0;margin:0;font-size:16px;font-weight:700;line-height:1.4;color:var(--sh8-ink)}
.cf-summit-hero-8 .sh8-row dt::after{content:'';flex:1 1 20px;min-width:20px;margin:0 10px;border-bottom:2px dotted var(--sh8-line);transform:translateY(-0.28em);transform-origin:left center;animation:sh8-draw .7s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(240ms + var(--i,0) * 110ms)}
.cf-summit-hero-8 .sh8-row dd{margin:0;flex:0 1 auto;max-width:62%;text-align:right;font-size:16px;font-weight:600;line-height:1.4;color:var(--sh8-ink);text-wrap:pretty}
.cf-summit-hero-8 .sh8-total{margin-top:10px;padding:14px 16px;border-radius:max(0px,calc(var(--radius,12px) - 2px));background:color-mix(in oklch,var(--sh8-ink) 4%,var(--card,oklch(1 0 0)))}
.cf-summit-hero-8 .sh8-total dt{font-size:17px;font-weight:800}
.cf-summit-hero-8 .sh8-total dd{font-family:var(--font-display,inherit);font-weight:var(--display-weight,900);font-size:clamp(1.75rem,1.4rem + 0.8vw,2.125rem);line-height:1;letter-spacing:-0.02em;color:var(--success,oklch(0.5 0.14 150))}
.cf-summit-hero-8 .sh8-form{margin-top:24px;display:grid;gap:16px}
.cf-summit-hero-8 .sh8-field label{display:block;margin-bottom:8px;font-size:17px;font-weight:700;line-height:1.3;color:var(--label-ink,var(--sh8-ink))}
.cf-summit-hero-8 .sh8-field input{display:block;width:100%;height:56px;padding:0 16px;font:inherit;font-size:18px;color:var(--field-ink,oklch(0.21 0.034 263));background:var(--field,oklch(1 0 0));border:2px solid var(--field-border,color-mix(in oklch,var(--sh8-ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));box-shadow:inset 0 1px 2px oklch(from var(--sh8-shadow) l c h / 0.08);outline:none;transition:border-color .15s ease,box-shadow .15s ease}
.cf-summit-hero-8 .sh8-field input::placeholder{color:color-mix(in oklch,var(--field-ink,oklch(0.21 0.034 263)) 65%,var(--field,oklch(1 0 0)));opacity:1}
.cf-summit-hero-8 .sh8-field input:hover:not(:disabled){border-color:color-mix(in oklch,var(--sh8-ink) 40%,transparent)}
.cf-summit-hero-8 .sh8-field input:focus{border-color:var(--field-focus,var(--accent,oklch(0.5 0.17 257)));box-shadow:0 0 0 4px color-mix(in oklch,var(--field-focus,var(--accent,oklch(0.5 0.17 257))) 24%,transparent)}
.cf-summit-hero-8 .sh8-field input[aria-invalid=true]{border-color:var(--danger,oklch(0.5 0.17 27))}
.cf-summit-hero-8 .sh8-field input[aria-invalid=true]:focus{box-shadow:0 0 0 4px color-mix(in oklch,var(--danger,oklch(0.5 0.17 27)) 22%,transparent)}
.cf-summit-hero-8 .sh8-field input:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--sh8-ink) 5%,var(--field,oklch(1 0 0)))}
.cf-summit-hero-8 .sh8-err{display:flex;align-items:flex-start;gap:6px;margin:8px 0 0;font-size:15px;font-weight:600;line-height:1.35;color:var(--danger,oklch(0.5 0.17 27));text-wrap:pretty}
.cf-summit-hero-8 .sh8-err svg{flex:none;margin-top:1px}
.cf-summit-hero-8 .sh8-btn{appearance:none;width:100%;margin-top:6px;min-height:72px;padding:14px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;border:1px solid oklch(from var(--sh8-btn) calc(l - 0.12) c h);border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(180deg,oklch(from var(--sh8-btn) calc(l + 0.03) c h),var(--sh8-btn-2));color:var(--button-ink,var(--cta-ink,oklch(1 0 0)));font-family:var(--button-font,var(--font-display,inherit));text-transform:var(--button-case,none);text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--sh8-btn) calc(l + 0.14) c h / 0.55),inset 0 -3px 0 oklch(from var(--sh8-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--sh8-shadow) l c h / 0.32),0 8px 16px -6px oklch(from var(--sh8-shadow) l c h / 0.42));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,filter .16s ease}
.cf-summit-hero-8 .sh8-btn:hover:not(:disabled),.cf-summit-hero-8 .sh8-btn[data-force=hover]{transform:translateY(-2px);background:linear-gradient(180deg,oklch(from var(--sh8-btn) calc(l - 0.02) c h),oklch(from var(--sh8-btn-2) calc(l - 0.04) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--sh8-btn) calc(l + 0.12) c h / 0.5),inset 0 -3px 0 oklch(from var(--sh8-btn) calc(l - 0.18) c h),0 2px 3px oklch(from var(--sh8-shadow) l c h / 0.34),0 12px 20px -8px oklch(from var(--sh8-shadow) l c h / 0.46))}
.cf-summit-hero-8 .sh8-btn:active:not(:disabled),.cf-summit-hero-8 .sh8-btn[data-force=active]{transform:translateY(1px);background:linear-gradient(180deg,oklch(from var(--sh8-btn) calc(l - 0.07) c h),oklch(from var(--sh8-btn-2) calc(l - 0.08) c h));box-shadow:var(--button-shadow,inset 0 2px 3px oklch(from var(--sh8-btn) calc(l - 0.22) c h / 0.55),0 1px 2px oklch(from var(--sh8-shadow) l c h / 0.3))}
.cf-summit-hero-8 .sh8-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent,oklch(0.5 0.17 257)));outline-offset:3px}
.cf-summit-hero-8 .sh8-btn:disabled{cursor:not-allowed;opacity:.6;filter:saturate(.4);transform:none}
.cf-summit-hero-8 .sh8-btn-label{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:clamp(1.25rem,1.1rem + 0.5vw,1.5rem);font-weight:var(--button-weight,800);line-height:1.15;text-wrap:balance}
.cf-summit-hero-8 .sh8-btn-sub{font-family:var(--font-body,inherit);font-size:15px;font-weight:600;line-height:1.3;text-wrap:pretty}
.cf-summit-hero-8 .sh8-fail{display:flex;align-items:flex-start;gap:8px;margin:0;padding:12px 14px;border-radius:max(0px,calc(var(--radius,12px) - 2px));background:var(--danger-soft,oklch(0.93 0.024 27));color:var(--danger,oklch(0.5 0.17 27));font-size:15px;font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-summit-hero-8 .sh8-fail svg{flex:none;margin-top:1px}
.cf-summit-hero-8 .sh8-privacy{display:block;margin:2px 0 0;font-size:14px;line-height:1.4;color:var(--muted,oklch(0.45 0.03 258));text-align:center;text-wrap:pretty}
.cf-summit-hero-8 .sh8-privacy svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:8px}
@keyframes sh8-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes sh8-draw{from{transform:translateY(-0.28em) scaleX(0)}to{transform:translateY(-0.28em) scaleX(1)}}
@keyframes sh8-spin{to{transform:rotate(360deg)}}
.cf-summit-hero-8 .sh8-rise{animation:sh8-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--d,0ms)}
.cf-summit-hero-8 .sh8-spin{flex:none;animation:sh8-spin .9s linear infinite}
@media (max-width:960px){
.cf-summit-hero-8 .sh8-wrap{grid-template-columns:minmax(0,1fr);gap:48px}
.cf-summit-hero-8 .sh8-rt{max-width:560px;width:100%}
.cf-summit-hero-8 .sh8-slab{margin-left:0}
.cf-summit-hero-8 .sh8-card{margin:-112px 20px 0}
}
@media (max-width:560px){
.cf-summit-hero-8 .sh8-slab{padding:26px 22px 112px}
.cf-summit-hero-8 .sh8-slab-icon{top:22px;right:20px;width:48px;height:48px}
.cf-summit-hero-8 .sh8-slab-title,.cf-summit-hero-8 .sh8-slab-format{padding-right:60px}
.cf-summit-hero-8 .sh8-slab-format{font-size:18px}
.cf-summit-hero-8 .sh8-card{margin:-84px 10px 0;padding:22px 20px}
.cf-summit-hero-8 .sh8-btn{min-height:68px;padding:12px 16px}
.cf-summit-hero-8 .sh8-points p{font-size:16px}
}
@media (prefers-reduced-motion:reduce){
.cf-summit-hero-8 .sh8-rise,.cf-summit-hero-8 .sh8-row dt::after,.cf-summit-hero-8 .sh8-spin{animation:none}
.cf-summit-hero-8 .sh8-btn,.cf-summit-hero-8 .sh8-field input{transition:none}
}
`
pieces/hero/summit-hero-8/specimen.tsx 25 lines
import * as React from 'react'
import { SummitHero8, type SummitHero8State } from '../summit-hero-8'
import defaults from '../../studio-defaults.json'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function SummitHero8Specimen({ state = 'default' }: { state?: SummitHero8State }) {
const reg = defaults.sample.registration
return (
<SummitHero8
state={state}
summitName={reg.name}
headline={reg.headline}
highlight='first funnel'
lead={reg.lead}
format={reg.eyebrow}
fields={defaults.sample.fields}
label={reg.label}
sublabel={`${reg.name} · Free`}
privacy={reg.privacy}
errorMessage={reg.error}
onSubmit={() => undefined}
/>
)
}
| Name | Type | Details |
|---|---|---|
summitName OptionalSummitHero8 |
string |
Default 'Funnel Starter Workshop'
|
headline OptionalSummitHero8 |
string |
Default 'Map out your first funnel'
|
highlight OptionalSummitHero8 |
string |
Default 'first funnel'
|
lead OptionalSummitHero8 |
string |
Default 'Join the Funnel Starter Workshop and walk through your offer, page copy, and next steps.'
|
points OptionalSummitHero8 |
SummitHero8Point[] |
Default DEFAULT_POINTS
|
ticketTitle OptionalSummitHero8 |
string |
Default 'Your free ticket'
|
format OptionalSummitHero8 |
string |
Default 'Free on-demand workshop'
|
ledger OptionalSummitHero8 |
SummitHero8Row[] |
Default DEFAULT_LEDGER
|
counts OptionalSummitHero8 |
SummitHero8Row[] |
Default []
|
totalLabel OptionalSummitHero8 |
string |
Default 'Your ticket'
|
totalValue OptionalSummitHero8 |
string |
Default 'Free'
|
fields OptionalSummitHero8 |
SummitHero8Field[] |
Default DEFAULT_FIELDS
|
label OptionalSummitHero8 |
string |
Default 'Yes! Save My Seat'
|
sublabel OptionalSummitHero8 |
string |
Default 'Funnel Starter Workshop · Free'
|
loadingLabel OptionalSummitHero8 |
string |
Default 'Saving your seat…'
|
privacy OptionalSummitHero8 |
string |
Default 'We respect your inbox. Unsubscribe anytime.'
|
errorMessage OptionalSummitHero8 |
string |
Default 'We couldn’t complete your registration. Please try again.'
|
state OptionalSummitHero8 |
SummitHero8State |
Default 'default'
|
onSubmit OptionalSummitHero8 |
(values: Record<string, string>) => void | Promise<unknown> |
|
onRegister OptionalSummitHero8 |
(values: Record<string, string>) => void | Promise<unknown> |
|
copy OptionalSummitHero8 |
{
namePlaceholder?: string
emailPlaceholder?: string
phonePlaceholder?: string
/** Replaces {label} with the lower-case field label. */
fieldPlaceholder?: string
/** Replaces {label} with the lower-case field label. */
requiredError?: string
emailError?: string
/** Accessible name for the bold lead-in list. */
pointsLabel?: string
/** Prefilled values for the forced error state. */
demoName?: string
demoEmail?: string
} |
Default {}
|
className OptionalSummitHero8 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--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