Commit f63866b7 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

feat: loading indicator

parent b22415d4
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
import 'tippy.js/dist/tippy.css'; import 'tippy.js/dist/tippy.css';
import { WEBUI_BASE_URL } from '$lib/constants'; import { WEBUI_BASE_URL } from '$lib/constants';
import i18n, { initI18n } from '$lib/i18n'; import i18n, { initI18n } from '$lib/i18n';
import Spinner from '$lib/components/common/Spinner.svelte';
setContext('i18n', i18n); setContext('i18n', i18n);
...@@ -74,6 +75,17 @@ ...@@ -74,6 +75,17 @@
{#if loaded} {#if loaded}
<slot /> <slot />
{:else}
<div class=" min-h-screen h-[100dvh] flex">
<div class="m-auto">
<img
src="/logo.svg"
alt="logo"
class=" size-24 rounded-full border-[1px] border-gray-200 dark:border-none mx-auto mb-8"
draggable="false"
/>
</div>
</div>
{/if} {/if}
<Toaster richColors position="top-center" /> <Toaster richColors position="top-center" />
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment