Challenge Hero 11
Free challenge registration on a dark stage cut by a warm metal seam. The promise and the day plates sit on one side, and the join form waits on the lit side.
Use it in a prompt
Use hero/challenge-hero-11 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/challenge-hero-11.tsx. - Import it and pass your copy and images (Props tab):
import { ChallengeHero11 } from "@/components/funneldna/hero/challenge-hero-11"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/challenge-hero-11/component.tsx 438 lines
// layout: diagonal-split
// Free challenge registration on a dark stage cut by a warm metal seam. The promise and the day plates sit on one side, and the join form waits on the lit side.
import * as React from 'react'
import { AlertCircle, Loader2, Lock } from 'lucide-react'
export type ChallengeHero11State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type ChallengeHero11Day = {
title: string
/** Overrides the generated Day N label. */
label?: string
}
export type ChallengeHero11Field = {
name: string
label: string
type?: string
autoComplete?: string
placeholder?: string
}
export type ChallengeHero11Props = {
headline?: string
/** One continuous phrase inside the headline that gets the marker stroke. */
highlight?: string
/** Challenge name, set in warm metal under the headline. */
name?: string
lead?: string
/** One plate per challenge day. The big day count comes from this list. */
days?: ChallengeHero11Day[]
/** {day} is replaced with the one-based day number as text. */
dayLabel?: string
/** Word beside the count when there are several days. */
countUnit?: string
/** Word beside the count when there is one day. */
countUnitSingular?: string
/** Short line under the count unit. */
countCaption?: string
/** Accessible name of the day list. {count} is replaced with the number of days as text. */
railLabel?: string
/** The question the join card asks. The button answers it. */
question?: string
/** What they walk away with, shown under the question. */
walkAway?: string
fields?: ChallengeHero11Field[]
/** The button's answer line. */
label?: string
/** The button's second line: the price (free) and format. */
sublabel?: string
loadingLabel?: string
privacy?: string
error?: string
emailError?: string
/** {label} is replaced with the lower-case field label as text. */
requiredError?: string
/** Stage photo behind the join side (scene slot), shown under a band scrim. */
sceneImage?: string
disabled?: boolean
state?: ChallengeHero11State
/** Receives validated values. A returned promise shows the loading label. A rejection shows `error`. */
onSubmit?: (values: Record<string, string>) => void | Promise<void>
className?: string
style?: React.CSSProperties
}
export function ChallengeHero11({
headline = 'Map out your first funnel',
highlight = 'first funnel',
name = 'Funnel Starter Challenge',
lead = 'Join free and walk through your offer, page copy, and next steps, one day at a time.',
days = DEFAULT_DAYS,
dayLabel = 'Day {day}',
countUnit = 'days',
countUnitSingular = 'day',
countCaption = 'Free challenge',
railLabel = 'Your {count}-day challenge',
question = 'Ready to map your first funnel?',
walkAway = 'Walk away with your offer, page copy, and next steps mapped out.',
fields = DEFAULT_FIELDS,
label = 'I’m ready, save my seat',
sublabel = 'Free · Watch online',
loadingLabel = 'Saving your seat…',
privacy = 'We respect your inbox. Unsubscribe anytime.',
error = 'We couldn’t complete your registration. Please try again.',
emailError = 'Please enter a valid email address.',
requiredError = 'Please enter your {label}.',
sceneImage,
disabled = false,
state = 'default',
onSubmit,
className,
style,
}: ChallengeHero11Props) {
const uid = React.useId().replace(/:/g, '')
const n = days.length
const isDisabled = disabled || state === 'disabled'
const emailName = fields.find((f) => f.type === 'email')?.name
const [status, setStatus] = React.useState<Status>(() => statusFor(state))
const [errors, setErrors] = React.useState<Record<string, string>>(() =>
state === 'error' && emailName ? { [emailName]: emailError } : {},
)
const mounted = React.useRef(true)
React.useEffect(() => {
setStatus(statusFor(state))
setErrors(state === 'error' && emailName ? { [emailName]: emailError } : {})
}, [state, emailName, emailError])
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
const loading = status === 'loading'
const live = !isDisabled && !loading
const unit = n === 1 ? countUnitSingular : countUnit
const at = highlight ? headline.indexOf(highlight) : -1
const h1 =
at < 0 ? (
headline
) : (
<>
{headline.slice(0, at)}
<span className='c11-mark'>{highlight}</span>
{headline.slice(at + highlight.length)}
</>
)
const clearError = (key: string) =>
setErrors((prev) => {
if (!prev[key]) return prev
const next = { ...prev }
delete next[key]
return next
})
const handleSubmit = async (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault()
if (!live) return
const form = event.currentTarget
const data = new FormData(form)
const values: Record<string, string> = {}
const next: Record<string, string> = {}
for (const f of fields) {
const value = String(data.get(f.name) ?? '').trim()
values[f.name] = value
const isEmail = f.type === 'email'
if (!value) next[f.name] = isEmail ? emailError : fill(requiredError, { label: f.label.toLowerCase() })
else if (isEmail && !EMAIL.test(value)) next[f.name] = emailError
}
setErrors(next)
setStatus('idle')
const first = fields.find((f) => next[f.name])
if (first) {
const input = form.elements.namedItem(first.name)
if (input instanceof HTMLInputElement) input.focus()
return
}
try {
const result = onSubmit?.(values)
if (!result) return
setStatus('loading')
await result
if (mounted.current) setStatus('idle')
} catch {
if (mounted.current) setStatus('error')
}
}
const btnClass = [
'c11-btn',
live && state === 'hover' ? 'is-hover' : '',
live && state === 'active' ? 'is-active' : '',
loading ? 'is-loading' : '',
]
.filter(Boolean)
.join(' ')
return (
<section
className={['cf-challenge-hero-11', className].filter(Boolean).join(' ')}
style={style}
aria-labelledby={`${uid}-h1`}
>
<style>{CSS}</style>
<div className='c11-wrap'>
<div className='c11-copy'>
<h1 id={`${uid}-h1`} className='c11-h1'>
{h1}
</h1>
{name ? <p className='c11-name'>{name}</p> : null}
{lead ? <p className='c11-lead'>{lead}</p> : null}
{n > 0 ? (
<div className='c11-rail'>
<p className='c11-count'>
<span className='c11-count-in'>
<span className='c11-num'>{n}</span>
<span className='c11-unit'>
<span>{unit}</span>
{countCaption ? <small>{countCaption}</small> : null}
</span>
</span>
</p>
<ol className='c11-days' aria-label={fill(railLabel, { count: String(n) })}>
{days.map((d, i) => (
<li key={i} className='c11-plate' style={{ animationDelay: `${Math.min(0.28, 0.16 + i * 0.05)}s` }}>
<span className='c11-plate-in'>
<span className='c11-dayn'>{d.label ?? fill(dayLabel, { day: String(i + 1) })}</span>
<span className='c11-dayt'>{d.title}</span>
</span>
</li>
))}
</ol>
</div>
) : null}
</div>
<div className='c11-side'>
<div className='c11-stage' aria-hidden='true'>
<div className='c11-field'>
{sceneImage ? <img src={sceneImage} alt='' decoding='async' /> : null}
{sceneImage ? <span className='c11-scrim' /> : null}
</div>
<svg className='c11-seam c11-seam-d' viewBox='0 0 100 100' preserveAspectRatio='none' focusable='false'>
<defs>
<linearGradient id={`${uid}-sd`} gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0' y2='100'>
<stop offset='0' className='c11-s1' />
<stop offset='0.6' className='c11-s2' />
<stop offset='1' className='c11-s3' />
</linearGradient>
</defs>
<line x1='34' y1='0' x2='6' y2='100' stroke={`url(#${uid}-sd)`} strokeWidth='3' vectorEffect='non-scaling-stroke' />
</svg>
<svg className='c11-seam c11-seam-m' viewBox='0 0 100 56' preserveAspectRatio='none' focusable='false'>
<defs>
<linearGradient id={`${uid}-sm`} gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='100' y2='0'>
<stop offset='0' className='c11-s3' />
<stop offset='0.4' className='c11-s2' />
<stop offset='1' className='c11-s1' />
</linearGradient>
</defs>
<line x1='0' y1='56' x2='100' y2='0' stroke={`url(#${uid}-sm)`} strokeWidth='3' vectorEffect='non-scaling-stroke' />
</svg>
</div>
<div className='c11-card'>
<h2 id={`${uid}-q`} className='c11-q'>
{question}
</h2>
{walkAway ? <p className='c11-walk'>{walkAway}</p> : null}
<form className='c11-form' noValidate onSubmit={handleSubmit} aria-labelledby={`${uid}-q`} aria-busy={loading || undefined}>
{fields.map((f) => {
const id = `${uid}-${f.name}`
const err = errors[f.name]
const errId = `${id}-err`
return (
<div className='c11-f' key={f.name}>
<label htmlFor={id}>{f.label}</label>
<input
id={id}
name={f.name}
type={f.type ?? 'text'}
autoComplete={f.autoComplete}
placeholder={f.placeholder ?? fieldHint(f.name, f.type)}
disabled={isDisabled}
aria-invalid={err ? true : undefined}
aria-describedby={err ? errId : undefined}
onChange={() => clearError(f.name)}
/>
{err ? (
<p id={errId} className='c11-ferr'>
<AlertCircle aria-hidden='true' />
<span>{err}</span>
</p>
) : null}
</div>
)
})}
{status === 'error' ? (
<p className='c11-alert' role='alert'>
<AlertCircle aria-hidden='true' />
<span>{error}</span>
</p>
) : null}
<button type='submit' className={btnClass} disabled={isDisabled} aria-disabled={loading || undefined}>
<span className='c11-btn-main'>
{loading ? <Loader2 className='c11-spin' aria-hidden='true' /> : null}
<span>{loading ? loadingLabel : label}</span>
</span>
{sublabel ? <span className='c11-btn-sub'>{sublabel}</span> : null}
</button>
{privacy ? (
<p className='c11-privacy'>
<Lock aria-hidden='true' />
<span>{privacy}</span>
</p>
) : null}
</form>
</div>
</div>
</div>
</section>
)
}
export default ChallengeHero11
type Status = 'idle' | 'loading' | 'error'
const statusFor = (state?: string): Status => (state === 'error' ? 'error' : 'idle')
const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
const fill = (template: string, values: Record<string, string>) =>
template.replace(/\{(\w+)\}/g, (match, key: string) => (key in values ? values[key] : match))
/** Example answer shown as the placeholder when a field has none of its own. */
const fieldHint = (name = '', type = 'text') =>
type === 'email' || /email/i.test(name)
? 'you@example.com'
: type === 'tel' || /phone|tel/i.test(name)
? '(555) 123-4567'
: /first/i.test(name)
? 'Jane'
: /last/i.test(name)
? 'Smith'
: /name/i.test(name)
? 'Jane Smith'
: 'Type your answer'
const DEFAULT_DAYS: ChallengeHero11Day[] = [
{ title: 'Plan your offer' },
{ title: 'Draft your page copy' },
{ title: 'Check your next steps' },
]
const DEFAULT_FIELDS: ChallengeHero11Field[] = [
{ name: 'name', label: 'Full name', autoComplete: 'name', placeholder: 'Jane Smith' },
{ name: 'email', label: 'Email address', type: 'email', autoComplete: 'email', placeholder: 'you@example.com' },
]
// The warm metal hue comes from --warning (a status hue, always amber) lifted to a light, readable L on the dark band.
// The marker keeps its documented yellow default, so the phrase on it uses a fixed dark ink fallback.
const CSS = `
.cf-challenge-hero-11{--c11-metal:var(--challenge-metal,oklch(from var(--warning,oklch(0.5 0.1 85)) 0.84 0.12 h));--c11-metal-ink:var(--challenge-metal-ink,oklch(from var(--c11-metal) 0.22 0.045 h));--c11-marker:var(--marker,#fae37c);--c11-marker-ink:var(--marker-ink,oklch(0.21 0.034 263));--c11-gutter:clamp(20px,4vw,48px);--c11-py:clamp(56px,7vw,104px);--c11-skew:-10deg;position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;width:100%;padding:var(--c11-py) var(--c11-gutter);background:var(--band,oklch(0.27 0.067 256));color:var(--band-ink,oklch(1 0 0));font-family:var(--font-body,system-ui,sans-serif)}
.cf-challenge-hero-11 *,.cf-challenge-hero-11 *::before,.cf-challenge-hero-11 *::after{box-sizing:border-box}
.cf-challenge-hero-11 .c11-wrap{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,440px);gap:clamp(40px,6vw,96px);align-items:start}
.cf-challenge-hero-11 .c11-copy{position:relative;z-index:1;min-width:0;container:c11copy / inline-size}
.cf-challenge-hero-11 .c11-h1{margin:0;color:var(--band-ink,oklch(1 0 0));font-family:var(--font-display,system-ui,sans-serif);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.035em);font-size:clamp(2.5rem,1.2rem + 4.6vw,6rem);font-size:clamp(2.5rem,12.5cqi,6rem);line-height:.98;text-wrap:balance;overflow-wrap:break-word}
.cf-challenge-hero-11 .c11-mark{color:var(--c11-marker-ink);background:linear-gradient(180deg,transparent 16%,var(--c11-marker) 16%,var(--c11-marker) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .1em;margin:0 -.04em;border-radius:.12em .32em .16em .4em / .4em .18em .36em .14em}
.cf-challenge-hero-11 .c11-name{margin:clamp(18px,2.2vw,28px) 0 0;color:var(--c11-metal);font-family:var(--font-display,system-ui,sans-serif);font-weight:800;font-size:clamp(1.375rem,1.05rem + .9vw,1.875rem);line-height:1.15;letter-spacing:-.015em;text-wrap:balance}
.cf-challenge-hero-11 .c11-lead{margin:12px 0 0;max-width:36rem;color:color-mix(in oklch,var(--band-ink,oklch(1 0 0)) 86%,var(--band,oklch(0.27 0.067 256)));font-size:clamp(1.0625rem,.98rem + .35vw,1.3125rem);font-weight:500;line-height:1.5;text-wrap:pretty}
.cf-challenge-hero-11 .c11-rail{margin-top:clamp(28px,3.4vw,44px);display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:stretch}
.cf-challenge-hero-11 .c11-count{position:relative;overflow:hidden;margin:0 0 0 6px;display:flex;align-items:center;padding:12px 24px 12px 20px;border-radius:10px;transform:skewX(var(--c11-skew));color:var(--c11-metal-ink);background:linear-gradient(160deg,oklch(from var(--c11-metal) calc(l + 0.07) c h),var(--c11-metal) 48%,oklch(from var(--c11-metal) calc(l - 0.09) c h));box-shadow:inset 0 1px 0 oklch(from var(--c11-metal) calc(l + 0.12) c h / .9),inset 0 -2px 0 oklch(from var(--c11-metal) calc(l - 0.2) c h),var(--shadow-md,0 1px 2px oklch(0.22 0.03 256 / .22),0 4px 10px -2px oklch(0.22 0.03 256 / .2))}
.cf-challenge-hero-11 .c11-count::after{content:'';position:absolute;top:-30%;bottom:-30%;left:-45%;width:32%;background:linear-gradient(90deg,transparent,oklch(from var(--c11-metal) calc(l + 0.14) c h / .75),transparent);transform:skewX(-18deg);animation:c11-shine 1.3s .55s cubic-bezier(.4,0,.2,1) forwards;pointer-events:none}
.cf-challenge-hero-11 .c11-count-in{position:relative;z-index:1;display:flex;align-items:center;gap:12px;transform:skewX(calc(var(--c11-skew) * -1))}
.cf-challenge-hero-11 .c11-num{font-family:var(--font-display,system-ui,sans-serif);font-weight:800;font-size:clamp(3rem,2.3rem + 2vw,4.25rem);line-height:.85;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.cf-challenge-hero-11 .c11-unit{display:flex;flex-direction:column;font-family:var(--font-display,system-ui,sans-serif);font-weight:800;font-size:1.25rem;line-height:1.05}
.cf-challenge-hero-11 .c11-unit small{margin-top:5px;font-family:var(--font-body,system-ui,sans-serif);font-size:.875rem;font-weight:700;line-height:1.2;white-space:nowrap}
.cf-challenge-hero-11 .c11-days{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px}
.cf-challenge-hero-11 .c11-plate{position:relative;min-width:0;padding:14px 18px 16px;border-radius:10px;transform:skewX(var(--c11-skew));background:oklch(from var(--band-ink,oklch(1 0 0)) l c h / .07);border:1px solid oklch(from var(--band-ink,oklch(1 0 0)) l c h / .16);box-shadow:inset 0 1px 0 oklch(from var(--band-ink,oklch(1 0 0)) l c h / .12),var(--shadow-sm,0 1px 1px oklch(0.22 0.03 256 / .18),0 1px 3px oklch(0.22 0.03 256 / .14));transition:transform .2s ease,border-color .2s ease,background-color .2s ease;animation:c11-plate .5s cubic-bezier(.22,1,.36,1) backwards}
.cf-challenge-hero-11 .c11-plate-in{display:grid;gap:6px;transform:skewX(calc(var(--c11-skew) * -1))}
.cf-challenge-hero-11 .c11-dayn{color:var(--c11-metal);font-size:.875rem;font-weight:800;letter-spacing:.1em;line-height:1.2;text-transform:uppercase;white-space:nowrap}
.cf-challenge-hero-11 .c11-dayt{color:var(--band-ink,oklch(1 0 0));font-family:var(--font-display,system-ui,sans-serif);font-weight:700;font-size:1.0625rem;line-height:1.25;text-wrap:balance;overflow-wrap:break-word}
@media (hover:hover){.cf-challenge-hero-11 .c11-plate:hover{transform:skewX(var(--c11-skew)) translateY(-3px);border-color:oklch(from var(--c11-metal) l c h / .55);background:oklch(from var(--band-ink,oklch(1 0 0)) l c h / .1)}}
@container c11copy (max-width:620px){.cf-challenge-hero-11 .c11-rail{grid-template-columns:minmax(0,1fr)}.cf-challenge-hero-11 .c11-count{justify-self:start}}
@container c11copy (max-width:440px){.cf-challenge-hero-11 .c11-rail{--c11-skew:-6deg}.cf-challenge-hero-11 .c11-days{grid-auto-flow:row;grid-template-columns:minmax(0,1fr)}.cf-challenge-hero-11 .c11-plate{padding:13px 16px}.cf-challenge-hero-11 .c11-plate-in{grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:14px}}
.cf-challenge-hero-11 .c11-side{min-width:0}
.cf-challenge-hero-11 .c11-stage{position:absolute;z-index:0;top:0;bottom:0;right:0;width:44%;pointer-events:none}
.cf-challenge-hero-11 .c11-field{position:absolute;inset:0;overflow:hidden;clip-path:polygon(34% 0,100% 0,100% 100%,6% 100%);background:oklch(from var(--band,oklch(0.27 0.067 256)) calc(l + 0.05) c h)}
.cf-challenge-hero-11 .c11-field img{display:block;width:100%;height:100%;object-fit:cover;object-position:68% 30%;animation:c11-settle 1.8s cubic-bezier(.22,1,.36,1) backwards}
.cf-challenge-hero-11 .c11-scrim{position:absolute;inset:0;background:oklch(from var(--band,oklch(0.27 0.067 256)) l c h / .4)}
.cf-challenge-hero-11 .c11-seam{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}
.cf-challenge-hero-11 .c11-seam-m{display:none}
.cf-challenge-hero-11 .c11-s1{stop-color:var(--c11-metal);stop-opacity:1}
.cf-challenge-hero-11 .c11-s2{stop-color:var(--c11-metal);stop-opacity:.6}
.cf-challenge-hero-11 .c11-s3{stop-color:var(--c11-metal);stop-opacity:.18}
.cf-challenge-hero-11 .c11-card{position:relative;z-index:1;margin-top:clamp(0px,1.5vw,20px);padding:clamp(24px,2.6vw,36px);background:var(--card,oklch(1 0 0));color:var(--ink,oklch(0.21 0.034 263));border:1px solid var(--card-border,color-mix(in oklch,var(--ink,oklch(0.21 0.034 263)) 12%,transparent));border-radius:var(--card-radius,var(--radius,16px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(0.22 0.03 256 / .22),0 12px 24px -8px oklch(0.22 0.03 256 / .32)));animation:c11-in .5s .12s cubic-bezier(.22,1,.36,1) backwards}
.cf-challenge-hero-11 .c11-q{margin:0;color:var(--ink,oklch(0.21 0.034 263));font-family:var(--font-display,system-ui,sans-serif);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.625rem,1.25rem + 1vw,2.125rem);line-height:1.08;letter-spacing:-.02em;text-wrap:balance}
.cf-challenge-hero-11 .c11-walk{margin:10px 0 0;color:var(--muted,oklch(0.45 0.03 258));font-size:1.0625rem;font-weight:500;line-height:1.5;text-wrap:pretty}
.cf-challenge-hero-11 .c11-form{margin-top:22px;display:grid;gap:16px}
.cf-challenge-hero-11 .c11-f label{display:block;margin-bottom:8px;color:var(--label-ink,var(--ink,oklch(0.21 0.034 263)));font-size:1rem;font-weight:700;line-height:1.3}
.cf-challenge-hero-11 .c11-f input{display:block;width:100%;min-height:54px;margin:0;padding:0 16px;border:1.5px solid var(--field-border,color-mix(in oklch,var(--ink,oklch(0.21 0.034 263)) 22%,transparent));border-radius:var(--field-radius,var(--radius,10px));background:var(--field,oklch(1 0 0));color:var(--field-ink,oklch(0.21 0.034 263));font:inherit;font-size:1.0625rem;font-weight:500;outline:none;transition:border-color .15s ease,box-shadow .15s ease}
.cf-challenge-hero-11 .c11-f 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-challenge-hero-11 .c11-f input:hover:not(:disabled){border-color:color-mix(in oklch,var(--ink,oklch(0.21 0.034 263)) 42%,transparent)}
.cf-challenge-hero-11 .c11-f input:focus{border-color:var(--field-focus,var(--accent,oklch(0.5 0.17 257)));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent,oklch(0.5 0.17 257))) l c h / .28)}
.cf-challenge-hero-11 .c11-f input[aria-invalid=true]{border-color:var(--danger,oklch(0.5 0.17 27))}
.cf-challenge-hero-11 .c11-f input[aria-invalid=true]:focus{box-shadow:0 0 0 3px oklch(from var(--danger,oklch(0.5 0.17 27)) l c h / .25)}
.cf-challenge-hero-11 .c11-f input:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--ink,oklch(0.21 0.034 263)) 5%,var(--field,oklch(1 0 0)))}
.cf-challenge-hero-11 .c11-ferr{display:flex;align-items:flex-start;gap:6px;margin:8px 0 0;color:var(--danger,oklch(0.5 0.17 27));font-size:.875rem;font-weight:600;line-height:1.35}
.cf-challenge-hero-11 .c11-ferr svg{flex:none;width:16px;height:16px;margin-top:1px}
.cf-challenge-hero-11 .c11-alert{display:flex;align-items:flex-start;gap:10px;margin:0;padding:12px 14px;border-radius:calc(var(--radius,12px) * .75);background:var(--danger-soft,oklch(0.93 0.024 27));color:var(--danger,oklch(0.5 0.17 27));font-size:.9375rem;font-weight:600;line-height:1.4}
.cf-challenge-hero-11 .c11-alert svg{flex:none;width:18px;height:18px;margin-top:1px}
.cf-challenge-hero-11 .c11-btn{--c11-b1:var(--button-bg,var(--cta,oklch(0.58 0.21 29)));--c11-b2:var(--button-bg-2,var(--cta-2,oklch(0.5 0.2 29)));position:relative;width:100%;min-height:74px;margin:4px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:12px 20px 14px;border:0;border-radius:var(--button-radius,var(--radius,12px));cursor:pointer;color:var(--button-ink,var(--cta-ink,oklch(1 0 0)));text-shadow:var(--button-text-shadow,none);font-family:var(--button-font,var(--font-display,system-ui,sans-serif));text-transform:var(--button-case,none);text-align:center;background:linear-gradient(180deg,oklch(from var(--c11-b1) calc(l + 0.04) c h),oklch(from var(--c11-b2) l c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--c11-b1) calc(l + 0.12) c h / .6),inset 0 -3px 0 oklch(from var(--c11-b1) calc(l - 0.16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / .35),0 6px 14px -4px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / .45));transition:transform .15s ease,box-shadow .15s ease;-webkit-tap-highlight-color:transparent}
.cf-challenge-hero-11 .c11-btn:hover:not(:disabled):not(.is-loading),.cf-challenge-hero-11 .c11-btn.is-hover{transform:translateY(-1px);background:linear-gradient(180deg,oklch(from var(--c11-b1) calc(l + 0.01) c h),oklch(from var(--c11-b2) calc(l - 0.04) c h))}
.cf-challenge-hero-11 .c11-btn:active:not(:disabled):not(.is-loading),.cf-challenge-hero-11 .c11-btn.is-active{transform:translateY(1px);background:linear-gradient(180deg,oklch(from var(--c11-b1) calc(l - 0.05) c h),oklch(from var(--c11-b2) calc(l - 0.09) c h));box-shadow:var(--button-shadow,inset 0 2px 3px oklch(from var(--c11-b1) calc(l - 0.22) c h / .55),inset 0 -1px 0 oklch(from var(--c11-b1) calc(l - 0.16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / .3))}
.cf-challenge-hero-11 .c11-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent,oklch(0.5 0.17 257)));outline-offset:3px}
.cf-challenge-hero-11 .c11-btn.is-loading{cursor:progress}
.cf-challenge-hero-11 .c11-btn:disabled{cursor:not-allowed;transform:none;color:var(--button-2-ink,var(--secondary-ink,oklch(0.21 0.034 263)));text-shadow:none;background:var(--button-2-bg,var(--secondary,oklch(0.93 0.015 263)));box-shadow:inset 0 -2px 0 oklch(from var(--button-2-bg,var(--secondary,oklch(0.93 0.015 263))) calc(l - 0.1) c h)}
.cf-challenge-hero-11 .c11-btn-main{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:var(--button-weight,800);font-size:clamp(1.1875rem,1.05rem + .5vw,1.375rem);line-height:1.15;letter-spacing:-.01em;text-wrap:balance}
.cf-challenge-hero-11 .c11-btn-sub{font-family:var(--font-body,system-ui,sans-serif);font-weight:600;font-size:.875rem;line-height:1.3;letter-spacing:.01em;text-transform:none;text-wrap:pretty}
.cf-challenge-hero-11 .c11-spin{flex:none;width:20px;height:20px;animation:c11-spin .9s linear infinite}
.cf-challenge-hero-11 .c11-privacy{display:block;margin:2px 0 0;color:var(--muted,oklch(0.45 0.03 258));font-size:.875rem;line-height:1.4;text-align:center;text-wrap:pretty}
.cf-challenge-hero-11 .c11-privacy svg{display:inline-block;vertical-align:-0.15em;width:14px;height:14px;margin-inline-end:6px}
.cf-challenge-hero-11 .c11-copy>*{animation:c11-in .45s cubic-bezier(.22,1,.36,1) backwards}
.cf-challenge-hero-11 .c11-copy>:nth-child(2){animation-delay:.07s}
.cf-challenge-hero-11 .c11-copy>:nth-child(3){animation-delay:.14s}
.cf-challenge-hero-11 .c11-copy>:nth-child(4){animation-delay:.21s}
@keyframes c11-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes c11-plate{from{opacity:.82;transform:skewX(var(--c11-skew)) translateY(10px)}to{opacity:1;transform:skewX(var(--c11-skew))}}
@keyframes c11-shine{from{left:-45%}to{left:145%}}
@keyframes c11-settle{from{transform:scale(1.06)}to{transform:none}}
@keyframes c11-spin{to{transform:rotate(360deg)}}
@media (max-width:959px){
.cf-challenge-hero-11 .c11-wrap{grid-template-columns:minmax(0,1fr);gap:0}
.cf-challenge-hero-11 .c11-side{position:relative;margin-top:40px;padding-top:80px}
.cf-challenge-hero-11 .c11-stage{top:0;right:calc(var(--c11-gutter) * -1);bottom:calc(var(--c11-py) * -1);left:calc(var(--c11-gutter) * -1);width:auto}
.cf-challenge-hero-11 .c11-field{clip-path:polygon(0 56px,100% 0,100% 100%,0 100%)}
.cf-challenge-hero-11 .c11-seam-d{display:none}
.cf-challenge-hero-11 .c11-seam-m{display:block;height:56px}
.cf-challenge-hero-11 .c11-card{max-width:560px;margin:0 auto}
}
@media (max-width:480px){
.cf-challenge-hero-11 .c11-card{padding:22px 20px 24px}
.cf-challenge-hero-11 .c11-btn{min-height:68px;padding-inline:16px}
}
@media (prefers-reduced-motion:reduce){
.cf-challenge-hero-11 .c11-copy>*,.cf-challenge-hero-11 .c11-plate,.cf-challenge-hero-11 .c11-card,.cf-challenge-hero-11 .c11-field img,.cf-challenge-hero-11 .c11-spin{animation:none}
.cf-challenge-hero-11 .c11-count::after{display:none}
.cf-challenge-hero-11 .c11-plate,.cf-challenge-hero-11 .c11-btn,.cf-challenge-hero-11 .c11-f input{transition:none}
.cf-challenge-hero-11 .c11-plate:hover{transform:skewX(var(--c11-skew))}
.cf-challenge-hero-11 .c11-btn:hover:not(:disabled):not(.is-loading),.cf-challenge-hero-11 .c11-btn.is-hover,.cf-challenge-hero-11 .c11-btn:active:not(:disabled):not(.is-loading),.cf-challenge-hero-11 .c11-btn.is-active{transform:none}
}
`
pieces/hero/challenge-hero-11/specimen.tsx 26 lines
import __studioImagee6384839 from "../assets/fa08c3f07292118a.webp";
// Specimen: the diagonal-split challenge hero with the sample workshop copy and a warm metal stage photo.
import * as React from 'react'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
import { ChallengeHero11, type ChallengeHero11State } from '../challenge-hero-11'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function ChallengeHero11Specimen({ state = 'default' }: { state?: ChallengeHero11State }) {
const reg = defaults.sample.registration
return (
<ChallengeHero11
state={state}
headline={reg.headline}
highlight='first funnel'
privacy={reg.privacy}
error={reg.error}
sceneImage={slot(
'scene',
__studioImagee6384839,
)}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalChallengeHero11 |
string |
Default 'Map out your first funnel'
|
highlight OptionalChallengeHero11 |
string |
Default 'first funnel'
|
name OptionalChallengeHero11 |
string |
Default 'Funnel Starter Challenge'
|
lead OptionalChallengeHero11 |
string |
Default 'Join free and walk through your offer, page copy, and next steps, one day at a time.'
|
days OptionalChallengeHero11 |
ChallengeHero11Day[] |
Default DEFAULT_DAYS
|
dayLabel OptionalChallengeHero11 |
string |
Default 'Day {day}'
|
countUnit OptionalChallengeHero11 |
string |
Default 'days'
|
countUnitSingular OptionalChallengeHero11 |
string |
Default 'day'
|
countCaption OptionalChallengeHero11 |
string |
Default 'Free challenge'
|
railLabel OptionalChallengeHero11 |
string |
Default 'Your {count}-day challenge'
|
question OptionalChallengeHero11 |
string |
Default 'Ready to map your first funnel?'
|
walkAway OptionalChallengeHero11 |
string |
Default 'Walk away with your offer, page copy, and next steps mapped out.'
|
fields OptionalChallengeHero11 |
ChallengeHero11Field[] |
Default DEFAULT_FIELDS
|
label OptionalChallengeHero11 |
string |
Default 'I’m ready, save my seat'
|
sublabel OptionalChallengeHero11 |
string |
Default 'Free · Watch online'
|
loadingLabel OptionalChallengeHero11 |
string |
Default 'Saving your seat…'
|
privacy OptionalChallengeHero11 |
string |
Default 'We respect your inbox. Unsubscribe anytime.'
|
error OptionalChallengeHero11 |
string |
Default 'We couldn’t complete your registration. Please try again.'
|
emailError OptionalChallengeHero11 |
string |
Default 'Please enter a valid email address.'
|
requiredError OptionalChallengeHero11 |
string |
Default 'Please enter your {label}.'
|
sceneImage OptionalChallengeHero11 |
string |
|
disabled OptionalChallengeHero11 |
boolean |
Default false
|
state OptionalChallengeHero11 |
ChallengeHero11State |
Default 'default'
|
onSubmit OptionalChallengeHero11 |
(values: Record<string, string>) => void | Promise<void> |
|
className OptionalChallengeHero11 |
string |
|
style OptionalChallengeHero11 |
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-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.
scene- A wide atmosphere photo behind or beside the copy.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
fa08c3f07292118a.webp
image/webp · 41.5 KB