From 2fee850cfa6bd8d4771ac6bb0f6734cb986d6c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20K=C3=A1ntor?= Date: Wed, 5 May 2021 21:54:27 +0200 Subject: [PATCH] feat(lluis): add --- apps/lluis/NavBar.svelte | 46 +++++++++++++++ apps/web/src/components/NavBar.svelte | 80 +++++++++++---------------- apps/web/src/mystyles.scss | 8 +++ 3 files changed, 86 insertions(+), 48 deletions(-) create mode 100644 apps/lluis/NavBar.svelte diff --git a/apps/lluis/NavBar.svelte b/apps/lluis/NavBar.svelte new file mode 100644 index 000000000000..b757cba0ea8d --- /dev/null +++ b/apps/lluis/NavBar.svelte @@ -0,0 +1,46 @@ + + + + + diff --git a/apps/web/src/components/NavBar.svelte b/apps/web/src/components/NavBar.svelte index 12a49120828e..fef322c4359a 100644 --- a/apps/web/src/components/NavBar.svelte +++ b/apps/web/src/components/NavBar.svelte @@ -3,6 +3,7 @@ import authStore from "../auth" import SponsorButton from "./SponsorButton.svelte" import GitHubButton from "./GitHubButton.svelte" + import NavBar from "lluis/NavBar.svelte" import Icon from "lluis/Icon.svelte" import Button from "lluis/Button.svelte" import ButtonLink from "lluis/ButtonLink.svelte" @@ -14,56 +15,39 @@ _Logout: () => void } const _Logout = () => (window as unknown as WindowWithLogout)._Logout() - - - + + + + + {#if hasAuth && settings.features.authEnabled} + {#if $authStore.user} + + + {:else} + + Sign up + + + Log in + + {/if} + {/if} + +