Spaces:
Running
Running
File size: 1,815 Bytes
09801ca | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="description" content="Data Vision - Universal Data Analytics & Insights Platform" />
<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=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap"
rel="stylesheet">
<title>Data Vision - Enterprise Analytics Platform</title>
<script>
// theme-script.js - runs before body exists, so only modify documentElement
(function () {
try {
// Check local storage
var saved = localStorage.getItem('userPreferences');
if (saved) {
var parsed = JSON.parse(saved);
// If explicit light mode
if (parsed.preferences && parsed.preferences.theme === 'light') {
document.documentElement.classList.add('light-theme');
document.documentElement.classList.remove('dark');
} else {
// Ensure we are in dark mode (default)
document.documentElement.classList.remove('light-theme');
document.documentElement.classList.add('dark');
}
} else {
// Default to dark mode
document.documentElement.classList.add('dark');
}
} catch (e) {
// Silent fail - React will handle theme
document.documentElement.classList.add('dark');
}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html> |