Page sections / Feature sections
Numbered Engraving Feature Grid
3x2 grid on paper: tiny mono numbered eyebrow (#1 CONNECT), large condensed cobalt-deep title, short body, then a square-ish rounded-top duotone cobalt engraving with noise grain overlay. Section heading carries a tiny pixel icon superscript.
Rebuilt from hermes-agent.nousresearch.com in the Electric Ultramarine Engraving style.
Looks exactly like hermes-agent.nousresearch.com: brings its fonts and colours, namespaced so your own theme stays untouched.
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
Pass `heading` and an `items` array of {tag, title, body, img}; renders standalone with defaults. Images are duotone-tinted cobalt with grain and zoom subtly on hover.
components/numbered-feature-grid.tsx
"use client"; import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; const defaultItems = [ { tag: "#1 LINK", title: "Reaches Every Inbox", body: "Chat apps, email, terminal and more, all wired to a single assistant that shares one history across every channel.", img: "https://yoink-app.fly.dev/stock/people-5.jpg" }, { tag: "#2 RETAIN", title: "Lasting Context", body: "It studies your work, writes its own playbooks, and keeps every lesson close for the next time.", img: "https://yoink-app.fly.dev/stock/people-6.jpg" }, { tag: "#3 PLAN", title: "Quiet Routines", body: "Describe a job in plain words and it runs on its own, delivering summaries and checks right on time.", img: "https://yoink-app.fly.dev/stock/abstract-4.jpg" }, { tag: "#4 SPLIT", title: "Work in Parallel", body: "Spin up helpers with separate threads and tools so large jobs finish side by side.", img: "https://yoink-app.fly.dev/stock/architecture-2.jpg" }, { tag: "#5 FIND", title: "Reads the Open Web", body: "Searching, browsing, image creation and voice output combined into one flexible toolkit.", img: "https://yoink-app.fly.dev/stock/product-3.jpg" }, { tag: "#6 TRY", title: "Safe Test Rooms", body: "Choose from several runtimes, each walled off with strict limits so experiments stay contained.", img: "https://yoink-app.fly.dev/stock/landscape-2.jpg" }, ]; export default function NumberedEngravingFeatureGrid({ heading = "Capabilities", items = defaultItems }: { heading?: string; items?: typeof defaultItems }) { return ( <section className="bg-paper px-6 py-24 text-cobalt-deep md:px-[175px]"> <div className="mx-auto max-w-[1080px]"> <Reveal from="up"> <h2 className="font-display text-[72px] font-light leading-none tracking-[-0.02em] md:text-[104px]"> {heading} <svg aria-hidden="true" viewBox="0 0 8 8" className="ml-1 inline-block h-5 w-5 -translate-y-8 align-top" fill="currentColor"> <rect x="1" y="0" width="1" height="2" /><rect x="3" y="0" width="1" height="2" /><rect x="5" y="0" width="1" height="2" /> <rect x="0" y="3" width="8" height="1" /><rect x="1" y="4" width="1" height="2" /><rect x="6" y="4" width="1" height="2" /><rect x="3" y="4" width="2" height="2" /> </svg> </h2> </Reveal> <Stagger step={90} className="mt-14 grid gap-x-10 gap-y-20 md:grid-cols-3"> {items.map((it) => ( <article key={it.tag} className="group"> <p className="font-mono text-[10px] uppercase tracking-wide">{it.tag}</p> <h3 className="mt-4 font-display text-[44px] font-light leading-[1.1] tracking-[-0.01em]">{it.title}</h3> <p className="mt-4 min-h-[78px] text-[15px] leading-[26px]">{it.body}</p> <div className="relative mt-6 aspect-square overflow-hidden rounded-t-md bg-cobalt"> <img src={it.img} alt="" width={800} height={800} loading="lazy" className="h-full w-full scale-100 object-cover mix-blend-screen grayscale contrast-125 transition-transform duration-700 group-hover:scale-105" /> <div className="pointer-events-none absolute inset-0 bg-cobalt/40 mix-blend-screen" /> <Grain opacity={0.35} blend="overlay" /> </div> </article> ))} </Stagger> </div> </section> ); } // ---- Yoink motion (inlined, no dependencies): Reveal, Stagger, Grain ---- const YK_EASE = "cubic-bezier(0.16, 1, 0.3, 1)"; const useYkLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect; function ykReducedMotion(): boolean { return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches; } // "idle": untouched (visible) · "hidden": waiting below the fold · "shown": play the entrance. // Content is only hidden once we know we can show it again (IntersectionObserver exists, motion allowed, // and there is a box to watch), and a safety net reveals anything on screen that is still hidden. type YkRevealState = "idle" | "hidden" | "shown"; function useYkReveal(ref: RefObject<Element | null>, once = true): YkRevealState { const [state, setState] = useState<YkRevealState>("idle"); useYkLayoutEffect(() => { const el = ref.current; if (!el || ykReducedMotion() || typeof IntersectionObserver === "undefined") return; // watch the element's own box, or its children when it has none (display: contents) const boxes = () => (getComputedStyle(el).display === "contents" ? Array.from(el.children) : [el]); const onScreen = (t: Element) => { const r = t.getBoundingClientRect(); return (r.width > 0 || r.height > 0) && r.bottom > 0 && r.right > 0 && r.top < window.innerHeight && r.left < window.innerWidth; }; if (!boxes().some((t) => t.getBoundingClientRect().width > 0 || t.getBoundingClientRect().height > 0)) return; // e.g. hidden at mount: leave it visible let shown = false; const show = (v: boolean) => { if (v !== shown) (shown = v), setState(v ? "shown" : "hidden"); }; setState("hidden"); const inView = new Set<Element>(); const io = new IntersectionObserver((entries) => { for (const e of entries) { if (e.isIntersecting) inView.add(e.target); else inView.delete(e.target); } if (inView.size) { show(true); if (once) io.disconnect(); } else if (!once) show(false); }); const watched = new Set<Element>(); const watch = () => boxes().forEach((t) => !watched.has(t) && (watched.add(t), io.observe(t))); watch(); // safety net: styles that land after mount (display: contents) get watched too, and nothing // stays hidden for more than a moment while it is actually on screen const start = Date.now(); const net = setInterval(() => { if (shown) return once && clearInterval(net); watch(); if (Date.now() - start > 2400 && boxes().some(onScreen)) show(true); }, 600); return () => { io.disconnect(); clearInterval(net); }; }, [once]); return state; } // Background and overlay layers sit inside their parent: make sure it can hold them. function ykPrepareParent(el: HTMLElement | null, isolate = false) { const p = el?.parentElement; if (!p) return; const cs = getComputedStyle(p); if (cs.position === "static") p.style.position = "relative"; if (isolate && cs.isolation !== "isolate" && cs.zIndex === "auto") p.style.isolation = "isolate"; } type YkRevealFrom = "up" | "down" | "left" | "right" | "scale" | "blur" | "none"; /** Fades content in as it scrolls into view. */ function Reveal({ children, from = "up", delay = 0, duration = 700, distance = 24, once = true, as = "div", className, style, }: { children?: ReactNode; from?: YkRevealFrom; delay?: number; duration?: number; distance?: number; once?: boolean; as?: ElementType; className?: string; style?: CSSProperties; }) { const Tag = as; const ref = useRef<HTMLElement>(null); const state = useYkReveal(ref, once); const hidden = state === "hidden"; const offset = { up: `translate3d(0, ${distance}px, 0)`, down: `translate3d(0, ${-distance}px, 0)`, left: `translate3d(${-distance}px, 0, 0)`, right: `translate3d(${distance}px, 0, 0)`, scale: "scale(0.94)", blur: `translate3d(0, ${distance / 2}px, 0)`, none: "none", }[from]; const t = `${duration}ms ${YK_EASE} ${delay}ms`; return ( <Tag ref={ref} className={className} style={{ ...style, ...(hidden && { opacity: 0, transform: offset, filter: from === "blur" ? "blur(12px)" : undefined }), ...(state === "shown" && { transition: `opacity ${t}, transform ${t}, filter ${t}` }), }} > {children} </Tag> ); } /** Reveals each direct child one after another when the group scrolls into view. */ function Stagger({ children, step = 90, from = "up", distance = 20, duration = 650, delay = 0, once = true, as = "div", className, style, }: { children?: ReactNode; step?: number; from?: "up" | "down" | "left" | "right" | "scale" | "fade"; distance?: number; duration?: number; delay?: number; once?: boolean; as?: ElementType; className?: string; style?: CSSProperties; }) { const Tag = as; const ref = useRef<HTMLElement>(null); const state = useYkReveal(ref, once); useYkLayoutEffect(() => { const items = Array.from(ref.current?.children ?? []) as HTMLElement[]; if (state === "idle") return; const offset = { up: `translate3d(0, ${distance}px, 0)`, down: `translate3d(0, ${-distance}px, 0)`, left: `translate3d(${-distance}px, 0, 0)`, right: `translate3d(${distance}px, 0, 0)`, scale: "scale(0.92)", fade: "none", }[from]; if (state === "hidden") { for (const el of items) Object.assign(el.style, { transition: "none", opacity: "0", transform: offset }); return; } items.forEach((el, i) => { const t = `${duration}ms ${YK_EASE} ${delay + i * step}ms`; Object.assign(el.style, { transition: `opacity ${t}, transform ${t}`, opacity: "", transform: "" }); }); // hand the children their own transitions back once everything has landed const done = setTimeout(() => items.forEach((el) => (el.style.transition = "")), delay + items.length * step + duration + 50); return () => clearTimeout(done); }, [state]); return ( <Tag ref={ref} className={className} style={style}> {children} </Tag> ); } const YK_GRAIN_CSS = `@keyframes yk-grain{0%{transform:translate(0,0)}25%{transform:translate(-3%,2%)}50%{transform:translate(2%,-3%)}75%{transform:translate(-2%,-1%)}100%{transform:translate(1%,3%)}} @media (prefers-reduced-motion:reduce){[data-yk-grain] *{animation:none!important}}`; const YK_NOISE = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")`; /** A film-grain texture over a section (adds tactile depth to flat colour or gradients). */ function Grain({ opacity = 0.12, blend = "overlay", animated = false, className, style, }: { opacity?: number; blend?: CSSProperties["mixBlendMode"]; animated?: boolean; className?: string; style?: CSSProperties; }) { const ref = useRef<HTMLDivElement>(null); useYkLayoutEffect(() => ykPrepareParent(ref.current), []); return ( <div ref={ref} aria-hidden="true" data-yk-grain="" className={className} style={{ position: "absolute", inset: 0, overflow: "hidden", pointerEvents: "none", borderRadius: "inherit", opacity, mixBlendMode: blend, ...style }} > {animated && <style>{YK_GRAIN_CSS}</style>} <div style={{ position: "absolute", inset: "-10%", backgroundImage: YK_NOISE, animation: animated ? "yk-grain 0.9s steps(4) infinite" : undefined }} /> </div> ); }"use client"; import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; const defaultItems = [ { tag: "#1 LINK", title: "Reaches Every Inbox", body: "Chat apps, email, terminal and more, all wired to a single assistant that shares one history across every channel.", img: "https://yoink-app.fly.dev/stock/people-5.jpg" }, { tag: "#2 RETAIN", title: "Lasting Context", body: "It studies your work, writes its own playbooks, and keeps every lesson close for the next time.", img: "https://yoink-app.fly.dev/stock/people-6.jpg" }, { tag: "#3 PLAN", title: "Quiet Routines", body: "Describe a job in plain words and it runs on its own, delivering summaries and checks right on time.", img: "https://yoink-app.fly.dev/stock/abstract-4.jpg" }, { tag: "#4 SPLIT", title: "Work in Parallel", body: "Spin up helpers with separate threads and tools so large jobs finish side by side.", img: "https://yoink-app.fly.dev/stock/architecture-2.jpg" }, { tag: "#5 FIND", title: "Reads the Open Web", body: "Searching, browsing, image creation and voice output combined into one flexible toolkit.", img: "https://yoink-app.fly.dev/stock/product-3.jpg" }, { tag: "#6 TRY", title: "Safe Test Rooms", body: "Choose from several runtimes, each walled off with strict limits so experiments stay contained.", img: "https://yoink-app.fly.dev/stock/landscape-2.jpg" }, ]; export default function NumberedEngravingFeatureGrid({ heading = "Capabilities", items = defaultItems }: { heading?: string; items?: typeof defaultItems }) { return ( <section className="bg-foreground px-6 py-24 text-primary/90 md:px-[175px]"> <div className="mx-auto max-w-[1080px]"> <Reveal from="up"> <h2 className="font-sans text-[72px] font-light leading-none tracking-[-0.02em] md:text-[104px]"> {heading} <svg aria-hidden="true" viewBox="0 0 8 8" className="ml-1 inline-block h-5 w-5 -translate-y-8 align-top" fill="currentColor"> <rect x="1" y="0" width="1" height="2" /><rect x="3" y="0" width="1" height="2" /><rect x="5" y="0" width="1" height="2" /> <rect x="0" y="3" width="8" height="1" /><rect x="1" y="4" width="1" height="2" /><rect x="6" y="4" width="1" height="2" /><rect x="3" y="4" width="2" height="2" /> </svg> </h2> </Reveal> <Stagger step={90} className="mt-14 grid gap-x-10 gap-y-20 md:grid-cols-3"> {items.map((it) => ( <article key={it.tag} className="group"> <p className="font-mono text-[10px] uppercase tracking-wide">{it.tag}</p> <h3 className="mt-4 font-sans text-[44px] font-light leading-[1.1] tracking-[-0.01em]">{it.title}</h3> <p className="mt-4 min-h-[78px] text-[15px] leading-[26px]">{it.body}</p> <div className="relative mt-6 aspect-square overflow-hidden rounded-t-sm bg-background"> <img src={it.img} alt="" width={800} height={800} loading="lazy" className="h-full w-full scale-100 object-cover mix-blend-screen grayscale contrast-125 transition-transform duration-700 group-hover:scale-105" /> <div className="pointer-events-none absolute inset-0 bg-background/40 mix-blend-screen" /> <Grain opacity={0.35} blend="overlay" /> </div> </article> ))} </Stagger> </div> </section> ); } // ---- Yoink motion (inlined, no dependencies): Reveal, Stagger, Grain ---- const YK_EASE = "cubic-bezier(0.16, 1, 0.3, 1)"; const useYkLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect; function ykReducedMotion(): boolean { return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches; } // "idle": untouched (visible) · "hidden": waiting below the fold · "shown": play the entrance. // Content is only hidden once we know we can show it again (IntersectionObserver exists, motion allowed, // and there is a box to watch), and a safety net reveals anything on screen that is still hidden. type YkRevealState = "idle" | "hidden" | "shown"; function useYkReveal(ref: RefObject<Element | null>, once = true): YkRevealState { const [state, setState] = useState<YkRevealState>("idle"); useYkLayoutEffect(() => { const el = ref.current; if (!el || ykReducedMotion() || typeof IntersectionObserver === "undefined") return; // watch the element's own box, or its children when it has none (display: contents) const boxes = () => (getComputedStyle(el).display === "contents" ? Array.from(el.children) : [el]); const onScreen = (t: Element) => { const r = t.getBoundingClientRect(); return (r.width > 0 || r.height > 0) && r.bottom > 0 && r.right > 0 && r.top < window.innerHeight && r.left < window.innerWidth; }; if (!boxes().some((t) => t.getBoundingClientRect().width > 0 || t.getBoundingClientRect().height > 0)) return; // e.g. hidden at mount: leave it visible let shown = false; const show = (v: boolean) => { if (v !== shown) (shown = v), setState(v ? "shown" : "hidden"); }; setState("hidden"); const inView = new Set<Element>(); const io = new IntersectionObserver((entries) => { for (const e of entries) { if (e.isIntersecting) inView.add(e.target); else inView.delete(e.target); } if (inView.size) { show(true); if (once) io.disconnect(); } else if (!once) show(false); }); const watched = new Set<Element>(); const watch = () => boxes().forEach((t) => !watched.has(t) && (watched.add(t), io.observe(t))); watch(); // safety net: styles that land after mount (display: contents) get watched too, and nothing // stays hidden for more than a moment while it is actually on screen const start = Date.now(); const net = setInterval(() => { if (shown) return once && clearInterval(net); watch(); if (Date.now() - start > 2400 && boxes().some(onScreen)) show(true); }, 600); return () => { io.disconnect(); clearInterval(net); }; }, [once]); return state; } // Background and overlay layers sit inside their parent: make sure it can hold them. function ykPrepareParent(el: HTMLElement | null, isolate = false) { const p = el?.parentElement; if (!p) return; const cs = getComputedStyle(p); if (cs.position === "static") p.style.position = "relative"; if (isolate && cs.isolation !== "isolate" && cs.zIndex === "auto") p.style.isolation = "isolate"; } type YkRevealFrom = "up" | "down" | "left" | "right" | "scale" | "blur" | "none"; /** Fades content in as it scrolls into view. */ function Reveal({ children, from = "up", delay = 0, duration = 700, distance = 24, once = true, as = "div", className, style, }: { children?: ReactNode; from?: YkRevealFrom; delay?: number; duration?: number; distance?: number; once?: boolean; as?: ElementType; className?: string; style?: CSSProperties; }) { const Tag = as; const ref = useRef<HTMLElement>(null); const state = useYkReveal(ref, once); const hidden = state === "hidden"; const offset = { up: `translate3d(0, ${distance}px, 0)`, down: `translate3d(0, ${-distance}px, 0)`, left: `translate3d(${-distance}px, 0, 0)`, right: `translate3d(${distance}px, 0, 0)`, scale: "scale(0.94)", blur: `translate3d(0, ${distance / 2}px, 0)`, none: "none", }[from]; const t = `${duration}ms ${YK_EASE} ${delay}ms`; return ( <Tag ref={ref} className={className} style={{ ...style, ...(hidden && { opacity: 0, transform: offset, filter: from === "blur" ? "blur(12px)" : undefined }), ...(state === "shown" && { transition: `opacity ${t}, transform ${t}, filter ${t}` }), }} > {children} </Tag> ); } /** Reveals each direct child one after another when the group scrolls into view. */ function Stagger({ children, step = 90, from = "up", distance = 20, duration = 650, delay = 0, once = true, as = "div", className, style, }: { children?: ReactNode; step?: number; from?: "up" | "down" | "left" | "right" | "scale" | "fade"; distance?: number; duration?: number; delay?: number; once?: boolean; as?: ElementType; className?: string; style?: CSSProperties; }) { const Tag = as; const ref = useRef<HTMLElement>(null); const state = useYkReveal(ref, once); useYkLayoutEffect(() => { const items = Array.from(ref.current?.children ?? []) as HTMLElement[]; if (state === "idle") return; const offset = { up: `translate3d(0, ${distance}px, 0)`, down: `translate3d(0, ${-distance}px, 0)`, left: `translate3d(${-distance}px, 0, 0)`, right: `translate3d(${distance}px, 0, 0)`, scale: "scale(0.92)", fade: "none", }[from]; if (state === "hidden") { for (const el of items) Object.assign(el.style, { transition: "none", opacity: "0", transform: offset }); return; } items.forEach((el, i) => { const t = `${duration}ms ${YK_EASE} ${delay + i * step}ms`; Object.assign(el.style, { transition: `opacity ${t}, transform ${t}`, opacity: "", transform: "" }); }); // hand the children their own transitions back once everything has landed const done = setTimeout(() => items.forEach((el) => (el.style.transition = "")), delay + items.length * step + duration + 50); return () => clearTimeout(done); }, [state]); return ( <Tag ref={ref} className={className} style={style}> {children} </Tag> ); } const YK_GRAIN_CSS = `@keyframes yk-grain{0%{transform:translate(0,0)}25%{transform:translate(-3%,2%)}50%{transform:translate(2%,-3%)}75%{transform:translate(-2%,-1%)}100%{transform:translate(1%,3%)}} @media (prefers-reduced-motion:reduce){[data-yk-grain] *{animation:none!important}}`; const YK_NOISE = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")`; /** A film-grain texture over a section (adds tactile depth to flat colour or gradients). */ function Grain({ opacity = 0.12, blend = "overlay", animated = false, className, style, }: { opacity?: number; blend?: CSSProperties["mixBlendMode"]; animated?: boolean; className?: string; style?: CSSProperties; }) { const ref = useRef<HTMLDivElement>(null); useYkLayoutEffect(() => ykPrepareParent(ref.current), []); return ( <div ref={ref} aria-hidden="true" data-yk-grain="" className={className} style={{ position: "absolute", inset: 0, overflow: "hidden", pointerEvents: "none", borderRadius: "inherit", opacity, mixBlendMode: blend, ...style }} > {animated && <style>{YK_GRAIN_CSS}</style>} <div style={{ position: "absolute", inset: "-10%", backgroundImage: YK_NOISE, animation: animated ? "yk-grain 0.9s steps(4) infinite" : undefined }} /> </div> ); }
Quality checks
Automated, in a real browser · 3d ago- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: not passedScrolls sideways at phone width (390px)
- Dark mode: not passedElements must meet minimum color contrast ratio thresholds (19 elements)
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: passedIts animation plays and finishes with everything visible, and it stays still for people who turn on reduced motion.