feat: add Footer component to layout for improved user navigation

This commit is contained in:
2026-01-20 09:13:10 -05:00
parent 6c3caaf2ec
commit e0935505ea
2 changed files with 21 additions and 0 deletions
@@ -0,0 +1,19 @@
<script lang="ts">
const [major] = __APP_VERSION__.split('.').map(Number);
const isBeta = major < 1;
</script>
<div
class="mb-5 max-h-10 w-full border-t border-neutral-800 pt-5 text-center text-sm text-neutral-500"
>
<a
href="https://github.com/whoswhip/Sharpbin"
target="_blank"
rel="noopener noreferrer"
class="text-neutral-400 underline hover:text-neutral-200"
>
Source Code
</a>
<span class="mx-1">•</span>
v{__APP_VERSION__}{isBeta ? ' (Beta)' : ''}
</div>
@@ -3,6 +3,7 @@
import './layout.css'; import './layout.css';
import favicon from '$lib/assets/favicon.svg'; import favicon from '$lib/assets/favicon.svg';
import Navbar from '$lib/components/Navbar.svelte'; import Navbar from '$lib/components/Navbar.svelte';
import Footer from '$lib/components/Footer.svelte';
import ModalHost from '$lib/components/ModalHost.svelte'; import ModalHost from '$lib/components/ModalHost.svelte';
import { user } from '$lib/stores/user'; import { user } from '$lib/stores/user';
import { startTokenRefreshInterval, getToken, refreshTokenIfNeeded } from '$lib/utils/auth'; import { startTokenRefreshInterval, getToken, refreshTokenIfNeeded } from '$lib/utils/auth';
@@ -59,5 +60,6 @@
<Navbar {data} /> <Navbar {data} />
<!-- <div class="h-15 w-full"></div> --> <!-- <div class="h-15 w-full"></div> -->
<slot /> <slot />
<Footer />
<ModalHost /> <ModalHost />