Stage Launch Header 1
Stage Launch Header: stage light and haze move behind the event name while an angled card field carries
Use it in a prompt
Use hero/stage-launch-header 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/stage-launch-header.tsx. - Import it and pass your copy and images (Props tab):
import { StageLaunchHeader } from "@/components/funneldna/hero/stage-launch-header"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/stage-launch-header/component.tsx 310 lines
// layout: diagonal-split
// Stage Launch Header: stage light and haze move behind the event name while an angled card field carries
// the date, an honest live countdown and one register button, so saving a seat is the obvious next step.
import * as React from 'react';
import { Check, ShieldCheck } from 'lucide-react';
import { BackdropVideo, Spot, FX_HOST } from '../fx/fx';
import stageLoop from '../fx/loops/stage';
import calendar from '../fx/spots/calendar';
export type StageLaunchState = 'default' | 'hover' | 'active' | 'disabled';
type Units = { days: string; hours: string; minutes: string; seconds: string };
export type StageLaunchHeaderProps = {
/** Short live-event label above the name. Empty renders none. */
eyebrow?: string;
/** The event name, set as the huge display headline. */
eventName?: React.ReactNode;
/** One-line promise under the name. */
promise?: string;
/** A phrase inside `promise` that gets the single marker stroke. Empty for none. */
promiseHighlight?: string;
/** Date line, e.g. 'Thursday, December 18'. Empty renders no date row. */
date?: string;
/** Time and format line under the date. */
time?: string;
/** Countdown target (Date, timestamp or date string). Empty or past renders no countdown. */
countdownTarget?: Date | number | string;
/** Small line above the countdown. */
countdownLabel?: string;
/** Screen-reader summary of the countdown; placeholders {days} {hours} {minutes} {seconds}. */
countdownAriaLabel?: string;
/** Unit labels under each countdown number. */
units?: Units;
/** Register button label, one line. */
label?: string;
/** Short reassurance line under the button (free, format). Empty renders nothing. */
reassurance?: string;
/** Replay policy line. Empty renders nothing. */
replayNote?: string;
/** Optional short what-you-will-learn points. */
points?: React.ReactNode[];
/** Accessible name for the points list. */
pointsAriaLabel?: string;
/** Registration destination. */
href?: string;
/** Called when the register button is clicked. */
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled?: boolean;
state?: StageLaunchState;
className?: string;
};
const DEFAULT_UNITS: Units = { days: 'Days', hours: 'Hours', minutes: 'Minutes', seconds: 'Seconds' };
export function StageLaunchHeader(props: StageLaunchHeaderProps) {
const {
eyebrow = 'Live online event',
eventName = 'The Live Launch',
promise = 'Join us live and leave with a clear plan you can start on tonight.',
promiseHighlight = 'a clear plan',
date = '',
time = '',
countdownTarget,
countdownLabel = 'We go live in',
countdownAriaLabel = '{days} days, {hours} hours and {minutes} minutes until we go live',
units = DEFAULT_UNITS,
label = 'Save my seat',
reassurance = '',
replayNote = '',
points = [],
pointsAriaLabel = 'What you will learn',
href,
onAction,
disabled = false,
state = 'default',
className,
} = props;
const headingId = React.useId();
const left = useCountdown(countdownTarget);
const isDisabled = disabled || state === 'disabled';
const hasPoints = points.length > 0;
const btnClass = 'cf-slh__btn' + (state === 'hover' ? ' is-hover' : '') + (state === 'active' ? ' is-active' : '');
const cells: [keyof Units, string][] = left
? [
['days', String(left.days)],
['hours', pad(left.hours)],
['minutes', pad(left.minutes)],
['seconds', pad(left.seconds)],
]
: [];
return (
<section className={'cf-slh' + (className ? ' ' + className : '')} style={FX_HOST} aria-labelledby={headingId}>
<style>{CSS}</style>
<BackdropVideo video={stageLoop} treatment='duotone' tone='band' side='left' position='center top' control='top-left' />
<div className='cf-slh__field' aria-hidden='true' />
<div className={'cf-slh__inner' + (hasPoints ? '' : ' no-points')}>
<div className='cf-slh__sheet' aria-hidden='true' />
<div className='cf-slh__copy'>
{eyebrow ? (
<p className='cf-slh__eyebrow cf-slh__rise'>
<span className='cf-slh__dot' aria-hidden='true' />
{eyebrow}
</p>
) : null}
<h1 id={headingId} className='cf-slh__title cf-slh__rise' style={{ animationDelay: '.07s' }}>
{eventName}
</h1>
{promise ? (
<p className='cf-slh__promise cf-slh__rise' style={{ animationDelay: '.14s' }}>
{withMarker(promise, promiseHighlight)}
</p>
) : null}
</div>
{hasPoints ? (
<ul className='cf-slh__points cf-slh__rise' style={{ animationDelay: '.21s' }} aria-label={pointsAriaLabel}>
{points.map((point, i) => (
<li key={i} className='cf-slh__point'>
<span className='cf-slh__chk' aria-hidden='true'>
<Check size={16} strokeWidth={3} />
</span>
<span>{point}</span>
</li>
))}
</ul>
) : null}
<div className='cf-slh__panel cf-slh__rise' style={{ animationDelay: '.14s' }}>
{date ? (
<div className='cf-slh__when'>
<span className='cf-slh__spot'>
<Spot src={calendar} size={52} />
</span>
<div>
<p className='cf-slh__date'>{date}</p>
{time ? <p className='cf-slh__time'>{time}</p> : null}
</div>
</div>
) : null}
{left ? (
<div className='cf-slh__cd'>
<p className='cf-slh__cd-label'>{countdownLabel}</p>
<div className='cf-slh__cells' role='timer' aria-label={fillTemplate(countdownAriaLabel, left)}>
{cells.map(([key, value]) => (
<div key={key} className='cf-slh__cell' aria-hidden='true'>
<span key={value} className={'cf-slh__num cf-slh__tick' + (value.length > 2 ? ' is-long' : '')}>
{value}
</span>
<span className='cf-slh__unit'>{units[key]}</span>
</div>
))}
</div>
</div>
) : null}
<div className='cf-slh__action'>
{href && !isDisabled ? (
<a className={btnClass} href={href} onClick={onAction}>
{label}
</a>
) : (
<button type='button' className={btnClass} disabled={isDisabled} onClick={onAction}>
{label}
</button>
)}
{reassurance ? (
<p className='cf-slh__note'>
<ShieldCheck size={16} strokeWidth={2.5} aria-hidden='true' />
{reassurance}
</p>
) : null}
{replayNote ? <p className='cf-slh__note cf-slh__replay'>{replayNote}</p> : null}
</div>
</div>
</div>
</section>
);
}
export default StageLaunchHeader;
type Left = { days: number; hours: number; minutes: number; seconds: number };
function toTime(target: Date | number | string | undefined): number | null {
if (target === undefined || target === null || target === '') return null;
const t = target instanceof Date ? target.getTime() : typeof target === 'number' ? target : Date.parse(target);
return Number.isFinite(t) ? t : null;
}
function useCountdown(target: Date | number | string | undefined): Left | null {
const end = toTime(target);
const [now, setNow] = React.useState(() => Date.now());
React.useEffect(() => {
if (end === null) return undefined;
setNow(Date.now());
if (end <= Date.now()) return undefined;
const id = window.setInterval(() => {
const t = Date.now();
setNow(t);
if (t >= end) window.clearInterval(id);
}, 1000);
return () => window.clearInterval(id);
}, [end]);
if (end === null) return null;
const ms = end - now;
if (ms <= 0) return null;
const total = Math.floor(ms / 1000);
return {
days: Math.floor(total / 86400),
hours: Math.floor((total % 86400) / 3600),
minutes: Math.floor((total % 3600) / 60),
seconds: total % 60,
};
}
function pad(n: number) {
return String(n).padStart(2, '0');
}
function fillTemplate(tpl: string, l: Left) {
return tpl
.split('{days}').join(String(l.days))
.split('{hours}').join(String(l.hours))
.split('{minutes}').join(String(l.minutes))
.split('{seconds}').join(String(l.seconds));
}
function withMarker(text: string, phrase: string) {
if (!phrase) return text;
const i = text.indexOf(phrase);
if (i < 0) return text;
return (
<>
{text.slice(0, i)}
<span className='cf-slh__mark'>{phrase}</span>
{text.slice(i + phrase.length)}
</>
);
}
const CSS = `
.cf-slh{--gut:clamp(16px,5vw,48px);--col:400px;--gap:120px;--slh-shadow:var(--shadow, oklch(0.22 0.03 260));position:relative;isolation:isolate;overflow:hidden;display:grid;align-items:center;min-height:min(88vh,860px);min-height:min(88svh,860px);background:var(--band);color:var(--band-ink);font-family:var(--font-body)}
.cf-slh__field{position:absolute;z-index:1;top:0;bottom:0;right:0;left:calc(50% + min(560px, 50% - var(--gut)) - var(--col) - 96px);pointer-events:none;filter:drop-shadow(-1px 0 2px oklch(from var(--slh-shadow) l c h / .35)) drop-shadow(-8px 0 16px oklch(from var(--slh-shadow) l c h / .45))}
.cf-slh__field::before,.cf-slh__field::after{content:'';position:absolute;inset:0}
.cf-slh__field::before{background:var(--accent-fill, var(--accent));clip-path:polygon(64px 0,100% 0,100% 100%,0 100%)}
.cf-slh__field::after{background:var(--card);clip-path:polygon(76px 0,100% 0,100% 100%,12px 100%)}
.cf-slh__inner{position:relative;z-index:2;box-sizing:border-box;width:min(1120px, 100% - 2 * var(--gut));margin-inline:auto;padding-block:clamp(56px,8vw,112px) clamp(64px,8.5vw,120px);display:grid;grid-template-columns:minmax(0,1fr) var(--col);grid-template-rows:auto 1fr;column-gap:var(--gap);align-items:start;pointer-events:none}
.cf-slh__inner > *{position:relative;min-width:0;pointer-events:auto}
.cf-slh__inner > .cf-slh__sheet{display:none;pointer-events:none}
.cf-slh__copy{grid-column:1;grid-row:1}
.cf-slh__eyebrow{display:flex;align-items:center;gap:12px;margin:0 0 16px;font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--band-ink)}
.cf-slh__dot{flex:none;width:10px;height:10px;border-radius:999px;background:var(--accent-fill, var(--accent));box-shadow:0 0 0 4px oklch(from var(--accent-fill, var(--accent)) l c h / .3)}
.cf-slh__title{margin:0 0 24px;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.75rem,5.8vw,5.25rem);line-height:1.02;letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance;color:var(--band-ink)}
.cf-slh__promise{margin:0;max-width:40ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.45;font-weight:500;text-wrap:pretty;color:var(--band-ink)}
.cf-slh__mark{--slh-m:oklch(from var(--marker, #fae37c) max(l, 0.9) c h / 1);color:oklch(from var(--marker, #fae37c) 0.24 0.04 h);background:linear-gradient(transparent 6%, var(--slh-m) 6%, var(--slh-m) 94%, transparent 94%);padding:0 .22em;margin:0 -.04em;border-radius:.35em .15em .4em .2em;font-weight:700;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-slh__points{grid-column:1;grid-row:2;list-style:none;margin:40px 0 0;padding:0;display:grid;gap:16px;max-width:46ch;color:var(--band-ink)}
.cf-slh__point{display:flex;align-items:flex-start;gap:12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;font-weight:500;text-wrap:pretty}
.cf-slh__chk{flex:none;display:inline-grid;place-items:center;width:26px;height:26px;margin-top:-1px;border-radius:999px;background:var(--accent-fill, var(--accent));color:var(--accent-fill-ink, var(--card))}
.cf-slh__panel{grid-column:2;grid-row:1 / 3;padding-top:32px;background:var(--card);color:var(--ink)}
.cf-slh__when{display:flex;align-items:center;gap:16px;margin-bottom:32px}
.cf-slh__spot{flex:none;display:block;line-height:0}
.cf-slh__date{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;font-variant-numeric:lining-nums;text-wrap:balance;color:var(--ink)}
.cf-slh__time{margin:4px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted)}
.cf-slh__cd{margin-bottom:32px}
.cf-slh__cd-label{margin:0 0 12px;font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cf-slh__cells{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cf-slh__cell{display:flex;flex-direction:column;align-items:center;padding:16px 4px 12px;border-radius:10px;background:color-mix(in oklch, var(--ink) 5%, var(--card));box-shadow:inset 0 0 0 1px oklch(from var(--ink) l c h / .06)}
.cf-slh__num{display:inline-block;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.25rem,3.4vw,3rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:lining-nums tabular-nums;color:var(--ink)}
.cf-slh__num.is-long{font-size:.8em}
.cf-slh__unit{margin-top:8px;font-size:.875rem;line-height:1.2;font-weight:700;color:var(--muted)}
.cf-slh__action{display:grid;gap:12px}
.cf-slh__btn{--slh-bb:var(--button-bg, var(--cta));appearance:none;border:0;margin:0;cursor:pointer;text-decoration:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:72px;padding:0 28px;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(--slh-bb) calc(l + 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.02) c h));box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--slh-bb) calc(l + 0.14) c h / .7), inset 0 -3px 0 oklch(from var(--slh-bb) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--slh-shadow) l c h / .35), 0 8px 16px -6px oklch(from var(--slh-shadow) l c h / .45));transition:transform .16s ease, box-shadow .16s ease, background .16s ease}
.cf-slh__btn:not(:disabled):hover,.cf-slh__btn.is-hover{transform:translateY(-1px);background:linear-gradient(oklch(from var(--slh-bb) calc(l - 0.01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.07) c h));box-shadow:inset 0 1px 0 oklch(from var(--slh-bb) calc(l + 0.12) c h / .7), inset 0 -3px 0 oklch(from var(--slh-bb) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--slh-shadow) l c h / .4), 0 12px 20px -8px oklch(from var(--slh-shadow) l c h / .55)}
.cf-slh__btn:not(:disabled):active,.cf-slh__btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--slh-bb) calc(l - 0.06) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from var(--slh-bb) calc(l - 0.22) c h / .55), inset 0 -2px 0 oklch(from var(--slh-bb) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--slh-shadow) l c h / .35)}
.cf-slh__btn:focus-visible{outline:3px solid var(--field-focus, var(--accent));outline-offset:3px}
.cf-slh__btn:disabled{cursor:not-allowed;transform:none;background:var(--button-2-bg, var(--secondary));color:var(--button-2-ink, var(--secondary-ink));box-shadow:var(--button-2-shadow, var(--shadow-sm));text-shadow:none}
.cf-slh__note{margin:0;font-size:.9375rem;line-height:1.4;font-weight:600;text-align:center;text-wrap:pretty;color:var(--muted)}
.cf-slh__note svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em;color:var(--success)}
.cf-slh__replay{margin-top:4px;font-weight:500}
.cf-slh__rise{animation:cf-slh-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-slh__tick{animation:cf-slh-tick .3s ease-out both}
@keyframes cf-slh-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cf-slh-tick{from{opacity:.6;transform:translateY(-4px)}}
@media (max-width:1023px){
.cf-slh{align-items:end}
.cf-slh__field{display:none}
.cf-slh__inner{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;column-gap:0;padding-top:clamp(76px,10vw,112px);padding-bottom:0}
.cf-slh__inner > .cf-slh__sheet{display:block;grid-column:1;grid-row:2 / 4;align-self:stretch;margin:28px calc(-1 * var(--gut)) 0;filter:drop-shadow(0 -1px 2px oklch(from var(--slh-shadow) l c h / .35)) drop-shadow(0 -8px 14px oklch(from var(--slh-shadow) l c h / .4))}
.cf-slh__sheet::before,.cf-slh__sheet::after{content:'';position:absolute;inset:0}
.cf-slh__sheet::before{background:var(--accent-fill, var(--accent));clip-path:polygon(0 28px,100% 0,100% 100%,0 100%)}
.cf-slh__sheet::after{background:var(--card);clip-path:polygon(0 40px,100% 12px,100% 100%,0 100%)}
.cf-slh__panel{grid-column:1;grid-row:2;margin-top:68px;padding:24px 0 0}
.cf-slh__points{grid-column:1;grid-row:3;margin:0;padding:32px 0 48px;max-width:none;background:var(--card);color:var(--ink)}
.cf-slh__inner.no-points .cf-slh__panel{padding-bottom:48px}
.cf-slh__when{margin-bottom:24px}
.cf-slh__cd{margin-bottom:24px}
.cf-slh__btn{min-height:64px;padding:0 20px}
}
@media (prefers-reduced-motion: reduce){
.cf-slh__rise,.cf-slh__tick{animation:none}
.cf-slh__btn{transition:none}
.cf-slh__btn:not(:disabled):hover,.cf-slh__btn.is-hover,.cf-slh__btn:not(:disabled):active,.cf-slh__btn.is-active{transform:none}
}
`;
pieces/hero/stage-launch-header/specimen.tsx 42 lines
import * as React from 'react';
import { StageLaunchHeader } from '../stage-launch-header';
import defaults from '../../studio-defaults.json';
export const states = ['default', 'hover', 'active', 'disabled'];
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled';
export default function StageLaunchHeaderSpecimen({ state = 'default' }: { state?: SpecimenState }) {
const workshop = defaults.sample.registration;
const [target] = React.useState(() => {
const d = new Date();
d.setDate(d.getDate() + 30);
d.setHours(19, 0, 0, 0);
return d.getTime();
});
const start = new Date(target);
const date = start.toLocaleDateString('en-US', { weekday: 'long', month: 'long', day: 'numeric' });
const time = start.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit' }) + ' your time · Live online';
return (
<StageLaunchHeader
eyebrow='Free live workshop'
eventName={workshop.name}
promise='Leave with your first funnel mapped out: your offer, your page copy and your next three steps.'
promiseHighlight='your first funnel mapped out'
date={date}
time={time}
countdownTarget={target}
countdownLabel='We go live in'
label='Map out my first funnel'
reassurance={workshop.sublabel}
replayNote='Can’t make it live? Register and the replay comes to your inbox.'
points={[
'How to pick the one offer your first funnel should sell',
'The 3 pages every starter funnel needs, and the order to build them',
'Why the headline decides the click before your design does',
]}
state={state}
/>
);
}
| Name | Type | Details |
|---|---|---|
eyebrow OptionalStageLaunchHeader |
string |
|
eventName OptionalStageLaunchHeader |
React.ReactNode |
|
promise OptionalStageLaunchHeader |
string |
|
promiseHighlight OptionalStageLaunchHeader |
string |
|
date OptionalStageLaunchHeader |
string |
|
time OptionalStageLaunchHeader |
string |
|
countdownTarget OptionalStageLaunchHeader |
Date | number | string |
|
countdownLabel OptionalStageLaunchHeader |
string |
|
countdownAriaLabel OptionalStageLaunchHeader |
string |
|
units OptionalStageLaunchHeader |
Units |
|
label OptionalStageLaunchHeader |
string |
|
reassurance OptionalStageLaunchHeader |
string |
|
replayNote OptionalStageLaunchHeader |
string |
|
points OptionalStageLaunchHeader |
React.ReactNode[] |
|
pointsAriaLabel OptionalStageLaunchHeader |
string |
|
href OptionalStageLaunchHeader |
string |
|
onAction OptionalStageLaunchHeader |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalStageLaunchHeader |
boolean |
|
state OptionalStageLaunchHeader |
StageLaunchState |
|
className OptionalStageLaunchHeader |
string |
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.
--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.
This piece reads no image slots.
- 072db41e2182d662.mp4 video/mp4 · 138 KB
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
5a0469686decd6b8.webp
image/webp · 11.1 KB
- b1336bef45e58203.webm video/webm · 65.2 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB