Files
site/scripts/investors.test.ts
zeekayandHanzo Dev 0d44a0d422 Restore the landing's 3x3 products grid and draw the home with no scroll motion
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]>
2026-11-11 11:34:34 -08:00

20 lines
941 B
TypeScript

// Investors is the footer's only (Zach, hanzo-inc/app#204): no header menu lists /investors (lib/nav.js, which the bar's
// panels and the phone sheet draw, and the header's own markup in content.js), and the footer still does.
import test from 'node:test';
import assert from 'node:assert/strict';
import { NAV } from '../lib/nav.ts';
import C from '../content/shell.ts';
const investors = /^(https:\/\/hanzo\.ai)?\/investors\/?$/;
test('no header menu lists Investors: not the bar, its panels or the phone sheet', () => {
const rows = Object.values(NAV).flatMap((cols) => cols.flatMap((c) => c.links));
assert.ok(rows.length > 0);
assert.deepEqual(rows.filter((l) => investors.test(l.href) || l.label === 'Investors'), []);
assert.doesNotMatch(C.header, /href="(https:\/\/hanzo\.ai)?\/investors\/?"/);
});
test('the footer still links Investors', () => {
assert.match(C.footer, /href="\/investors"[^>]*>Investors<\/a>/);
});