mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 12:57:49 +00:00
Adds console.ts for console sdk
Updates top nav with a check for a logged in user in order to update message accordingly
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { afterNavigate } from '$app/navigation';
|
||||
import type { NavLink } from '$lib/layouts/Main.svelte';
|
||||
import {loggedIn} from "$lib/utils/console";
|
||||
|
||||
export let open = false;
|
||||
export let links: NavLink[];
|
||||
@@ -19,7 +20,11 @@
|
||||
Sign up
|
||||
</a>
|
||||
|
||||
<a href="https://cloud.appwrite.io" class="aw-button aw-u-flex-1">Get started</a>
|
||||
{#if $loggedIn}
|
||||
<a href="https://cloud.appwrite.io" class="aw-button aw-u-flex-1">Go to Console</a>
|
||||
{:else}
|
||||
<a href="https://cloud.appwrite.io" class="aw-button aw-u-flex-1">Get started</a>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="aw-side-nav-scroll">
|
||||
<section>
|
||||
|
||||
Reference in New Issue
Block a user