open-webui/src/app.html

215 lines
4.7 KiB
HTML
Raw Normal View History

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" />
<meta name="robots" content="noindex,nofollow" />
2024-05-07 00:29:16 +00:00
<link
rel="search"
type="application/opensearchdescription+xml"
title="Open WebUI"
href="/opensearch.xml"
/>
2024-05-17 03:49:28 +00:00
2024-06-19 23:51:29 +00:00
<script>
function resizeIframe(obj) {
obj.style.height = obj.contentWindow.document.documentElement.scrollHeight + 'px';
}
</script>
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')) {
document.documentElement.style.setProperty('--color-gray-900', '#000000');
document.documentElement.style.setProperty('--color-gray-950', '#000000');
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-06-12 07:05:20 +00:00
} else if (localStorage.theme && localStorage.theme === 'her') {
document.documentElement.classList.add('dark');
document.documentElement.classList.add('her');
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 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 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"
2024-06-07 23:57:02 +00:00
style="position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 100%"
2024-04-27 22:59:20 +00:00
>
<style type="text/css" nonce="">
html {
overflow-y: scroll !important;
}
</style>
<img
2024-06-12 07:05:20 +00:00
id="logo"
2024-04-27 22:59:20 +00:00
style="
position: absolute;
width: 6rem;
height: 6rem;
2024-06-12 07:05:20 +00:00
top: 41%;
2024-04-27 22:59:20 +00:00
left: 50%;
2024-06-12 07:05:20 +00:00
margin-left: -3rem;
2024-04-27 22:59:20 +00:00
"
src="/logo.svg"
/>
2024-06-12 07:05:20 +00:00
<div
style="
position: absolute;
2024-06-12 10:13:59 +00:00
top: 33%;
2024-06-12 07:05:20 +00:00
left: 50%;
width: 24rem;
margin-left: -12rem;
2024-06-12 10:13:59 +00:00
display: flex;
flex-direction: column;
align-items: center;
2024-06-12 07:05:20 +00:00
"
2024-06-12 10:13:59 +00:00
>
<img
id="logo-her"
style="width: 13rem; height: 13rem"
src="/logo.svg"
class="animate-pulse-fast"
/>
<div style="position: relative; width: 24rem; margin-top: 0.5rem">
<div
id="progress-background"
style="
position: absolute;
width: 100%;
height: 0.75rem;
border-radius: 9999px;
background-color: #fafafa9a;
"
></div>
<div
id="progress-bar"
style="
position: absolute;
2024-06-12 18:13:24 +00:00
width: 0%;
2024-06-12 10:13:59 +00:00
height: 0.75rem;
border-radius: 9999px;
background-color: #fff;
"
class="bg-white"
></div>
</div>
</div>
2024-06-12 07:05:20 +00:00
2024-04-27 22:59:20 +00:00
<!-- <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>
2024-06-07 23:57:02 +00:00
<style type="text/css" nonce="">
2024-06-07 23:58:33 +00:00
html {
overflow-y: hidden !important;
}
2024-06-07 23:57:02 +00:00
#splash-screen {
background: #fff;
}
html.dark #splash-screen {
background: #000;
}
html.dark #splash-screen img {
filter: invert(1);
}
2024-06-12 07:05:20 +00:00
html.her #splash-screen {
background: #983724;
}
#logo-her {
display: none;
}
#progress-background {
display: none;
}
#progress-bar {
display: none;
}
html.her #logo {
display: none;
}
html.her #logo-her {
display: block;
filter: invert(1);
}
html.her #progress-background {
display: block;
}
html.her #progress-bar {
display: block;
}
2024-06-12 07:13:35 +00:00
2024-06-12 10:13:59 +00:00
@media (max-width: 24rem) {
html.her #progress-background {
display: none;
}
html.her #progress-bar {
display: none;
}
}
2024-06-12 07:13:35 +00:00
@keyframes pulse {
50% {
opacity: 0.65;
}
}
.animate-pulse-fast {
animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
2024-06-07 23:57:02 +00:00
</style>