Not Found 1
Not-found block that still converts: a dark half that helps the lost visitor find their page (live page finder plus popular links),
Use it in a prompt
Use content/not-found 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.tsx. - Import it and pass your copy and images (Props tab):
import { NotFound } from "@/components/funneldna/content/not-found"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/not-found/component.tsx 520 lines
// layout: split-contrast
// Not-found block that still converts: a dark half that helps the lost visitor find their page (live page finder plus popular links),
// beside a light half that reveals the kit's value and sends them to the one primary action.
import * as React from "react";
import { Lock, MapPinOff, Search, ShieldCheck, TriangleAlert } from "lucide-react";
export type NotFoundPage = {
label: string;
href: string;
/** One short line under the label. */
detail?: string;
/** Extra words the finder matches on (never shown). */
keywords?: string;
};
export type NotFoundItem = {
name: string;
detail?: string;
value?: string;
/** Slot item-n: product photo thumbnail. */
image?: string;
imageAlt?: string;
};
export type NotFoundState = "default" | "hover" | "active" | "disabled" | "error";
export type NotFoundProps = {
statusLabel?: string;
headline?: string;
lead?: string;
searchLabel?: string;
searchPlaceholder?: string;
searchButtonLabel?: string;
/** Inline error when the search is submitted empty. */
emptySearchError?: string;
popularHeading?: string;
/** Template: "{count}" and "{query}" are replaced. */
matchesHeading?: string;
/** Template: "{query}" is replaced. */
oneMatchHeading?: string;
/** Template: "{query}" is replaced. */
noMatches?: string;
pages?: NotFoundPage[];
/** Word on the disc that sits on the seam between the two choices. */
orLabel?: string;
offerHeadline?: string;
/** Phrase inside offerHeadline that gets the marker stroke. */
offerHighlight?: string;
/** One sentence per line; a single-word line becomes the emphasis line. */
punchLines?: string[];
/** Slot product: transparent cut-out of the offer. */
productImage?: string;
productImageAlt?: string;
items?: NotFoundItem[];
valueLabel?: string;
/** Total value, shown first and struck through. Hidden when empty. */
totalValue?: string;
butLine?: string;
todayLabel?: string;
/** Today's price. The whole value reveal is hidden when empty. */
price?: string;
priceNote?: string;
actionLabel?: string;
actionNote?: string;
guarantee?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
/** Called with the trimmed query when the finder is submitted. */
onSearch?: (query: string) => void;
state?: NotFoundState;
className?: string;
};
const DEFAULT_PAGES: NotFoundPage[] = [
{ label: "Home", href: "/", detail: "Start from the top and see what's new", keywords: "start main" },
{ label: "Free training", href: "/training", detail: "Watch the free on-demand workshop", keywords: "workshop webinar video free" },
{ label: "Shop", href: "/shop", detail: "Guides, kits and courses", keywords: "buy products pricing kit" },
{ label: "Help & contact", href: "/contact", detail: "Order questions, access and refunds", keywords: "support email refund login" },
];
const DEFAULT_PUNCH = [
"This link went nowhere.",
"The kit below maps your funnel, drafts your page copy and checks every step before you launch.",
"Done.",
];
export function NotFound(props: NotFoundProps) {
const {
statusLabel = "404 · Page not found",
headline = "Oops. This page took a wrong turn.",
lead = "The link may be old or mistyped. Search for what you came for, or jump to a page people open most.",
searchLabel = "Search this site",
searchPlaceholder = "Try “training”",
searchButtonLabel = "Search",
emptySearchError = "Type a word to search, like “training”.",
popularHeading = "Or jump straight to a popular page",
matchesHeading = "{count} pages match “{query}”",
oneMatchHeading = "1 page matches “{query}”",
noMatches = "No page matches “{query}”. Press Search to look across the whole site.",
pages = DEFAULT_PAGES,
orLabel = "or",
offerHeadline = "While you're here, get the plan for your first funnel",
offerHighlight = "the plan for your first funnel",
punchLines = DEFAULT_PUNCH,
productImage,
productImageAlt = "",
items = [],
valueLabel = "Everything inside is worth",
totalValue,
butLine = "But you won't pay that.",
todayLabel = "Your price today",
price,
priceNote,
actionLabel = "Send me the kit",
actionNote = "Secure checkout · Instant download",
guarantee,
href,
onAction,
onSearch,
state = "default",
className,
} = props;
const uid = React.useId();
const headingId = `${uid}-h`;
const offerId = `${uid}-o`;
const inputId = `${uid}-q`;
const errorId = `${uid}-e`;
const statusId = `${uid}-s`;
const inputRef = React.useRef<HTMLInputElement>(null);
const listRef = React.useRef<HTMLUListElement>(null);
const [query, setQuery] = React.useState("");
const [emptyError, setEmptyError] = React.useState(false);
const disabled = state === "disabled";
const showError = state === "error" || emptyError;
const q = query.trim();
const shown = q ? pages.filter((page) => pageMatches(page, q)) : pages;
const status = !q
? popularHeading
: shown.length === 0
? fill(noMatches, 0, q)
: shown.length === 1
? fill(oneMatchHeading, 1, q)
: fill(matchesHeading, shown.length, q);
const hasKit = Boolean(productImage) || items.length > 0;
const ctaClass = ["cf-nf-cta", state === "hover" && "is-hover", state === "active" && "is-active"].filter(Boolean).join(" ");
const links = () => Array.from(listRef.current?.querySelectorAll<HTMLAnchorElement>("a") ?? []);
const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
if (disabled) return;
if (!q) {
setEmptyError(true);
inputRef.current?.focus();
return;
}
setEmptyError(false);
onSearch?.(q);
};
const handleInputKey = (event: React.KeyboardEvent<HTMLInputElement>) => {
if (event.key === "ArrowDown") {
const first = links()[0];
if (first) {
event.preventDefault();
first.focus();
}
} else if (event.key === "Escape" && query) {
event.preventDefault();
setQuery("");
}
};
const handleListKey = (event: React.KeyboardEvent<HTMLUListElement>) => {
if (event.key !== "ArrowDown" && event.key !== "ArrowUp") return;
const all = links();
const index = all.indexOf(document.activeElement as HTMLAnchorElement);
if (index < 0) return;
event.preventDefault();
if (event.key === "ArrowDown") all[Math.min(index + 1, all.length - 1)].focus();
else if (index === 0) inputRef.current?.focus();
else all[index - 1].focus();
};
const handleAction = (event: React.MouseEvent<HTMLElement>) => {
if (disabled) {
event.preventDefault();
return;
}
onAction?.(event);
};
return (
<section className={["cf-not-found", className].filter(Boolean).join(" ")} aria-labelledby={headingId}>
<style>{STYLES}</style>
<div className="cf-nf-find">
<div className="cf-nf-inner">
<p className="cf-nf-chip cf-nf-rise">
<MapPinOff size={16} strokeWidth={2.5} aria-hidden="true" />
{statusLabel}
</p>
<h1 id={headingId} className="cf-nf-h1 cf-nf-rise cf-nf-d1">
{headline}
</h1>
<p className="cf-nf-lead cf-nf-rise cf-nf-d2">{lead}</p>
<form className="cf-nf-form cf-nf-rise cf-nf-d3" role="search" onSubmit={handleSubmit} noValidate>
<label htmlFor={inputId} className="cf-nf-label">
{searchLabel}
</label>
<div className="cf-nf-row">
<div className="cf-nf-field">
<Search className="cf-nf-field-icon" size={20} strokeWidth={2.5} aria-hidden="true" />
<input
ref={inputRef}
id={inputId}
className="cf-nf-input"
type="search"
name="q"
autoComplete="off"
placeholder={searchPlaceholder}
value={query}
disabled={disabled}
aria-invalid={showError}
aria-describedby={showError ? errorId : undefined}
aria-controls={statusId}
onChange={(event) => {
setQuery(event.target.value);
if (emptyError) setEmptyError(false);
}}
onKeyDown={handleInputKey}
/>
</div>
<button type="submit" className="cf-nf-search" disabled={disabled}>
{searchButtonLabel}
</button>
</div>
{showError ? (
<p id={errorId} className="cf-nf-error">
<TriangleAlert className="cf-nf-inline-icon" size={16} strokeWidth={2.5} aria-hidden="true" />
{emptySearchError}
</p>
) : null}
</form>
<p
id={statusId}
className={q && shown.length === 0 ? "cf-nf-status is-empty" : "cf-nf-status"}
role="status"
aria-live="polite"
>
{status}
</p>
{shown.length > 0 ? (
<ul ref={listRef} className="cf-nf-pages" aria-labelledby={statusId} onKeyDown={handleListKey}>
{shown.map((page) => (
<li key={`${page.href}-${page.label}`}>
<a className="cf-nf-page" href={page.href}>
<span className="cf-nf-page-label">
<Match text={page.label} query={q} />
</span>
{page.detail ? (
<span className="cf-nf-page-detail">
<Match text={page.detail} query={q} />
</span>
) : null}
<span className="cf-nf-page-path">
<Match text={page.href} query={q} />
</span>
</a>
</li>
))}
</ul>
) : null}
</div>
</div>
<div className="cf-nf-offer" role="region" aria-labelledby={offerId}>
<span className="cf-nf-or" aria-hidden="true">
{orLabel}
</span>
<div className="cf-nf-inner">
<h2 id={offerId} className="cf-nf-h2 cf-nf-rise">
<Marked text={offerHeadline} phrase={offerHighlight} />
</h2>
{punchLines.length > 0 ? (
<div className="cf-nf-punch cf-nf-rise cf-nf-d1">
{punchLines.map((line, index) => (
<p key={index} className={line.trim().includes(" ") ? undefined : "is-word"}>
{line}
</p>
))}
</div>
) : null}
{hasKit ? (
<div className={productImage && items.length > 0 ? "cf-nf-kit has-both cf-nf-rise cf-nf-d2" : "cf-nf-kit cf-nf-rise cf-nf-d2"}>
{productImage ? (
<img className="cf-nf-product" src={productImage} alt={productImageAlt} width={400} height={400} />
) : null}
{items.length > 0 ? (
<ul className="cf-nf-items">
{items.map((item, index) => (
<li key={`${item.name}-${index}`}>
{item.image ? (
<img className="cf-nf-thumb" src={item.image} alt={item.imageAlt ?? ""} width={48} height={48} loading="lazy" />
) : null}
<span className="cf-nf-item-copy">
<span className="cf-nf-item-name">{item.name}</span>
{item.detail ? <span className="cf-nf-item-detail">{item.detail}</span> : null}
</span>
{item.value ? <span className="cf-nf-item-value">{item.value}</span> : null}
</li>
))}
</ul>
) : null}
</div>
) : null}
{price ? (
<div className="cf-nf-reveal">
{totalValue ? (
<>
<p className="cf-nf-worth">
<span className="cf-nf-worth-label">{valueLabel}</span>
<span className="cf-nf-worth-num">{totalValue}</span>
</p>
<p className="cf-nf-but cf-nf-rise cf-nf-d3">{butLine}</p>
</>
) : null}
<div className="cf-nf-today cf-nf-rise cf-nf-d4">
<p className="cf-nf-today-copy">
<span className="cf-nf-today-label">{todayLabel}</span>
{priceNote ? <span className="cf-nf-today-note">{priceNote}</span> : null}
</p>
<p className="cf-nf-price">{price}</p>
</div>
</div>
) : null}
{href && !disabled ? (
<a className={ctaClass} href={href} onClick={handleAction}>
{actionLabel}
</a>
) : (
<button type="button" className={ctaClass} disabled={disabled} onClick={handleAction}>
{actionLabel}
</button>
)}
{actionNote || guarantee ? (
<p className="cf-nf-assure">
{actionNote ? (
<span className="cf-nf-assure-item">
<Lock className="cf-nf-inline-icon" size={16} strokeWidth={2.5} aria-hidden="true" />
{actionNote}
</span>
) : null}
{guarantee ? (
<span className="cf-nf-assure-item">
<ShieldCheck className="cf-nf-inline-icon is-good" size={16} strokeWidth={2.5} aria-hidden="true" />
{guarantee}
</span>
) : null}
</p>
) : null}
</div>
</div>
</section>
);
}
export default NotFound;
function pageMatches(page: NotFoundPage, query: string) {
const haystack = [page.label, page.detail, page.keywords, page.href].filter(Boolean).join(" ").toLowerCase();
return haystack.includes(query.toLowerCase());
}
function fill(template: string, count: number, query: string) {
return template.split("{count}").join(String(count)).split("{query}").join(query);
}
function Match({ text, query }: { text: string; query: string }) {
if (!query) return <>{text}</>;
const index = text.toLowerCase().indexOf(query.toLowerCase());
if (index < 0) return <>{text}</>;
return (
<>
{text.slice(0, index)}
<mark>{text.slice(index, index + query.length)}</mark>
{text.slice(index + query.length)}
</>
);
}
function Marked({ text, phrase }: { text: string; phrase?: string }) {
const index = phrase ? text.indexOf(phrase) : -1;
if (!phrase || index < 0) return <>{text}</>;
return (
<>
{text.slice(0, index)}
<span className="cf-nf-mark">{phrase}</span>
{text.slice(index + phrase.length)}
</>
);
}
const STYLES = `
.cf-not-found{--nf-gutter:clamp(16px,5vw,48px);--nf-top:clamp(56px,8vw,112px);--nf-bottom:clamp(64px,8.5vw,120px);--nf-seam:clamp(32px,4.5vw,72px);--nf-shadow:var(--shadow,oklch(0.22 0.03 260));--nf-cta:var(--button-bg,var(--cta,#d92d20));--nf-cta-2:var(--button-bg-2,var(--cta-2,#b42318));position:relative;display:grid;grid-template-columns:minmax(0,1fr);background:var(--surface,#ffffff);color:var(--ink,#101828);font-family:var(--font-body);overflow-x:clip}
.cf-not-found *,.cf-not-found *::before,.cf-not-found *::after{box-sizing:border-box}
.cf-not-found :where(h1,h2,h3,p,ul,li){margin:0;padding:0}
.cf-not-found :where(ul){list-style:none}
.cf-not-found img{display:block;max-width:100%}
.cf-nf-find{position:relative;background:var(--band,#1d2b4f);color:var(--band-ink,#ffffff);padding:var(--nf-top) var(--nf-gutter) clamp(56px,8vw,80px)}
.cf-nf-offer{position:relative;background:var(--surface,#ffffff);color:var(--ink,#101828);padding:clamp(64px,9vw,88px) var(--nf-gutter) var(--nf-bottom)}
.cf-nf-inner{width:100%;max-width:560px;margin-inline:auto}
.cf-nf-offer .cf-nf-inner{container-type:inline-size}
@media (min-width:960px){
.cf-not-found{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.cf-nf-find{padding:var(--nf-top) var(--nf-seam) var(--nf-bottom) var(--nf-gutter)}
.cf-nf-find .cf-nf-inner{margin-inline:auto 0}
.cf-nf-offer{padding:var(--nf-top) var(--nf-gutter) var(--nf-bottom) var(--nf-seam)}
.cf-nf-offer .cf-nf-inner{margin-inline:0 auto}
}
.cf-nf-chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;margin-bottom:16px;padding:4px 12px;border-radius:999px;background:oklch(from var(--band-ink,#ffffff) l c h / 0.12);color:var(--band-ink,#ffffff);font-size:.875rem;font-weight:800;line-height:1.2}
.cf-nf-h1{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,4.8vw,4.5rem);line-height:1.04;text-wrap:balance;margin-bottom:20px}
.cf-nf-lead{font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;max-width:54ch;text-wrap:pretty}
.cf-nf-form{margin-top:32px}
.cf-nf-label{display:block;margin-bottom:8px;font-size:1rem;font-weight:700;line-height:1.3}
.cf-nf-row{display:flex;gap:8px}
.cf-nf-field{position:relative;flex:1 1 auto;min-width:0}
.cf-nf-field-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:color-mix(in oklch,var(--field-ink,#101828) 65%,var(--field,#ffffff));pointer-events:none}
.cf-nf-input{-webkit-appearance:none;appearance:none;display:block;width:100%;height:56px;padding:0 16px 0 48px;border:1px solid var(--field-border,color-mix(in oklch,var(--ink,#101828) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));background:var(--field,#ffffff);color:var(--field-ink,#101828);font-family:var(--font-body);font-size:1.0625rem;font-weight:500;outline:none;transition:border-color .16s ease,box-shadow .16s ease}
.cf-nf-input::placeholder{color:color-mix(in oklch,var(--field-ink,#101828) 65%,var(--field,#ffffff));opacity:1}
.cf-nf-input::-webkit-search-decoration{-webkit-appearance:none}
.cf-nf-input:hover:not(:disabled){border-color:color-mix(in oklch,var(--field-ink,#101828) 42%,var(--field,#ffffff))}
.cf-nf-input:focus-visible{border-color:var(--field-focus,var(--accent,#2563eb));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent,#2563eb)) l c h / 0.45);outline:2px solid var(--band-ink,#ffffff);outline-offset:3px}
.cf-nf-input[aria-invalid="true"]{border-color:var(--danger,#c0362c);box-shadow:0 0 0 3px oklch(from var(--danger,#c0362c) l c h / 0.35)}
.cf-nf-input:disabled{background:var(--secondary,#e9edf3);color:var(--secondary-ink,#101828);cursor:not-allowed}
.cf-nf-search{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 22px;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--radius,12px));background:var(--button-2-bg,var(--secondary,#e9edf3));color:var(--button-2-ink,var(--secondary-ink,#101828));box-shadow:var(--button-2-shadow,var(--shadow-sm));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:1.0625rem;line-height:1.15;cursor:pointer;transition:transform .16s ease,background .16s ease}
.cf-nf-search:hover:not(:disabled){background:oklch(from var(--button-2-bg,var(--secondary,#e9edf3)) calc(l - 0.05) c h)}
.cf-nf-search:active:not(:disabled){transform:translateY(1px);background:oklch(from var(--button-2-bg,var(--secondary,#e9edf3)) calc(l - 0.08) c h)}
.cf-nf-search:focus-visible{outline:2px solid var(--band-ink,#ffffff);outline-offset:3px}
.cf-nf-search:disabled{cursor:not-allowed;opacity:.65}
@media (max-width:479px){.cf-nf-search{padding:0 18px}.cf-nf-input{padding-right:12px}}
.cf-nf-error{display:inline-block;max-width:100%;margin-top:12px;padding:8px 12px;border-radius:10px;background:var(--danger-soft,#fbe9e7);color:var(--danger,#c0362c);font-size:.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-nf-inline-icon{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-nf-status{margin-top:40px;margin-bottom:12px;font-size:1.0625rem;font-weight:700;line-height:1.35;text-wrap:pretty}
.cf-nf-status.is-empty{margin-bottom:0;padding:16px;border-radius:10px;background:oklch(from var(--band-ink,#ffffff) l c h / 0.1);font-weight:500}
.cf-nf-pages{margin-inline:-12px}
.cf-nf-pages li{animation:cf-nf-rise .3s cubic-bezier(.2,.7,.2,1) both}
.cf-nf-pages li+li{border-top:1px solid oklch(from var(--band-ink,#ffffff) l c h / 0.16)}
.cf-nf-page{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:4px;align-items:start;padding:14px 12px;border-radius:10px;color:var(--band-ink,#ffffff);text-decoration:none;transition:background .16s ease}
.cf-nf-page-label{grid-column:1;font-family:var(--font-display);font-size:1.125rem;font-weight:800;line-height:1.3;letter-spacing:-0.01em;text-underline-offset:.18em}
.cf-nf-page-detail{grid-column:1;font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-nf-page-path{grid-column:2;grid-row:1 / span 2;align-self:start;padding:4px 12px;border-radius:999px;background:oklch(from var(--band-ink,#ffffff) l c h / 0.12);font-size:.875rem;font-weight:700;line-height:1.3;white-space:nowrap}
.cf-nf-page:hover{background:oklch(from var(--band-ink,#ffffff) l c h / 0.08)}
.cf-nf-page:active{background:oklch(from var(--band-ink,#ffffff) l c h / 0.14)}
.cf-nf-page:hover .cf-nf-page-label,.cf-nf-page:focus-visible .cf-nf-page-label{text-decoration:underline;text-decoration-thickness:2px}
.cf-nf-page:focus-visible{outline:3px solid var(--band-ink,#ffffff);outline-offset:-3px}
.cf-nf-page mark{background:none;color:inherit;font-weight:800;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.16em}
.cf-nf-or{position:absolute;z-index:1;left:50%;top:0;transform:translate(-50%,-50%);display:grid;place-items:center;width:56px;height:56px;border-radius:999px;background:var(--card,#ffffff);color:var(--ink,#101828);border:1px solid var(--card-border,oklch(from var(--ink,#101828) l c h / 0.12));box-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));font-family:var(--font-display);font-size:.875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;line-height:1}
@media (min-width:960px){.cf-nf-or{left:0;top:calc(var(--nf-top) + 2px);transform:translateX(-50%)}}
.cf-nf-h2{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(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;margin-bottom:20px}
.cf-nf-mark{--nf-marker:color-mix(in oklab,var(--marker,#fae37c) 55%,var(--surface,#ffffff));background-image:linear-gradient(transparent 60%,var(--nf-marker) 60%,var(--nf-marker) 93%,transparent 93%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-inline:.08em;margin-inline:-.08em}
.cf-nf-punch{display:grid;gap:8px}
.cf-nf-punch p{max-width:54ch;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-nf-punch p.is-word{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}
.cf-nf-kit{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start;margin-top:32px}
.cf-nf-product{justify-self:center;width:100%;max-width:240px;height:auto;aspect-ratio:1 / 1;object-fit:contain;filter:drop-shadow(0 2px 3px oklch(from var(--nf-shadow) l c h / 0.3)) drop-shadow(0 14px 18px oklch(from var(--nf-shadow) l c h / 0.2))}
@container (min-width:500px){.cf-nf-kit.has-both{grid-template-columns:180px minmax(0,1fr)}.cf-nf-kit.has-both .cf-nf-product{justify-self:start;max-width:none}}
.cf-nf-items li{display:flex;align-items:flex-start;gap:12px;padding:12px 0}
.cf-nf-items li:first-child{padding-top:0}
.cf-nf-items li+li{border-top:1px solid oklch(from var(--ink,#101828) l c h / 0.12)}
.cf-nf-thumb{flex:none;width:48px;height:48px;border-radius:8px;object-fit:cover}
.cf-nf-item-copy{flex:1 1 auto;min-width:0}
.cf-nf-item-name{display:block;font-size:1.0625rem;font-weight:700;line-height:1.3}
.cf-nf-item-detail{display:block;margin-top:2px;color:var(--muted,#475467);font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-nf-item-value{flex:none;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink,#101828) 6%,var(--surface,#ffffff));color:var(--ink,#101828);font-size:.875rem;font-weight:800;line-height:1.3;font-variant-numeric:tabular-nums}
.cf-nf-reveal{margin-top:32px;padding:clamp(20px,3vw,28px);border-radius:var(--card-radius,var(--radius,14px));background:color-mix(in oklch,var(--ink,#101828) 4%,var(--surface,#ffffff))}
.cf-nf-worth{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px}
.cf-nf-worth-label{font-size:1.0625rem;font-weight:700;line-height:1.3}
.cf-nf-worth-num{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:800;line-height:1;letter-spacing:-0.02em;font-variant-numeric:tabular-nums;color:var(--muted,#475467);text-decoration:line-through;text-decoration-color:var(--danger,#c0362c);text-decoration-thickness:.09em}
.cf-nf-but{margin-top:12px;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.35;text-wrap:pretty}
.cf-nf-today{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 16px;margin-top:24px}
.cf-nf-today-copy{display:grid;gap:4px}
.cf-nf-today-label{font-size:1.0625rem;font-weight:800;line-height:1.3}
.cf-nf-today-note{font-size:.9375rem;font-weight:500;line-height:1.4}
.cf-nf-price{font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);font-weight:800;line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
.cf-nf-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:72px;margin-top:32px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--nf-cta) calc(l + 0.04) c h),oklch(from var(--nf-cta-2) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink,#ffffff));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-transform:var(--button-case,none);text-decoration:none;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--nf-cta) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--nf-cta) calc(l - 0.16) c h),0 1px 2px oklch(from var(--nf-shadow) l c h / 0.3),0 8px 16px -6px oklch(from var(--nf-shadow) l c h / 0.42));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-nf-cta:hover:not(:disabled),.cf-nf-cta.is-hover{background:linear-gradient(oklch(from var(--nf-cta) calc(l - 0.01) c h),oklch(from var(--nf-cta-2) calc(l - 0.07) c h));box-shadow:inset 0 1px 0 oklch(from var(--nf-cta) calc(l + 0.1) c h / 0.6),inset 0 -3px 0 oklch(from var(--nf-cta) calc(l - 0.2) c h),0 1px 2px oklch(from var(--nf-shadow) l c h / 0.32),0 10px 18px -6px oklch(from var(--nf-shadow) l c h / 0.5)}
.cf-nf-cta:active:not(:disabled),.cf-nf-cta.is-active{transform:translateY(2px);background:oklch(from var(--nf-cta) calc(l - 0.08) c h);box-shadow:inset 0 2px 4px oklch(from var(--nf-cta) calc(l - 0.24) c h / 0.55),inset 0 -2px 0 oklch(from var(--nf-cta) calc(l - 0.2) c h),0 1px 1px oklch(from var(--nf-shadow) l c h / 0.3)}
.cf-nf-cta:focus-visible{outline:3px solid var(--ink,#101828);outline-offset:3px}
.cf-nf-cta:disabled{cursor:not-allowed;background:var(--secondary,#e9edf3);color:var(--secondary-ink,#101828);text-shadow:none;box-shadow:var(--shadow-sm,0 1px 2px oklch(0.22 0.03 260 / 0.2))}
.cf-nf-assure{margin-top:12px;text-align:center;color:var(--muted,#475467);font-size:.9375rem;font-weight:600;line-height:1.5;text-wrap:pretty}
.cf-nf-assure-item{display:inline-block;margin-inline:8px}
.cf-nf-assure .is-good{color:var(--success,#15803d)}
@keyframes cf-nf-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
.cf-nf-rise{animation:cf-nf-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-nf-d1{animation-delay:.07s}
.cf-nf-d2{animation-delay:.14s}
.cf-nf-d3{animation-delay:.21s}
.cf-nf-d4{animation-delay:.28s}
@media (prefers-reduced-motion:reduce){.cf-not-found *,.cf-not-found *::before,.cf-not-found *::after{animation:none !important;transition:none !important}}
`;
pieces/content/not-found/specimen.tsx 53 lines
import __studioImage2a9abfbf from "../assets/3c8333953b165987.webp";
import { NotFound } from "../not-found";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
const sample = defaults.sample;
export const states = ["default", "hover", "active", "disabled", "error"] as const;
type SpecimenState = (typeof states)[number];
export default function NotFoundSpecimen({ state = "default" }: { state?: SpecimenState }) {
return (
<NotFound
state={state}
searchPlaceholder="Try “workshop”"
emptySearchError="Type a word to search, like “workshop”."
pages={[
{
label: sample.registration.name,
href: "/workshop",
detail: sample.registration.sublabel,
keywords: "webinar training video free",
},
{
label: sample.name,
href: "/kit",
detail: "Guide, workbook and checklist in one download",
keywords: "buy price guide workbook checklist",
},
{ label: "Home", href: "/", detail: "Start from the top and see what's new", keywords: "start main" },
{ label: "Help & contact", href: "/contact", detail: "Order questions, downloads and refunds", keywords: "support email refund access" },
]}
productImage={slot(
"product",
__studioImage2a9abfbf
)}
productImageAlt={`${sample.name}: planning guide, copy workbook and launch checklist`}
items={sample.items.map((item, index) => ({
name: item.name,
detail: item.detail,
value: item.value,
image: slot(`item-${index + 1}`, item.image),
imageAlt: item.imageAlt,
}))}
totalValue={sample.regularPrice}
price={sample.price}
priceNote={sample.note}
actionNote={sample.sublabel}
guarantee={sample.guarantee}
/>
);
}
| Name | Type | Details |
|---|---|---|
statusLabel OptionalNotFound |
string |
|
headline OptionalNotFound |
string |
|
lead OptionalNotFound |
string |
|
searchLabel OptionalNotFound |
string |
|
searchPlaceholder OptionalNotFound |
string |
|
searchButtonLabel OptionalNotFound |
string |
|
emptySearchError OptionalNotFound |
string |
|
popularHeading OptionalNotFound |
string |
|
matchesHeading OptionalNotFound |
string |
|
oneMatchHeading OptionalNotFound |
string |
|
noMatches OptionalNotFound |
string |
|
pages OptionalNotFound |
NotFoundPage[] |
|
orLabel OptionalNotFound |
string |
|
offerHeadline OptionalNotFound |
string |
|
offerHighlight OptionalNotFound |
string |
|
punchLines OptionalNotFound |
string[] |
|
productImage OptionalNotFound |
string |
|
productImageAlt OptionalNotFound |
string |
|
items OptionalNotFound |
NotFoundItem[] |
|
valueLabel OptionalNotFound |
string |
|
totalValue OptionalNotFound |
string |
|
butLine OptionalNotFound |
string |
|
todayLabel OptionalNotFound |
string |
|
price OptionalNotFound |
string |
|
priceNote OptionalNotFound |
string |
|
actionLabel OptionalNotFound |
string |
|
actionNote OptionalNotFound |
string |
|
guarantee OptionalNotFound |
string |
|
href OptionalNotFound |
string |
|
onAction OptionalNotFound |
(event: React.MouseEvent<HTMLElement>) => void |
|
onSearch OptionalNotFound |
(query: string) => void |
|
state OptionalNotFound |
NotFoundState |
|
className OptionalNotFound |
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- 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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
product- The main product shot or cover (ebook, kit, bottle).
-
3c8333953b165987.webp
image/webp · 155 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB