Not Found 3
404 block that still sells: a full-bleed trail photo with a card breaking its lower edge says the trail is closed,
Use it in a prompt
Use content/not-found-3 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-3.tsx. - Import it and pass your copy and images (Props tab):
import { NotFound3 } from "@/components/funneldna/content/not-found-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/not-found-3/component.tsx 430 lines
// layout: path-to-action
// 404 block that still sells: a full-bleed trail photo with a card breaking its lower edge says the trail is closed,
// then lights a trail through the store's best-sellers to Add to cart, with a quiet link home.
import * as React from "react";
import { House, MapPinOff, Search, ShoppingBag, TriangleAlert } from "lucide-react";
import { Backdrop, FX_HOST } from "../fx/fx";
import nature from "../fx/backdrops/nature";
export type NotFound3Product = {
name: string;
price: string;
/** One line under the price, e.g. a per-day breakdown. */
priceNote?: string;
/** One short line under the name. */
detail?: string;
/** Slot item-n: transparent product cut-out. */
image?: string;
imageAlt?: string;
/** Optional destination; the button becomes a link. */
href?: string;
/** Shows the sold-out label and disables the button. */
soldOut?: boolean;
};
export type NotFound3State = "default" | "hover" | "active" | "disabled" | "error";
export type NotFound3Props = {
/** Chip on the photo. Hidden when empty. */
statusLabel?: string;
headline?: string;
/** Phrase inside headline that gets the marker stroke. */
headlineHighlight?: string;
/** Letter opening, e.g. "Hey there, fellow hiker,". */
salutation?: string;
/** Letter paragraphs shown with products. */
letter?: string[];
/** Plain instruction that ends the letter, right above the products. */
instruction?: string;
/** Letter paragraphs for the no-products variant. */
emptyLetter?: string[];
emptyInstruction?: string;
/** Owner's sign-off. Hidden when empty. */
signOff?: string;
/** Best-sellers; an empty list shows the search and home link only. */
products?: NotFound3Product[];
/** Accessible name of the product trail. */
productsLabel?: string;
addLabel?: string;
/** Template: "{name}" is replaced. */
addAriaLabel?: string;
soldOutLabel?: string;
/** Template: "{name}" is replaced. */
soldOutAriaLabel?: string;
searchLabel?: string;
searchPlaceholder?: string;
searchButtonLabel?: string;
/** Inline error when the search is submitted empty. */
emptySearchError?: string;
homeLabel?: string;
homeHref?: string;
/** fx backdrop asset behind the top strip; the page's scene image replaces it. */
backdrop?: string;
/** Add-to-cart click for one product. */
onAction?: (product: NotFound3Product, index: number, event: React.MouseEvent<HTMLElement>) => void;
/** Called with the trimmed query when the search is submitted. */
onSearch?: (query: string) => void;
state?: NotFound3State;
className?: string;
};
const DEFAULT_LETTER = [
"The page you were looking for has moved or been retired.",
"Before you turn back, here's the gear most of our customers pack first.",
];
const DEFAULT_EMPTY_LETTER = [
"The page you were looking for has moved or been retired.",
"Tell us what you're after and we'll point you straight to it.",
];
export function NotFound3(props: NotFound3Props) {
const {
statusLabel = "404 · Page not found",
headline = "That trail's closed.",
headlineHighlight = "closed",
salutation = "Hey there, fellow hiker,",
letter = DEFAULT_LETTER,
instruction = "Pick one below and tap Add to cart.",
emptyLetter = DEFAULT_EMPTY_LETTER,
emptyInstruction = "Type it in the box below and press Search.",
signOff,
products = [],
productsLabel = "Our best-sellers",
addLabel = "Add to cart",
addAriaLabel = "Add {name} to cart",
soldOutLabel = "Sold out",
soldOutAriaLabel = "{name} is sold out",
searchLabel = "Search the store",
searchPlaceholder = "Try “rain jacket”",
searchButtonLabel = "Search",
emptySearchError = "Type what you're looking for, like “rain jacket”.",
homeLabel = "Or head home",
homeHref = "/",
backdrop = nature,
onAction,
onSearch,
state = "default",
className,
} = props;
const uid = React.useId();
const headingId = `${uid}-h`;
const inputId = `${uid}-q`;
const errorId = `${uid}-e`;
const inputRef = React.useRef<HTMLInputElement>(null);
const [hovered, setHovered] = React.useState<number | null>(null);
const [query, setQuery] = React.useState("");
const [emptyError, setEmptyError] = React.useState(false);
const hasProducts = products.length > 0;
const disabled = state === "disabled";
const forced = hasProducts && (state === "hover" || state === "active") ? Math.min(1, products.length - 1) : null;
const reach = hovered ?? forced ?? 0;
const showError = !hasProducts && (state === "error" || emptyError);
const lines = hasProducts ? letter : emptyLetter;
const closing = hasProducts ? instruction : emptyInstruction;
const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
if (disabled) return;
const q = query.trim();
if (!q) {
setEmptyError(true);
inputRef.current?.focus();
return;
}
setEmptyError(false);
onSearch?.(q);
};
return (
<section className={cx("cf-nf3", className)} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className="cf-nf3-photo" style={FX_HOST}>
<Backdrop src={backdrop} treatment="duotone" suppliedTreatment="natural" position="center 60%" />
<div className="cf-nf3-fade" aria-hidden="true" />
{statusLabel ? (
<div className="cf-nf3-wrap cf-nf3-photo-inner">
<p className="cf-nf3-chip">
<MapPinOff size={16} strokeWidth={2.5} aria-hidden="true" />
{statusLabel}
</p>
</div>
) : null}
</div>
<div className="cf-nf3-wrap">
<div className="cf-nf3-card">
<div className="cf-nf3-head">
<h1 id={headingId} className="cf-nf3-h">
{marked(headline, headlineHighlight)}
</h1>
<div className="cf-nf3-letter">
{salutation ? <p className="cf-nf3-salute">{salutation}</p> : null}
{lines.map((line, i) => (
<p key={i}>{line}</p>
))}
{closing ? <p className="cf-nf3-instruct">{closing}</p> : null}
{signOff ? <p className="cf-nf3-sign">{signOff}</p> : null}
</div>
</div>
{hasProducts ? (
<ol
className="cf-nf3-trail"
style={{ "--n": products.length } as React.CSSProperties}
aria-label={productsLabel}
onPointerLeave={() => setHovered(null)}
onBlur={(event) => {
const next = event.relatedTarget as Node | null;
if (!next || !event.currentTarget.contains(next)) setHovered(null);
}}
>
{products.map((product, i) => {
const soldOut = Boolean(product.soldOut);
const off = disabled || soldOut;
const forcedHere = forced === i;
const stopClass = cx(
"cf-nf3-stop",
i <= reach && "is-reached",
i < reach && "is-path",
i === reach && "is-here",
);
const itemClass = cx(
"cf-nf3-item",
off && "is-off",
forcedHere && "is-hover",
forcedHere && state === "active" && "is-active",
);
const btnClass = cx(
"cf-nf3-btn",
forcedHere && state === "hover" && "is-hover",
forcedHere && state === "active" && "is-active",
);
const label = soldOut ? soldOutLabel : addLabel;
const ariaLabel = withName(soldOut ? soldOutAriaLabel : addAriaLabel, product.name);
const nameId = `${uid}-p${i}`;
const content = (
<>
{soldOut ? null : <ShoppingBag size={20} strokeWidth={2.5} aria-hidden="true" />}
<span>{label}</span>
</>
);
return (
<li
key={`${product.name}-${i}`}
className={stopClass}
style={{ "--i": i } as React.CSSProperties}
onPointerEnter={() => setHovered(i)}
onFocus={() => setHovered(i)}
>
<span className="cf-nf3-dot" aria-hidden="true" />
{i < products.length - 1 ? <span className="cf-nf3-seg" aria-hidden="true" /> : null}
<article className={itemClass} aria-labelledby={nameId}>
{product.image ? (
<div className="cf-nf3-media">
<img src={product.image} alt={product.imageAlt ?? ""} loading="lazy" decoding="async" />
</div>
) : null}
<h2 id={nameId} className="cf-nf3-name">
{product.name}
</h2>
{product.detail ? <p className="cf-nf3-detail">{product.detail}</p> : null}
<div className="cf-nf3-buy">
<p className="cf-nf3-price">{product.price}</p>
{product.priceNote ? <p className="cf-nf3-note">{product.priceNote}</p> : null}
{product.href && !off ? (
<a
className={btnClass}
href={product.href}
aria-label={ariaLabel}
onClick={(event) => onAction?.(product, i, event)}
>
{content}
</a>
) : (
<button
type="button"
className={btnClass}
disabled={off}
aria-label={ariaLabel}
onClick={(event) => onAction?.(product, i, event)}
>
{content}
</button>
)}
</div>
</article>
</li>
);
})}
</ol>
) : (
<form className="cf-nf3-search" role="search" noValidate onSubmit={handleSubmit}>
<label className="cf-nf3-label" htmlFor={inputId}>
{searchLabel}
</label>
<div className="cf-nf3-row">
<div className="cf-nf3-fieldwrap">
<Search className="cf-nf3-ficon" size={20} strokeWidth={2.5} aria-hidden="true" />
<input
ref={inputRef}
id={inputId}
className="cf-nf3-field"
type="search"
name="q"
autoComplete="off"
placeholder={searchPlaceholder}
value={query}
disabled={disabled}
aria-invalid={showError || undefined}
aria-describedby={showError ? errorId : undefined}
onChange={(event) => {
setQuery(event.target.value);
if (emptyError) setEmptyError(false);
}}
/>
</div>
<button type="submit" className="cf-nf3-btn cf-nf3-btn-auto" disabled={disabled}>
{searchButtonLabel}
</button>
</div>
{showError ? (
<p id={errorId} className="cf-nf3-error" role="alert">
<TriangleAlert size={16} strokeWidth={2.5} aria-hidden="true" />
{emptySearchError}
</p>
) : null}
</form>
)}
{homeLabel ? (
<p className="cf-nf3-homeline">
<a className="cf-nf3-home" href={homeHref}>
<House size={18} strokeWidth={2.5} aria-hidden="true" />
{homeLabel}
</a>
</p>
) : null}
</div>
</div>
</section>
);
}
export default NotFound3;
function cx(...parts: Array<string | false | null | undefined>) {
return parts.filter(Boolean).join(" ");
}
function withName(template: string, name: string) {
return template.split("{name}").join(name);
}
function marked(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-nf3-mark">{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
const CSS = `
.cf-nf3{--cf-nf3-gutter:clamp(16px, 5vw, 48px);--cf-nf3-pad:clamp(20px, 3.4vw, 44px);--cf-nf3-sh:var(--shadow, oklch(0.22 0.03 260));--cf-nf3-marker:color-mix(in oklch, var(--marker, #fae37c) 85%, transparent);position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding-bottom:clamp(64px, 8.5vw, 120px);overflow-x:clip}
.cf-nf3 *,.cf-nf3 *::before,.cf-nf3 *::after{box-sizing:border-box}
.cf-nf3 :where(h1,h2,p,ol,form){margin:0}
.cf-nf3-wrap{width:min(calc(100% - 2 * var(--cf-nf3-gutter)), 1120px);margin-inline:auto}
.cf-nf3-photo{position:relative;isolation:isolate;overflow:hidden;height:clamp(280px, 40vw, 560px)}
.cf-nf3-fade{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(to bottom, oklch(from var(--surface) l c h / 0) 52%, var(--surface))}
.cf-nf3-photo-inner{position:relative;z-index:2;padding-top:clamp(16px, 3vw, 32px)}
.cf-nf3-chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:4px 12px;border-radius:999px;background:var(--card);color:var(--ink);font-size:.875rem;font-weight:800;line-height:1.2;white-space:nowrap;box-shadow:var(--shadow-sm, 0 1px 2px oklch(from var(--cf-nf3-sh) l c h / 0.25))}
.cf-nf3-chip svg{flex:none;color:var(--accent)}
.cf-nf3-card{position:relative;z-index:3;margin-top:calc(-1 * clamp(64px, 11vw, 168px));padding:var(--cf-nf3-pad);background:var(--card);color:var(--ink);border:1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius, var(--radius, 14px));box-shadow:var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--cf-nf3-sh) l c h / 0.22), 0 12px 24px -8px oklch(from var(--cf-nf3-sh) l c h / 0.32)));animation:cf-nf3-rise .45s cubic-bezier(.2,.7,.2,1) backwards}
.cf-nf3-head{display:grid;grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr);gap:clamp(20px, 4vw, 56px);align-items:start}
.cf-nf3-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;color:var(--ink);text-wrap:balance}
.cf-nf3-mark{background-image:linear-gradient(to bottom, transparent 58%, var(--cf-nf3-marker) 58%, var(--cf-nf3-marker) 94%, transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .06em;margin:0 -.02em;border-radius:.08em}
.cf-nf3-letter{padding-top:.375rem;font-size:clamp(1.0625rem, 1.25vw, 1.125rem);line-height:1.5;color:var(--ink)}
.cf-nf3-letter p{max-width:62ch;text-wrap:pretty}
.cf-nf3-letter p + p{margin-top:12px}
.cf-nf3-salute,.cf-nf3-instruct{font-weight:700}
.cf-nf3-letter .cf-nf3-sign{margin-top:16px;font-family:var(--font-display);font-weight:800;letter-spacing:-0.01em}
.cf-nf3-trail{--gap:clamp(16px, 2.4vw, 24px);list-style:none;margin-top:clamp(32px, 4vw, 48px);padding:0;display:grid;grid-template-columns:repeat(var(--n, 3), minmax(0, 1fr));gap:var(--gap)}
.cf-nf3-stop{position:relative;display:flex;min-width:0;padding-top:36px;animation:cf-nf3-rise .45s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:calc(.07s + var(--i, 0) * .07s)}
.cf-nf3-seg{position:absolute;top:7px;left:50%;width:calc(100% + var(--gap));height:4px;border-radius:999px;overflow:hidden;background:oklch(from var(--ink) l c h / 0.14)}
.cf-nf3-seg::after{content:"";position:absolute;inset:0;background:var(--accent-fill, var(--accent));transform:scaleX(0);transform-origin:left center;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.cf-nf3-stop.is-path .cf-nf3-seg::after{transform:scaleX(1)}
.cf-nf3-dot{position:absolute;z-index:1;top:0;left:50%;width:18px;height:18px;margin-left:-9px;border-radius:999px;background:var(--card);border:3px solid oklch(from var(--ink) l c h / 0.24);transition:background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease}
.cf-nf3-stop.is-reached .cf-nf3-dot{background:var(--accent-fill, var(--accent));border-color:var(--accent-fill, var(--accent))}
.cf-nf3-stop.is-here .cf-nf3-dot{transform:scale(1.2);box-shadow:0 0 0 4px color-mix(in oklch, var(--accent-fill, var(--accent)) 24%, var(--card))}
.cf-nf3-item{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;padding:clamp(16px, 2vw, 24px);border-radius:var(--card-radius, var(--radius, 14px));background:color-mix(in oklch, var(--ink) 4%, var(--card));border:1px solid transparent;transition:transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease}
.cf-nf3-item:not(.is-off):hover,.cf-nf3-item:not(.is-off):focus-within,.cf-nf3-item.is-hover{background:var(--card);border-color:color-mix(in oklch, var(--accent) 38%, var(--card));box-shadow:var(--shadow-lg, 0 2px 4px oklch(from var(--cf-nf3-sh) l c h / 0.22), 0 12px 24px -8px oklch(from var(--cf-nf3-sh) l c h / 0.32));transform:translateY(-4px)}
.cf-nf3-item:not(.is-off):has(.cf-nf3-btn:active),.cf-nf3-item.is-active{transform:translateY(-1px);box-shadow:var(--shadow-md, 0 1px 2px oklch(from var(--cf-nf3-sh) l c h / 0.22), 0 4px 10px -2px oklch(from var(--cf-nf3-sh) l c h / 0.2))}
.cf-nf3-media{display:grid;place-items:center;aspect-ratio:4 / 3;margin-bottom:16px}
.cf-nf3-media img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 2px 3px oklch(from var(--cf-nf3-sh) l c h / 0.28)) drop-shadow(0 14px 14px oklch(from var(--cf-nf3-sh) l c h / 0.2));transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.cf-nf3-item:not(.is-off):hover .cf-nf3-media img,.cf-nf3-item:not(.is-off):focus-within .cf-nf3-media img,.cf-nf3-item.is-hover .cf-nf3-media img{transform:translateY(-6px) scale(1.03)}
.cf-nf3-item.is-off .cf-nf3-media img{opacity:.6;filter:grayscale(1) drop-shadow(0 2px 3px oklch(from var(--cf-nf3-sh) l c h / 0.2))}
.cf-nf3-name{font-family:var(--font-display);font-weight:var(--display-weight, 800);text-transform:var(--display-case, none);letter-spacing:-0.01em;font-size:clamp(1.3125rem, 1.8vw, 1.625rem);line-height:1.15;color:var(--ink);text-wrap:balance}
.cf-nf3-detail{margin-top:8px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-nf3-buy{margin-top:auto;padding-top:16px}
.cf-nf3-price{font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem, 1.8vw, 1.625rem);line-height:1;letter-spacing:-0.02em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-nf3-note{margin-top:12px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-nf3-btn{--b:var(--button-bg, var(--cta));--b2:var(--button-bg-2, var(--cta-2));appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;margin-top:16px;padding:0 24px;border:0;border-radius:var(--button-radius, var(--radius, 12px));background:linear-gradient(oklch(from var(--b) calc(l + 0.04) c h), oklch(from var(--b2) calc(l - 0.02) c h));color:var(--button-ink, var(--cta-ink));font-family:var(--button-font, var(--font-display));font-weight:var(--button-weight, 800);text-transform:var(--button-case, none);font-size:1.125rem;line-height:1.15;white-space:nowrap;text-decoration:none;text-shadow:var(--button-text-shadow, none);cursor:pointer;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--b) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--b) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--cf-nf3-sh) l c h / 0.3), 0 8px 16px -6px oklch(from var(--cf-nf3-sh) l c h / 0.45));transition:transform .16s ease, box-shadow .16s ease, background .16s ease}
.cf-nf3-btn svg{flex:none}
.cf-nf3-btn:hover:not(:disabled),.cf-nf3-btn.is-hover{background:linear-gradient(oklch(from var(--b) calc(l - 0.01) c h), oklch(from var(--b2) calc(l - 0.07) c h));box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--b) calc(l + 0.12) c h / 0.6), inset 0 -3px 0 oklch(from var(--b) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--cf-nf3-sh) l c h / 0.34), 0 10px 18px -6px oklch(from var(--cf-nf3-sh) l c h / 0.55))}
.cf-nf3-btn:active:not(:disabled),.cf-nf3-btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--b) calc(l - 0.05) c h), oklch(from var(--b2) calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from var(--b) calc(l - 0.22) c h / 0.55), inset 0 -2px 0 oklch(from var(--b) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--cf-nf3-sh) l c h / 0.3)}
.cf-nf3-btn:focus-visible{outline:3px solid var(--field-focus, var(--accent));outline-offset:3px}
.cf-nf3-btn:disabled{background:var(--button-2-bg, var(--secondary));color:var(--button-2-ink, var(--secondary-ink));text-shadow:none;box-shadow:none;cursor:not-allowed}
.cf-nf3-search{margin-top:clamp(32px, 4vw, 48px);max-width:640px}
.cf-nf3-label{display:block;margin-bottom:8px;font-size:1.0625rem;font-weight:700;line-height:1.3;color:var(--label-ink, var(--ink))}
.cf-nf3-row{display:flex;flex-wrap:wrap;gap:12px}
.cf-nf3-fieldwrap{position:relative;flex:1 1 240px;min-width:0}
.cf-nf3-ficon{position:absolute;left:16px;top:50%;transform:translateY(-50%);pointer-events:none;color:color-mix(in oklch, var(--field-ink) 65%, var(--field))}
.cf-nf3-field{width:100%;height:56px;padding:0 16px 0 48px;border:1px solid var(--field-border, color-mix(in oklch, var(--ink) 22%, transparent));border-radius:var(--field-radius, var(--radius, 12px));background:var(--field);color:var(--field-ink);font-family:var(--font-body);font-size:1.0625rem;transition:border-color .16s ease, box-shadow .16s ease}
.cf-nf3-field::placeholder{color:color-mix(in oklch, var(--field-ink) 65%, var(--field));opacity:1}
.cf-nf3-field: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 / 0.35)}
.cf-nf3-field[aria-invalid="true"]{border-color:var(--danger)}
.cf-nf3-field[aria-invalid="true"]:focus{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / 0.3)}
.cf-nf3-field:disabled{background:color-mix(in oklch, var(--field-ink) 6%, var(--field));cursor:not-allowed}
.cf-nf3-btn-auto{width:auto;flex:0 0 auto;margin-top:0;padding:0 28px}
.cf-nf3-error{margin-top:8px;color:var(--danger);font-size:.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-nf3-error svg,.cf-nf3-home svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-nf3-homeline{margin-top:clamp(24px, 3vw, 32px);font-size:1.0625rem;line-height:1.4}
.cf-nf3-home{color:var(--link, var(--accent));font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:oklch(from var(--link, var(--accent)) l c h / 0.45);text-underline-offset:.18em;border-radius:4px;transition:color .16s ease}
.cf-nf3-home:hover{color:oklch(from var(--link, var(--accent)) calc(l - 0.08) c h);text-decoration-color:currentColor}
.cf-nf3-home:focus-visible{outline:3px solid var(--field-focus, var(--accent));outline-offset:3px}
@keyframes cf-nf3-rise{from{opacity:.82;transform:translateY(8px)}}
@media (max-width: 720px){
.cf-nf3-photo{height:200px}
.cf-nf3-card{margin-top:-48px}
.cf-nf3-head{grid-template-columns:minmax(0, 1fr);gap:16px}
.cf-nf3-letter{padding-top:0}
.cf-nf3-trail{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(78%, 290px);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--cf-nf3-pad);margin-inline:calc(-1 * var(--cf-nf3-pad));padding:0 var(--cf-nf3-pad) 16px;scrollbar-width:thin}
.cf-nf3-stop{scroll-snap-align:start}
}
@media (max-width: 480px){
.cf-nf3-btn-auto{flex:1 1 100%}
}
@media (prefers-reduced-motion: reduce){
.cf-nf3-card,.cf-nf3-stop{animation:none}
.cf-nf3-seg::after,.cf-nf3-dot,.cf-nf3-item,.cf-nf3-media img,.cf-nf3-btn,.cf-nf3-field,.cf-nf3-home{transition:none}
.cf-nf3-item:not(.is-off):hover,.cf-nf3-item:not(.is-off):focus-within,.cf-nf3-item.is-hover,.cf-nf3-item:not(.is-off):has(.cf-nf3-btn:active),.cf-nf3-item.is-active{transform:none}
.cf-nf3-item:not(.is-off):hover .cf-nf3-media img,.cf-nf3-item:not(.is-off):focus-within .cf-nf3-media img,.cf-nf3-item.is-hover .cf-nf3-media img{transform:none}
.cf-nf3-btn:active:not(:disabled),.cf-nf3-btn.is-active{transform:none}
}
`;
pieces/content/not-found-3/specimen.tsx 52 lines
import __studioImage8d5ac1b2 from "../assets/f2293f6965fe3d8a.webp";
import __studioImage8149420e from "../assets/7b830a3bd0398fa1.webp";
import __studioImage883622f3 from "../assets/c4368d573eefec14.webp";
import * as React from "react";
import { NotFound3, type NotFound3Product, type NotFound3State } from "../not-found-3";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled", "error"];
export default function NotFound3Specimen({ state = "default" }: { state?: NotFound3State }) {
const products: NotFound3Product[] = [
{
name: "Ridgeline 38L Daypack",
detail: "Ventilated back panel and a rain cover tucked in the lid.",
price: "$149",
priceNote: "About 41¢ a day for a year on the trail",
image: slot(
"item-1",
__studioImage8d5ac1b2,
),
imageAlt: "Charcoal Ridgeline 38L daypack with orange zip pulls",
},
{
name: "Stormshell Rain Jacket",
detail: "Seam-sealed shell that packs into its own pocket.",
price: "$189",
image: slot(
"item-2",
__studioImage8149420e,
),
imageAlt: "Forest green Stormshell hooded rain jacket",
},
{
name: "Switchback Trekking Poles",
detail: "Carbon shafts and cork grips, sold as a pair.",
price: "$89",
image: slot(
"item-3",
__studioImage883622f3,
),
imageAlt: "Pair of carbon Switchback trekking poles with cork grips",
},
];
return (
<NotFound3
products={state === "error" ? [] : products}
signOff="— Mara and the Ridgeback Outfitters crew"
state={state}
/>
);
}
| Name | Type | Details |
|---|---|---|
statusLabel OptionalNotFound3 |
string |
|
headline OptionalNotFound3 |
string |
|
headlineHighlight OptionalNotFound3 |
string |
|
salutation OptionalNotFound3 |
string |
|
letter OptionalNotFound3 |
string[] |
|
instruction OptionalNotFound3 |
string |
|
emptyLetter OptionalNotFound3 |
string[] |
|
emptyInstruction OptionalNotFound3 |
string |
|
signOff OptionalNotFound3 |
string |
|
products OptionalNotFound3 |
NotFound3Product[] |
|
productsLabel OptionalNotFound3 |
string |
|
addLabel OptionalNotFound3 |
string |
|
addAriaLabel OptionalNotFound3 |
string |
|
soldOutLabel OptionalNotFound3 |
string |
|
soldOutAriaLabel OptionalNotFound3 |
string |
|
searchLabel OptionalNotFound3 |
string |
|
searchPlaceholder OptionalNotFound3 |
string |
|
searchButtonLabel OptionalNotFound3 |
string |
|
emptySearchError OptionalNotFound3 |
string |
|
homeLabel OptionalNotFound3 |
string |
|
homeHref OptionalNotFound3 |
string |
|
backdrop OptionalNotFound3 |
string |
|
onAction OptionalNotFound3 |
(product: NotFound3Product, index: number, event: React.MouseEvent<HTMLElement>) => void |
|
onSearch OptionalNotFound3 |
(query: string) => void |
|
state OptionalNotFound3 |
NotFound3State |
|
className OptionalNotFound3 |
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- 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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-3- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
7b830a3bd0398fa1.webp
image/webp · 110 KB
-
8276864f4b8e6ac1.webp
image/webp · 47 KB
-
c4368d573eefec14.webp
image/webp · 58.5 KB
-
f2293f6965fe3d8a.webp
image/webp · 201 KB