mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 21:07:46 +00:00
fix: cta cloud flicker
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<script lang="ts">
|
||||
import { afterNavigate } from '$app/navigation';
|
||||
import { IsLoggedIn } from '$lib/components';
|
||||
import { GITHUB_STARS } from '$lib/constants';
|
||||
import type { NavLink } from '$lib/layouts/Main.svelte';
|
||||
import {loggedIn} from "$lib/utils/console";
|
||||
import { loggedIn } from '$lib/utils/console';
|
||||
|
||||
export let open = false;
|
||||
export let links: NavLink[];
|
||||
@@ -20,12 +21,18 @@
|
||||
<a href="https://cloud.appwrite.io/register" class="aw-button is-secondary aw-u-flex-1">
|
||||
Sign up
|
||||
</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}
|
||||
<IsLoggedIn>
|
||||
<svelte:fragment slot="isLoggedIn">
|
||||
<a href="https://cloud.appwrite.io" class="aw-button aw-u-flex-1">
|
||||
Go to Console
|
||||
</a>
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="isNotLoggedIn">
|
||||
<a href="https://cloud.appwrite.io" class="aw-button aw-u-flex-1">
|
||||
Get started
|
||||
</a>
|
||||
</svelte:fragment>
|
||||
</IsLoggedIn>
|
||||
</div>
|
||||
<div class="aw-side-nav-scroll">
|
||||
<section>
|
||||
|
||||
Reference in New Issue
Block a user