55 lines
1.5 KiB
HTML
55 lines
1.5 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Yoresee</title>
|
|
<script>
|
|
(function () {
|
|
try {
|
|
var savedTheme = localStorage.getItem('theme');
|
|
var savedDarkMode = localStorage.getItem('darkMode');
|
|
var shouldUseDark = false;
|
|
if (savedTheme === 'light' || savedDarkMode === 'false') {
|
|
shouldUseDark = false;
|
|
} else if (savedTheme === 'dark' || savedDarkMode === 'true') {
|
|
shouldUseDark = true;
|
|
} else {
|
|
shouldUseDark = true;
|
|
}
|
|
if (shouldUseDark) {
|
|
document.documentElement.classList.add('dark-mode');
|
|
document.documentElement.style.backgroundColor = '#121212';
|
|
}
|
|
} catch (e) {
|
|
// Ignore read errors
|
|
}
|
|
})();
|
|
</script>
|
|
<style>
|
|
html.dark-mode,
|
|
html.dark-mode body,
|
|
html.dark-mode #app {
|
|
background-color: #121212;
|
|
}
|
|
|
|
html.dark-mode .top-nav,
|
|
html.dark-mode .sidebar {
|
|
background-color: #1e1e1e;
|
|
}
|
|
|
|
html.dark-mode .top-nav,
|
|
html.dark-mode .sidebar,
|
|
html.dark-mode .sidebar-header,
|
|
html.dark-mode .sidebar-title {
|
|
border-color: #333333;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/main.js"></script>
|
|
</body>
|
|
</html>
|