feat: add user page to profile page

This commit is contained in:
Xyphyn committed 2023-08-11 14:16:35 -07:00
1 parent a5c41a9c90
commit d193719475
8 files changed
+102 -5

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
<script>
import { goto } from '$app/navigation'
import { page } from '$app/stores'
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
</script>
<svelte:head>
<title>Profile</title>
</svelte:head>
<div class="flex flex-col gap-4 h-full">
<MultiSelect
headless
options={['/profile/user', '/profile/settings']}
optionNames={['User', 'Settings']}
selected={$page.url.pathname}
on:select={(e) => {
goto(e.detail)
}}
/>
<slot />
</div>