Files
console/src/app.html
T
Torsten Dittmann 3fbb32463b fix: fonts
2025-03-13 14:58:13 +04:00

57 lines
2.1 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="description"
content="Appwrite is an open-source platform for building applications at any scale, using your preferred programming languages and tools." />
<link rel="icon" type="image/svg+xml" href="/console/logos/appwrite-icon.svg" />
<link rel="mask-icon" type="image/png" href="/console/logos/appwrite-icon.png" />
<link rel="stylesheet" href="/console/css/loading.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover" data-loading="true">
<script>
let themeInUse = 'auto';
const appwrite = localStorage.getItem('appwrite');
if (appwrite) {
try {
const localPrefs = JSON.parse(appwrite);
if (localPrefs) themeInUse = localPrefs.theme;
} catch (ignore) {
// Ignore any errors during JSON parsing
}
}
const systemPrefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
themeInUse =
themeInUse === 'auto' ? (systemPrefersDark ? 'dark' : 'light') : themeInUse;
document.body.setAttribute('class', `theme-${themeInUse}`);
</script>
<div id="svelte">%sveltekit.body%</div>
<div class="page-loader">
<div class="animation">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<img
src="/console/images/appwrite-logo-light.svg"
width="120"
height="22"
class="logo-light"
alt="Appwrite Logo" />
<img
src="/console/images/appwrite-logo-dark.svg"
width="120"
height="22"
class="logo-dark"
alt="Appwrite Logo" />
</div>
</body>
</html>