Apply Hero 5
Application hero on a dark stage: one big promise, then a cohort board of the programme's supplied facts in bold
Use it in a prompt
Use hero/apply-hero-5 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-5.tsx. - Import it and pass your copy and images (Props tab):
import { ApplyHero5 } from "@/components/funneldna/hero/apply-hero-5"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/apply-hero-5/component.tsx 672 lines
// layout: scroll-panels
// Application hero on a dark stage: one big promise, then a cohort board of the programme's supplied facts in bold
// numerals, an optional countdown to a supplied application deadline, and the start-application button as the final tile.
import * as React from "react"
import {
AlertCircle,
CalendarDays,
Check,
Clock,
Loader2,
MapPin,
Target,
Users,
Video,
type LucideIcon,
} from "lucide-react"
import { Backdrop, FX_HOST } from "../fx/fx"
import architecture from "../fx/backdrops/architecture"
/** States the piece implements; "hover" and "active" force the button's look for previews. */
export type ApplyHero5State = "default" | "hover" | "active" | "disabled" | "error"
/** Small icon at the top of a fact tile. */
export type ApplyHero5FactIcon = "clock" | "users" | "calendar" | "video" | "pin" | "target" | "none"
export type ApplyHero5Fact = {
/** The bold figure, e.g. "12", "8", "Feb 1", "Live". Keep it short so it fits a phone tile. */
value: string
/** Word set beside the figure, e.g. "weeks". */
unit?: string
/** One short line under the figure. */
caption?: string
icon?: ApplyHero5FactIcon
}
/** Labels under the countdown digits. */
export type ApplyHero5Units = { days: string; hours: string; minutes: string; seconds: string }
export type ApplyHero5Props = {
/** Headline text before the emphasised phrase (keep the trailing space). */
headlineBefore?: string
/** Phrase set in the light accent colour. */
headlineEmphasis?: string
headlineAfter?: string
subheadline?: React.ReactNode
/** Who it's for, in one line with a tick. Hidden when empty. */
forText?: string
/** Supplied programme facts, one tile each. No facts, no tiles: never invent seats or numbers. */
facts?: ApplyHero5Fact[]
/** Accessible name of the board. */
boardLabel?: string
/** Supplied application deadline (ISO date-time). Without a valid one the countdown tile is removed and the grid closes up. */
deadline?: string
/** The deadline as people read it, e.g. "Fri, Jan 22 · 5:00 PM PT". Formatted from the deadline when empty. */
deadlineText?: string
countdownTitle?: string
countdownUnits?: ApplyHero5Units
/** Shown in the countdown tile once the deadline has passed. */
countdownClosedText?: string
/** Disable the button once the deadline has passed. */
closeAtDeadline?: boolean
ctaLabel?: string
/** Short reassurance line inside the button, under the label. */
ctaSubLabel?: string
/** Button label while a promise returned by onAction is pending. */
ctaLoadingLabel?: string
/** Button label after onAction failed. */
ctaRetryLabel?: string
/** Replaces the button's sub-line while 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
/** fx backdrop photo behind the band (re-coloured to the theme; the page's scene image replaces it). null hides it. */
backdrop?: string | null
state?: ApplyHero5State
className?: string
style?: React.CSSProperties
}
type Phase = "idle" | "loading" | "error"
export function ApplyHero5(props: ApplyHero5Props) {
const {
headlineBefore = "Apply for the ",
headlineEmphasis = "next cohort",
headlineAfter = ".",
subheadline = "Here's exactly what you're applying for, in plain numbers.",
forText = "",
facts = [],
boardLabel = "What you're applying for",
deadline,
deadlineText,
countdownTitle = "Applications close in",
countdownUnits = DEFAULT_UNITS,
countdownClosedText = "Applications for this cohort have closed.",
closeAtDeadline = true,
ctaLabel = "Start My Application",
ctaSubLabel = "Free to apply · No obligation",
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,
backdrop = architecture,
state = "default",
className,
style,
} = props
const uid = React.useId()
const headingId = `${uid}-h`
const msgId = `${uid}-msg`
const target = deadline ? Date.parse(deadline) : Number.NaN
const hasDeadline = Number.isFinite(target)
const [now, setNow] = React.useState(() => Date.now())
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
}
}, [])
React.useEffect(() => {
if (!hasDeadline) return undefined
setNow(Date.now())
if (Date.now() >= target) return undefined
const id = window.setInterval(() => {
const t = Date.now()
setNow(t)
if (t >= target) window.clearInterval(id)
}, 1000)
return () => window.clearInterval(id)
}, [hasDeadline, target])
const left = hasDeadline ? Math.max(0, target - now) : 0
const ended = hasDeadline && left <= 0
const isDisabled = disabled || state === "disabled" || (ended && closeAtDeadline)
const busy = phase === "loading"
const isError = !isDisabled && phase === "error"
const forced = isDisabled ? "" : state === "hover" ? " is-hover" : state === "active" ? " is-active" : ""
const label = busy ? ctaLoadingLabel : isError ? ctaRetryLabel : ctaLabel
const subLine = isDisabled ? disabledMessage : ctaSubLabel
const useLink = Boolean(href) && !onAction && !simulate && !isDisabled
const describedBy = isError && errorMessage ? msgId : undefined
const tileCount = facts.length + (hasDeadline ? 1 : 0)
const used = (tileCount * 2) % 6
const ctaSpan = used === 0 ? 6 : 6 - used
const whenText = deadlineText || (hasDeadline ? formatWhen(target) : "")
const parts = splitTime(left, countdownUnits)
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 = "ah5-btn" + forced
const inner = (
<>
<span className="ah5-btn-main">
{busy ? <Loader2 className="ah5-spin" aria-hidden="true" strokeWidth={2.5} /> : null}
<span>{label}</span>
</span>
{subLine ? <span className="ah5-btn-sub">{subLine}</span> : null}
</>
)
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-5", className].filter(Boolean).join(" ")}
style={{ ...FX_HOST, ...style }}
aria-labelledby={headingId}
>
<style>{CSS}</style>
{backdrop ? <Backdrop src={backdrop} treatment="duotone" position="center 35%" /> : null}
<div className="ah5-inner">
<div className="ah5-head">
<h1 id={headingId} className="ah5-h1 ah5-rise" style={delay(0)}>
{headlineBefore}
{headlineEmphasis ? <span className="ah5-em">{headlineEmphasis}</span> : null}
{headlineAfter}
</h1>
{subheadline ? (
<p className="ah5-sub ah5-rise" style={delay(1)}>
{subheadline}
</p>
) : null}
{forText ? (
<p className="ah5-for ah5-rise" style={delay(2)}>
<span className="ah5-badge" aria-hidden="true">
<Check strokeWidth={3} />
</span>
{forText}
</p>
) : null}
</div>
<ul className="ah5-board" role="list" aria-label={boardLabel}>
{facts.map((fact, i) => {
const Icon = fact.icon && fact.icon !== "none" ? ICONS[fact.icon] : null
const wide = i === facts.length - 1 && facts.length % 2 === 1
return (
<li key={i} className={"ah5-tile ah5-fact ah5-rise" + (wide ? " is-wide" : "")} style={delay(i + 1)}>
{Icon ? <Icon className="ah5-ico" aria-hidden="true" strokeWidth={2.5} /> : null}
<p className="ah5-figure">
<span className="ah5-num">{fact.value}</span>
{fact.unit ? <span className="ah5-word">{fact.unit}</span> : null}
</p>
{fact.caption ? <p className="ah5-cap">{fact.caption}</p> : null}
</li>
)
})}
{hasDeadline ? (
<li className={"ah5-tile ah5-clock ah5-rise" + (ended ? " is-ended" : "")} style={delay(facts.length + 1)}>
{ended ? (
<p className="ah5-closed">{countdownClosedText}</p>
) : (
<>
<p className="ah5-clock-top">
<span className="ah5-dot" aria-hidden="true" />
{countdownTitle}
</p>
<div
className="ah5-digits"
role="timer"
aria-label={whenText ? `${countdownTitle} ${whenText}` : countdownTitle}
>
{parts.map((part) => (
<span key={part.key} className="ah5-group" aria-hidden="true">
<span key={part.value} className="ah5-dig">
{part.value}
</span>
<span className="ah5-glabel">{part.label}</span>
</span>
))}
</div>
</>
)}
{whenText ? <p className="ah5-when">{whenText}</p> : null}
</li>
) : null}
<li
className="ah5-cta ah5-rise"
style={{ "--ah5-span": ctaSpan, "--i": tileCount + 1 } as React.CSSProperties}
>
{button}
{isError && errorMessage ? (
<p id={msgId} className="ah5-msg" role="alert">
<AlertCircle className="ah5-msg-ico" aria-hidden="true" strokeWidth={2.5} />
{errorMessage}
</p>
) : null}
</li>
</ul>
</div>
</section>
)
}
export default ApplyHero5
const ICONS: Record<Exclude<ApplyHero5FactIcon, "none">, LucideIcon> = {
clock: Clock,
users: Users,
calendar: CalendarDays,
video: Video,
pin: MapPin,
target: Target,
}
const DEFAULT_UNITS: ApplyHero5Units = { days: "days", hours: "hrs", minutes: "min", seconds: "sec" }
function delay(i: number): React.CSSProperties {
return { "--i": i } as React.CSSProperties
}
function pad(n: number) {
return n < 10 ? `0${n}` : String(n)
}
function splitTime(ms: number, units: ApplyHero5Units) {
const total = Math.floor(ms / 1000)
const days = Math.floor(total / 86400)
const hours = Math.floor((total % 86400) / 3600)
const minutes = Math.floor((total % 3600) / 60)
const seconds = total % 60
return [
{ key: "d", value: pad(days), label: units.days },
{ key: "h", value: pad(hours), label: units.hours },
{ key: "m", value: pad(minutes), label: units.minutes },
{ key: "s", value: pad(seconds), label: units.seconds },
]
}
function formatWhen(time: number) {
try {
return new Date(time).toLocaleString(undefined, {
weekday: "short",
month: "short",
day: "numeric",
hour: "numeric",
minute: "2-digit",
})
} catch {
return ""
}
}
const CSS = `
.cf-apply-hero-5{
--ah5-ink:var(--band-ink, oklch(1 0 0));
--ah5-ground:var(--band, oklch(0.27 0.07 256));
--ah5-soft:color-mix(in oklab, var(--ah5-ink) 84%, var(--ah5-ground));
--ah5-tile:color-mix(in oklab, var(--ah5-ink) 7%, var(--ah5-ground));
--ah5-line:oklch(from var(--ah5-ink) l c h / 0.16);
--ah5-shade:var(--shadow, oklch(0.22 0.03 260));
position:relative;
overflow:clip;
background:var(--ah5-ground);
color:var(--ah5-ink);
font-family:var(--font-body, system-ui, sans-serif);
padding:clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
}
.cf-apply-hero-5 *,.cf-apply-hero-5 *::before,.cf-apply-hero-5 *::after{box-sizing:border-box}
.cf-apply-hero-5 .ah5-inner{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-apply-hero-5 .ah5-head{max-width:1000px}
.cf-apply-hero-5 .ah5-h1{
margin:0;
font-family:var(--font-display, inherit);
font-size:clamp(2.5rem, 5.4vw, 4.875rem);
line-height:1.04;
font-weight:var(--display-weight, 800);
letter-spacing:var(--display-tracking, -0.025em);
text-transform:var(--display-case, none);
text-wrap:balance;
color:var(--ah5-ink);
}
.cf-apply-hero-5 .ah5-em{
color:var(--ah5-ink);
color:oklch(from var(--accent, oklch(0.5 0.17 257)) max(l, 0.84) min(c, 0.13) h);
}
.cf-apply-hero-5 .ah5-sub{
margin:24px 0 0;
max-width:60ch;
font-size:clamp(1.125rem, 1.5vw, 1.375rem);
line-height:1.4;
font-weight:500;
color:var(--ah5-soft);
text-wrap:pretty;
}
.cf-apply-hero-5 .ah5-for{
margin:16px 0 0;
max-width:64ch;
font-size:clamp(1.0625rem, 1.25vw, 1.125rem);
line-height:1.5;
font-weight:700;
color:var(--ah5-ink);
text-wrap:pretty;
}
.cf-apply-hero-5 .ah5-badge{
display:inline-flex;
align-items:center;
justify-content:center;
width:22px;
height:22px;
margin-inline-end:.5em;
vertical-align:-0.3em;
border-radius:999px;
background:var(--success, oklch(0.5 0.14 150));
color:var(--ah5-badge-ink, #fff);
}
.cf-apply-hero-5 .ah5-badge svg{width:14px;height:14px}
.cf-apply-hero-5 .ah5-board{
display:grid;
grid-template-columns:repeat(6, minmax(0, 1fr));
gap:16px;
margin:clamp(40px, 5vw, 64px) 0 0;
padding:0;
list-style:none;
}
.cf-apply-hero-5 .ah5-board > li{margin:0;min-width:0}
.cf-apply-hero-5 .ah5-tile{
grid-column:span 2;
display:flex;
flex-direction:column;
justify-content:flex-start;
gap:16px;
padding:clamp(20px, 3vw, 32px);
background:var(--ah5-tile);
border:1px solid var(--ah5-line);
border-radius:var(--card-radius, var(--radius, 14px));
box-shadow:
inset 0 1px 0 oklch(from var(--ah5-ink) l c h / 0.08),
0 1px 2px oklch(from var(--ah5-shade) l c h / 0.4),
0 8px 18px -8px oklch(from var(--ah5-shade) l c h / 0.55);
}
.cf-apply-hero-5 .ah5-ico{width:20px;height:20px;flex:none;color:var(--ah5-soft)}
.cf-apply-hero-5 .ah5-figure{
display:flex;
flex-wrap:wrap;
align-items:baseline;
column-gap:10px;
row-gap:12px;
margin:0;
min-width:0;
}
.cf-apply-hero-5 .ah5-num{
font-family:var(--font-display, inherit);
font-size:clamp(2.5rem, 4.2vw, 3.75rem);
line-height:1;
font-weight:var(--display-weight, 800);
letter-spacing:-0.03em;
font-variant-numeric:tabular-nums;
overflow-wrap:break-word;
min-width:0;
}
.cf-apply-hero-5 .ah5-word{
font-family:var(--font-display, inherit);
font-size:clamp(1.3125rem, 1.8vw, 1.625rem);
line-height:1.15;
font-weight:800;
letter-spacing:-0.01em;
}
.cf-apply-hero-5 .ah5-cap{
margin:4px 0 0;
max-width:36ch;
font-size:0.9375rem;
line-height:1.4;
font-weight:500;
color:var(--ah5-soft);
text-wrap:pretty;
}
.cf-apply-hero-5 .ah5-clock{border-color:oklch(from var(--accent-fill, var(--accent, oklch(0.5 0.17 257))) l c h / 0.6)}
.cf-apply-hero-5 .ah5-clock-top{
display:flex;
align-items:center;
gap:8px;
min-height:20px;
margin:0;
font-size:0.875rem;
line-height:1.2;
font-weight:800;
}
.cf-apply-hero-5 .ah5-dot{
width:10px;
height:10px;
flex:none;
border-radius:999px;
background:var(--accent-fill, var(--accent, oklch(0.5 0.17 257)));
}
.cf-apply-hero-5 .ah5-digits{display:flex;flex-wrap:nowrap;gap:16px;margin:0;min-width:0}
.cf-apply-hero-5 .ah5-group{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.cf-apply-hero-5 .ah5-dig{
display:block;
font-family:var(--font-display, inherit);
font-size:clamp(2rem, 3.6vw, 3.25rem);
line-height:1;
font-weight:var(--display-weight, 800);
letter-spacing:-0.03em;
font-variant-numeric:tabular-nums;
}
.cf-apply-hero-5 .ah5-glabel{font-size:0.875rem;line-height:1.2;font-weight:700;color:var(--ah5-soft)}
.cf-apply-hero-5 .ah5-when{margin:4px 0 0;font-size:0.9375rem;line-height:1.4;font-weight:600;color:var(--ah5-soft)}
.cf-apply-hero-5 .ah5-closed{
margin:0;
font-family:var(--font-display, inherit);
font-size:clamp(1.3125rem, 1.8vw, 1.625rem);
line-height:1.15;
font-weight:800;
letter-spacing:-0.01em;
text-wrap:balance;
}
.cf-apply-hero-5 .ah5-clock.is-ended .ah5-when{margin-top:auto}
.cf-apply-hero-5 .ah5-cta{
grid-column:span var(--ah5-span, 2);
display:flex;
flex-direction:column;
gap:12px;
}
.cf-apply-hero-5 .ah5-btn{
--ah5-bg:var(--button-bg, var(--cta, oklch(0.58 0.21 29)));
--ah5-bg2:var(--button-bg-2, var(--cta-2, oklch(0.51 0.21 29)));
appearance:none;
border:0;
margin:0;
cursor:pointer;
text-decoration:none;
flex:1 1 auto;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:6px;
width:100%;
min-height:96px;
padding:20px 28px;
border-radius:var(--button-radius, var(--radius, 12px));
background:linear-gradient(oklch(from var(--ah5-bg) calc(l + 0.04) c h), oklch(from var(--ah5-bg2) calc(l - 0.02) c h));
color:var(--button-ink, var(--cta-ink, oklch(1 0 0)));
font-family:var(--button-font, var(--font-display, inherit));
text-transform:var(--button-case, none);
text-shadow:var(--button-text-shadow, none);
text-align:center;
box-shadow:var(--button-shadow,
inset 0 1px 0 oklch(from var(--ah5-bg) calc(l + 0.14) c h / 0.7),
inset 0 -3px 0 oklch(from var(--ah5-bg) calc(l - 0.16) c h),
0 1px 2px oklch(from var(--ah5-shade) l c h / 0.45),
0 8px 16px -6px oklch(from var(--ah5-shade) l c h / 0.6));
transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cf-apply-hero-5 .ah5-btn:not(:disabled):hover,.cf-apply-hero-5 .ah5-btn.is-hover{
background:linear-gradient(oklch(from var(--ah5-bg) calc(l - 0.01) c h), oklch(from var(--ah5-bg2) calc(l - 0.07) c h));
box-shadow:
inset 0 1px 0 oklch(from var(--ah5-bg) calc(l + 0.12) c h / 0.7),
inset 0 -3px 0 oklch(from var(--ah5-bg) calc(l - 0.2) c h),
0 1px 2px oklch(from var(--ah5-shade) l c h / 0.5),
0 12px 20px -6px oklch(from var(--ah5-shade) l c h / 0.7);
}
.cf-apply-hero-5 .ah5-btn:not(:disabled):active,.cf-apply-hero-5 .ah5-btn.is-active{
background:linear-gradient(oklch(from var(--ah5-bg) calc(l - 0.06) c h), oklch(from var(--ah5-bg2) calc(l - 0.08) c h));
box-shadow:
inset 0 2px 4px oklch(from var(--ah5-bg) calc(l - 0.24) c h / 0.55),
inset 0 -2px 0 oklch(from var(--ah5-bg) calc(l - 0.16) c h),
0 1px 2px oklch(from var(--ah5-shade) l c h / 0.45);
}
.cf-apply-hero-5 .ah5-btn:focus-visible{outline:3px solid var(--ah5-ink);outline-offset:3px}
.cf-apply-hero-5 .ah5-btn:disabled{
cursor:not-allowed;
background:color-mix(in oklab, var(--ah5-ink) 12%, var(--ah5-ground));
color:color-mix(in oklab, var(--ah5-ink) 82%, var(--ah5-ground));
border:1px solid var(--ah5-line);
box-shadow:none;
text-shadow:none;
}
.cf-apply-hero-5 .ah5-btn[aria-busy="true"]{cursor:progress}
.cf-apply-hero-5 .ah5-btn-main{
display:inline-flex;
align-items:center;
justify-content:center;
gap:10px;
font-size:clamp(1.125rem, 1.55vw, 1.375rem);
line-height:1.15;
font-weight:var(--button-weight, 800);
text-wrap:balance;
}
.cf-apply-hero-5 .ah5-btn-sub{
font-family:var(--font-body, inherit);
font-size:0.9375rem;
line-height:1.4;
font-weight:600;
text-transform:none;
text-wrap:pretty;
}
.cf-apply-hero-5 .ah5-spin{width:20px;height:20px;flex:none}
.cf-apply-hero-5 .ah5-msg{
margin:0;
padding:12px 16px;
border-radius:10px;
background:var(--danger-soft, oklch(0.93 0.024 27));
color:var(--danger, oklch(0.5 0.17 27));
font-size:0.9375rem;
line-height:1.4;
font-weight:600;
text-wrap:pretty;
}
.cf-apply-hero-5 .ah5-msg-ico{
display:inline-block;
width:18px;
height:18px;
vertical-align:-0.2em;
margin-inline-end:.4em;
}
@media (max-width: 900px){
.cf-apply-hero-5 .ah5-board{grid-template-columns:repeat(2, minmax(0, 1fr));gap:12px}
.cf-apply-hero-5 .ah5-fact{grid-column:span 1}
.cf-apply-hero-5 .ah5-fact.is-wide,.cf-apply-hero-5 .ah5-clock,.cf-apply-hero-5 .ah5-cta{grid-column:1 / -1}
.cf-apply-hero-5 .ah5-digits{gap:16px}
.cf-apply-hero-5 .ah5-btn{min-height:76px;padding:16px 20px}
}
@media (max-width: 560px){
.cf-apply-hero-5 .ah5-tile{gap:12px}
.cf-apply-hero-5 .ah5-figure{flex-direction:column;align-items:flex-start;row-gap:12px}
.cf-apply-hero-5 .ah5-cap{margin-top:8px}
.cf-apply-hero-5 .ah5-when{margin-top:8px}
}
@media (prefers-reduced-motion: no-preference){
.cf-apply-hero-5 .ah5-rise{
animation:ah5-rise .45s cubic-bezier(.2,.7,.2,1) both;
animation-delay:calc(min(var(--i, 0), 4) * 0.07s);
}
.cf-apply-hero-5 .ah5-dig{animation:ah5-flip .3s cubic-bezier(.2,.7,.2,1) both}
.cf-apply-hero-5 .ah5-spin{animation:ah5-spin .8s linear infinite}
.cf-apply-hero-5 .ah5-btn:not(:disabled):hover,.cf-apply-hero-5 .ah5-btn.is-hover{transform:translateY(-1px)}
.cf-apply-hero-5 .ah5-btn:not(:disabled):active,.cf-apply-hero-5 .ah5-btn.is-active{transform:translateY(1px)}
@keyframes ah5-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes ah5-flip{from{opacity:.35;transform:translateY(-0.18em)}to{opacity:1;transform:none}}
@keyframes ah5-spin{to{transform:rotate(360deg)}}
}
@media (prefers-reduced-motion: reduce){
.cf-apply-hero-5 .ah5-btn{transition:none}
}
`
pieces/hero/apply-hero-5/specimen.tsx 27 lines
import { ApplyHero5, type ApplyHero5State } from "../apply-hero-5"
export const states = ["default", "hover", "active", "disabled", "error"]
export default function ApplyHero5Specimen({ state = "default" }: { state?: string }) {
return (
<ApplyHero5
headlineBefore="Turn your B2B SaaS into a sales engine "
headlineEmphasis="in 12 weeks"
headlineAfter="."
subheadline="Shipyard puts eight B2B SaaS founders in one room, twice a week, building pipeline side by side. Here's exactly what you're applying for."
forText="For founders with a live B2B product and their first paying customers."
facts={[
{ value: "12", unit: "weeks", caption: "From kickoff to Demo Day", icon: "clock" },
{ value: "8", unit: "founders", caption: "Per cohort, kept small on purpose", icon: "users" },
{ value: "Feb 1", unit: "2027", caption: "Next cohort starts", icon: "calendar" },
{ value: "Live", unit: "online", caption: "Two working sessions a week", icon: "video" },
]}
deadline="2027-01-22T17:00:00-08:00"
deadlineText="Fri, Jan 22 · 5:00 PM PT"
ctaLabel="Start My Application"
ctaSubLabel="Takes about 8 minutes · Free to apply"
simulate
state={state as ApplyHero5State}
/>
)
}
| Name | Type | Details |
|---|---|---|
headlineBefore OptionalApplyHero5 |
string |
|
headlineEmphasis OptionalApplyHero5 |
string |
|
headlineAfter OptionalApplyHero5 |
string |
|
subheadline OptionalApplyHero5 |
React.ReactNode |
|
forText OptionalApplyHero5 |
string |
|
facts OptionalApplyHero5 |
ApplyHero5Fact[] |
|
boardLabel OptionalApplyHero5 |
string |
|
deadline OptionalApplyHero5 |
string |
|
deadlineText OptionalApplyHero5 |
string |
|
countdownTitle OptionalApplyHero5 |
string |
|
countdownUnits OptionalApplyHero5 |
ApplyHero5Units |
|
countdownClosedText OptionalApplyHero5 |
string |
|
closeAtDeadline OptionalApplyHero5 |
boolean |
|
ctaLabel OptionalApplyHero5 |
string |
|
ctaSubLabel OptionalApplyHero5 |
string |
|
ctaLoadingLabel OptionalApplyHero5 |
string |
|
ctaRetryLabel OptionalApplyHero5 |
string |
|
disabledMessage OptionalApplyHero5 |
string |
|
errorMessage OptionalApplyHero5 |
string |
|
href OptionalApplyHero5 |
string |
|
onAction OptionalApplyHero5 |
() => void | Promise<unknown> |
|
simulate OptionalApplyHero5 |
boolean |
|
disabled OptionalApplyHero5 |
boolean |
|
backdrop OptionalApplyHero5 |
string | null |
|
state OptionalApplyHero5 |
ApplyHero5State |
|
className OptionalApplyHero5 |
string |
|
style OptionalApplyHero5 |
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-radius- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
-
3902415dc9f2ebb8.webp
image/webp · 16.8 KB