misc: make guest experience better
This commit is contained in:
1 parent
8f07d4547a
commit
e9af098dd2
2 files changed
+17
-4
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "photon-lemmy",
|
"name": "photon-lemmy",
|
||||||
"version": "0.5.9",
|
"version": "0.6.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
import { theme } from '$lib/ui/colors.js'
|
import { theme } from '$lib/ui/colors.js'
|
||||||
import {
|
import {
|
||||||
ArrowLeftOnRectangle,
|
ArrowLeftOnRectangle,
|
||||||
|
Bars3,
|
||||||
Bookmark,
|
Bookmark,
|
||||||
Cog6Tooth,
|
Cog6Tooth,
|
||||||
CommandLine,
|
CommandLine,
|
||||||
@@ -31,6 +32,7 @@
|
|||||||
Plus,
|
Plus,
|
||||||
Sun,
|
Sun,
|
||||||
UserCircle,
|
UserCircle,
|
||||||
|
UserGroup,
|
||||||
} from 'svelte-hero-icons'
|
} from 'svelte-hero-icons'
|
||||||
|
|
||||||
let scrollY = 0
|
let scrollY = 0
|
||||||
@@ -63,7 +65,7 @@
|
|||||||
Powered by <Link
|
Powered by <Link
|
||||||
href="https://github.com/Xyphyn/photon"
|
href="https://github.com/Xyphyn/photon"
|
||||||
highlight={false}
|
highlight={false}
|
||||||
class="font-bold flex items-center gap-0.5 hover:underline"
|
class="font-bold flex items-center gap-0.5 hover:underline text-black dark:text-white"
|
||||||
>
|
>
|
||||||
<Logo width={12} /> Photon
|
<Logo width={12} /> Photon
|
||||||
</Link>
|
</Link>
|
||||||
@@ -184,6 +186,10 @@
|
|||||||
class="rounded-full w-2 h-2 bg-red-500 absolute top-0 left-0 z-10"
|
class="rounded-full w-2 h-2 bg-red-500 absolute top-0 left-0 z-10"
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
{:else}
|
||||||
|
<div class="w-full h-full grid place-items-center">
|
||||||
|
<Icon src={Bars3} mini size="18" />
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</button>
|
</button>
|
||||||
<li class="text-xs opacity-80 text-left mx-4 my-1 py-1">
|
<li class="text-xs opacity-80 text-left mx-4 my-1 py-1">
|
||||||
@@ -211,15 +217,22 @@
|
|||||||
<Icon src={Bookmark} mini width={16} /> Saved
|
<Icon src={Bookmark} mini width={16} /> Saved
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
{/if}
|
{/if}
|
||||||
<MenuButton link href="/accounts">
|
{#if $profileData.profiles.length == 0}
|
||||||
|
<MenuButton link href="/login">
|
||||||
<Icon src={ArrowLeftOnRectangle} mini width={16} />
|
<Icon src={ArrowLeftOnRectangle} mini width={16} />
|
||||||
{$profileData.profiles.length == 0 ? 'Log in' : 'Switch accounts'}
|
Log in
|
||||||
|
</MenuButton>
|
||||||
|
{:else}
|
||||||
|
<MenuButton link href="/accounts">
|
||||||
|
<Icon src={UserGroup} mini width={16} />
|
||||||
|
Manage accounts
|
||||||
<span
|
<span
|
||||||
class="text-xs font-bold bg-slate-100 dark:bg-zinc-700 px-2 py-0.5 rounded-md ml-auto"
|
class="text-xs font-bold bg-slate-100 dark:bg-zinc-700 px-2 py-0.5 rounded-md ml-auto"
|
||||||
>
|
>
|
||||||
{$profileData.profiles.length}
|
{$profileData.profiles.length}
|
||||||
</span>
|
</span>
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
|
{/if}
|
||||||
<hr class="dark:opacity-10 w-[90%] my-2 mx-auto" />
|
<hr class="dark:opacity-10 w-[90%] my-2 mx-auto" />
|
||||||
<li class="text-xs px-4 py-1 my-1 opacity-80">App</li>
|
<li class="text-xs px-4 py-1 my-1 opacity-80">App</li>
|
||||||
<MenuButton link href="/settings">
|
<MenuButton link href="/settings">
|
||||||
|
|||||||
Reference in new issue
Block a user