Files
hanzo.sh-native/package.json
Hanzo Dev 6c1f593a45 fix: render one page shell and self-host Geist
The page mounted two complete bodies: pages/Index wrapped Install (then named
Hero, itself a full page with its own fixed header and footer) in a leftover
template shell — a second fixed header at the same top/z-index that occluded
the first bar's links, plus a second footer carrying copy about container
solutions and a 2024 copyright. Install is the page; the shell and the unused
template components are gone, so the document now has one header and one
footer and every header link hit-tests to itself.

Geist named in CSS but absent from the bundle: the CDN @import it came from
404s, and an @import cannot place an @font-face in our own stylesheet. Ship
the variable woff2 from src/fonts so the served CSS carries the faces it
names, and move the theme into @theme in index.css so --font-sans feeds
preflight and the utilities from one place. The build asserts the CSS carries
@font-face, Geist, an emitted woff2, and no remote @import.

Deploy ran to GitHub Pages while hanzo.sh is served by the assets Worker, so
no push reached the live surface; deploy.yml now runs wrangler.

Drop the third-party editor script from a page that tells people to pipe a
shell, and the deps the removed components pulled in (CSS 63 -> 20 kB,
JS 380 -> 244 kB).

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-26 16:15:48 -07:00

36 lines
908 B
JSON

{
"name": "hanzo-sh",
"private": true,
"version": "1.0.1",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build && node scripts/build-polyglot.js",
"build:dev": "vite build --mode development",
"lint": "eslint .",
"preview": "vite preview"
},
"dependencies": {
"lucide-react": "^0.451.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sonner": "^1.5.0"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@tailwindcss/postcss": "^4.0.17",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"eslint": "^9.9.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"globals": "^15.9.0",
"postcss": "^8.4.47",
"tailwindcss": "^4.0.17",
"typescript": "^5.5.3",
"typescript-eslint": "^8.0.1",
"vite": "^5.4.1"
}
}