|
|
|
@ -2,7 +2,7 @@
|
|
|
|
import { Button } from '$lib/components/ui/button';
|
|
|
|
import { Button } from '$lib/components/ui/button';
|
|
|
|
import { Input } from '$lib/components/ui/input';
|
|
|
|
import { Input } from '$lib/components/ui/input';
|
|
|
|
import { Label } from '$lib/components/ui/label';
|
|
|
|
import { Label } from '$lib/components/ui/label';
|
|
|
|
import { LoaderIcon } from 'lucide-svelte';
|
|
|
|
import { Loader2, LoaderIcon } from 'lucide-svelte';
|
|
|
|
import { cn } from '$lib/utils';
|
|
|
|
import { cn } from '$lib/utils';
|
|
|
|
|
|
|
|
|
|
|
|
let className: string | undefined | null = undefined;
|
|
|
|
let className: string | undefined | null = undefined;
|
|
|
|
@ -20,8 +20,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class={cn('grid gap-6', className)} {...$$restProps}>
|
|
|
|
<div class={cn('grid gap-6', className)} {...$$restProps}>
|
|
|
|
<form on:submit|preventDefault={onSubmit}>
|
|
|
|
<form on:submit|preventDefault={onSubmit}>
|
|
|
|
<div class="grid gap-2">
|
|
|
|
|
|
|
|
<div class="grid gap-4">
|
|
|
|
<div class="grid gap-4">
|
|
|
|
|
|
|
|
<div class="grid gap-1">
|
|
|
|
<Label for="email">Email</Label>
|
|
|
|
<Label for="email">Email</Label>
|
|
|
|
<Input
|
|
|
|
<Input
|
|
|
|
id="email"
|
|
|
|
id="email"
|
|
|
|
@ -35,13 +35,18 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="grid gap-1">
|
|
|
|
<div class="grid gap-1">
|
|
|
|
<Label for="password">Password</Label>
|
|
|
|
<Label for="password">Password</Label>
|
|
|
|
<Input id="password" placeholder="••••••••" type="password" disabled={isLoading} />
|
|
|
|
<Input
|
|
|
|
|
|
|
|
id="password"
|
|
|
|
|
|
|
|
placeholder="••••••••"
|
|
|
|
|
|
|
|
type="password"
|
|
|
|
|
|
|
|
disabled={isLoading}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<Button disabled={isLoading}>
|
|
|
|
<Button disabled={isLoading} type="submit" class="flex gap-2">
|
|
|
|
{#if isLoading}
|
|
|
|
{#if isLoading}
|
|
|
|
<LoaderIcon />
|
|
|
|
<Loader2 class="animate-spin" />
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
Sign In with Email
|
|
|
|
Sign In
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
|