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:
wess
2024-01-05 10:52:50 -05:00
parent acc3f78046
commit 3915e4ee08
7 changed files with 118 additions and 5 deletions

View File

@@ -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>