From e9af098dd23794c9a548d4586d16b8403e4adf9a Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Wed, 9 Aug 2023 14:22:11 -0700 Subject: [PATCH] misc: make guest experience better --- package.json | 2 +- src/lib/components/ui/Navbar.svelte | 33 ++++++++++++++++++++--------- 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 2195b304..0da67f63 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photon-lemmy", - "version": "0.5.9", + "version": "0.6.0", "private": true, "scripts": { "dev": "vite dev", diff --git a/src/lib/components/ui/Navbar.svelte b/src/lib/components/ui/Navbar.svelte index dd7aa4e3..9039853d 100644 --- a/src/lib/components/ui/Navbar.svelte +++ b/src/lib/components/ui/Navbar.svelte @@ -17,6 +17,7 @@ import { theme } from '$lib/ui/colors.js' import { ArrowLeftOnRectangle, + Bars3, Bookmark, Cog6Tooth, CommandLine, @@ -31,6 +32,7 @@ Plus, Sun, UserCircle, + UserGroup, } from 'svelte-hero-icons' let scrollY = 0 @@ -63,7 +65,7 @@ Powered by Photon @@ -184,6 +186,10 @@ class="rounded-full w-2 h-2 bg-red-500 absolute top-0 left-0 z-10" /> {/if} + {:else} +
+ +
{/if}
  • @@ -211,15 +217,22 @@ Saved {/if} - - - {$profileData.profiles.length == 0 ? 'Log in' : 'Switch accounts'} - - {$profileData.profiles.length} - - + {#if $profileData.profiles.length == 0} + + + Log in + + {:else} + + + Manage accounts + + {$profileData.profiles.length} + + + {/if}
  • App