Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
remove modal
Browse files Browse the repository at this point in the history
  • Loading branch information
CelestialCrafter committed Nov 1, 2023
1 parent 570a263 commit c0f477e
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
<script>
import Modal from '$lib/components/Modal.svelte';
import Avatar from '$lib/components/Avatar.svelte';
export let data;
const {
account,
account: { identity }
} = data;
let open;
</script>

<main>
{#if data}
<Modal bind:open>
{#if data.success}
<div class="success">
<span style="word-wrap: anywhere;">{data.token}</span>
<br />
<p>{JSON.stringify(data.account)}</p>
</div>
{:else}
<div class="error">
<span>{data.error}</span>
{#if data.detailed}
<br />
<code>{data.detailed}</code>
{/if}
</div>
{/if}
</Modal>
<h1 class="text-2xl">SIGNED IN AS:</h1>
<div class="yippie"></div>
<div class="yippie" />
<section>
<pre>
[NAME]: {identity.name}
Expand All @@ -44,6 +26,8 @@

[ISSUED AT]: {account.iat}
[EXPIRES AT]: {account.exp}

{data.token}
</pre>
</section>
{/if}
Expand Down

0 comments on commit c0f477e

Please sign in to comment.