mirror of
https://github.com/hanzoai/team.git
synced 2026-11-24 09:47:57 +00:00
51 lines
2.3 KiB
HTML
51 lines
2.3 KiB
HTML
<!doctype html>
|
|
<html lang="en" data-theme="dark">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<base href="/" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
<meta name="theme-color" content="#08080a" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<link rel="icon" href="/favicon.ico" sizes="any" />
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
<link rel="manifest" href="/manifest.json" />
|
|
<title>Hanzo Team</title>
|
|
<script>
|
|
;(function () {
|
|
try {
|
|
var raw = localStorage.getItem('hanzo.appearance')
|
|
var parsed = raw ? JSON.parse(raw) : null
|
|
var pref = parsed && (parsed.theme === 'light' || parsed.theme === 'dark' || parsed.theme === 'system') ? parsed.theme : 'dark'
|
|
var resolved = pref === 'system' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : pref
|
|
var root = document.documentElement
|
|
root.dataset.theme = resolved
|
|
root.classList.toggle('dark', resolved === 'dark')
|
|
root.classList.toggle('light', resolved === 'light')
|
|
if (parsed && (parsed.font === 'compact' || parsed.font === 'default' || parsed.font === 'large')) {
|
|
root.style.setProperty('--hanzo-font-scale', parsed.font === 'compact' ? '0.92' : parsed.font === 'large' ? '1.08' : '1')
|
|
}
|
|
if (parsed && (parsed.density === 'compact' || parsed.density === 'default' || parsed.density === 'spacious')) {
|
|
root.dataset.density = parsed.density
|
|
}
|
|
} catch (_e) {}
|
|
})()
|
|
</script>
|
|
<style>
|
|
/* The two facts only the host document can answer: how tall the app is,
|
|
and that its one child is a flex item. @hanzo/ui's stylesheet resets and
|
|
paints everything else, and `Screen` fills its parent by growing, which
|
|
a block parent never asks it to do — so the whole app renders 0px tall.
|
|
`dvh` rather than `vh` so collapsing browser chrome cannot crop the
|
|
bottom of a column off. */
|
|
#root {
|
|
display: flex;
|
|
height: 100dvh;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|