Apply Hero 8
Application hero on a dark editorial stage: a cinematic promise, a letter that qualifies who it's for and what happens after applying,
Use it in a prompt
Use hero/apply-hero-8 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/hero/apply-hero-8.tsx. - Import it and pass your copy and images (Props tab):
import { ApplyHero8 } from "@/components/funneldna/hero/apply-hero-8"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/apply-hero-8/component.tsx 427 lines
// layout: magazine-spread
// Application hero on a dark editorial stage: a cinematic promise, a letter that qualifies who it's for and what happens after applying,
// and one white invitation card where the risk reversal leads into the start-application button.
import * as React from "react"
import { AlertCircle, Check, Loader2, ShieldCheck, X } from "lucide-react"
/** States the piece implements; "hover" and "active" force the button's look for previews. */
export type ApplyHero8State = "default" | "hover" | "active" | "disabled" | "error"
export type ApplyHero8Step = {
title: string
/** One short line under the step title. */
detail?: string
}
export type ApplyHero8Props = {
/** Headline text before the emphasised phrase (keep the trailing space). */
headlineBefore?: string
/** Phrase set in the metallic emphasis. */
headlineEmphasis?: string
/** Headline text after the emphasised phrase. */
headlineAfter?: string
subheadline?: React.ReactNode
/** Letter paragraph; its first letter becomes the drop cap. */
lead?: string
/** Red subhead over the for / not-for lines. */
fitTitle?: string
/** Small caps label on the "for you" line. */
forLabel?: string
forText?: string
/** Small caps label on the "not for you" line. */
notForLabel?: string
notForText?: string
/** Red subhead over the steps. */
stepsTitle?: string
/** What happens after applying; numbered 01, 02, 03 automatically. */
steps?: ApplyHero8Step[]
/** Large pull line beside the letter on wide screens (repeats the promise, hidden from screen readers). */
pullLine?: string
cardTitle?: string
cardText?: React.ReactNode
/** Risk reversal that leads into the button. */
riskTitle?: string
riskText?: string
ctaLabel?: string
/** Button label while a promise returned by onAction is pending. */
ctaLoadingLabel?: string
/** Button label after onAction failed. */
ctaRetryLabel?: string
/** Note under the button when applications are closed. */
disabledMessage?: string
/** Alert under the button when onAction failed. */
errorMessage?: string
/** Where the application lives. Followed only when there is no onAction and simulate is off. */
href?: string
/** Called instead of following href. A returned promise shows the loading label; a rejection shows errorMessage. */
onAction?: () => void | Promise<unknown>
/** Preview mode: the button never navigates. */
simulate?: boolean
disabled?: boolean
/** Subtle stage texture behind the band (slot: texture). */
textureImage?: string
state?: ApplyHero8State
className?: string
style?: React.CSSProperties
}
export function ApplyHero8(props: ApplyHero8Props) {
const {
headlineBefore = "Apply to ",
headlineEmphasis = "work with us",
headlineAfter = ".",
subheadline = "Build your first funnel with a clear plan.",
lead = "Plan your funnel, write your page copy and check every step before you launch. Tell us where your offer is today, and we'll tell you honestly if working together is your right next step.",
fitTitle = "Who we work with",
forLabel = "For you",
forText = "You're ready to plan and build your first funnel.",
notForLabel = "Not for you",
notForText = "You're looking for a shortcut around the work.",
stepsTitle = "What happens after you apply",
steps = DEFAULT_STEPS,
pullLine = "Every step checked before you launch.",
cardTitle = "Start with an application",
cardText = "Tell us about your offer and where you need help.",
riskTitle = "Free to apply. No obligation.",
riskText = "If it isn't a fit, we'll tell you straight.",
ctaLabel = "Start My Application",
ctaLoadingLabel = "Opening your application",
ctaRetryLabel = "Try Again",
disabledMessage = "Applications aren't open right now.",
errorMessage = "We couldn't open your application. Please try again.",
href = "#apply",
onAction,
simulate = false,
disabled = false,
textureImage,
state = "default",
className,
style,
} = props
const uid = React.useId()
const headingId = `${uid}-h`
const riskId = `${uid}-risk`
const msgId = `${uid}-msg`
const [phase, setPhase] = React.useState<Phase>(() => (state === "error" ? "error" : "idle"))
const mounted = React.useRef(true)
React.useEffect(() => {
setPhase(state === "error" ? "error" : "idle")
}, [state])
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
const isDisabled = disabled || state === "disabled"
const busy = phase === "loading"
const forced = isDisabled ? "" : state === "hover" ? " is-hover" : state === "active" ? " is-active" : ""
const label = busy ? ctaLoadingLabel : phase === "error" ? ctaRetryLabel : ctaLabel
const message = isDisabled ? disabledMessage : phase === "error" ? errorMessage : ""
const useLink = Boolean(href) && !onAction && !simulate && !isDisabled
const hasRisk = Boolean(riskTitle || riskText)
const describedBy = [hasRisk ? riskId : "", message ? msgId : ""].filter(Boolean).join(" ") || undefined
function handleClick(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) {
if (isDisabled || busy) {
event.preventDefault()
return
}
if (onAction) {
event.preventDefault()
let result: void | Promise<unknown>
try {
result = onAction()
} catch {
setPhase("error")
return
}
if (!result || typeof (result as Promise<unknown>).then !== "function") {
setPhase("idle")
return
}
setPhase("loading")
;(result as Promise<unknown>).then(
() => {
if (mounted.current) setPhase("idle")
},
() => {
if (mounted.current) setPhase("error")
},
)
return
}
if (simulate) event.preventDefault()
}
const btnClass = "ah8-btn" + forced
const inner = (
<>
{busy ? <Loader2 className="ah8-spin" aria-hidden="true" strokeWidth={2.75} /> : null}
<span className="ah8-btn-label">{label}</span>
</>
)
const button = useLink ? (
<a className={btnClass} href={href} onClick={handleClick} aria-describedby={describedBy}>
{inner}
</a>
) : (
<button
type="button"
className={btnClass}
onClick={handleClick}
disabled={isDisabled}
aria-busy={busy || undefined}
aria-describedby={describedBy}
>
{inner}
</button>
)
return (
<section
className={["cf-apply-hero-8", className].filter(Boolean).join(" ")}
style={style}
aria-labelledby={headingId}
>
<style>{CSS}</style>
{textureImage ? (
<div className="ah8-tex" aria-hidden="true">
<img src={textureImage} alt="" decoding="async" />
</div>
) : null}
<div className="ah8-inner">
<div className="ah8-grid">
<div className="ah8-head">
<h1 id={headingId} className="ah8-h1 ah8-rise">
{headlineBefore}
<span className="ah8-em">{headlineEmphasis}</span>
{headlineAfter}
</h1>
{subheadline ? <p className="ah8-sub ah8-rise ah8-d1">{subheadline}</p> : null}
</div>
{lead ? <p className="ah8-lead ah8-rise ah8-d2">{lead}</p> : null}
{pullLine ? (
<p className="ah8-pull ah8-rise ah8-d2" aria-hidden="true">
{pullLine}
</p>
) : null}
<div className="ah8-fit ah8-rise ah8-d3">
{fitTitle ? <h2 className="ah8-subhead">{fitTitle}</h2> : null}
<ul className="ah8-fit-list" role="list">
<li>
<span className="ah8-chip is-yes" aria-hidden="true">
<Check strokeWidth={3} />
</span>
<div>
<p className="ah8-fit-label">{forLabel}</p>
<p className="ah8-fit-text">{forText}</p>
</div>
</li>
<li>
<span className="ah8-chip is-no" aria-hidden="true">
<X strokeWidth={3} />
</span>
<div>
<p className="ah8-fit-label">{notForLabel}</p>
<p className="ah8-fit-text">{notForText}</p>
</div>
</li>
</ul>
</div>
<div className="ah8-card ah8-rise ah8-d3">
<h2 className="ah8-card-title">{cardTitle}</h2>
{cardText ? <p className="ah8-card-text">{cardText}</p> : null}
{hasRisk ? (
<div className="ah8-risk" id={riskId}>
<ShieldCheck aria-hidden="true" strokeWidth={2.25} />
<div>
{riskTitle ? <p className="ah8-risk-title">{riskTitle}</p> : null}
{riskText ? <p className="ah8-risk-text">{riskText}</p> : null}
</div>
</div>
) : null}
{button}
{message ? (
<p
id={msgId}
className={"ah8-msg " + (isDisabled ? "is-off" : "is-error")}
role={isDisabled ? "status" : "alert"}
>
<AlertCircle aria-hidden="true" strokeWidth={2.5} />
<span>{message}</span>
</p>
) : null}
</div>
{steps.length ? (
<div className="ah8-steps ah8-rise ah8-d4">
{stepsTitle ? <h2 className="ah8-subhead">{stepsTitle}</h2> : null}
<ol className="ah8-step-list">
{steps.map((step, i) => (
<li key={step.title + i}>
<span className="ah8-num" aria-hidden="true">
{String(i + 1).padStart(2, "0")}
</span>
<div>
<p className="ah8-step-title">{step.title}</p>
{step.detail ? <p className="ah8-step-detail">{step.detail}</p> : null}
</div>
</li>
))}
</ol>
</div>
) : null}
<div className="ah8-rule" aria-hidden="true" />
</div>
</div>
</section>
)
}
export default ApplyHero8
type Phase = "idle" | "loading" | "error"
const DEFAULT_STEPS: ApplyHero8Step[] = [
{ title: "We read your application", detail: "Your offer, your audience and your goal." },
{ title: "We tell you if it's a fit", detail: "A straight answer, either way." },
{ title: "We plan your funnel together", detail: "Offer, page copy and launch steps, mapped with you." },
]
/*
Theme notes:
- --ah8-metal is a component-scoped detail (the gold emphasis on the dark band). It takes its hue from the
theme's --marker (fed by --warning) at a fixed light L so it reads on the dark --band; a theme may override
it with --stage-metal. The #fae37c is only the contract's marker fallback.
- --ah8-glyph: white glyph inside the solid status badges, per the contract ("glyph in white").
- --ah8-red blends two hues (--cta toward --band-ink), so it mixes in oklab, as does --ah8-soft.
- The texture fade masks use var(--band) as the opaque stop: a mask reads only alpha, so any opaque token
gives the same fade without a fixed colour.
*/
const CSS = `
.cf-apply-hero-8{
--ah8-metal:var(--stage-metal, oklch(from var(--marker, #fae37c) 0.84 0.12 h / 1));
--ah8-metal-hi:oklch(from var(--ah8-metal) calc(l + 0.09) calc(c * 0.5) h / 1);
--ah8-metal-lo:oklch(from var(--ah8-metal) calc(l - 0.12) c h / 1);
--ah8-red:color-mix(in oklab, var(--cta) 62%, var(--band-ink));
--ah8-soft:color-mix(in oklab, var(--band-ink) 80%, var(--band));
--ah8-line:oklch(from var(--band-ink) l c h / 0.16);
--ah8-shadow:var(--shadow, oklch(0.22 0.03 260));
--ah8-btn:var(--button-bg, var(--cta));
position:relative;
isolation:isolate;
overflow:clip;
width:100%;
container-type:inline-size;
container-name:ah8;
background:var(--band);
color:var(--band-ink);
font-family:var(--font-body);
}
.cf-apply-hero-8 *,.cf-apply-hero-8 *::before,.cf-apply-hero-8 *::after{box-sizing:border-box}
.cf-apply-hero-8 .ah8-tex{position:absolute;inset:0;z-index:-1;pointer-events:none;-webkit-mask-image:linear-gradient(180deg, var(--band) 0%, transparent 70%);mask-image:linear-gradient(180deg, var(--band) 0%, transparent 70%)}
.cf-apply-hero-8 .ah8-tex img{display:block;width:100%;height:100%;object-fit:cover;object-position:right center;opacity:.5}
.cf-apply-hero-8 .ah8-tex::after{content:"";position:absolute;inset:0;background:oklch(from var(--band) l c h / 0.5)}
.cf-apply-hero-8 .ah8-inner{position:relative;max-width:76rem;margin-inline:auto;padding:clamp(3.5rem, 9cqi, 7rem) clamp(1.25rem, 5cqi, 3rem)}
.cf-apply-hero-8 .ah8-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "lead" "fit" "card" "steps";row-gap:2.25rem;align-items:start}
.cf-apply-hero-8 .ah8-head{grid-area:head}
.cf-apply-hero-8 .ah8-h1{margin:0;font-family:var(--font-display);font-weight:var(--display-weight, 800);text-transform:var(--display-case, none);letter-spacing:var(--display-tracking, -0.035em);font-size:clamp(2.6rem, 10.5cqi, 7.25rem);line-height:.96;text-wrap:balance;color:var(--band-ink)}
.cf-apply-hero-8 .ah8-em{color:var(--ah8-metal);background-image:linear-gradient(100deg, var(--ah8-metal-lo) 0%, var(--ah8-metal) 30%, var(--ah8-metal-hi) 50%, var(--ah8-metal) 70%, var(--ah8-metal-lo) 100%);background-size:250% 100%;background-position:50% 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-bottom:.08em}
.cf-apply-hero-8 .ah8-sub{margin:clamp(1.1rem, 2.6cqi, 2.1rem) 0 0;font-size:clamp(1.25rem, 2.3cqi, 1.75rem);font-weight:500;line-height:1.3;text-wrap:balance;color:var(--band-ink)}
.cf-apply-hero-8 .ah8-lead{grid-area:lead;margin:0;max-width:62ch;font-size:clamp(1.125rem, 1.7cqi, 1.3rem);line-height:1.6;color:var(--ah8-soft);text-wrap:pretty}
.cf-apply-hero-8 .ah8-pull{display:none;grid-area:pull;margin:0;font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:clamp(1.75rem, 2.9cqi, 2.5rem);line-height:1.1;letter-spacing:-0.02em;color:var(--ah8-metal);text-wrap:balance}
.cf-apply-hero-8 .ah8-subhead{margin:0 0 1rem;font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:clamp(1.375rem, 2.2cqi, 1.625rem);line-height:1.2;color:var(--ah8-red);text-wrap:balance}
.cf-apply-hero-8 .ah8-fit{grid-area:fit}
.cf-apply-hero-8 .ah8-fit-list{display:grid;gap:1.15rem;margin:0;padding:0;list-style:none}
.cf-apply-hero-8 .ah8-fit-list li{display:grid;grid-template-columns:2rem minmax(0,1fr);gap:.9rem;align-items:start}
.cf-apply-hero-8 .ah8-chip{display:grid;place-items:center;width:2rem;height:2rem;margin-top:.1rem;border-radius:999px;color:var(--ah8-glyph, #fff)}
.cf-apply-hero-8 .ah8-chip svg{width:1.05rem;height:1.05rem}
.cf-apply-hero-8 .ah8-chip.is-yes{background:var(--success)}
.cf-apply-hero-8 .ah8-chip.is-no{background:var(--danger)}
.cf-apply-hero-8 .ah8-fit-label{margin:0 0 .3rem;font-size:.9375rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;line-height:1.3;color:var(--band-ink)}
.cf-apply-hero-8 .ah8-fit-text{margin:0;font-size:1.125rem;line-height:1.45;color:var(--band-ink);text-wrap:pretty}
.cf-apply-hero-8 .ah8-steps{grid-area:steps}
.cf-apply-hero-8 .ah8-step-list{margin:0;padding:0;list-style:none}
.cf-apply-hero-8 .ah8-step-list li{display:grid;grid-template-columns:3rem minmax(0,1fr);gap:1rem;align-items:start;padding-block:1rem;border-bottom:1px solid var(--ah8-line)}
.cf-apply-hero-8 .ah8-step-list li:first-child{padding-top:.25rem}
.cf-apply-hero-8 .ah8-step-list li:last-child{padding-bottom:0;border-bottom:0}
.cf-apply-hero-8 .ah8-num{font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:1.75rem;line-height:1;font-variant-numeric:tabular-nums;color:var(--ah8-metal)}
.cf-apply-hero-8 .ah8-step-title{margin:0;font-size:1.125rem;font-weight:700;line-height:1.3;color:var(--band-ink)}
.cf-apply-hero-8 .ah8-step-detail{margin:.3rem 0 0;font-size:1rem;line-height:1.5;color:var(--ah8-soft);text-wrap:pretty}
.cf-apply-hero-8 .ah8-rule{display:none}
.cf-apply-hero-8 .ah8-card{grid-area:card;align-self:start;position:relative;padding:clamp(1.35rem, 3cqi, 2.25rem);border:1px solid var(--card-border, color-mix(in oklch, var(--ink) 12%, transparent));border-radius:calc(var(--card-radius, var(--radius, 12px)) + 4px);background:var(--card);color:var(--ink);box-shadow:var(--card-shadow, inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / 0.6), 0 2px 4px oklch(from var(--ah8-shadow) l c h / 0.3), 0 18px 32px -12px oklch(from var(--ah8-shadow) l c h / 0.55))}
.cf-apply-hero-8 .ah8-card-title{margin:0;font-family:var(--font-display);font-weight:var(--display-weight, 800);text-transform:var(--display-case, none);font-size:clamp(1.75rem, 3cqi, 2.25rem);line-height:1.08;letter-spacing:-0.02em;color:var(--ink);text-wrap:balance}
.cf-apply-hero-8 .ah8-card-text{margin:.75rem 0 0;font-size:1.0625rem;line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-apply-hero-8 .ah8-risk{display:grid;grid-template-columns:1.5rem minmax(0,1fr);gap:.75rem;align-items:start;margin:1.5rem 0 1.25rem;padding:1rem 1.1rem;border-radius:var(--radius, 12px);background:color-mix(in oklch, var(--ink) 4%, var(--card))}
.cf-apply-hero-8 .ah8-risk svg{width:1.5rem;height:1.5rem;color:var(--success)}
.cf-apply-hero-8 .ah8-risk-title{margin:0;font-size:1.0625rem;font-weight:700;line-height:1.35;color:var(--ink)}
.cf-apply-hero-8 .ah8-risk-text{margin:.2rem 0 0;font-size:1rem;line-height:1.45;color:var(--muted);text-wrap:pretty}
.cf-apply-hero-8 .ah8-btn{display:flex;width:100%;min-height:4rem;align-items:center;justify-content:center;gap:.6rem;margin:0;padding:.9rem 1.25rem;border:1px solid oklch(from var(--ah8-btn) calc(l - 0.12) c h);border-radius:var(--button-radius, var(--radius, 12px));background:linear-gradient(180deg, oklch(from var(--ah8-btn) calc(l + 0.04) c h), var(--button-bg-2, var(--cta-2)));color:var(--button-ink, var(--cta-ink));font-family:var(--button-font, var(--font-display));font-weight:var(--button-weight, 800);text-transform:var(--button-case, none);font-size:clamp(1.15rem, 2.4cqi, 1.35rem);line-height:1.15;text-align:center;text-decoration:none;text-shadow:var(--button-text-shadow, none);box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--ah8-btn) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--ah8-btn) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--ah8-shadow) l c h / 0.4), 0 6px 14px -4px oklch(from var(--ah8-shadow) l c h / 0.45));cursor:pointer;-webkit-tap-highlight-color:transparent}
.cf-apply-hero-8 .ah8-btn-label{text-wrap:balance}
.cf-apply-hero-8 .ah8-btn:not(:disabled):hover,.cf-apply-hero-8 .ah8-btn.is-hover{transform:translateY(-1px);background:linear-gradient(180deg, oklch(from var(--ah8-btn) calc(l - 0.02) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.06) c h));box-shadow:inset 0 1px 0 oklch(from var(--ah8-btn) calc(l + 0.12) c h / 0.6), inset 0 -3px 0 oklch(from var(--ah8-btn) calc(l - 0.2) c h), 0 2px 3px oklch(from var(--ah8-shadow) l c h / 0.42), 0 10px 18px -6px oklch(from var(--ah8-shadow) l c h / 0.5)}
.cf-apply-hero-8 .ah8-btn:not(:disabled):active,.cf-apply-hero-8 .ah8-btn.is-active{transform:translateY(1px);background:linear-gradient(180deg, oklch(from var(--ah8-btn) calc(l - 0.08) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.1) c h));box-shadow:inset 0 2px 3px oklch(from var(--ah8-btn) calc(l - 0.22) c h / 0.55), 0 1px 1px oklch(from var(--ah8-shadow) l c h / 0.4)}
.cf-apply-hero-8 .ah8-btn:focus-visible{outline:3px solid var(--field-focus, var(--accent));outline-offset:3px}
.cf-apply-hero-8 .ah8-btn[aria-busy="true"]{cursor:progress}
.cf-apply-hero-8 .ah8-btn:disabled{border-color:var(--button-2-border, transparent);background:var(--button-2-bg, var(--secondary));color:var(--button-2-ink, var(--secondary-ink));text-shadow:none;box-shadow:none;cursor:not-allowed}
.cf-apply-hero-8 .ah8-spin{flex:none;width:1.35rem;height:1.35rem}
.cf-apply-hero-8 .ah8-msg{display:flex;gap:.6rem;align-items:flex-start;margin:1rem 0 0;padding:.75rem 1rem;border-radius:var(--radius, 12px);font-size:1rem;line-height:1.45;text-wrap:pretty}
.cf-apply-hero-8 .ah8-msg svg{flex:none;width:1.25rem;height:1.25rem;margin-top:.1rem}
.cf-apply-hero-8 .ah8-msg.is-error{background:var(--danger-soft);color:var(--danger)}
.cf-apply-hero-8 .ah8-msg.is-off{background:color-mix(in oklch, var(--ink) 4%, var(--card));color:var(--ink)}
@container ah8 (min-width: 960px){
.cf-apply-hero-8 .ah8-tex{left:auto;width:min(60%, 60rem);-webkit-mask-image:linear-gradient(90deg, transparent 0%, var(--band) 55%);mask-image:linear-gradient(90deg, transparent 0%, var(--band) 55%)}
.cf-apply-hero-8 .ah8-grid{grid-template-columns:minmax(0,7fr) 1px minmax(0,5fr);grid-template-areas:"head head head" "lead rule pull" "fit rule card" "steps rule card";column-gap:clamp(2.5rem, 4cqi, 4rem);row-gap:2.75rem}
.cf-apply-hero-8 .ah8-head{padding-bottom:.5rem}
.cf-apply-hero-8 .ah8-rule{display:block;grid-area:rule;align-self:stretch;background:var(--ah8-line)}
.cf-apply-hero-8 .ah8-pull{display:block}
.cf-apply-hero-8 .ah8-card{position:sticky;top:1.5rem}
}
@keyframes ah8-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes ah8-sheen{from{background-position:100% 0}to{background-position:50% 0}}
@keyframes ah8-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: no-preference){
.cf-apply-hero-8 .ah8-rise{animation:ah8-rise .45s cubic-bezier(.22,1,.36,1) both}
.cf-apply-hero-8 .ah8-d1{animation-delay:.07s}
.cf-apply-hero-8 .ah8-d2{animation-delay:.14s}
.cf-apply-hero-8 .ah8-d3{animation-delay:.21s}
.cf-apply-hero-8 .ah8-d4{animation-delay:.28s}
.cf-apply-hero-8 .ah8-em{animation:ah8-sheen 1.6s .3s cubic-bezier(.4,0,.2,1) both}
.cf-apply-hero-8 .ah8-btn{transition:transform .16s ease, box-shadow .16s ease, background .16s ease}
.cf-apply-hero-8 .ah8-spin{animation:ah8-spin .8s linear infinite}
}
@media (prefers-reduced-motion: reduce){
.cf-apply-hero-8 .ah8-btn:not(:disabled):hover,.cf-apply-hero-8 .ah8-btn.is-hover,.cf-apply-hero-8 .ah8-btn:not(:disabled):active,.cf-apply-hero-8 .ah8-btn.is-active{transform:none}
}
`
pieces/hero/apply-hero-8/specimen.tsx 22 lines
import __studioImagea7194aad from "../assets/10a892b04a0a3649.webp"
import * as React from "react"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
import { ApplyHero8, type ApplyHero8State } from "../apply-hero-8"
export const states: ApplyHero8State[] = ["default", "hover", "active", "disabled", "error"]
const sample = defaults.sample
export default function ApplyHero8Specimen({ state = "default" }: { state?: ApplyHero8State }) {
return (
<ApplyHero8
state={state}
simulate
subheadline={`${sample.headline}.`}
lead={`${sample.lead} Tell us where your offer is today, and we'll tell you honestly if working together is your right next step.`}
textureImage={slot("texture", __studioImagea7194aad)}
/>
)
}
| Name | Type | Details |
|---|---|---|
headlineBefore OptionalApplyHero8 |
string |
|
headlineEmphasis OptionalApplyHero8 |
string |
|
headlineAfter OptionalApplyHero8 |
string |
|
subheadline OptionalApplyHero8 |
React.ReactNode |
|
lead OptionalApplyHero8 |
string |
|
fitTitle OptionalApplyHero8 |
string |
|
forLabel OptionalApplyHero8 |
string |
|
forText OptionalApplyHero8 |
string |
|
notForLabel OptionalApplyHero8 |
string |
|
notForText OptionalApplyHero8 |
string |
|
stepsTitle OptionalApplyHero8 |
string |
|
steps OptionalApplyHero8 |
ApplyHero8Step[] |
|
pullLine OptionalApplyHero8 |
string |
|
cardTitle OptionalApplyHero8 |
string |
|
cardText OptionalApplyHero8 |
React.ReactNode |
|
riskTitle OptionalApplyHero8 |
string |
|
riskText OptionalApplyHero8 |
string |
|
ctaLabel OptionalApplyHero8 |
string |
|
ctaLoadingLabel OptionalApplyHero8 |
string |
|
ctaRetryLabel OptionalApplyHero8 |
string |
|
disabledMessage OptionalApplyHero8 |
string |
|
errorMessage OptionalApplyHero8 |
string |
|
href OptionalApplyHero8 |
string |
|
onAction OptionalApplyHero8 |
() => void | Promise<unknown> |
|
simulate OptionalApplyHero8 |
boolean |
|
disabled OptionalApplyHero8 |
boolean |
|
textureImage OptionalApplyHero8 |
string |
|
state OptionalApplyHero8 |
ApplyHero8State |
|
className OptionalApplyHero8 |
string |
|
style OptionalApplyHero8 |
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-border--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-focus- 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.
texture- A subtle background texture.
-
10a892b04a0a3649.webp
image/webp · 36.1 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB