-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.svelte
More file actions
37 lines (29 loc) · 782 Bytes
/
Copy pathindex.svelte
File metadata and controls
37 lines (29 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<script context="module">
export async function preload(page, { user }) {
if (!(user && user.uid)) {
return
}
this.redirect(302, '/books')
}
</script>
<script>
import FirebaseUi from '../components/FirebaseUi.svelte'
import { Card, CardText } from 'svelte-materialify/src'
let loading = true
</script>
<svelte:head>
<title>Kookbook Login</title>
</svelte:head>
<div class="w-full h-full flex justify-center items-center">
<Card style="max-width:300px;" {loading} >
<div class="pl-4 pr-4 pt-3">
<span class="text-overline">Welcome to the Kookbook app</span>
<br />
<span class="text-h5 mb-2">Login</span>
<br />
</div>
<CardText>
<FirebaseUi onLoad={() => {loading = false}} />
</CardText>
</Card>
</div>