Not Found 4
A 404 that hands the lost visitor back to the coach: a cut-out of the coach beside a dear-friend note, then the value
Use it in a prompt
Use content/not-found-4 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/content/not-found-4.tsx. - Import it and pass your copy and images (Props tab):
import { NotFound4 } from "@/components/funneldna/content/not-found-4"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/not-found-4/component.tsx 539 lines
// layout: presenter-cutout
// A 404 that hands the lost visitor back to the coach: a cut-out of the coach beside a dear-friend note, then the value
// ladder as rising stops (free guide with an inline email field, workshop, call), so a dead link lands on the next right step.
import * as React from 'react';
import { CircleAlert, Loader2, Lock, SearchX } from 'lucide-react';
export type NotFound4Stop = 'guide' | 'workshop' | 'call';
export type NotFound4Offer = {
/** Card title: name what this step gets them. */
title: string;
/** One short line under the title. */
line?: string;
/** Small facts under the line, e.g. Free · 14-page PDF. */
note?: string;
/** Button label; falls back to actionLabels for this stop. */
actionLabel?: string;
/** Destination for the workshop and call stops (the guide stop is an email form). */
href?: string;
/** What the coach says at the end of the note while this stop is hovered or focused. */
tip?: string;
};
export type NotFound4State = 'default' | 'hover' | 'active' | 'disabled' | 'error';
export type NotFound4Props = {
/** Status chip above the headline. Hidden when empty. */
statusLabel?: string;
headline?: string;
/** Phrase inside the headline set in the accent colour. */
headlineHighlight?: string;
/** Letter opening. Hidden when empty. */
salutation?: string;
/** Short letter paragraphs. */
letter?: string[];
/** Plain instruction that ends the note; swapped for a stop tip while that stop is in focus. */
instruction?: string;
/** Instruction shown when no stop is supplied. */
emptyInstruction?: string;
signOff?: string;
/** Signed name: the accessible name of the signature image, or set in the display face when no image is supplied. Hidden when empty. */
signatureName?: string;
/** Slot signature: a handwritten signature on a transparent background. Its shape is inked with --signature-ink, so it reads on light and dark themes. */
signatureImage?: string;
/** Slot presenter-cutout: the coach on a transparent background. The figure is hidden when empty. */
presenterImage?: string;
presenterImageAlt?: string;
presenterName?: string;
presenterRole?: string;
/** Stop: the free guide, with an inline email field. Hidden when not supplied. */
guide?: NotFound4Offer;
/** Stop: the workshop. Hidden when not supplied. */
workshop?: NotFound4Offer;
/** Stop: the call. Hidden when not supplied. */
call?: NotFound4Offer;
/** Small label on each shown stop, in order. */
stepLabels?: string[];
/** Default button label per stop. */
actionLabels?: Partial<Record<NotFound4Stop, string>>;
/** Accessible name of the list of stops. */
pathLabel?: string;
emailLabel?: string;
emailPlaceholder?: string;
busyLabel?: string;
/** One reassurance line under the guide button. Hidden when empty. */
privacy?: string;
emptyEmailError?: string;
invalidEmailError?: string;
/** Email the error preview state shows. */
stateEmail?: string;
homeLabel?: string;
homeHref?: string;
/** Validated guide opt-in. Return a promise to show the busy state while it runs. */
onSubmit?: (values: { email: string }) => void | Promise<unknown>;
/** Workshop or call action click. */
onAction?: (stop: NotFound4Stop, event: React.MouseEvent<HTMLElement>) => void;
state?: NotFound4State;
className?: string;
};
const DEFAULT_LETTER = [
'The link you followed is old, or the page has moved. It happens.',
'What matters is why you came. So here’s the path I’d walk you down if we were sitting together, one step at a time.',
];
const DEFAULT_STEP_LABELS = ['Start here', 'Then', 'When ready'];
const DEFAULT_ACTIONS: Record<NotFound4Stop, string> = {
guide: 'Send me the guide',
workshop: 'Save my seat',
call: 'Book my call',
};
const ORDER: NotFound4Stop[] = ['guide', 'workshop', 'call'];
const EMAIL = /^[^ @]+@[^ @]+[.][^ @]{2,}$/;
export function NotFound4(props: NotFound4Props) {
const {
statusLabel = 'Error 404 · Page not found',
headline = 'This page is gone. Your next step isn’t.',
headlineHighlight = 'Your next step isn’t.',
salutation = 'Dear friend,',
letter = DEFAULT_LETTER,
instruction = 'Start at step 1 below. It’s the quickest way back on track.',
emptyInstruction = 'Head back to the homepage below and pick up where you left off.',
signOff = 'Talk soon,',
signatureName,
signatureImage,
presenterImage,
presenterImageAlt = '',
presenterName,
presenterRole,
guide,
workshop,
call,
stepLabels = DEFAULT_STEP_LABELS,
actionLabels,
pathLabel = 'Your next steps',
emailLabel = 'Your email',
emailPlaceholder = 'you@example.com',
busyLabel = 'Sending…',
privacy,
emptyEmailError = 'Enter your email so we know where to send the guide.',
invalidEmailError = 'That email looks incomplete. Check the @ and the part after it.',
stateEmail = 'jane@example',
homeLabel = 'Or go back to the homepage',
homeHref = '/',
onSubmit,
onAction,
state = 'default',
className,
} = props;
const uid = React.useId();
const headingId = `${uid}-h`;
const emailId = `${uid}-e`;
const errorId = `${uid}-x`;
const privacyId = `${uid}-p`;
const inputRef = React.useRef<HTMLInputElement>(null);
const alive = React.useRef(true);
React.useEffect(() => {
alive.current = true;
return () => {
alive.current = false;
};
}, []);
const [active, setActive] = React.useState<number | null>(null);
const [email, setEmail] = React.useState('');
const [touched, setTouched] = React.useState(false);
const [error, setError] = React.useState<string | null>(null);
const [busy, setBusy] = React.useState(false);
const offers: Record<NotFound4Stop, NotFound4Offer | undefined> = { guide, workshop, call };
const stops = ORDER.flatMap((kind) => {
const offer = offers[kind];
return offer ? [{ kind, offer }] : [];
});
const count = stops.length;
const disabled = state === 'disabled';
const forced = state === 'hover' && count > 0 ? Math.min(1, count - 1) : null;
const focusIndex = active ?? forced;
const featured = focusIndex ?? 0;
const tipIndex = focusIndex !== null && stops[focusIndex]?.offer.tip ? focusIndex : -1;
const pressIndex = state === 'active' && count > 0 ? 0 : null;
const hasFigure = Boolean(presenterImage);
const value = !touched && state === 'error' ? stateEmail : email;
const shownError = error ?? (!touched && state === 'error' ? invalidEmailError : null);
const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
if (disabled || busy) return;
const next = value.trim();
setTouched(true);
setEmail(next);
if (!next || !EMAIL.test(next)) {
setError(next ? invalidEmailError : emptyEmailError);
inputRef.current?.focus();
return;
}
setError(null);
const result: unknown = onSubmit?.({ email: next });
if (result && typeof (result as PromiseLike<unknown>).then === 'function') {
setBusy(true);
Promise.resolve(result as PromiseLike<unknown>)
.catch(() => undefined)
.finally(() => {
if (alive.current) setBusy(false);
});
}
};
const blurPath = (event: React.FocusEvent<HTMLOListElement>) => {
const next = event.relatedTarget;
if (!(next instanceof Node) || !event.currentTarget.contains(next)) setActive(null);
};
const renderAction = (kind: NotFound4Stop, offer: NotFound4Offer, i: number) => {
const label = offer.actionLabel ?? actionLabels?.[kind] ?? DEFAULT_ACTIONS[kind];
if (kind === 'guide') {
const describedBy = [shownError ? errorId : null, privacy ? privacyId : null].filter(Boolean).join(' ') || undefined;
return (
<form className='cf-nf4-form' noValidate onSubmit={handleSubmit}>
<label className='cf-nf4-label' htmlFor={emailId}>
{emailLabel}
</label>
<input
ref={inputRef}
id={emailId}
className='cf-nf4-input'
type='email'
name='email'
autoComplete='email'
inputMode='email'
placeholder={emailPlaceholder}
value={value}
readOnly={busy}
disabled={disabled}
aria-invalid={shownError ? true : undefined}
aria-describedby={describedBy}
onChange={(event) => {
setTouched(true);
setEmail(event.target.value);
if (error) setError(null);
}}
/>
{shownError ? (
<p id={errorId} className='cf-nf4-error' role='alert'>
<CircleAlert className='cf-nf4-inl' size={16} strokeWidth={2.5} aria-hidden='true' />
{shownError}
</p>
) : null}
<button
type='submit'
className={cx('cf-nf4-btn', forced === i && 'is-hover', pressIndex === i && 'is-active')}
disabled={disabled || busy}
aria-busy={busy || undefined}
>
{busy ? (
<>
<Loader2 className='cf-nf4-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
{busyLabel}
</>
) : (
label
)}
</button>
{privacy ? (
<p id={privacyId} className='cf-nf4-privacy'>
<Lock className='cf-nf4-inl' size={16} strokeWidth={2.5} aria-hidden='true' />
{privacy}
</p>
) : null}
</form>
);
}
const cls = cx('cf-nf4-btn2', forced === i && 'is-hover', pressIndex === i && 'is-active');
const click = (event: React.MouseEvent<HTMLElement>) => onAction?.(kind, event);
return (
<div className='cf-nf4-act'>
{offer.href && !disabled ? (
<a className={cls} href={offer.href} onClick={click}>
{label}
</a>
) : (
<button type='button' className={cls} disabled={disabled} onClick={click}>
{label}
</button>
)}
</div>
);
};
return (
<section className={cx('cf-nf4', className)} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className='cf-nf4-wrap'>
<div className={cx('cf-nf4-top', !hasFigure && 'is-solo')}>
<div className='cf-nf4-head'>
{statusLabel ? (
<p className='cf-nf4-chip'>
<SearchX size={16} strokeWidth={2.5} aria-hidden='true' />
{statusLabel}
</p>
) : null}
<h1 id={headingId} className='cf-nf4-h'>
{emphasise(headline, headlineHighlight)}
</h1>
</div>
{hasFigure ? (
<figure className='cf-nf4-fig cf-nf4-rise'>
<div className='cf-nf4-frame'>
<div className='cf-nf4-block' aria-hidden='true' />
<img
className='cf-nf4-cut'
src={presenterImage}
alt={presenterImageAlt}
width={640}
height={640}
decoding='async'
/>
</div>
{presenterName || presenterRole ? (
<figcaption className='cf-nf4-cap'>
{presenterName ? <strong>{presenterName}</strong> : null}
{presenterRole ? <span>{presenterRole}</span> : null}
</figcaption>
) : null}
</figure>
) : null}
<div
className={cx('cf-nf4-letter cf-nf4-rise', !hasFigure && 'is-plain')}
style={{ animationDelay: '.07s' }}
>
{salutation ? <p className='cf-nf4-salute'>{salutation}</p> : null}
{letter.map((paragraph, i) => (
<p key={i} className='cf-nf4-p'>
{paragraph}
</p>
))}
<div className='cf-nf4-say'>
<p className={cx('cf-nf4-tip', tipIndex === -1 && 'is-shown')} aria-hidden={tipIndex !== -1 || undefined}>
{count > 0 ? instruction : emptyInstruction}
</p>
{stops.map(({ kind, offer }, i) =>
offer.tip ? (
<p key={kind} className={cx('cf-nf4-tip', tipIndex === i && 'is-shown')} aria-hidden={tipIndex !== i || undefined}>
{offer.tip}
</p>
) : null,
)}
</div>
{signOff || signatureName || signatureImage ? (
<div className='cf-nf4-sign'>
{signOff ? <p className='cf-nf4-signoff'>{signOff}</p> : null}
{signatureImage ? (
<span
className='cf-nf4-sigimg'
role='img'
aria-label={signatureName || signOff || 'Signature'}
style={{ '--nf4-sig': `url("${signatureImage}")` } as React.CSSProperties}
/>
) : signatureName ? (
<p className='cf-nf4-sig'>{signatureName}</p>
) : null}
</div>
) : null}
</div>
</div>
{count > 0 ? (
<ol
className='cf-nf4-path'
aria-label={pathLabel}
style={{ '--nf4-n': count } as React.CSSProperties}
onPointerLeave={() => setActive(null)}
onBlur={blurPath}
>
{stops.map(({ kind, offer }, i) => {
const titleId = `${uid}-t${i}`;
const step = stepLabels[i];
return (
<li
key={kind}
className={cx('cf-nf4-stop', i === featured && 'is-on', i < featured && 'is-climbed')}
style={{ '--nf4-i': i, '--nf4-rise': count - 1 - i } as React.CSSProperties}
onPointerEnter={() => setActive(i)}
onFocus={() => setActive(i)}
>
<div className='cf-nf4-numrow' aria-hidden='true'>
<span className='cf-nf4-num'>{i + 1}</span>
<span className='cf-nf4-rung' />
</div>
<article className='cf-nf4-card' aria-labelledby={titleId}>
{step ? <p className='cf-nf4-step'>{step}</p> : null}
<h2 id={titleId} className='cf-nf4-title'>
{offer.title}
</h2>
{offer.line ? <p className='cf-nf4-line'>{offer.line}</p> : null}
{offer.note ? <p className='cf-nf4-note'>{offer.note}</p> : null}
{renderAction(kind, offer, i)}
</article>
</li>
);
})}
</ol>
) : null}
{homeLabel ? (
<p className='cf-nf4-foot'>
<a className='cf-nf4-home' href={homeHref}>
{homeLabel}
</a>
</p>
) : null}
</div>
</section>
);
}
export default NotFound4;
function cx(...parts: Array<string | false | null | undefined>) {
return parts.filter(Boolean).join(' ');
}
function emphasise(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className='cf-nf4-em'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
const CSS = `
.cf-nf4{
--nf4-shadow:var(--shadow, oklch(0.22 0.03 260));
--nf4-line:var(--card-border, oklch(from var(--ink) l c h / 0.12));
--nf4-radius:var(--card-radius, var(--radius, 14px));
--nf4-card-shadow:var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)));
position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);
padding:clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);overflow-x:clip
}
.cf-nf4 *,.cf-nf4 *::before,.cf-nf4 *::after{box-sizing:border-box}
.cf-nf4 :where(h1,h2,p,ol,figure){margin:0}
.cf-nf4-wrap{max-width:1120px;margin:0 auto}
.cf-nf4-top{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:'fig head' 'fig letter';column-gap:clamp(32px, 5vw, 72px);row-gap:28px;align-items:start}
.cf-nf4-top.is-solo{grid-template-columns:minmax(0,46rem);grid-template-areas:'head' 'letter';justify-content:center}
.cf-nf4-head{grid-area:head}
.cf-nf4-fig{grid-area:fig;position:sticky;top:24px}
.cf-nf4-letter{grid-area:letter}
.cf-nf4-chip{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch, var(--ink) 6%, var(--surface));color:var(--ink);font-size:.875rem;font-weight:800;line-height:1.2;margin-bottom:16px}
.cf-nf4-h{font-family:var(--font-display);font-weight:var(--display-weight, 800);letter-spacing:var(--display-tracking, -0.025em);text-transform:var(--display-case, none);font-size:clamp(2.5rem, 5.4vw, 4.875rem);line-height:1.04;text-wrap:balance;color:var(--ink)}
.cf-nf4-em{color:var(--accent)}
.cf-nf4-frame{position:relative;aspect-ratio:1 / 1.08}
.cf-nf4-block{position:absolute;inset:24% 0 0 0;border-radius:var(--nf4-radius);background:var(--band)}
.cf-nf4-cut{position:relative;display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 2px 3px oklch(from var(--nf4-shadow) l c h / .3)) drop-shadow(0 12px 16px oklch(from var(--nf4-shadow) l c h / .22))}
.cf-nf4-cap{margin-top:16px;display:grid;gap:4px}
.cf-nf4-cap strong{font-size:1.0625rem;font-weight:800;line-height:1.3;color:var(--ink)}
.cf-nf4-cap span{font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-nf4-letter{position:relative;background:var(--card);border:1px solid var(--nf4-line);border-radius:var(--nf4-radius);box-shadow:var(--nf4-card-shadow);padding:clamp(20px, 3vw, 32px);color:var(--ink);font-size:clamp(1.0625rem, 1.25vw, 1.125rem);line-height:1.5}
.cf-nf4-letter::before{content:'';position:absolute;left:-10px;top:56px;width:18px;height:18px;background:var(--card);border-left:1px solid var(--nf4-line);border-bottom:1px solid var(--nf4-line);transform:rotate(45deg)}
.cf-nf4-letter.is-plain::before{display:none}
.cf-nf4-letter > * + *{margin-top:12px}
.cf-nf4-salute{font-weight:700}
.cf-nf4-p{max-width:64ch;text-wrap:pretty}
.cf-nf4-say{display:grid}
.cf-nf4-tip{grid-area:1 / 1;font-weight:700;color:var(--ink);text-wrap:pretty;visibility:hidden}
.cf-nf4-tip.is-shown{visibility:visible;animation:nf4-in .45s cubic-bezier(.2,.7,.2,1) both}
.cf-nf4-letter > .cf-nf4-sign{margin-top:20px}
.cf-nf4-signoff{font-weight:500}
.cf-nf4-sig{margin-top:12px;font-family:var(--font-display);font-weight:var(--display-weight, 800);letter-spacing:-0.01em;font-size:clamp(1.3125rem, 1.8vw, 1.625rem);line-height:1.15;color:var(--signature-ink, var(--ink))}
.cf-nf4-sigimg{display:block;margin-top:12px;width:176px;max-width:100%;height:64px;background:var(--signature-ink, var(--ink));-webkit-mask:var(--nf4-sig) left center / contain no-repeat;mask:var(--nf4-sig) left center / contain no-repeat}
.cf-nf4-path{list-style:none;padding:0;margin:clamp(48px, 6vw, 72px) auto 0;display:grid;grid-template-columns:repeat(var(--nf4-n), minmax(0,1fr));gap:24px;align-items:start;max-width:calc(var(--nf4-n) * 372px)}
.cf-nf4-stop{margin-top:calc(var(--nf4-rise) * 40px);display:flex;flex-direction:column;gap:12px;animation:nf4-in .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--nf4-i) * .07s + .14s), .28s)}
.cf-nf4-numrow{display:flex;align-items:center;gap:16px}
.cf-nf4-num{font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:clamp(2.5rem, 4.2vw, 3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--accent)}
.cf-nf4-rung{flex:1;height:2px;border-radius:2px;background:oklch(from var(--ink) l c h / .14);transition:background .16s ease}
.cf-nf4-stop.is-climbed .cf-nf4-rung{background:var(--accent-fill, var(--accent))}
.cf-nf4-card{background:var(--card);border:1px solid var(--nf4-line);border-radius:var(--nf4-radius);box-shadow:var(--nf4-card-shadow);padding:clamp(20px, 3vw, 28px);color:var(--ink);transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease}
.cf-nf4-stop.is-on .cf-nf4-card{transform:translateY(-4px);box-shadow:var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32));border-color:oklch(from var(--accent) l c h / .55)}
.cf-nf4-step{margin-bottom:12px;font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.cf-nf4-title{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;text-wrap:balance;color:var(--ink)}
.cf-nf4-line{margin-top:8px;font-size:clamp(1.0625rem, 1.25vw, 1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-nf4-note{margin-top:12px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--ink)}
.cf-nf4-act{margin-top:20px}
.cf-nf4-form{margin-top:20px;display:grid;gap:8px}
.cf-nf4-label{font-size:1rem;font-weight:700;line-height:1.3;color:var(--label-ink, var(--ink))}
.cf-nf4-input{width:100%;min-height:56px;padding:0 16px;font-family:var(--font-body);font-size:17px;line-height:1.3;color:var(--field-ink);background:var(--field);border:1px solid var(--field-border, color-mix(in oklch, var(--ink) 22%, transparent));border-radius:var(--field-radius, var(--radius, 12px));transition:border-color .16s ease, box-shadow .16s ease}
.cf-nf4-input::placeholder{color:color-mix(in oklch, var(--field-ink) 65%, var(--field));opacity:1}
.cf-nf4-input:focus{outline:none;border-color:var(--field-focus, var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus, var(--accent)) l c h / .35)}
.cf-nf4-input[aria-invalid='true']{border-color:var(--danger)}
.cf-nf4-input[aria-invalid='true']:focus{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .3)}
.cf-nf4-input:disabled{background:color-mix(in oklch, var(--ink) 5%, var(--field));cursor:not-allowed}
.cf-nf4-error{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--danger);text-wrap:pretty}
.cf-nf4-inl{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-nf4-form .cf-nf4-btn{margin-top:4px}
.cf-nf4-privacy{margin-top:4px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-align:center;text-wrap:pretty}
.cf-nf4-btn,.cf-nf4-btn2{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;padding:12px 24px;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-decoration:none;text-wrap:balance;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .16s ease, box-shadow .16s ease, background .16s ease}
.cf-nf4-btn{--nf4-b:var(--button-bg, var(--cta));border:0;color:var(--button-ink, var(--cta-ink));text-shadow:var(--button-text-shadow, none);background:linear-gradient(oklch(from var(--nf4-b) calc(l + .04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .02) c h));box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--nf4-b) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--nf4-b) calc(l - .16) c h), 0 1px 2px oklch(from var(--nf4-shadow) l c h / .3), 0 8px 16px -6px oklch(from var(--nf4-shadow) l c h / .45))}
.cf-nf4-btn:hover:not(:disabled),.cf-nf4-btn.is-hover{background:linear-gradient(oklch(from var(--nf4-b) calc(l - .01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--nf4-b) calc(l + .1) c h / .6), inset 0 -3px 0 oklch(from var(--nf4-b) calc(l - .2) c h), 0 1px 2px oklch(from var(--nf4-shadow) l c h / .34), 0 10px 18px -6px oklch(from var(--nf4-shadow) l c h / .52))}
.cf-nf4-btn:active:not(:disabled),.cf-nf4-btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--nf4-b) calc(l - .04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - .08) c h));box-shadow:var(--button-shadow, inset 0 2px 4px oklch(from var(--nf4-b) calc(l - .22) c h / .55), inset 0 -2px 0 oklch(from var(--nf4-b) calc(l - .16) c h), 0 1px 2px oklch(from var(--nf4-shadow) l c h / .3))}
.cf-nf4-btn2{--nf4-b2:var(--button-2-bg, var(--secondary));background:var(--nf4-b2);color:var(--button-2-ink, var(--secondary-ink));border:1px solid var(--button-2-border, transparent);box-shadow:var(--button-2-shadow, var(--shadow-sm, 0 1px 3px oklch(0.22 0.03 260 / 0.16)))}
.cf-nf4-btn2:hover:not(:disabled),.cf-nf4-btn2.is-hover{background:oklch(from var(--nf4-b2) calc(l - .05) c h)}
.cf-nf4-btn2:active:not(:disabled),.cf-nf4-btn2.is-active{transform:translateY(1px);background:oklch(from var(--nf4-b2) calc(l - .08) c h);box-shadow:inset 0 2px 3px oklch(from var(--nf4-shadow) l c h / .22)}
.cf-nf4-btn:focus-visible,.cf-nf4-btn2:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.cf-nf4-btn:disabled:not([aria-busy='true']),.cf-nf4-btn2:disabled{background:color-mix(in oklch, var(--ink) 10%, var(--card));color:var(--muted);text-shadow:none;box-shadow:none;cursor:not-allowed;transform:none}
.cf-nf4-btn[aria-busy='true']{cursor:progress}
.cf-nf4-spin{animation:nf4-spin .8s linear infinite}
.cf-nf4-foot{margin-top:clamp(40px, 5vw, 56px);text-align:center}
.cf-nf4-home{font-size:.9375rem;font-weight:500;color:var(--muted);text-decoration:underline;text-underline-offset:.18em;text-decoration-color:oklch(from var(--muted) l c h / .45);border-radius:4px}
.cf-nf4-home:hover{color:var(--ink);text-decoration-color:currentColor}
.cf-nf4-home:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.cf-nf4-rise{animation:nf4-in .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes nf4-in{from{opacity:.82;transform:translateY(8px)}}
@keyframes nf4-spin{to{transform:rotate(360deg)}}
@media (max-width: 959px){
.cf-nf4-path{grid-template-columns:minmax(0,1fr);max-width:40rem;gap:0}
.cf-nf4-stop{margin-top:0;display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:12px;padding-bottom:24px}
.cf-nf4-stop:last-child{padding-bottom:0}
.cf-nf4-numrow{flex-direction:column;align-items:center;gap:12px;align-self:stretch}
.cf-nf4-num{font-size:2.5rem}
.cf-nf4-rung{flex:1;width:2px;height:auto;min-height:24px}
.cf-nf4-stop:last-child .cf-nf4-rung{display:none}
.cf-nf4-stop.is-on .cf-nf4-card{transform:translateY(-2px)}
}
@media (max-width: 719px){
.cf-nf4-top{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'fig' 'letter';row-gap:24px}
.cf-nf4-fig{display:flex;align-items:flex-end;gap:16px;position:static}
.cf-nf4-card{padding:20px}
.cf-nf4-btn,.cf-nf4-btn2{padding:12px 16px}
.cf-nf4-frame{flex:none;width:132px}
.cf-nf4-cap{margin-top:0;padding-bottom:8px}
.cf-nf4-letter::before{left:56px;top:-10px;border-bottom:0;border-top:1px solid var(--nf4-line)}
}
@media (prefers-reduced-motion: reduce){
.cf-nf4 .cf-nf4-rise,.cf-nf4 .cf-nf4-stop,.cf-nf4 .cf-nf4-tip.is-shown,.cf-nf4 .cf-nf4-spin{animation:none}
.cf-nf4 .cf-nf4-card,.cf-nf4 .cf-nf4-rung,.cf-nf4 .cf-nf4-btn,.cf-nf4 .cf-nf4-btn2,.cf-nf4 .cf-nf4-input{transition:none}
.cf-nf4 .cf-nf4-stop.is-on .cf-nf4-card,.cf-nf4 .cf-nf4-btn:active,.cf-nf4 .cf-nf4-btn.is-active,.cf-nf4 .cf-nf4-btn2:active,.cf-nf4 .cf-nf4-btn2.is-active{transform:none}
}
`;
pieces/content/not-found-4/specimen.tsx 60 lines
import __studioImagee90df48d from "../assets/32d8fb4de88f22e3.webp";
import __studioImageb70c94d1 from "../assets/aea93479104aa99e.webp";
import { NotFound4, type NotFound4State } from '../not-found-4';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled', 'error'];
export default function NotFound4Specimen({ state = 'default' }: { state?: NotFound4State }) {
return (
<NotFound4
state={state}
statusLabel='Error 404 · Page not found'
headline='This page is gone. Your next step isn’t.'
headlineHighlight='Your next step isn’t.'
salutation='Dear friend,'
letter={[
'The page you wanted has moved, or the link was mistyped. It happens to the best of us.',
'You came here to lead your team with more calm and less firefighting. So here’s the same path I walk every new leader through, one step at a time.',
]}
instruction='Start at step 1 below. Pop in your email and the guide is on its way.'
signOff='Talk soon,'
signatureName='Maya'
signatureImage={slot(
'signature',
__studioImagee90df48d,
)}
presenterImage={slot(
'presenter-cutout',
__studioImageb70c94d1,
)}
presenterImageAlt='Maya Okafor, founder and lead coach at Clearwater Leadership'
presenterName='Maya Okafor'
presenterRole='Founder & lead coach, Clearwater Leadership'
guide={{
title: 'Get the free Calm Leader Reset guide',
line: 'Five fixes for the meetings, check-ins and decisions that drain your week.',
note: 'Free · 14-page PDF',
actionLabel: 'Send me the guide',
tip: 'Start here. Ten minutes with the guide shows you which fix your team needs first.',
}}
workshop={{
title: 'Map your next 90 days in the workshop',
line: 'Join me live online and leave with a one-page plan for your team.',
note: 'Free · 90 minutes, live online',
actionLabel: 'Save my seat',
tip: 'Then come to the workshop. We build your one-page team plan together, live.',
}}
call={{
title: 'Talk it through on a clarity call',
line: 'When you want help putting the plan to work, we look at your team together.',
note: '30 minutes · No cost',
actionLabel: 'Book my call',
tip: 'When you’re ready for one-to-one coaching, book a call and we’ll see if it fits.',
}}
privacy={defaults.sample.registration.privacy}
homeHref='#'
/>
);
}
| Name | Type | Details |
|---|---|---|
statusLabel OptionalNotFound4 |
string |
|
headline OptionalNotFound4 |
string |
|
headlineHighlight OptionalNotFound4 |
string |
|
salutation OptionalNotFound4 |
string |
|
letter OptionalNotFound4 |
string[] |
|
instruction OptionalNotFound4 |
string |
|
emptyInstruction OptionalNotFound4 |
string |
|
signOff OptionalNotFound4 |
string |
|
signatureName OptionalNotFound4 |
string |
|
signatureImage OptionalNotFound4 |
string |
|
presenterImage OptionalNotFound4 |
string |
|
presenterImageAlt OptionalNotFound4 |
string |
|
presenterName OptionalNotFound4 |
string |
|
presenterRole OptionalNotFound4 |
string |
|
guide OptionalNotFound4 |
NotFound4Offer |
|
workshop OptionalNotFound4 |
NotFound4Offer |
|
call OptionalNotFound4 |
NotFound4Offer |
|
stepLabels OptionalNotFound4 |
string[] |
|
actionLabels OptionalNotFound4 |
Partial<Record<NotFound4Stop, string>> |
|
pathLabel OptionalNotFound4 |
string |
|
emailLabel OptionalNotFound4 |
string |
|
emailPlaceholder OptionalNotFound4 |
string |
|
busyLabel OptionalNotFound4 |
string |
|
privacy OptionalNotFound4 |
string |
|
emptyEmailError OptionalNotFound4 |
string |
|
invalidEmailError OptionalNotFound4 |
string |
|
stateEmail OptionalNotFound4 |
string |
|
homeLabel OptionalNotFound4 |
string |
|
homeHref OptionalNotFound4 |
string |
|
onSubmit OptionalNotFound4 |
(values: { email: string }) => void | Promise<unknown> |
|
onAction OptionalNotFound4 |
(stop: NotFound4Stop, event: React.MouseEvent<HTMLElement>) => void |
|
state OptionalNotFound4 |
NotFound4State |
|
className OptionalNotFound4 |
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-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter-cutout- The presenter on a transparent background.
signature- The founder’s handwritten signature.
-
32d8fb4de88f22e3.webp
image/webp · 53.3 KB
-
aea93479104aa99e.webp
image/webp · 60.9 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB