Skip to content

Commit

Permalink
Hide login link on landing page if logged in.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Jul 13, 2024
1 parent 9645761 commit df0f667
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
import Glyphs from '../lore/Glyphs';
import Emotion from '../lore/Emotion';
import Iconified from './Iconified.svelte';
import { getUser } from '@components/project/Contexts';
const user = getUser();
</script>

<svelte:head>
Expand Down Expand Up @@ -45,12 +48,14 @@
<MarkupHtmlView
markup={$locales.get((l) => l.ui.page.landing.description)}
/>
<br />
<BigLink
to="/login"
subtitle={$locales.get((l) => l.ui.page.login.subtitle)}
>{$locales.get((l) => l.ui.page.login.header)}</BigLink
>
{#if $user === null}
<br />
<BigLink
to="/login"
subtitle={$locales.get((l) => l.ui.page.login.subtitle)}
>{$locales.get((l) => l.ui.page.login.header)}</BigLink
>
{/if}
<br />
<div class="actions">
<Action>
Expand Down

0 comments on commit df0f667

Please sign in to comment.