Spaces:
Running
Running
| <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> |