37 lines
1.6 KiB
HTML
37 lines
1.6 KiB
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="CalcPad - A modern notepad calculator powered by WebAssembly" />
|
|
<meta name="theme-color" content="#6366f1" />
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
<meta name="apple-mobile-web-app-title" content="CalcPad" />
|
|
<link rel="apple-touch-icon" href="/icons/icon-192.svg" />
|
|
<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=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet" />
|
|
<title>CalcText</title>
|
|
<script>
|
|
// Apply theme before React mounts to prevent FOUC
|
|
(function() {
|
|
var t = 'system';
|
|
try { t = localStorage.getItem('calctext-theme') || 'system'; } catch(e) {}
|
|
if (t === 'system') {
|
|
t = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
}
|
|
document.documentElement.setAttribute('data-theme', t);
|
|
// Apply font size before React mounts
|
|
var fs = localStorage.getItem('calctext-fontsize');
|
|
if (fs) document.documentElement.style.setProperty('--editor-font-size', fs + 'px');
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|