diff --git a/src/lib/components/ui/Navbar.svelte b/src/lib/components/ui/Navbar.svelte deleted file mode 100644 index 324a6afb..00000000 --- a/src/lib/components/ui/Navbar.svelte +++ /dev/null @@ -1,342 +0,0 @@ - - - diff --git a/src/lib/components/ui/navbar/NavButton.svelte b/src/lib/components/ui/navbar/NavButton.svelte new file mode 100644 index 00000000..34457be5 --- /dev/null +++ b/src/lib/components/ui/navbar/NavButton.svelte @@ -0,0 +1,23 @@ + + + diff --git a/src/lib/components/ui/navbar/Navbar.svelte b/src/lib/components/ui/navbar/Navbar.svelte new file mode 100644 index 00000000..c504dd8f --- /dev/null +++ b/src/lib/components/ui/navbar/Navbar.svelte @@ -0,0 +1,174 @@ + + + diff --git a/src/lib/components/ui/navbar/Profile.svelte b/src/lib/components/ui/navbar/Profile.svelte new file mode 100644 index 00000000..fe85521c --- /dev/null +++ b/src/lib/components/ui/navbar/Profile.svelte @@ -0,0 +1,167 @@ + + + + + {#if $profile?.user} +
+ + {$profile?.user?.local_user_view?.person.name} +
+ {:else} + Profile + {/if} + {#if $profile?.user} + + Profile + + + + Inbox + {#if $profile.user.notifications.inbox > 0} + + {$profile.user.notifications.inbox} + + {/if} + + + Saved + + {/if} + + + Accounts + +
+ Photon + + + Settings + + + + + +
+ Theme + +
+
+ {#if $userSettings.debugInfo} + + + Debug + + {/if} +
+
  • +
    + +
    + +
    + + + +
    +
  • +
    diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index dd666a1d..96173c15 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,5 +1,5 @@