mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-04 20:55:19 +02:00
Add loading state to setup and signup pages
This commit is contained in:
parent
15b1395870
commit
3299855f86
2 changed files with 7 additions and 3 deletions
|
@ -2,6 +2,10 @@
|
|||
import { enhance } from "$app/forms";
|
||||
|
||||
let loading = false;
|
||||
|
||||
function toggleLoad() {
|
||||
loading = !loading;
|
||||
}
|
||||
</script>
|
||||
|
||||
<h1 class="text-center font-bold text-4xl">AdventureLog Setup</h1>
|
||||
|
@ -16,7 +20,7 @@
|
|||
<h2 class="text-center font-bold text-2xl mt-6">Create Admin User</h2>
|
||||
|
||||
<div class="flex justify-center">
|
||||
<form method="post" use:enhance class="w-full max-w-xs">
|
||||
<form method="post" use:enhance={toggleLoad} class="w-full max-w-xs">
|
||||
<label for="username">Username</label>
|
||||
<input
|
||||
name="username"
|
||||
|
@ -59,4 +63,4 @@
|
|||
name="description"
|
||||
content="Setup AdventureLog with your admin account"
|
||||
/>
|
||||
</svelte:head>;
|
||||
</svelte:head>
|
||||
|
|
|
@ -61,4 +61,4 @@
|
|||
name="description"
|
||||
content="Signup for AdventureLog to start logging your adventures!"
|
||||
/>
|
||||
</svelte:head>;
|
||||
</svelte:head>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue