mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-31 16:33:34 +08:00
The site had drifted from the product. Every screenshot predated the v0.5.0 UI redesign, the reading experience shipped no search and no syntax highlighting, and a third of the pages were internal process artefacts — migration task lists addressed to agentic workers, a release runbook, a proposal marked "historical". Reorganise around the only two people who read this: someone getting the desktop app running for the first time, and someone reading the source. Five sections replace nine — start / desktop / im / cli / internals — and the pages that served neither reader are gone. Site rewrite: - Palette lifted from the desktop app's 「纸·墨·印」 themes, so the site and the product read as one thing. Light mirrors 纯白, dark mirrors 墨夜, and dark mode exists at all now. - Fonts are self-hosted. The old @import from Google Fonts is unreachable from mainland China, which left every heading in a fallback serif; it also only requested weight 600 while the CSS asked for 900, so Latin and CJK in the same heading disagreed. - Docs were shipped as one 968KB manifest downloaded on every page view. Split into a 32KB index plus one lazily imported chunk per page; the entry bundle is now 101KB gzipped. - Add search, syntax highlighting, per-route meta with canonical and hreflang, a sitemap, and an error boundary. Replace the 44vh mobile sidebar with a drawer. - Image dimensions are read at build time and written into the tag, so lazy images reserve their space instead of collapsing. Screenshots are recaptured from a real v0.5.0 build against a clean demo project, with tokens, QR codes and paired accounts redacted. The previous set is deleted rather than kept alongside. Routes follow file paths, so the restructure would have broken every inbound link; 37 old paths redirect, in both languages. The PR policy gate and CODEOWNERS also hardcoded docs/guide/contributing.md. Verified: check:docs 78 pages / 323 links / 0 problems, check:policy 127 pass. Walked every route at 1440 and 390 in both themes for overflow, contrast, keyboard reachability and focus management.
46 lines
2.3 KiB
HTML
46 lines
2.3 KiB
HTML
<!doctype html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
|
||
<meta name="theme-color" content="#201d17" media="(prefers-color-scheme: dark)">
|
||
<meta name="description" content="Claude Code Haha — Claude Code 的本地优先桌面客户端。会话、改动、Agent、定时任务都摆在明处,接哪个模型你说了算。">
|
||
<link rel="icon" href="/images/app-icon.png" type="image/png">
|
||
<link rel="preload" href="/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin>
|
||
<link rel="preload" href="/fonts/noto-serif-sc-latin.woff2" as="font" type="font/woff2" crossorigin>
|
||
<meta property="og:type" content="website">
|
||
<meta property="og:site_name" content="Claude Code Haha">
|
||
<meta property="og:title" content="Claude Code Haha — Claude Code 的本地优先桌面客户端">
|
||
<meta property="og:description" content="会话、改动、Agent、定时任务都摆在明处。接哪个模型你说了算,改哪一行你点头才算。">
|
||
<meta property="og:image" content="https://claudecode-haha.relakkesyang.org/images/banner.png">
|
||
<meta name="twitter:card" content="summary_large_image">
|
||
<title>Claude Code Haha — Claude Code 的本地优先桌面客户端</title>
|
||
<script>
|
||
// 首帧就把主题定下来,避免深色偏好的用户先闪一下白屏。
|
||
(function () {
|
||
try {
|
||
var stored = localStorage.getItem('cch-theme')
|
||
var theme = stored === 'dark' || stored === 'light'
|
||
? stored
|
||
: (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light')
|
||
document.documentElement.dataset.theme = theme
|
||
} catch (error) {
|
||
document.documentElement.dataset.theme = 'light'
|
||
}
|
||
})()
|
||
</script>
|
||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-D42DM82263"></script>
|
||
<script>
|
||
window.dataLayer = window.dataLayer || []
|
||
function gtag(){dataLayer.push(arguments)}
|
||
gtag('js', new Date())
|
||
gtag('config', 'G-D42DM82263')
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<div id="root"></div>
|
||
<script type="module" src="/src/main.jsx"></script>
|
||
</body>
|
||
</html>
|