mirror of
https://github.com/ApfelTeeSaft/WebMetal.git
synced 2026-08-26 19:43:24 +00:00
34 lines
987 B
HTML
34 lines
987 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta
|
|
name="description"
|
|
content="WebMetal - design custom CPU architectures visually in your browser."
|
|
/>
|
|
<title>WebMetal</title>
|
|
<script>
|
|
;(function () {
|
|
var theme = 'light'
|
|
try {
|
|
var stored = localStorage.getItem('webmetal.theme')
|
|
if (stored === 'light' || stored === 'dark') {
|
|
theme = stored
|
|
} else if (matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
theme = 'dark'
|
|
}
|
|
} catch (e) {
|
|
/* storage unavailable - keep default */
|
|
}
|
|
document.documentElement.dataset.theme = theme
|
|
})()
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|