Spaces:
Running
Running
File size: 1,148 Bytes
211077d 8a84287 211077d 8a84287 d6d1cc4 8a84287 d6d1cc4 8a84287 211077d | 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 | <script lang="ts">
import * as Dialog from '$lib/components/ui/dialog/index.js';
import { signinModalState } from '$lib/state/signin-modal.svelte';
import { Button } from '$lib/components/ui/button/index.js';
import { LogIn } from '@lucide/svelte';
import HFLogo from '$lib/assets/hf-logo.svg';
</script>
<Dialog.Root bind:open={signinModalState.open}>
<Dialog.Content class="max-w-sm! p-0!">
<Dialog.Title class="sr-only">Sign in to Hugging Face</Dialog.Title>
<div class="flex flex-col items-center gap-4 p-6 text-center">
<div
class="to-emerald/10 mx-auto flex size-18 items-center justify-center rounded-full bg-linear-to-b from-amber-500/30"
>
<img src={HFLogo} alt="Hugging Face" class="size-14" />
</div>
<div>
<h1 class="text-xl font-bold text-balance">Welcome to the Playground</h1>
<p class="mt-1 text-sm text-muted-foreground">
Log in to your Hugging Face account to continue.
</p>
</div>
<!-- <Button variant="outline" class="mt-2 w-full gap-2" onclick={login}>
<LogIn class="size-4" />
Continue with Hugging Face
</Button> -->
</div>
</Dialog.Content>
</Dialog.Root>
|