Challenge Hero 3
Registers visitors for a free challenge by future-pacing their week: Monday (where they are) beside Friday (where they will be), a day scrubber between the two that crosses off Monday and lights up Friday, and the join form on the Friday side.
Use it in a prompt
Use hero/challenge-hero-3 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-3.tsx. - Import it and pass your copy and images (Props tab):
import { ChallengeHero3 } from "@/components/funneldna/hero/challenge-hero-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/challenge-hero-3/component.tsx 675 lines
// layout: comparison-columns
// Registers visitors for a free challenge by future-pacing their week: Monday (where they are) beside Friday (where they will be), a day scrubber between the two that crosses off Monday and lights up Friday, and the join form on the Friday side.
import * as React from 'react'
import { AlertCircle, Check, Loader2, Lock, X } from 'lucide-react'
import { Spot } from '../fx/fx'
import clock from '../fx/spots/clock'
export type ChallengeHero3State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type ChallengeHero3Day = {
/** The one thing the visitor works on that day, shown when the scrubber reaches it */
focus: string
/** Weekday shown beside the day in the readout and in the Ready by chips, e.g. Wednesday */
weekday?: string
/** Overrides the generated Day N label */
label?: string
}
export type ChallengeHero3Line = {
text: string
/** One-based challenge day this line changes on (crossed off on Monday, ready on Friday). Defaults spread across the days. */
day?: number
}
export type ChallengeHero3Field = {
name: string
label: string
type?: string
autoComplete?: string
placeholder?: string
}
export type ChallengeHero3Props = {
headline?: string
/** One continuous phrase inside the headline that gets the marker stroke */
highlight?: string
lead?: string
mondayTitle?: string
/** Red subhead under the Monday title */
mondaySubhead?: string
/** Where the visitor is today; three short lines work best */
mondayLines?: ChallengeHero3Line[]
/** Screen-reader note on a crossed-off Monday line. {day} is replaced with the day name as text. */
fixedLabel?: string
/** Before-state photo in the Monday column (scene slot), shown in greyscale. Hidden on phones. */
mondayImage?: string
mondayImageAlt?: string
/** Plain caption under the Monday photo */
mondayCaption?: string
/** Clay illustration beside the Monday title (an imported fx spot asset) */
mondaySpot?: string
fridayTitle?: string
fridaySubhead?: string
/** Where the visitor will be by the last day; three short lines work best */
fridayLines?: ChallengeHero3Line[]
/** {day} is replaced with the day name as text. */
readyLabel?: string
/** {ready} and {total} are replaced with numbers as text. */
readyCountLabel?: string
/** One entry per challenge day. The scrubber runs from Day 1 to the last day of this list. */
days?: ChallengeHero3Day[]
/** {day} is replaced with the one-based day number as text. */
dayLabel?: string
/** One-based day the scrubber starts on */
startDay?: number
/** Visible label of the day scrubber */
scrubLabel?: string
/** {day} and {days} are replaced with numbers as text. */
progressLabel?: string
/** {label} and {weekday} are replaced as text; a day without a weekday shows its label alone. */
readoutTemplate?: string
cardTitle?: string
fields?: ChallengeHero3Field[]
/** Placeholder for a field that has none of its own, by kind */
placeholders?: { email?: string; name?: string; text?: string }
label?: string
/** Reassurance line under the button. {days} is replaced with the day count as text. */
sublabel?: string
loadingLabel?: string
privacy?: string
error?: string
emailError?: string
/** {label} is replaced with the lower-case field label as text. */
requiredError?: string
disabled?: boolean
state?: ChallengeHero3State
/** 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 ChallengeHero3({
headline = 'Start Monday with an idea. Finish Friday with your first funnel mapped.',
highlight = 'your first funnel mapped',
lead = 'Join the free Funnel Starter Challenge and walk through your offer, page copy, and next steps, one focused task a day.',
mondayTitle = 'Monday',
mondaySubhead = 'Stuck at the idea stage',
mondayLines = DEFAULT_MONDAY,
fixedLabel = 'sorted by {day}',
mondayImage,
mondayImageAlt = '',
mondayCaption = 'Most weeks start right here.',
mondaySpot = clock,
fridayTitle = 'Friday',
fridaySubhead = 'A funnel plan you can build',
fridayLines = DEFAULT_FRIDAY,
readyLabel = 'Ready by {day}',
readyCountLabel = '{ready} of {total} ready',
days = DEFAULT_DAYS,
dayLabel = 'Day {day}',
startDay = 1,
scrubLabel = 'Slide from Monday to Friday',
progressLabel = 'Day {day} of {days}',
readoutTemplate = '{label} · {weekday}',
cardTitle = 'Join the free Funnel Starter Challenge',
fields = DEFAULT_FIELDS,
placeholders,
label = 'Yes! I’m in for Friday',
sublabel = 'Free {days}-day challenge · 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}.',
disabled = false,
state = 'default',
onSubmit,
className,
style,
}: ChallengeHero3Props) {
const uid = React.useId().replace(/:/g, '')
const n = Math.max(1, days.length)
const [idx, setIdx] = React.useState(() => clampDay(startDay, n) - 1)
React.useEffect(() => {
setIdx(clampDay(startDay, n) - 1)
}, [startDay, n])
const cur = Math.min(Math.max(0, idx), n - 1)
const dayNum = cur + 1
const p = n > 1 ? cur / (n - 1) : 1
const isDisabled = disabled || state === 'disabled'
const emailName = (fields.find((f) => f.type === 'email') ?? fields[0])?.name
const [errors, setErrors] = React.useState<Record<string, string>>(() =>
state === 'error' && emailName ? { [emailName]: emailError } : {},
)
const [loading, setLoading] = React.useState(false)
const [failed, setFailed] = React.useState(false)
const mounted = React.useRef(true)
React.useEffect(() => {
setErrors(state === 'error' && emailName ? { [emailName]: emailError } : {})
setLoading(false)
setFailed(false)
}, [state, emailName, emailError])
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
const live = !isDisabled && !loading
const phs = { ...DEFAULT_PLACEHOLDERS, ...placeholders }
const nameOf = (i: number) => days[i]?.label ?? fill(dayLabel, { day: String(i + 1) })
const whenOf = (i: number) => days[i]?.weekday ?? nameOf(i)
const current = days[cur]
const readTitle = current?.weekday
? fill(readoutTemplate, { label: nameOf(cur), weekday: current.weekday })
: nameOf(cur)
const focus = current?.focus ?? ''
const pos = (i: number) => (n > 1 ? i / (n - 1) : 0)
const mon = mondayLines.map((l, i) => ({ text: l.text, at: lineDay(l.day, i, mondayLines.length, n) }))
const fri = fridayLines.map((l, i) => ({ text: l.text, at: lineDay(l.day, i, fridayLines.length, n) }))
const ready = fri.filter((l) => dayNum >= l.at).length
const at = highlight ? headline.indexOf(highlight) : -1
const h1 =
at < 0 ? (
headline
) : (
<>
{headline.slice(0, at)}
<span className='c3-mark'>{highlight}</span>
{headline.slice(at + highlight.length)}
</>
)
const placeholderFor = (f: ChallengeHero3Field) =>
f.placeholder ??
(f.type === 'email'
? phs.email
: f.autoComplete === 'name' || f.name.toLowerCase().includes('name')
? phs.name
: phs.text)
const clear = (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 email = f.type === 'email'
if (!value) next[f.name] = email ? emailError : fill(requiredError, { label: f.label.toLowerCase() })
else if (email && !looksLikeEmail(value)) next[f.name] = emailError
}
setErrors(next)
setFailed(false)
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: unknown = onSubmit?.(values)
if (!isThenable(result)) return
setLoading(true)
await result
if (mounted.current) setLoading(false)
} catch {
if (mounted.current) {
setLoading(false)
setFailed(true)
}
}
}
const btnClass = [
'c3-btn',
live && state === 'hover' ? 'is-hover' : '',
live && state === 'active' ? 'is-active' : '',
loading ? 'is-loading' : '',
]
.filter(Boolean)
.join(' ')
const rootStyle = { ...style, '--c3-p': String(p) } as React.CSSProperties
const rangeId = `${uid}-range`
const cardId = `${uid}-card`
return (
<section
className={['cf-challenge-hero-3', className].filter(Boolean).join(' ')}
style={rootStyle}
aria-labelledby={`${uid}-h`}
>
<style>{CSS}</style>
<div className='c3-top'>
<h1 id={`${uid}-h`} className='c3-h1 c3-rise'>
{h1}
</h1>
{lead ? (
<p className='c3-lead c3-rise' style={rise(0.07)}>
{lead}
</p>
) : null}
</div>
<div className='c3-split'>
<span className='c3-bg c3-bg-mon' aria-hidden='true' />
<span className='c3-bg c3-bg-fri' aria-hidden='true' />
<div className='c3-mon'>
<div className='c3-head c3-rise' style={rise(0.14)}>
{mondaySpot ? (
<span className='c3-spot' aria-hidden='true'>
<Spot src={mondaySpot} size={56} />
</span>
) : null}
<h2 className='c3-day-word c3-mon-word'>{mondayTitle}</h2>
</div>
{mondaySubhead ? <p className='c3-sub c3-sub-red'>{mondaySubhead}</p> : null}
<ul className='c3-mon-list'>
{mon.map((line, i) => {
const done = dayNum >= line.at
return (
<li key={i} className={done ? 'c3-mon-item is-done' : 'c3-mon-item'}>
<span className='c3-badge' aria-hidden='true'>
<X size={16} strokeWidth={3} />
</span>
<span className='c3-mon-text'>
<span className='c3-strike'>{line.text}</span>
{done ? <span className='c3-sr'> ({fill(fixedLabel, { day: whenOf(line.at - 1) })})</span> : null}
</span>
</li>
)
})}
</ul>
{mondayImage ? (
<figure className='c3-photo'>
<img src={mondayImage} alt={mondayImageAlt} width={800} height={600} loading='lazy' decoding='async' />
{mondayCaption ? <figcaption>{mondayCaption}</figcaption> : null}
</figure>
) : null}
</div>
<div className='c3-scrub'>
<div className='c3-scrub-card c3-rise' style={rise(0.21)}>
<div className='c3-scrub-top'>
<label htmlFor={rangeId} className='c3-scrub-label'>
{scrubLabel}
</label>
<span className='c3-scrub-count'>{fill(progressLabel, { day: String(dayNum), days: String(n) })}</span>
</div>
<div className='c3-rail'>
<span className='c3-rail-track' aria-hidden='true' />
<span className='c3-rail-fill' aria-hidden='true' />
{Array.from({ length: n }).map((_, i) => (
<span
key={i}
aria-hidden='true'
className={i <= cur ? 'c3-rail-dot is-on' : 'c3-rail-dot'}
style={{ '--x': String(pos(i)) } as React.CSSProperties}
/>
))}
<input
id={rangeId}
className='c3-range'
type='range'
min={1}
max={n}
step={1}
value={dayNum}
disabled={n < 2}
aria-valuetext={focus ? `${readTitle}: ${focus}` : readTitle}
onChange={(e) => setIdx(Number(e.target.value) - 1)}
/>
</div>
<div className='c3-ticks' aria-hidden='true'>
{Array.from({ length: n }).map((_, i) => {
const show = n <= 7 || i === 0 || i === n - 1 || (i === cur && i > 1 && i < n - 2)
if (!show) return null
return (
<span
key={i}
className={i === cur ? 'c3-tick-label is-on' : 'c3-tick-label'}
style={{ '--x': String(pos(i)) } as React.CSSProperties}
onClick={() => setIdx(i)}
>
{nameOf(i)}
</span>
)
})}
</div>
<div className='c3-readout'>
<p key={`h${cur}`} className='c3-read-head c3-rise'>
{readTitle}
</p>
{focus ? (
<p key={`t${cur}`} className='c3-read-text c3-rise'>
{focus}
</p>
) : null}
</div>
</div>
</div>
<div className='c3-fri'>
<div className='c3-fri-head c3-rise' style={rise(0.21)}>
<h2 className='c3-day-word c3-fri-word'>{fridayTitle}</h2>
{fri.length ? (
<p className='c3-count' aria-live='polite'>
{fill(readyCountLabel, { ready: String(ready), total: String(fri.length) })}
</p>
) : null}
</div>
{fridaySubhead ? <p className='c3-sub c3-fri-sub'>{fridaySubhead}</p> : null}
<div className='c3-fri-body'>
<ul className='c3-fri-list'>
{fri.map((line, i) => {
const lit = dayNum >= line.at
return (
<li key={i} className={lit ? 'c3-fri-item is-lit' : 'c3-fri-item'}>
<span className='c3-tick' aria-hidden='true'>
<Check size={16} strokeWidth={3} />
</span>
<div>
<span className='c3-ready'>{fill(readyLabel, { day: whenOf(line.at - 1) })}</span>
<p className='c3-fri-text'>{line.text}</p>
</div>
</li>
)
})}
</ul>
<form
className='c3-card'
noValidate
onSubmit={handleSubmit}
aria-labelledby={cardTitle ? cardId : undefined}
aria-busy={loading || undefined}
>
{cardTitle ? (
<h3 id={cardId} className='c3-card-title'>
{cardTitle}
</h3>
) : null}
<div className='c3-fields'>
{fields.map((f) => {
const id = `${uid}-${f.name}`
const err = errors[f.name]
const errId = `${id}-err`
return (
<div className='c3-field' key={f.name}>
<label htmlFor={id} className='c3-label'>
{f.label}
</label>
<input
id={id}
name={f.name}
type={f.type ?? 'text'}
autoComplete={f.autoComplete}
placeholder={placeholderFor(f)}
className='c3-input'
disabled={isDisabled}
aria-invalid={err ? true : undefined}
aria-describedby={err ? errId : undefined}
onChange={() => clear(f.name)}
/>
{err ? (
<p id={errId} className='c3-err'>
<AlertCircle size={16} strokeWidth={2.5} className='c3-ico' aria-hidden='true' />
{err}
</p>
) : null}
</div>
)
})}
</div>
{failed ? (
<p className='c3-alert' role='alert'>
<AlertCircle size={16} strokeWidth={2.5} className='c3-ico' aria-hidden='true' />
{error}
</p>
) : null}
<button type='submit' className={btnClass} disabled={isDisabled}>
{loading ? (
<>
<Loader2 size={20} strokeWidth={2.5} className='c3-spin' aria-hidden='true' />
{loadingLabel}
</>
) : (
label
)}
</button>
{sublabel ? <p className='c3-note'>{fill(sublabel, { days: String(n) })}</p> : null}
{privacy ? (
<p className='c3-privacy'>
<Lock size={16} strokeWidth={2.5} className='c3-ico' aria-hidden='true' />
{privacy}
</p>
) : null}
</form>
</div>
</div>
</div>
</section>
)
}
export default ChallengeHero3
const DEFAULT_DAYS: ChallengeHero3Day[] = [
{ weekday: 'Monday', focus: 'Name your offer and the one person it’s for.' },
{ weekday: 'Tuesday', focus: 'Map the pages your funnel needs, start to finish.' },
{ weekday: 'Wednesday', focus: 'Draft your headline, offer, and call to action.' },
{ weekday: 'Thursday', focus: 'Write the follow-up that goes out after someone signs up.' },
{ weekday: 'Friday', focus: 'Check every link, form, and next step before launch.' },
]
const DEFAULT_MONDAY: ChallengeHero3Line[] = [
{ text: 'You have an offer idea but no page for it.', day: 1 },
{ text: 'Your copy lives in five half-finished docs.', day: 3 },
{ text: 'You’re not sure what happens after someone signs up.', day: 5 },
]
const DEFAULT_FRIDAY: ChallengeHero3Line[] = [
{ text: 'Your offer, written in one clear sentence.', day: 1 },
{ text: 'Your headline, offer, and call to action drafted.', day: 3 },
{ text: 'Every step of your funnel mapped and checked.', day: 5 },
]
const DEFAULT_FIELDS: ChallengeHero3Field[] = [
{ name: 'name', label: 'Full name', autoComplete: 'name', placeholder: 'Jane Smith' },
{ name: 'email', label: 'Email address', type: 'email', autoComplete: 'email', placeholder: 'you@example.com' },
]
const DEFAULT_PLACEHOLDERS = { email: 'you@example.com', name: 'Jane Smith', text: 'Type your answer' }
function fill(template: string, map: Record<string, string>) {
return Object.keys(map).reduce((s, k) => s.split(`{${k}}`).join(map[k]), template)
}
function clampDay(day: number, n: number) {
const d = Math.round(Number.isFinite(day) ? day : 1)
return Math.min(Math.max(1, d), n)
}
function lineDay(day: number | undefined, i: number, len: number, n: number) {
return clampDay(day ?? Math.round(((i + 1) / Math.max(1, len)) * n), n)
}
function looksLikeEmail(v: string) {
const at = v.indexOf('@')
const dot = v.lastIndexOf('.')
return at > 0 && dot > at + 1 && dot < v.length - 1 && !v.includes(' ')
}
function isThenable(v: unknown): v is PromiseLike<void> {
return !!v && typeof (v as PromiseLike<void>).then === 'function'
}
function rise(s: number): React.CSSProperties {
return { animationDelay: `${Math.min(s, 0.28)}s` }
}
const CSS = `
.cf-challenge-hero-3{--c3-gut:clamp(16px,5vw,48px);--c3-thumb:28px;--c3-overlap:72px;--c3-red:var(--subhead-ink,color-mix(in oklch,var(--danger) 80%,var(--ink)));--c3-day-ink:color-mix(in oklch,var(--accent) 78%,var(--ink));--c3-mon-bg:color-mix(in oklch,var(--ink) 5%,var(--surface));position:relative;isolation:isolate;overflow:clip;background:var(--surface);color:var(--ink);font-family:var(--font-body)}
.cf-challenge-hero-3 *,.cf-challenge-hero-3 *::before,.cf-challenge-hero-3 *::after{box-sizing:border-box}
.cf-challenge-hero-3 :where(h1,h2,h3,p,ul,figure){margin:0}
.cf-challenge-hero-3 ul{padding:0;list-style:none}
.cf-challenge-hero-3 .c3-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-challenge-hero-3 .c3-ico{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em;flex:0 0 auto}
.cf-challenge-hero-3 .c3-top{max-width:calc(1000px + 2 * var(--c3-gut));margin:0 auto;padding:clamp(56px,7vw,96px) var(--c3-gut) 32px;text-align:center}
.cf-challenge-hero-3 .c3-h1{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.08;text-wrap:balance;color:var(--ink)}
.cf-challenge-hero-3 .c3-mark{background-image:linear-gradient(transparent 56%,oklch(from var(--marker,#fae37c) l c h / .7) 56%,oklch(from var(--marker,#fae37c) l c h / .7) 93%,transparent 93%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .08em;border-radius:.18em .1em .22em .12em}
.cf-challenge-hero-3 .c3-lead{margin:clamp(32px,3vw,40px) auto 0;max-width:44rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-challenge-hero-3 .c3-split{position:relative;display:grid;grid-template-columns:[full-start] minmax(var(--c3-gut),1fr) [mon-start] min(448px,calc((100% - 2 * var(--c3-gut)) * .4)) [mon-end fri-start] min(672px,calc((100% - 2 * var(--c3-gut)) * .6)) [fri-end] minmax(var(--c3-gut),1fr) [full-end];grid-template-rows:auto auto}
.cf-challenge-hero-3 .c3-bg{grid-row:1 / span 2;margin-top:var(--c3-overlap);pointer-events:none}
.cf-challenge-hero-3 .c3-bg-mon{grid-column:full-start / mon-end;background:var(--c3-mon-bg)}
.cf-challenge-hero-3 .c3-bg-fri{grid-column:fri-start / full-end;background:var(--band)}
.cf-challenge-hero-3 .c3-scrub{grid-column:mon-start / fri-end;grid-row:1;position:relative;z-index:2;justify-self:start;width:min(680px,100%);margin-inline-start:max(0px,calc(40% - 340px))}
.cf-challenge-hero-3 .c3-scrub-card{background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--shadow-md,0 1px 2px oklch(0.22 0.03 260 / .22),0 4px 10px -2px oklch(0.22 0.03 260 / .2));padding:20px clamp(20px,3vw,28px) 24px}
.cf-challenge-hero-3 .c3-scrub-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px}
.cf-challenge-hero-3 .c3-scrub-label{font-size:1rem;line-height:1.3;font-weight:700;color:var(--ink);cursor:pointer}
.cf-challenge-hero-3 .c3-scrub-count{font-size:.875rem;line-height:1.2;font-weight:800;color:var(--muted);font-variant-numeric:tabular-nums}
.cf-challenge-hero-3 .c3-rail{position:relative;height:44px;margin-top:8px}
.cf-challenge-hero-3 .c3-rail-track,.cf-challenge-hero-3 .c3-rail-fill{position:absolute;top:50%;height:10px;margin-top:-5px;border-radius:999px}
.cf-challenge-hero-3 .c3-rail-track{left:0;right:0;background:color-mix(in oklch,var(--ink) 10%,var(--card))}
.cf-challenge-hero-3 .c3-rail-fill{left:0;width:calc(var(--c3-thumb) / 2 + (100% - var(--c3-thumb)) * var(--c3-p));background:var(--accent-fill,var(--accent));transition:width .25s cubic-bezier(.2,.7,.2,1)}
.cf-challenge-hero-3 .c3-rail-dot{position:absolute;top:50%;left:calc(var(--c3-thumb) / 2 + (100% - var(--c3-thumb)) * var(--x));width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:999px;background:color-mix(in oklch,var(--ink) 32%,var(--card));transition:background-color .16s ease}
.cf-challenge-hero-3 .c3-rail-dot.is-on{background:var(--accent-fill-ink,var(--card))}
.cf-challenge-hero-3 .c3-range{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;padding:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:grab}
.cf-challenge-hero-3 .c3-range:active{cursor:grabbing}
.cf-challenge-hero-3 .c3-range:disabled{cursor:default}
.cf-challenge-hero-3 .c3-range:focus{outline:none}
.cf-challenge-hero-3 .c3-range::-webkit-slider-runnable-track{height:44px;background:transparent;border:0}
.cf-challenge-hero-3 .c3-range::-moz-range-track{height:44px;background:transparent;border:0}
.cf-challenge-hero-3 .c3-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;width:var(--c3-thumb);height:var(--c3-thumb);margin-top:calc((44px - var(--c3-thumb)) / 2);border-radius:999px;background:var(--card);border:4px solid var(--accent-fill,var(--accent));box-shadow:var(--shadow-md,0 1px 2px oklch(0.22 0.03 260 / .22),0 4px 10px -2px oklch(0.22 0.03 260 / .2));transition:transform .16s ease,box-shadow .16s ease}
.cf-challenge-hero-3 .c3-range::-moz-range-thumb{box-sizing:border-box;width:var(--c3-thumb);height:var(--c3-thumb);border-radius:999px;background:var(--card);border:4px solid var(--accent-fill,var(--accent));box-shadow:var(--shadow-md,0 1px 2px oklch(0.22 0.03 260 / .22),0 4px 10px -2px oklch(0.22 0.03 260 / .2));transition:transform .16s ease,box-shadow .16s ease}
.cf-challenge-hero-3 .c3-range:not(:disabled):hover::-webkit-slider-thumb{transform:scale(1.08)}
.cf-challenge-hero-3 .c3-range:not(:disabled):hover::-moz-range-thumb{transform:scale(1.08)}
.cf-challenge-hero-3 .c3-range:active::-webkit-slider-thumb{transform:scale(.96)}
.cf-challenge-hero-3 .c3-range:active::-moz-range-thumb{transform:scale(.96)}
.cf-challenge-hero-3 .c3-range:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 5px oklch(from var(--field-focus,var(--accent)) l c h / .4),var(--shadow-md,0 1px 2px oklch(0.22 0.03 260 / .22))}
.cf-challenge-hero-3 .c3-range:focus-visible::-moz-range-thumb{box-shadow:0 0 0 5px oklch(from var(--field-focus,var(--accent)) l c h / .4),var(--shadow-md,0 1px 2px oklch(0.22 0.03 260 / .22))}
.cf-challenge-hero-3 .c3-ticks{position:relative;height:24px;margin-top:2px}
.cf-challenge-hero-3 .c3-tick-label{position:absolute;top:0;left:calc(var(--c3-thumb) / 2 + (100% - var(--c3-thumb)) * var(--x));transform:translateX(-50%);padding:2px 4px;border-radius:6px;white-space:nowrap;font-size:.875rem;line-height:1.2;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums;cursor:pointer}
.cf-challenge-hero-3 .c3-tick-label:hover{color:var(--ink)}
.cf-challenge-hero-3 .c3-tick-label.is-on{color:var(--ink);font-weight:800}
.cf-challenge-hero-3 .c3-readout{margin-top:16px;padding:16px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));min-height:96px}
.cf-challenge-hero-3 .c3-read-head{font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.15;letter-spacing:-0.01em;color:var(--c3-day-ink)}
.cf-challenge-hero-3 .c3-read-text{margin-top:8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-challenge-hero-3 .c3-mon{grid-column:mon;grid-row:2;position:relative;z-index:1;min-width:0;padding:40px clamp(24px,4vw,48px) clamp(64px,8.5vw,120px) 0;color:var(--ink)}
.cf-challenge-hero-3 .c3-fri{grid-column:fri;grid-row:2;position:relative;z-index:1;min-width:0;padding:40px 0 clamp(64px,8.5vw,120px) clamp(24px,4vw,48px);background:var(--band);color:var(--band-ink)}
.cf-challenge-hero-3 .c3-head{display:flex;align-items:center;gap:12px}
.cf-challenge-hero-3 .c3-spot{flex:0 0 auto;display:inline-flex}
.cf-challenge-hero-3 .c3-day-word{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.03em;text-transform:var(--display-case,none);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1.1}
.cf-challenge-hero-3 .c3-mon-word{color:var(--ink);color:color-mix(in oklch,var(--ink) calc(100% - var(--c3-p) * 50%),var(--muted))}
.cf-challenge-hero-3 .c3-fri-word{color:var(--band-ink)}
.cf-challenge-hero-3 .c3-sub{margin-top:clamp(28px,3vw,40px);font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-challenge-hero-3 .c3-sub-red{color:var(--c3-red)}
.cf-challenge-hero-3 .c3-fri-sub{color:var(--band-ink)}
.cf-challenge-hero-3 .c3-mon-list{margin-top:24px;display:grid;gap:16px}
.cf-challenge-hero-3 .c3-mon-item{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;align-items:start;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-challenge-hero-3 .c3-badge{width:28px;height:28px;border-radius:999px;display:inline-grid;place-items:center;background:var(--danger);color:var(--c3-glyph,#fff)}
.cf-challenge-hero-3 .c3-strike{background-image:linear-gradient(var(--danger),var(--danger));background-repeat:no-repeat;background-position:0 58%;background-size:0% max(2px,.1em);-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .45s cubic-bezier(.2,.7,.2,1)}
.cf-challenge-hero-3 .c3-mon-item.is-done .c3-strike{background-size:100% max(2px,.1em)}
.cf-challenge-hero-3 .c3-photo{margin-top:32px}
.cf-challenge-hero-3 .c3-photo img{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover;object-position:50% 50%;border-radius:12px;filter:grayscale(.9) contrast(.95)}
.cf-challenge-hero-3 .c3-photo figcaption{margin-top:12px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-challenge-hero-3 .c3-fri-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px}
.cf-challenge-hero-3 .c3-count{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .12);color:var(--band-ink);font-size:.875rem;line-height:1.2;font-weight:800;font-variant-numeric:tabular-nums}
.cf-challenge-hero-3 .c3-fri-body{margin-top:24px;display:grid;gap:32px}
.cf-challenge-hero-3 .c3-fri-list{display:grid;gap:20px;align-content:start}
.cf-challenge-hero-3 .c3-fri-item{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;align-items:start}
.cf-challenge-hero-3 .c3-tick{width:28px;height:28px;border-radius:999px;display:inline-grid;place-items:center;border:2px solid oklch(from var(--band-ink) l c h / .5);color:var(--c3-glyph,#fff);transition:background-color .16s ease,border-color .16s ease}
.cf-challenge-hero-3 .c3-tick svg{opacity:0;transition:opacity .16s ease}
.cf-challenge-hero-3 .c3-fri-item.is-lit .c3-tick{background:var(--success);border-color:var(--success);animation:c3-pop .3s cubic-bezier(.2,.7,.2,1) both}
.cf-challenge-hero-3 .c3-fri-item.is-lit .c3-tick svg{opacity:1}
.cf-challenge-hero-3 .c3-ready{display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .12);color:var(--band-ink);font-size:.875rem;line-height:1.2;font-weight:800;transition:background-color .16s ease,color .16s ease}
.cf-challenge-hero-3 .c3-fri-item.is-lit .c3-ready{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-challenge-hero-3 .c3-fri-text{margin-top:8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;font-weight:600;color:var(--band-ink);text-wrap:pretty}
.cf-challenge-hero-3 .c3-card{background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(0.22 0.03 260 / .22),0 12px 24px -8px oklch(0.22 0.03 260 / .32)));padding:clamp(20px,3vw,32px)}
.cf-challenge-hero-3 .c3-card-title{font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance;color:var(--ink)}
.cf-challenge-hero-3 .c3-fields{margin-top:20px;display:grid;gap:16px}
.cf-challenge-hero-3 .c3-label{display:block;margin-bottom:8px;font-size:1rem;line-height:1.3;font-weight:700;color:var(--label-ink,var(--ink))}
.cf-challenge-hero-3 .c3-input{display:block;width:100%;height:56px;padding:0 16px;font-family:var(--font-body);font-size:17px;font-weight:500;color:var(--field-ink);background:var(--field);border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));transition:border-color .16s ease,box-shadow .16s ease}
.cf-challenge-hero-3 .c3-input::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
.cf-challenge-hero-3 .c3-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 / .35)}
.cf-challenge-hero-3 .c3-input[aria-invalid='true']{border-color:var(--danger)}
.cf-challenge-hero-3 .c3-input[aria-invalid='true']:focus{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .3)}
.cf-challenge-hero-3 .c3-input:disabled{background:color-mix(in oklch,var(--ink) 4%,var(--field));cursor:not-allowed}
.cf-challenge-hero-3 .c3-err{margin-top:8px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--danger);text-wrap:pretty}
.cf-challenge-hero-3 .c3-alert{margin-top:16px;padding:12px 16px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-challenge-hero-3 .c3-btn{margin-top:20px;width:100%;min-height:64px;padding:12px 28px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-wrap:balance;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .3),0 8px 16px -6px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-challenge-hero-3 .c3-btn:hover:not(:disabled),.cf-challenge-hero-3 .c3-btn.is-hover{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .1) c h / .6),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .32),0 10px 20px -6px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .55));transform:translateY(-1px)}
.cf-challenge-hero-3 .c3-btn:active:not(:disabled),.cf-challenge-hero-3 .c3-btn.is-active{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .05) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .08) c h));box-shadow:var(--button-shadow,inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - .22) c h / .6),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .3));transform:translateY(1px)}
.cf-challenge-hero-3 .c3-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-challenge-hero-3 .c3-btn:disabled{background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:not-allowed;transform:none}
.cf-challenge-hero-3 .c3-btn.is-loading{cursor:progress}
.cf-challenge-hero-3 .c3-note{margin-top:12px;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-challenge-hero-3 .c3-privacy{margin-top:4px;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
@keyframes c3-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes c3-pop{from{transform:scale(.9)}to{transform:scale(1)}}
@keyframes c3-spin{to{transform:rotate(360deg)}}
.cf-challenge-hero-3 .c3-rise{animation:c3-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-challenge-hero-3 .c3-spin{animation:c3-spin .8s linear infinite}
@media (min-width:1180px){
.cf-challenge-hero-3 .c3-fri-body{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:28px;align-items:start}
.cf-challenge-hero-3 .c3-fri-body .c3-card{padding:28px}
.cf-challenge-hero-3 .c3-fri-body .c3-btn{padding:12px 20px;font-size:1.125rem}
}
@media (max-width:860px){
.cf-challenge-hero-3 .c3-split{grid-template-columns:[full-start] var(--c3-gut) [mon-start fri-start] minmax(0,1fr) [mon-end fri-end] var(--c3-gut) [full-end];grid-template-rows:auto auto auto}
.cf-challenge-hero-3 .c3-bg{margin-top:0}
.cf-challenge-hero-3 .c3-bg-mon{grid-row:1;grid-column:full-start / full-end}
.cf-challenge-hero-3 .c3-bg-fri{grid-row:3;grid-column:full-start / full-end}
.cf-challenge-hero-3 .c3-mon{grid-row:1;padding:24px 0}
.cf-challenge-hero-3 .c3-scrub{grid-row:2;grid-column:mon-start / mon-end;justify-self:stretch;width:100%;margin:24px 0}
.cf-challenge-hero-3 .c3-fri{grid-row:3;padding:40px 0 clamp(56px,12vw,72px)}
.cf-challenge-hero-3 .c3-spot,.cf-challenge-hero-3 .c3-photo{display:none}
.cf-challenge-hero-3 .c3-mon-word{font-size:2rem}
.cf-challenge-hero-3 .c3-mon .c3-sub{margin-top:28px;font-size:1.125rem}
.cf-challenge-hero-3 .c3-mon-list{margin-top:16px;gap:12px}
.cf-challenge-hero-3 .c3-mon-item{grid-template-columns:24px minmax(0,1fr);gap:12px;font-size:1rem;line-height:1.45;color:var(--muted)}
.cf-challenge-hero-3 .c3-badge{width:24px;height:24px}
.cf-challenge-hero-3 .c3-btn{padding:12px 20px}
}
@media (prefers-reduced-motion:reduce){
.cf-challenge-hero-3 .c3-rise,.cf-challenge-hero-3 .c3-fri-item.is-lit .c3-tick,.cf-challenge-hero-3 .c3-spin{animation:none}
.cf-challenge-hero-3 .c3-strike,.cf-challenge-hero-3 .c3-rail-fill,.cf-challenge-hero-3 .c3-rail-dot,.cf-challenge-hero-3 .c3-tick,.cf-challenge-hero-3 .c3-tick svg,.cf-challenge-hero-3 .c3-ready,.cf-challenge-hero-3 .c3-btn,.cf-challenge-hero-3 .c3-input{transition:none}
.cf-challenge-hero-3 .c3-range::-webkit-slider-thumb{transition:none}
.cf-challenge-hero-3 .c3-range::-moz-range-thumb{transition:none}
.cf-challenge-hero-3 .c3-btn:hover:not(:disabled),.cf-challenge-hero-3 .c3-btn.is-hover,.cf-challenge-hero-3 .c3-btn:active:not(:disabled),.cf-challenge-hero-3 .c3-btn.is-active{transform:none}
}
`
pieces/hero/challenge-hero-3/specimen.tsx 59 lines
import __studioImage5731e8dc from "../assets/597583ba428bc626.webp";
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
import { ChallengeHero3, type ChallengeHero3State } from '../challenge-hero-3'
const sample = defaults.sample
const reg = sample.registration
export const states = ['default', 'hover', 'active', 'disabled', 'error']
const DAYS = [
{ weekday: 'Monday', focus: 'Rewrite your headline and About section for one buyer.' },
{ weekday: 'Tuesday', focus: 'Pick three topics your buyers already ask you about.' },
{ weekday: 'Wednesday', focus: 'Write a week of posts from one simple template.' },
{ weekday: 'Thursday', focus: 'Turn comments into conversations with a two-line message.' },
{ weekday: 'Friday', focus: 'Build your Monday list and plan your first messages.' },
]
const MONDAY = [
{ text: 'Your profile reads like a résumé, not a reason to reply.', day: 1 },
{ text: 'You post when you remember, then hear nothing back.', day: 3 },
{ text: 'Your next client depends on a referral you can’t plan for.', day: 5 },
]
const FRIDAY = [
{ text: 'A profile that tells the right buyer who you help.', day: 1 },
{ text: 'A week of posts written and scheduled.', day: 3 },
{ text: 'A short list of people to message on Monday.', day: 5 },
]
export default function ChallengeHero3Specimen({ state = 'default' }: { state?: ChallengeHero3State }) {
return (
<ChallengeHero3
state={state}
headline='Turn LinkedIn into a lead plan by Friday'
highlight='a lead plan by Friday'
lead={'Join the free 5\u2011Day LinkedIn Lead Challenge for consultants: one focused task a day, so your profile, posts, and outreach finally work together.'}
mondaySubhead='Posting and hoping'
mondayLines={MONDAY}
mondayImage={slot(
'scene',
__studioImage5731e8dc,
)}
mondayImageAlt='A quiet desk on a grey Monday morning with a closed laptop and a blank notepad'
mondayCaption='Most weeks start right here.'
fridaySubhead='A lead plan you can run'
fridayLines={FRIDAY}
days={DAYS}
startDay={3}
scrubLabel='Slide from Monday to Friday'
cardTitle={'Join the free 5\u2011Day LinkedIn Lead Challenge'}
fields={sample.fields.map((f) => ({ ...f, placeholder: f.type === 'email' ? 'you@yourfirm.com' : 'Jane Smith' }))}
label='Yes! I’m in for Friday'
sublabel='Free {days}-day challenge · Watch online'
privacy={reg.privacy}
error={reg.error}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalChallengeHero3 |
string |
Default 'Start Monday with an idea. Finish Friday with your first funnel mapped.'
|
highlight OptionalChallengeHero3 |
string |
Default 'your first funnel mapped'
|
lead OptionalChallengeHero3 |
string |
Default 'Join the free Funnel Starter Challenge and walk through your offer, page copy, and next steps, one focused task a day.'
|
mondayTitle OptionalChallengeHero3 |
string |
Default 'Monday'
|
mondaySubhead OptionalChallengeHero3 |
string |
Default 'Stuck at the idea stage'
|
mondayLines OptionalChallengeHero3 |
ChallengeHero3Line[] |
Default DEFAULT_MONDAY
|
fixedLabel OptionalChallengeHero3 |
string |
Default 'sorted by {day}'
|
mondayImage OptionalChallengeHero3 |
string |
|
mondayImageAlt OptionalChallengeHero3 |
string |
Default ''
|
mondayCaption OptionalChallengeHero3 |
string |
Default 'Most weeks start right here.'
|
mondaySpot OptionalChallengeHero3 |
string |
Default clock
|
fridayTitle OptionalChallengeHero3 |
string |
Default 'Friday'
|
fridaySubhead OptionalChallengeHero3 |
string |
Default 'A funnel plan you can build'
|
fridayLines OptionalChallengeHero3 |
ChallengeHero3Line[] |
Default DEFAULT_FRIDAY
|
readyLabel OptionalChallengeHero3 |
string |
Default 'Ready by {day}'
|
readyCountLabel OptionalChallengeHero3 |
string |
Default '{ready} of {total} ready'
|
days OptionalChallengeHero3 |
ChallengeHero3Day[] |
Default DEFAULT_DAYS
|
dayLabel OptionalChallengeHero3 |
string |
Default 'Day {day}'
|
startDay OptionalChallengeHero3 |
number |
Default 1
|
scrubLabel OptionalChallengeHero3 |
string |
Default 'Slide from Monday to Friday'
|
progressLabel OptionalChallengeHero3 |
string |
Default 'Day {day} of {days}'
|
readoutTemplate OptionalChallengeHero3 |
string |
Default '{label} · {weekday}'
|
cardTitle OptionalChallengeHero3 |
string |
Default 'Join the free Funnel Starter Challenge'
|
fields OptionalChallengeHero3 |
ChallengeHero3Field[] |
Default DEFAULT_FIELDS
|
placeholders OptionalChallengeHero3 |
{ email?: string; name?: string; text?: string } |
|
label OptionalChallengeHero3 |
string |
Default 'Yes! I’m in for Friday'
|
sublabel OptionalChallengeHero3 |
string |
Default 'Free {days}-day challenge · Watch online'
|
loadingLabel OptionalChallengeHero3 |
string |
Default 'Saving your seat…'
|
privacy OptionalChallengeHero3 |
string |
Default 'We respect your inbox. Unsubscribe anytime.'
|
error OptionalChallengeHero3 |
string |
Default 'We couldn’t complete your registration. Please try again.'
|
emailError OptionalChallengeHero3 |
string |
Default 'Please enter a valid email address.'
|
requiredError OptionalChallengeHero3 |
string |
Default 'Please enter your {label}.'
|
disabled OptionalChallengeHero3 |
boolean |
Default false
|
state OptionalChallengeHero3 |
ChallengeHero3State |
Default 'default'
|
onSubmit OptionalChallengeHero3 |
(values: Record<string, string>) => void | Promise<void> |
|
className OptionalChallengeHero3 |
string |
|
style OptionalChallengeHero3 |
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--button-2-shadow- 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.
-
597583ba428bc626.webp
image/webp · 60.5 KB
-
7c36d7f4dd4ae594.webp
image/webp · 26.5 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB