Rework navigation

This commit is contained in:
Jon Staab
2024-08-16 11:12:14 -07:00
parent bd8fcd3264
commit 6796f1c107
18 changed files with 182 additions and 166 deletions
+41
View File
@@ -0,0 +1,41 @@
<script lang="ts">
import {fly} from "@lib/transition"
import Icon from "@lib/components/Icon.svelte"
import Page from "@lib/components/Page.svelte"
import SecondaryNav from "@lib/components/SecondaryNav.svelte"
import SecondaryNavItem from "@lib/components/SecondaryNavItem.svelte"
import SecondaryNavHeader from "@lib/components/SecondaryNavHeader.svelte"
import SecondaryNavSection from "@lib/components/SecondaryNavSection.svelte"
</script>
<SecondaryNav>
<SecondaryNavSection>
<div in:fly>
<SecondaryNavItem href="/home">
<Icon icon="home-smile" /> Home
</SecondaryNavItem>
</div>
<div in:fly={{delay: 50}}>
<SecondaryNavItem href="/home/people">
<Icon icon="user-heart" /> People
</SecondaryNavItem>
</div>
<div in:fly={{delay: 100}}>
<SecondaryNavItem href="/home/notes">
<Icon icon="clipboard-text" /> Saved Notes
</SecondaryNavItem>
</div>
<div in:fly={{delay: 150}}>
<SecondaryNavHeader>
Conversations
<div class="cursor-pointer">
<Icon icon="add-circle" />
</div>
</SecondaryNavHeader>
</div>
</SecondaryNavSection>
</SecondaryNav>
<Page>
<slot />
</Page>
+1 -1
View File
@@ -6,7 +6,7 @@
const createSpace = () => pushModal(SpaceCreate)
const browseSpaces = () => goto("/spaces")
const browseSpaces = () => goto("/discover")
</script>
<div class="hero min-h-screen bg-base-200">
View File
View File