misc: Add version number

This commit is contained in:
Xyphyn committed 2023-07-14 16:14:06 -07:00
1 parent 8eb1e46d30
commit 45cdf3e665
2 files changed
+13 -16

No files matched your search

+13 -13
View File
@@ -26,12 +26,12 @@
</script>
<nav
class="sticky top-0 bg-slate-50/80 dark:bg-zinc-950/80 backdrop-blur-3xl flex
flex-row gap-4 items-center w-full py-1 z-50 px-4"
class="flex flex-row gap-2 items-center sticky top-0 bg-slate-50/80
lg:bg-white/80 lg:rounded-b-xl
dark:bg-zinc-950/80 lg:dark:bg-zinc-900/80 backdrop-blur-3xl max-w-5xl
w-full mx-auto px-4 py-2 z-50 lg:border-x lg:border-b transition-all
border-slate-200 dark:border-zinc-800 box-border"
>
<div
class="flex flex-row gap-4 items-center max-w-5xl w-full mx-auto px-4 my-1 z-50"
>
<div class="flex flex-row gap-2 items-center mr-auto">
<a href="/" class="flex flex-row items-center gap-2">
<Logo width={40} />
@@ -90,19 +90,13 @@
class="rounded-full"
/>
{#if $user.unreads > 0}
<div
class="rounded-full w-2 h-2 bg-red-500 absolute top-0 left-0"
/>
<div class="rounded-full w-2 h-2 bg-red-500 absolute top-0 left-0" />
{/if}
{/if}
</button>
<span class="text-xs opacity-80 text-left mx-4 my-2">
{$user ? $user.person.name : 'Profile'}
</span>
<MenuButton link href="/experiments">
<Icon src={Beaker} mini width={16} />
Experiments
</MenuButton>
{#if !$user || !$authData}
<MenuButton link href="/login">
<Icon src={ArrowLeftOnRectangle} mini width={16} /> Log in
@@ -131,7 +125,13 @@
>
<Icon src={ArrowRightOnRectangle} mini width={16} />Log out
</MenuButton>
<hr class="opacity-10 w-[90%] my-2 mx-auto" />
<span class="text-xs px-4 my-1">v{__VERSION__}</span>
<MenuButton link href="/experiments">
<Icon src={Beaker} mini width={16} />
Experiments
</MenuButton>
<!-- svelte-ignore missing-declaration -->
{/if}
</Menu>
</div>
</nav>
-3
View File
@@ -33,6 +33,3 @@
<div class="mx-auto max-w-5xl p-4 h-full">
<slot />
</div>
<footer>
<p>{__VERSION__}</p>
</footer>