hex/site
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-19 19:42:58 -07:00
..
public downloads: link people to downloads.hex.kitlangton.com; apps and feeds keep the .dev host 2026-10-19 19:42:58 -07:00
scripts Windows Setup.exe, one site, and a download section that works (#166) 2026-10-19 19:26:41 -07:00
src downloads: link people to downloads.hex.kitlangton.com; apps and feeds keep the .dev host 2026-10-19 19:42:58 -07:00
.gitignore Windows Setup.exe, one site, and a download section that works (#166) 2026-10-19 19:26:41 -07:00
bun.lock refactor: simplify codebase and align desktop UI with OpenCode 2026-10-06 23:29:09 -07:00
index.html site: serve hex.kitlangton.com; redirect hex.kitlangton.dev to it 2026-10-19 19:38:39 -07:00
package.json Windows Setup.exe, one site, and a download section that works (#166) 2026-10-19 19:26:41 -07:00
README.md site: serve hex.kitlangton.com; redirect hex.kitlangton.dev to it 2026-10-19 19:38:39 -07:00
tsconfig.app.json feat: add HEX marketing site 2026-07-19 14:18:50 -04:00
tsconfig.json feat: add HEX marketing site 2026-07-19 14:18:50 -04:00
tsconfig.node.json feat: add HEX marketing site 2026-07-19 14:18:50 -04:00
vite.config.ts feat: add HEX marketing site 2026-07-19 14:18:50 -04:00
worker.ts site: serve hex.kitlangton.com; redirect hex.kitlangton.dev to it 2026-10-19 19:38:39 -07:00
wrangler.jsonc site: serve hex.kitlangton.com; redirect hex.kitlangton.dev to it 2026-10-19 19:38:39 -07:00

Hex website

hex.kitlangton.com is the one Hex site. bun run dev starts Vite. bun run build checks TypeScript and builds it; bun run check:downloads checks that every download link serves a file; bunx wrangler deploy publishes the Worker, whose worker.ts 301s hex.kitlangton.dev, plain HTTP, and workers.dev to the same path on hex.kitlangton.com.

The download section (src/Download.tsx) names the visitor's platform on first paint and refines it with UA client hints: a DMG for Apple silicon Macs, the x64 or ARM64 Setup.exe for Windows, the copyable install command for Linux, and "Send yourself the link" on phones. Versions and URLs live in src/release.ts. Add ?platform=mac|mac-intel|windows-x64|windows-arm64|linux|mobile to see each state.

The wind-up teeth in src/ChatteringTeeth.tsx use separate body and foot groups: the soles remain planted during anticipation, the whole toy travels during the hop, and the body settles after contact. Wide screens use the perimeter; narrow screens use the space above the copy. A warm spotlight fades in from 1.4–2.4 seconds, foreshadowing the landing. The toy stays hidden for three seconds, then hops in from the left to the center above the headline. The light fades away as roaming begins. Reduced motion reveals the light and toy as still poses at their respective delays. The canvas is click-through and decorative; the site has no microphone control or microphone access.

Rounded teeth, teal irises, and cherry-red lacquer use a three-softbox procedural studio environment for enamel and metal reflections, plus soft directional shadows. The environment is generated locally, with no remote model or lighting asset request.

Social image

The Open Graph and Twitter image is public/og-teeth.png (1200 × 630). It is rendered from the same Three.js model, using ?og for a deterministic poster pose. With the dev server running, regenerate after changing the model:

bunx playwright install chromium
bun run generate:og
# If Vite chose another port:
HEX_SITE_URL=http://127.0.0.1:5174 bun run generate:og

Inspect the resulting image, rebuild, then deploy. Verify the production HTML's image metadata and fetch the published PNG.