Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
add login button into the modal
Browse files
src/routes/+layout.svelte
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
import Sidebar from "$lib/components/sidebar/Sidebar.svelte";
|
6 |
import "$lib/styles/tailwind.css"
|
7 |
-
import { userStore } from "$lib/stores/use-user";
|
8 |
import Dialog from "$lib/components/dialog/Dialog.svelte";
|
9 |
import { loginModalStore } from "$lib/stores/use-login-modal";
|
10 |
|
@@ -35,9 +35,9 @@
|
|
35 |
</p>
|
36 |
</header>
|
37 |
<main>
|
38 |
-
<
|
39 |
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/sign-in-with-huggingface-lg.svg" alt="Sign in with Hugging Face" class="mx-auto" />
|
40 |
-
</
|
41 |
</main>
|
42 |
</div>
|
43 |
</Dialog>
|
|
|
4 |
|
5 |
import Sidebar from "$lib/components/sidebar/Sidebar.svelte";
|
6 |
import "$lib/styles/tailwind.css"
|
7 |
+
import { openWindowLogin, userStore } from "$lib/stores/use-user";
|
8 |
import Dialog from "$lib/components/dialog/Dialog.svelte";
|
9 |
import { loginModalStore } from "$lib/stores/use-login-modal";
|
10 |
|
|
|
35 |
</p>
|
36 |
</header>
|
37 |
<main>
|
38 |
+
<button class="inline-block" on:click={openWindowLogin}>
|
39 |
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/sign-in-with-huggingface-lg.svg" alt="Sign in with Hugging Face" class="mx-auto" />
|
40 |
+
</button>
|
41 |
</main>
|
42 |
</div>
|
43 |
</Dialog>
|