aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib/components/navbar
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-24 15:15:09 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-24 15:15:42 +0200
commit33664eff2c93136658b7f863c95e1bfda91141ee (patch)
treeacda060d878b557e58db042a3bb30ff4212c17b1 /web/pw-server/src/lib/components/navbar
parent4a582e8079178a7ac11f2a492e7988fcdaa210cd (diff)
downloadplanetwars.dev-33664eff2c93136658b7f863c95e1bfda91141ee.tar.xz
planetwars.dev-33664eff2c93136658b7f863c95e1bfda91141ee.zip
basic user profile pages
Diffstat (limited to 'web/pw-server/src/lib/components/navbar')
-rw-r--r--web/pw-server/src/lib/components/navbar/UserControls.svelte7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/pw-server/src/lib/components/navbar/UserControls.svelte b/web/pw-server/src/lib/components/navbar/UserControls.svelte
index 0b8413d..a9bd87b 100644
--- a/web/pw-server/src/lib/components/navbar/UserControls.svelte
+++ b/web/pw-server/src/lib/components/navbar/UserControls.svelte
@@ -36,9 +36,9 @@
<div class="user-controls">
{#if $currentUser}
- <div class="current-user-name">
- {$currentUser["username"]}
- </div>
+ <a class="current-user-name" href="/users/{$currentUser["username"]}">
+ {$currentUser["username"]}
+ </a>
<div class="sign-out" on:click={signOut}>Sign out</div>
{:else}
<a class="account-href" href="login">Sign in</a>
@@ -61,6 +61,7 @@
.current-user-name {
@include navbar-item;
+ text-decoration: none;
color: #fff;
}