Apply Hero 1
Qualifies applicants and opens the application with a clear three-step process.
Use it in a prompt
Use hero/apply-hero 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/apply-hero.tsx. - Import it and pass your copy and images (Props tab):
import { ApplyHero } from "@/components/funneldna/hero/apply-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/apply-hero/component.tsx 407 lines
// Qualifies applicants and opens the application with a clear three-step process.
import * as React from "react"
import {
AlertCircle,
CalendarCheck,
Check,
ClipboardCheck,
ClipboardList,
FileSearch,
Loader2,
ShieldCheck,
X,
} from "lucide-react"
export type ApplyHeroProps = {
/** Optional small label above the headline. Off by default. */
kicker?: string
headlineBefore?: string
headlineEmphasis?: string
headlineAfter?: string
subheadline?: string
forLabel?: string
forText?: string
notForLabel?: string
notForText?: string
stepsTitle?: string
steps?: ApplyHeroStep[]
ctaLabel?: string
ctaLoadingLabel?: string
/** @deprecated No longer rendered: the builder wires what happens after the click. */
ctaSuccessLabel?: string
ctaRetryLabel?: string
reassurance?: string
disabledMessage?: string
/** @deprecated No longer rendered. */
successMessage?: string
errorMessage?: string
href?: string
/** Called instead of following href. A returned promise shows the loading label; a rejection shows errorMessage. */
onAction?: () => void | Promise<unknown>
/** Legacy alias for onAction. */
onStart?: () => void | Promise<unknown>
/** Preview mode: the button never navigates. */
simulate?: boolean
disabled?: boolean
/** Card header photo (src string). */
presenterImage?: string
/** Legacy alias for presenterImage. */
image?: string
imageAlt?: string
/** Subtle offset photo behind the band. */
sceneImage?: string
/** Legacy alias for sceneImage. */
backgroundImage?: string
/** "success" is accepted for older callers and renders as default. */
state?: ApplyHeroState
className?: string
style?: React.CSSProperties
}
export function ApplyHero({
kicker,
headlineBefore = "Apply to ",
headlineEmphasis = "work with us",
headlineAfter = " on your first funnel",
subheadline = "We map your offer with you, write your page copy and check every step before you launch. Tell us about your business and we'll see if it's a fit.",
forLabel = "This is for you if",
forText = "You have an offer people already buy and you're ready to put a real funnel behind it.",
notForLabel = "This isn't for you if",
notForText = "You're still deciding what to sell, or you want a shortcut instead of a partner.",
stepsTitle = "What happens after you apply",
steps = DEFAULT_STEPS,
ctaLabel = "Start My Application",
ctaLoadingLabel = "Opening Your Application",
ctaRetryLabel = "Try Again",
reassurance = "No payment to apply · No obligation",
disabledMessage = "Applications aren't open right now.",
errorMessage = "We couldn't open your application. Please try again.",
href = "#apply",
onStart,
onAction = onStart,
simulate = false,
disabled = false,
image,
presenterImage = image,
imageAlt = "",
backgroundImage,
sceneImage = backgroundImage,
state = "default",
className,
style,
}: ApplyHeroProps) {
const uid = React.useId()
const headingId = uid + "-heading"
const noteId = uid + "-note"
const [phase, setPhase] = React.useState<Phase>(() => phaseFor(state))
React.useEffect(() => {
setPhase(phaseFor(state))
}, [state])
const isDisabled = disabled || state === "disabled"
const busy = phase === "loading"
function handleClick(event: React.MouseEvent<HTMLAnchorElement>) {
if (busy) {
event.preventDefault()
return
}
if (onAction) {
event.preventDefault()
let result: void | Promise<unknown>
try {
result = onAction()
} catch {
setPhase("error")
return
}
if (!result) return
setPhase("loading")
result.then(
() => setPhase("idle"),
() => setPhase("error"),
)
return
}
if (simulate) event.preventDefault()
}
const label = phase === "loading" ? ctaLoadingLabel : phase === "error" ? ctaRetryLabel : ctaLabel
const btnClass = [
"aph-btn",
state === "hover" && !isDisabled ? "is-hover" : "",
state === "active" && !isDisabled ? "is-active" : "",
]
.filter(Boolean)
.join(" ")
const inner = (
<>
<span className="aph-btn-label">{label}</span>
{phase === "loading" ? (
<span className="aph-btn-icon" aria-hidden="true">
<Loader2 className="aph-spin" strokeWidth={2.75} />
</span>
) : null}
</>
)
return (
<section
className={["cf-apply-hero", className].filter(Boolean).join(" ")}
style={style}
aria-labelledby={headingId}
>
<style>{CSS}</style>
{sceneImage ? (
<div className="aph-bg" aria-hidden="true">
<img src={sceneImage} alt="" decoding="async" />
</div>
) : null}
<div className="aph-inner">
<div className="aph-copy">
{kicker ? (
<p className="aph-kicker aph-rise aph-d1">
<ClipboardCheck aria-hidden="true" strokeWidth={2.5} />
{kicker}
</p>
) : null}
<h1 id={headingId} className="aph-h1 aph-rise aph-d2">
{headlineBefore}
<span className="aph-hl">{headlineEmphasis}</span>
{headlineAfter}
</h1>
{subheadline ? <p className="aph-sub aph-rise aph-d3">{subheadline}</p> : null}
<div className="aph-qualify aph-rise aph-d4">
<div className="aph-q aph-q-yes">
<p className="aph-q-badge">
<span className="aph-q-icon" aria-hidden="true">
<Check strokeWidth={3.25} />
</span>
{forLabel}
</p>
<p className="aph-q-text">{forText}</p>
</div>
<div className="aph-q aph-q-no">
<p className="aph-q-badge">
<span className="aph-q-icon" aria-hidden="true">
<X strokeWidth={3.25} />
</span>
{notForLabel}
</p>
<p className="aph-q-text">{notForText}</p>
</div>
</div>
</div>
<div className="aph-cardcol aph-rise aph-d3">
<div className="aph-cardwrap">
<div className="aph-card">
{presenterImage ? (
<div className="aph-media">
<img src={presenterImage} alt={imageAlt} width={1120} height={480} loading="eager" decoding="async" />
</div>
) : null}
<div className={presenterImage ? "aph-body" : "aph-body aph-body-solo"}>
<h2 className="aph-h2">{stepsTitle}</h2>
<ol className="aph-steps">
{steps.map((step, i) => {
const StepIcon = STEP_ICONS[step.icon ?? STEP_ORDER[i % STEP_ORDER.length]]
return (
<li className="aph-step" key={step.title + i}>
<span className="aph-node" aria-hidden="true">
<StepIcon strokeWidth={2.25} />
</span>
<span>
<strong className="aph-step-title">{step.title}</strong>
<span className="aph-step-detail">{step.detail}</span>
</span>
</li>
)
})}
</ol>
<div className="aph-action">
{isDisabled ? (
<button type="button" className={btnClass} disabled aria-describedby={noteId}>
{inner}
</button>
) : (
<a
href={href}
className={btnClass}
onClick={handleClick}
aria-busy={busy || undefined}
aria-describedby={noteId}
>
{inner}
</a>
)}
<p className="aph-reassure" id={noteId}>
<ShieldCheck aria-hidden="true" strokeWidth={2.5} />
<span>{isDisabled ? disabledMessage : reassurance}</span>
</p>
<div role="status" aria-live="polite">
{phase === "error" ? (
<p className="aph-msg aph-msg-error">
<AlertCircle aria-hidden="true" strokeWidth={2.5} />
<span>{errorMessage}</span>
</p>
) : null}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
)
}
export default ApplyHero
export type ApplyHeroState =
| "default"
| "hover"
| "active"
| "disabled"
| "loading"
| "error"
| "success"
export type ApplyHeroStep = {
title: string
detail: string
icon?: "questions" | "review" | "call"
}
const STEP_ICONS = {
questions: ClipboardList,
review: FileSearch,
call: CalendarCheck,
} as const
const STEP_ORDER = ["questions", "review", "call"] as const
const DEFAULT_STEPS: ApplyHeroStep[] = [
{
title: "Tell us about your business",
detail: "A short set of questions about your offer, your audience and where you're stuck.",
icon: "questions",
},
{
title: "We read every application",
detail: "A person on our team reviews your answers before anything else happens.",
icon: "review",
},
{
title: "If it's a fit, we book a call",
detail: "You pick the time. If it isn't a fit, we'll say so and point you to a better next step.",
icon: "call",
},
]
type Phase = "idle" | "loading" | "error"
function phaseFor(state?: ApplyHeroState): Phase {
if (state === "loading") return "loading"
if (state === "error") return "error"
return "idle"
}
const CSS = `
.cf-apply-hero{--aph-hl:var(--marker,#fae37c);--aph-yes:var(--card);--aph-yes-deep:var(--success-soft);--aph-no:var(--card);--aph-no-deep:var(--danger-soft);--aph-line:var(--card-border,oklch(from var(--ink) l c h / 0.12));--aph-node:44px;position:relative;isolation:isolate;overflow:hidden;background:var(--band,#0f2747);color:var(--band-ink,#ffffff);font-family:var(--font-body,Arial,sans-serif);padding:clamp(56px,7vw,104px) 0 clamp(64px,7.6vw,112px)}
.cf-apply-hero *,.cf-apply-hero *::before,.cf-apply-hero *::after{box-sizing:border-box}
:where(.cf-apply-hero) .aph-bg{position:absolute;z-index:-1;top:0;right:0;bottom:0;width:62%;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,transparent 0%,var(--ink) 48%);mask-image:linear-gradient(90deg,transparent 0%,var(--ink) 48%)}
:where(.cf-apply-hero) .aph-bg img{display:block;width:100%;height:100%;object-fit:cover;opacity:.15;filter:grayscale(1) contrast(1.1)}
:where(.cf-apply-hero) .aph-inner{width:min(100% - 40px,1240px);margin-inline:auto;display:grid;gap:56px}
:where(.cf-apply-hero) .aph-copy,:where(.cf-apply-hero) .aph-cardcol{min-width:0}
:where(.cf-apply-hero) .aph-kicker{display:inline-flex;align-items:center;gap:8px;margin:0 0 22px;padding:8px 16px 8px 12px;border-radius:999px;background:color-mix(in oklch,var(--band-ink,#fff) 9%,var(--band,#0f2747));border:1px solid color-mix(in oklch,var(--band-ink,#fff) 22%,var(--band,#0f2747));color:var(--band-ink,#fff);font-size:15px;font-weight:700;line-height:1.2}
:where(.cf-apply-hero) .aph-kicker svg{width:17px;height:17px;flex:none;color:var(--aph-hl)}
:where(.cf-apply-hero) .aph-h1{margin:0 0 max(18px,.3em);font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,900);text-transform:var(--display-case,none);font-size:clamp(2.75rem,1.6rem + 3.6vw,4.875rem);line-height:1.05;letter-spacing:var(--display-tracking,-.026em);color:var(--band-ink,#fff);text-wrap:balance}
:where(.cf-apply-hero) .aph-hl{white-space:nowrap;color:var(--ink);background-image:linear-gradient(var(--aph-hl),var(--aph-hl));background-repeat:no-repeat;background-size:100% 82%;background-position:0 66%;padding:0 .14em;margin:0 -.03em;border-radius:.18em .38em .24em .42em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
:where(.cf-apply-hero) .aph-sub{margin:0;max-width:40ch;font-size:clamp(1.125rem,1rem + .5vw,1.375rem);font-weight:500;line-height:1.55;color:var(--band-ink,#fff);text-wrap:pretty}
:where(.cf-apply-hero) .aph-qualify{display:grid;gap:36px 20px;margin-top:clamp(50px,4.8vw,66px)}
:where(.cf-apply-hero) .aph-q{position:relative;margin:0;padding:40px 24px 28px;border-radius:var(--card-radius,var(--radius,18px));background:var(--card,#fff);color:var(--ink,#101828);text-align:center;box-shadow:inset 0 0 0 1px var(--aph-line),var(--card-shadow,0 3px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22));transition:transform .25s cubic-bezier(.2,.8,.2,1)}
:where(.cf-apply-hero) .aph-q:hover{transform:translateY(-3px)}
:where(.cf-apply-hero) .aph-q-badge{position:absolute;top:0;left:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:8px;margin:0;padding:6px 16px 6px 6px;border-radius:999px;border:1px solid oklch(from var(--band-ink) l c h / 0.28);color:var(--band-ink);font-family:var(--font-display,Arial,sans-serif);font-size:15px;font-weight:800;line-height:1.2;white-space:nowrap;box-shadow:0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22)}
:where(.cf-apply-hero) .aph-q-yes .aph-q-badge{background:var(--aph-yes-deep);color:var(--success);border-color:var(--success)}
:where(.cf-apply-hero) .aph-q-no .aph-q-badge{background:var(--aph-no-deep);color:var(--danger);border-color:var(--danger)}
:where(.cf-apply-hero) .aph-q-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:999px;color:var(--ink);box-shadow:inset 0 -1px 0 oklch(from var(--surface) calc(l - 0.12) c h / .2)}
:where(.cf-apply-hero) .aph-q-yes .aph-q-icon{background:var(--aph-yes);color:var(--success)}
:where(.cf-apply-hero) .aph-q-no .aph-q-icon{background:var(--aph-no);color:var(--danger)}
:where(.cf-apply-hero) .aph-q-icon svg{width:14px;height:14px}
:where(.cf-apply-hero) .aph-q-text{margin:0;font-size:18px;font-weight:500;line-height:1.5;color:var(--ink,#101828);text-wrap:pretty}
:where(.cf-apply-hero) .aph-cardwrap{position:relative;width:100%;max-width:560px;margin-inline:auto}
:where(.cf-apply-hero) .aph-cardwrap::before{content:'';position:absolute;inset:0;border-radius:calc(var(--card-radius,var(--radius,24px)) + 2px);background:color-mix(in oklab,var(--accent-fill,var(--accent,#0f5fc2)) 52%,var(--band,#0f2747));transform:translate(16px,18px) rotate(2deg);box-shadow:var(--card-shadow,0 3px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22))}
:where(.cf-apply-hero) .aph-card{position:relative;z-index:1;overflow:hidden;border-radius:var(--card-radius,var(--radius,24px));background:var(--card,#fff);color:var(--ink,#101828);box-shadow:inset 0 0 0 1px var(--aph-line),var(--card-shadow,0 3px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22))}
:where(.cf-apply-hero) .aph-media{position:relative;height:clamp(160px,14vw,200px);overflow:hidden;background:color-mix(in oklch,var(--ink,#101828) 6%,var(--card,#fff))}
:where(.cf-apply-hero) .aph-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 32%}
:where(.cf-apply-hero) .aph-media::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 42%,var(--card,#fff) 99%)}
:where(.cf-apply-hero) .aph-body{position:relative;padding:4px 32px 30px}
:where(.cf-apply-hero) .aph-body-solo{padding-top:30px}
:where(.cf-apply-hero) .aph-h2{margin:0 0 22px;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.375rem,1.15rem + .7vw,1.6875rem);line-height:1.15;letter-spacing:var(--display-tracking,-.018em);color:var(--ink,#101828);text-wrap:balance}
:where(.cf-apply-hero) .aph-steps{position:relative;display:grid;gap:20px;margin:0;padding:0;list-style:none}
:where(.cf-apply-hero) .aph-steps::before,:where(.cf-apply-hero) .aph-steps::after{content:'';position:absolute;left:calc(var(--aph-node) / 2 - 1.5px);top:22px;bottom:-30px;width:3px;border-radius:3px}
:where(.cf-apply-hero) .aph-steps::before{background:color-mix(in oklch,var(--ink) 12%,var(--card))}
:where(.cf-apply-hero) .aph-steps::after{background:var(--accent-fill,var(--accent,#0f5fc2));transform-origin:top center}
:where(.cf-apply-hero) .aph-step{position:relative;z-index:1;display:grid;grid-template-columns:var(--aph-node) minmax(0,1fr);gap:16px;align-items:start}
:where(.cf-apply-hero) .aph-node{display:grid;place-items:center;width:var(--aph-node);height:var(--aph-node);border-radius:999px;border:2px solid var(--accent-fill,var(--accent,#0f5fc2));background:color-mix(in oklch,var(--accent-fill,var(--accent,#0f5fc2)) 9%,var(--card,#fff));color:var(--accent,#0f5fc2);box-shadow:0 0 0 5px var(--card,#fff),0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22);transition:transform .2s ease}
:where(.cf-apply-hero) .aph-node svg{width:20px;height:20px}
:where(.cf-apply-hero) .aph-step:hover .aph-node{transform:scale(1.06)}
:where(.cf-apply-hero) .aph-step-title{display:block;margin:9px 0 4px;font-size:18px;font-weight:700;line-height:1.3;color:var(--ink,#101828);text-wrap:pretty}
:where(.cf-apply-hero) .aph-step-detail{display:block;margin:0;font-size:16px;line-height:1.5;color:var(--muted,#4a5565);text-wrap:pretty}
:where(.cf-apply-hero) .aph-action{position:relative;z-index:2;margin-top:28px}
:where(.cf-apply-hero) .aph-btn{position:relative;text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:72px;margin:0;padding:14px 22px;border:1px solid color-mix(in oklch,var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)) 75%,var(--ink));border-radius:var(--button-radius,var(--radius,14px));background:linear-gradient(180deg,var(--button-bg,var(--cta)) 0%,var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)) 100%);color:var(--button-ink,var(--cta-ink));font:var(--button-weight,800) clamp(1.1875rem,1rem + .45vw,1.375rem)/1.15 var(--button-font,var(--font-display));text-transform:var(--button-case,none);letter-spacing:-.005em;text-align:center;text-decoration:none;cursor:pointer;box-shadow:var(--button-shadow,0 3px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22));transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .16s ease,filter .16s ease;-webkit-tap-highlight-color:transparent}
:where(.cf-apply-hero) .aph-btn-label{text-wrap:balance}
:where(.cf-apply-hero) .aph-btn-icon{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:999px;background:oklch(from var(--button-ink,var(--cta-ink)) l c h / 0.18);box-shadow:inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / .25),inset 0 -1px 0 oklch(from var(--surface) calc(l - 0.12) c h / .12);transition:transform .2s cubic-bezier(.2,.8,.2,1)}
:where(.cf-apply-hero) .aph-btn-icon svg{width:18px;height:18px}
:where(.cf-apply-hero) .aph-btn:not(:disabled):hover,:where(.cf-apply-hero) .aph-btn.is-hover{transform:translateY(-2px);background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h);box-shadow:var(--button-shadow,0 3px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22))}
:where(.cf-apply-hero) .aph-btn:not(:disabled):active,:where(.cf-apply-hero) .aph-btn.is-active{transform:translateY(4px);background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h);box-shadow:var(--button-shadow,0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22))}
:where(.cf-apply-hero) .aph-btn:focus-visible{outline:3px solid var(--accent,#0f5fc2);outline-offset:4px}
:where(.cf-apply-hero) .aph-btn:disabled{cursor:not-allowed;border-color:var(--card-border,oklch(from var(--ink) l c h / 0.12));background:var(--field);color:var(--field-ink);filter:none;box-shadow:var(--button-shadow,0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22))}
:where(.cf-apply-hero) .aph-btn:disabled .aph-btn-icon{background:oklch(from var(--field-ink) l c h / 0.12);box-shadow:none}
:where(.cf-apply-hero) .aph-btn[aria-busy='true']{cursor:progress}
:where(.cf-apply-hero) .aph-reassure{display:flex;align-items:center;justify-content:center;gap:8px;margin:20px 0 0;font-size:15px;font-weight:600;line-height:1.4;color:var(--muted,#4a5565);text-align:center;text-wrap:pretty}
:where(.cf-apply-hero) .aph-reassure svg{width:17px;height:17px;flex:none;color:var(--success)}
:where(.cf-apply-hero) .aph-msg{display:flex;align-items:flex-start;justify-content:center;gap:10px;margin:14px 0 0;padding:12px 16px;border-radius:var(--card-radius,var(--radius,12px));font-size:15px;font-weight:600;line-height:1.45;text-align:left;text-wrap:pretty}
:where(.cf-apply-hero) .aph-msg svg{width:18px;height:18px;flex:none;margin-top:1px}
:where(.cf-apply-hero) .aph-msg-error{background:var(--danger-soft);color:var(--danger);box-shadow:inset 0 0 0 1px var(--card-border,oklch(from var(--ink) l c h / 0.12))}
@keyframes aph-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes aph-zoom{from{transform:scale(1.08)}to{transform:scale(1)}}
@keyframes aph-trail{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes aph-node{from{border-color:color-mix(in oklch,var(--ink) 12%,var(--card));color:var(--muted);background-color:var(--card,#fff)}}
@keyframes aph-spin{to{transform:rotate(360deg)}}
@media (min-width:640px){:where(.cf-apply-hero) .aph-qualify{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1024px){:where(.cf-apply-hero) .aph-inner{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:clamp(48px,5vw,84px);align-items:start}:where(.cf-apply-hero) .aph-copy{padding-top:20px}:where(.cf-apply-hero) .aph-cardwrap{margin-inline:auto 0}}
@media (max-width:1023px){:where(.cf-apply-hero) .aph-bg{width:100%;-webkit-mask-image:linear-gradient(180deg,transparent 30%,var(--ink) 75%);mask-image:linear-gradient(180deg,transparent 30%,var(--ink) 75%)}:where(.cf-apply-hero) .aph-bg img{opacity:.12}}
@media (max-width:520px){.cf-apply-hero{--aph-node:40px}:where(.cf-apply-hero) .aph-inner{width:min(100% - 32px,1240px);gap:50px}:where(.cf-apply-hero) .aph-body{padding:2px 20px 22px}:where(.cf-apply-hero) .aph-body-solo{padding-top:22px}:where(.cf-apply-hero) .aph-media{height:156px}:where(.cf-apply-hero) .aph-cardwrap::before{transform:translate(8px,10px) rotate(1.4deg)}:where(.cf-apply-hero) .aph-step{gap:14px}:where(.cf-apply-hero) .aph-node svg{width:18px;height:18px}:where(.cf-apply-hero) .aph-step-title{margin-top:7px;font-size:17px}:where(.cf-apply-hero) .aph-btn{min-height:66px;padding:12px 16px;font-size:18px;gap:12px}:where(.cf-apply-hero) .aph-q{padding:36px 18px 22px}:where(.cf-apply-hero) .aph-q-text{font-size:17px}:where(.cf-apply-hero) .aph-h2{margin-bottom:18px}}
@media (prefers-reduced-motion:no-preference){
:where(.cf-apply-hero) .aph-rise{animation:aph-rise .45s cubic-bezier(.2,.7,.2,1) both}
:where(.cf-apply-hero) .aph-d1{animation-delay:.04s}:where(.cf-apply-hero) .aph-d2{animation-delay:.1s}:where(.cf-apply-hero) .aph-d3{animation-delay:.16s}:where(.cf-apply-hero) .aph-d4{animation-delay:.24s}
:where(.cf-apply-hero) .aph-media img{animation:aph-zoom 2.4s cubic-bezier(.2,.7,.2,1) both}
:where(.cf-apply-hero) .aph-steps::after{animation:aph-trail 1.15s .3s cubic-bezier(.45,0,.2,1) both}
:where(.cf-apply-hero) .aph-node{animation:aph-node .35s ease-out both}
:where(.cf-apply-hero) .aph-step:nth-child(1) .aph-node{animation-delay:.32s}
:where(.cf-apply-hero) .aph-step:nth-child(2) .aph-node{animation-delay:.68s}
:where(.cf-apply-hero) .aph-step:nth-child(n+3) .aph-node{animation-delay:1.04s}
:where(.cf-apply-hero) .aph-spin{animation:aph-spin .8s linear infinite}
}
@media (prefers-reduced-motion:reduce){
:where(.cf-apply-hero) .aph-q,:where(.cf-apply-hero) .aph-node,:where(.cf-apply-hero) .aph-btn,:where(.cf-apply-hero) .aph-btn-icon{transition:none}
:where(.cf-apply-hero) .aph-q:hover,:where(.cf-apply-hero) .aph-step:hover .aph-node{transform:none}
:where(.cf-apply-hero) .aph-btn:not(:disabled):hover,:where(.cf-apply-hero) .aph-btn.is-hover,:where(.cf-apply-hero) .aph-btn:not(:disabled):active,:where(.cf-apply-hero) .aph-btn.is-active{transform:none}
}
`
pieces/hero/apply-hero/specimen.tsx 21 lines
import __studioImage965cd851 from "../assets/7bf01653f3fe5df1.webp";
import __studioImage2c9ff620 from "../assets/c47504738477964c.webp";
import * as React from "react"
import ApplyHero, { type ApplyHeroState } from "../apply-hero"
import { slot } from "../../slots"
export const states = ["default", "hover", "active", "disabled", "error"]
export default function ApplyHeroSpecimen({ state = "default" }: { state?: string }) {
return (
<div>
<ApplyHero
state={state as ApplyHeroState}
simulate
presenterImage={slot("presenter", __studioImage965cd851)}
imageAlt="A strategist on a video call at a bright desk"
sceneImage={slot("scene", __studioImage2c9ff620)}
/>
</div>
)
}
| Name | Type | Details |
|---|---|---|
kicker OptionalApplyHero |
string |
|
headlineBefore OptionalApplyHero |
string |
Default "Apply to "
|
headlineEmphasis OptionalApplyHero |
string |
Default "work with us"
|
headlineAfter OptionalApplyHero |
string |
Default " on your first funnel"
|
subheadline OptionalApplyHero |
string |
Default "We map your offer with you, write your page copy and check every step before you launch. Tell us about your business and we'll see if it's a fit."
|
forLabel OptionalApplyHero |
string |
Default "This is for you if"
|
forText OptionalApplyHero |
string |
Default "You have an offer people already buy and you're ready to put a real funnel behind it."
|
notForLabel OptionalApplyHero |
string |
Default "This isn't for you if"
|
notForText OptionalApplyHero |
string |
Default "You're still deciding what to sell, or you want a shortcut instead of a partner."
|
stepsTitle OptionalApplyHero |
string |
Default "What happens after you apply"
|
steps OptionalApplyHero |
ApplyHeroStep[] |
Default DEFAULT_STEPS
|
ctaLabel OptionalApplyHero |
string |
Default "Start My Application"
|
ctaLoadingLabel OptionalApplyHero |
string |
Default "Opening Your Application"
|
ctaSuccessLabel OptionalApplyHero |
string |
|
ctaRetryLabel OptionalApplyHero |
string |
Default "Try Again"
|
reassurance OptionalApplyHero |
string |
Default "No payment to apply · No obligation"
|
disabledMessage OptionalApplyHero |
string |
Default "Applications aren't open right now."
|
successMessage OptionalApplyHero |
string |
|
errorMessage OptionalApplyHero |
string |
Default "We couldn't open your application. Please try again."
|
href OptionalApplyHero |
string |
Default "#apply"
|
onAction OptionalApplyHero |
() => void | Promise<unknown> |
Default onStart
|
onStart OptionalApplyHero |
() => void | Promise<unknown> |
|
simulate OptionalApplyHero |
boolean |
Default false
|
disabled OptionalApplyHero |
boolean |
Default false
|
presenterImage OptionalApplyHero |
string |
Default image
|
image OptionalApplyHero |
string |
|
imageAlt OptionalApplyHero |
string |
Default ""
|
sceneImage OptionalApplyHero |
string |
Default backgroundImage
|
backgroundImage OptionalApplyHero |
string |
|
state OptionalApplyHero |
ApplyHeroState |
Default "default"
|
className OptionalApplyHero |
string |
|
style OptionalApplyHero |
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.
--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-ink- 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.
presenter- A photo of the host, coach or founder.
scene- A wide atmosphere photo behind or beside the copy.
-
7bf01653f3fe5df1.webp
image/webp · 64 KB
-
c47504738477964c.webp
image/webp · 73.6 KB