2023-10-09 00:38:42 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
2023-11-30 21:09:55 +01:00
|
|
|
<link rel="manifest" href="%sveltekit.assets%/manifest.json" />
|
2023-10-24 10:57:51 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
2023-11-06 00:01:55 +01:00
|
|
|
<script>
|
|
|
|
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
|
|
|
|
if (
|
|
|
|
localStorage.theme === 'light' ||
|
|
|
|
(!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: light)').matches)
|
|
|
|
) {
|
|
|
|
document.documentElement.classList.add('light');
|
2024-01-02 04:59:50 +01:00
|
|
|
} else if (localStorage.theme) {
|
2024-01-02 04:36:09 +01:00
|
|
|
localStorage.theme.split(' ').forEach((e) => {
|
|
|
|
document.documentElement.classList.add(e);
|
|
|
|
});
|
2024-01-02 04:59:50 +01:00
|
|
|
} else {
|
|
|
|
document.documentElement.classList.add('dark');
|
2023-11-06 00:01:55 +01:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2023-10-09 00:38:42 +02:00
|
|
|
%sveltekit.head%
|
|
|
|
</head>
|
|
|
|
<body data-sveltekit-preload-data="hover">
|
|
|
|
<div style="display: contents">%sveltekit.body%</div>
|
|
|
|
</body>
|
|
|
|
</html>
|