mirror of
https://github.com/NanmiCoder/claude-code-haha.git
synced 2026-10-10 03:43:11 +08:00
64 lines
3.3 KiB
HTML
64 lines
3.3 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="theme-color" content="#f5f4ed" media="(prefers-color-scheme: light)">
|
|
<meta name="theme-color" content="#14211b" media="(prefers-color-scheme: dark)">
|
|
<meta name="description" content="Write code, work across apps, and review every change. Give cc-haha a goal and put your ideas in motion.">
|
|
<link rel="icon" href="/images/app-icon.png" type="image/png">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Special+Elite&family=Geist:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<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="cc-haha">
|
|
<meta property="og:title" content="cc-haha — Less busywork. More room for life.">
|
|
<meta property="og:description" content="Write code, work across apps, and review every change. Give cc-haha a goal and put your ideas in motion.">
|
|
<meta property="og:image" content="https://cchaha.ai/images/banner.png">
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<title>cc-haha — Less busywork. More room for life.</title>
|
|
<script>
|
|
// 首帧就把语言定下来:没有保存的选择时按浏览器首选语言。只认根路径,带语言前缀
|
|
// 的地址是用户的明确意图。规则与 src/lib/locale.js 保持一致。
|
|
(function () {
|
|
if (window.location.pathname.replace(/\/+$/, '') !== '') return
|
|
var preferredLanguage = (navigator.languages && navigator.languages[0]) || navigator.language || ''
|
|
var locale = /^zh(?:[-_]|$)/i.test(preferredLanguage) ? 'zh' : 'en'
|
|
try {
|
|
var stored = localStorage.getItem('cch-locale')
|
|
if (stored === 'en' || stored === 'zh') locale = stored
|
|
} catch (error) { /* 私密模式下仍按浏览器语言 */ }
|
|
if (locale === 'en') window.location.replace('/en' + window.location.search + window.location.hash)
|
|
else document.documentElement.lang = 'zh-CN'
|
|
})()
|
|
</script>
|
|
<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>
|