mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-07-13 02:53:45 +00:00
30 lines
760 B
Svelte
30 lines
760 B
Svelte
<script lang="ts">
|
|
import { onDestroy } from 'svelte';
|
|
import { user } from '$lib/stores/user.js';
|
|
import { type User } from '@supabase/auth-js';
|
|
import SignUp from '$lib/components/SignUp.svelte';
|
|
|
|
export let data;
|
|
let { supabase } = data;
|
|
$: ({ supabase } = data);
|
|
|
|
let localUser: User | null;
|
|
const unsubscribe = user.subscribe((value) => {
|
|
localUser = value;
|
|
});
|
|
onDestroy(unsubscribe);
|
|
</script>
|
|
|
|
<div class="hero min-h-screen bg-base-200">
|
|
<div class="hero-content flex-col lg:flex-row-reverse">
|
|
<div class="text-center lg:text-left">
|
|
<h1 class="text-5xl font-bold">Start Your Pokemon Journey!</h1>
|
|
</div>
|
|
<div class="card shrink-0 w-full max-w-sm shadow-2xl bg-base-100">
|
|
<SignUp {supabase} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<p></p>
|