summaryrefslogtreecommitdiff
path: root/hi-ui/src/routes
diff options
context:
space:
mode:
authorKit La Touche <kit@transneptune.net>2024-10-08 22:58:17 -0400
committerKit La Touche <kit@transneptune.net>2024-10-08 22:58:17 -0400
commitdd62b823e01934a0f841256fdb17b551091896bf (patch)
treeb8494b134cc32d62b431eb97be19e23fd90635e0 /hi-ui/src/routes
parent7f0ce0c639e936db0f5f3fabcbe2d279261d0c0b (diff)
All kinds of styling
Diffstat (limited to 'hi-ui/src/routes')
-rw-r--r--hi-ui/src/routes/+layout.svelte14
-rw-r--r--hi-ui/src/routes/+page.svelte2
2 files changed, 13 insertions, 3 deletions
diff --git a/hi-ui/src/routes/+layout.svelte b/hi-ui/src/routes/+layout.svelte
index f54f3bf..28ae4ec 100644
--- a/hi-ui/src/routes/+layout.svelte
+++ b/hi-ui/src/routes/+layout.svelte
@@ -1,9 +1,21 @@
<script>
+ import { AppBar } from '@skeletonlabs/skeleton';
import "../app.css";
+
+ import { currentUser } from '../store';
+ import LogOut from '../lib/LogOut.svelte';
</script>
<div id="app">
- <h1>hi</h1>
+ <AppBar>
+ <svelte:fragment slot="lead">🌳</svelte:fragment>
+ understory
+ <svelte:fragment slot="trail">
+ {#if $currentUser}
+ <LogOut />
+ {/if}
+ </svelte:fragment>
+ </AppBar>
<slot />
</div>
diff --git a/hi-ui/src/routes/+page.svelte b/hi-ui/src/routes/+page.svelte
index cae1aff..932582d 100644
--- a/hi-ui/src/routes/+page.svelte
+++ b/hi-ui/src/routes/+page.svelte
@@ -8,7 +8,6 @@
import ChannelList from '../lib/ChannelList.svelte';
import CreateChannelForm from '../lib/CreateChannelForm.svelte';
import LogIn from '../lib/LogIn.svelte';
- import LogOut from '../lib/LogOut.svelte';
import MessageInput from '../lib/MessageInput.svelte';
let user;
@@ -59,7 +58,6 @@
{#if loading}
<h2>Loading&hellip;</h2>
{:else if user != null}
- <LogOut />
<div id="interface">
<div class="channel-list">
<ChannelList />