feat: update signup page
This commit is contained in:
1 parent
a12f153dc1
commit
7f9ab04c11
19 files changed
+236
-84
No files matched your search
@@ -22,6 +22,7 @@
|
||||
{title}
|
||||
loading="lazy"
|
||||
class="aspect-square object-cover overflow-hidden {$$props.class}"
|
||||
style="width: {width}px; height: {width}px;"
|
||||
class:rounded-full={circle}
|
||||
/>
|
||||
{:else}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="text-slate-700 dark:text-zinc-300 flex flex-col justify-center items-center gap-2"
|
||||
class="text-slate-700 dark:text-zinc-300 flex flex-col justify-center items-center gap-2 {$$props.class}"
|
||||
>
|
||||
{#if icon}
|
||||
<div
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
GlobeAlt,
|
||||
Home,
|
||||
Icon,
|
||||
Identification,
|
||||
ServerStack,
|
||||
UserGroup,
|
||||
} from 'svelte-hero-icons'
|
||||
import { profile, profileData } from '$lib/auth.js'
|
||||
@@ -80,14 +82,35 @@
|
||||
items={$profile.user.follows.map((i) => i.community)}
|
||||
/>
|
||||
{:else}
|
||||
<Button
|
||||
class="hover:bg-slate-200 {$userSettings.expandSidebar ? '' : '!p-1.5'}"
|
||||
href="/login"
|
||||
color="tertiary"
|
||||
alignment="left"
|
||||
title="Log In"
|
||||
>
|
||||
<Icon mini src={ArrowLeftOnRectangle} size="20" />
|
||||
<span class:hidden={!$userSettings.expandSidebar}>Log In</span>
|
||||
</Button>
|
||||
<Button
|
||||
class="hover:bg-slate-200 {$userSettings.expandSidebar ? '' : '!p-1.5'}"
|
||||
href="/signup"
|
||||
color="tertiary"
|
||||
alignment="left"
|
||||
title="Sign Up"
|
||||
>
|
||||
<Icon mini src={Identification} size="20" />
|
||||
<span class:hidden={!$userSettings.expandSidebar}>Sign Up</span>
|
||||
</Button>
|
||||
<Button
|
||||
class="hover:bg-slate-200 {$userSettings.expandSidebar ? '' : '!p-1.5'}"
|
||||
href="/accounts"
|
||||
color="tertiary"
|
||||
alignment="left"
|
||||
title="Change Instance"
|
||||
>
|
||||
<Icon mini src={ArrowLeftOnRectangle} size="20" />
|
||||
<span class:hidden={!$userSettings.expandSidebar}>Log in</span>
|
||||
<Icon mini src={ServerStack} size="20" />
|
||||
<span class:hidden={!$userSettings.expandSidebar}>Change instance</span>
|
||||
</Button>
|
||||
{/if}
|
||||
</nav>
|
||||
Reference in new issue
Block a user