mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:14:28 +00:00
hanzo.ai goes back to the landing hanzo-inc/app served before the split (6 Nov): the nine products three by three, each card its own screen, and the old rhythm (80px sections, 26px headings, 14px ledes). The 3D scroll journey, the dock and stage, the on-this-page spine, the MCP picker (its setup lives on docs.hanzo.ai) and the "ways" band are gone. Every heading, figure and card is in the HTML as it stays: no word reveals, fade-ups, count-ups, scroll parallax, idle canvas loop or calendar sweep. What moves answers a pointer (the cards' lean, the hero's dots, devices and title light, the agents' lift); model films load and play only under the pointer. The hero headline and device stage are sized in CSS, so nothing shifts on hydration (CLS 0). Scrolling is native (Lenis removed). The home is a server component; content.ts is split into agents, products, shell and logos so client code carries only what it draws; the 404's page index and the opener's WebGL context load on use. three and lenis are dropped. Mobile, 4x CPU, ~9 Mbps: LCP 1.2s (live 5.1s), blocking ~0.5s (1.5s), script -21%. Co-authored-by: Hanzo Dev <[email protected]>
14 lines
808 B
TypeScript
14 lines
808 B
TypeScript
/* Hanzo's own header and footer markup, rendered on the server only (no 'use client'). They used to be rendered by
|
|
the client Chrome.jsx, which put all of content.js (375 KB: header, footer and the home page's data) into every
|
|
page's JavaScript. Now the HTML arrives in the page and costs no JS; components/Chrome.jsx attaches the behaviour
|
|
(scrolled hairline, dark rooms, menus, search, the footer wordmark) to it by selector. Mounted by app/layout.jsx. */
|
|
import S from '../content/shell';
|
|
|
|
export function HeaderHTML() {
|
|
return <div data-x-shell="header" style={{ display: 'contents' }} dangerouslySetInnerHTML={{ __html: S.header }} />;
|
|
}
|
|
|
|
export function FooterHTML() {
|
|
return <div data-x-shell="footer" style={{ display: 'contents' }} dangerouslySetInnerHTML={{ __html: S.footer }} />;
|
|
}
|