2023-10-08 22:38:42 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
2024-04-13 21:42:38 +00:00
|
|
|
<link rel="manifest" href="%sveltekit.assets%/manifest.json" crossorigin="use-credentials" />
|
2023-10-24 08:57:51 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
2024-02-25 02:58:44 +00:00
|
|
|
<meta name="robots" content="noindex,nofollow" />
|
2023-11-05 23:01:55 +00:00
|
|
|
<script>
|
|
|
|
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
|
2024-03-17 07:25:33 +00:00
|
|
|
(() => {
|
2024-03-28 09:44:16 +00:00
|
|
|
if (localStorage?.theme && localStorage?.theme.includes('oled')) {
|
2024-03-27 23:04:34 +00:00
|
|
|
document.documentElement.style.setProperty('--color-gray-900', '#000000');
|
2024-03-28 05:39:47 +00:00
|
|
|
document.documentElement.style.setProperty('--color-gray-950', '#000000');
|
2024-03-27 23:04:34 +00:00
|
|
|
document.documentElement.classList.add('dark');
|
2024-03-28 09:44:16 +00:00
|
|
|
} else if (
|
2024-03-17 07:25:33 +00:00
|
|
|
localStorage.theme === 'light' ||
|
|
|
|
(!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: light)').matches)
|
|
|
|
) {
|
|
|
|
document.documentElement.classList.add('light');
|
|
|
|
} else if (localStorage.theme && localStorage.theme !== 'system') {
|
|
|
|
localStorage.theme.split(' ').forEach((e) => {
|
|
|
|
document.documentElement.classList.add(e);
|
|
|
|
});
|
|
|
|
} else if (localStorage.theme && localStorage.theme === 'system') {
|
|
|
|
systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
|
|
document.documentElement.classList.add(systemTheme ? 'dark' : 'light');
|
2024-03-17 08:00:38 +00:00
|
|
|
} else {
|
2024-03-17 07:25:33 +00:00
|
|
|
document.documentElement.classList.add('dark');
|
|
|
|
}
|
2024-03-17 06:14:38 +00:00
|
|
|
|
2024-03-17 07:25:33 +00:00
|
|
|
window.matchMedia('(prefers-color-scheme: dark)').addListener((e) => {
|
|
|
|
if (localStorage.theme === 'system') {
|
|
|
|
if (e.matches) {
|
|
|
|
document.documentElement.classList.add('dark');
|
|
|
|
document.documentElement.classList.remove('light');
|
|
|
|
} else {
|
|
|
|
document.documentElement.classList.add('light');
|
|
|
|
document.documentElement.classList.remove('dark');
|
|
|
|
}
|
2024-03-17 06:14:38 +00:00
|
|
|
}
|
2024-03-17 08:00:38 +00:00
|
|
|
});
|
2024-03-17 07:25:33 +00:00
|
|
|
})();
|
2023-11-05 23:01:55 +00:00
|
|
|
</script>
|
|
|
|
|
2024-04-27 22:51:59 +00:00
|
|
|
<title>Open WebUI</title>
|
|
|
|
|
2023-10-08 22:38:42 +00:00
|
|
|
%sveltekit.head%
|
|
|
|
</head>
|
|
|
|
<body data-sveltekit-preload-data="hover">
|
|
|
|
<div style="display: contents">%sveltekit.body%</div>
|
2024-04-27 22:50:26 +00:00
|
|
|
|
2024-04-27 22:59:20 +00:00
|
|
|
<div
|
|
|
|
id="splash-screen"
|
|
|
|
style="
|
|
|
|
position: fixed;
|
|
|
|
z-index: 100;
|
|
|
|
background: #fff;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
"
|
|
|
|
>
|
|
|
|
<style type="text/css" nonce="">
|
|
|
|
html {
|
|
|
|
overflow-y: scroll !important;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<img
|
|
|
|
style="
|
|
|
|
position: absolute;
|
|
|
|
width: 6rem;
|
|
|
|
height: 6rem;
|
2024-04-28 01:14:08 +00:00
|
|
|
top: 46%;
|
2024-04-27 22:59:20 +00:00
|
|
|
left: 50%;
|
|
|
|
margin: -40px 0 0 -40px;
|
|
|
|
"
|
|
|
|
src="/logo.svg"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- <span style="position: absolute; bottom: 32px; left: 50%; margin: -36px 0 0 -36px">
|
|
|
|
Footer content
|
|
|
|
</span> -->
|
2024-04-27 22:50:26 +00:00
|
|
|
</div>
|
2023-10-08 22:38:42 +00:00
|
|
|
</body>
|
|
|
|
</html>
|