Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
footer aside signin
Browse files
src/lib/assets/hf-logo.svg
ADDED
src/lib/components/sidebar/Sidebar.svelte
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
import Icon from "@iconify/svelte"
|
3 |
|
4 |
import Menu from "./Menu.svelte";
|
|
|
5 |
|
6 |
let isOpen = false;
|
7 |
|
@@ -31,24 +32,30 @@
|
|
31 |
<button class="bg-transparent absolute top-10 right-8 cursor-pointer lg:hidden" on:click="{handleClick}">
|
32 |
<Icon icon="{isOpen ? "mdi:hamburger-remove" : "mdi:hamburger-minus"}" class="w-7 h-7 text-white" />
|
33 |
</button>
|
34 |
-
<aside class="bg-neutral-950 h-screen border-r border-neutral-800 w-full max-w-[344px] absolute -translate-x-full lg:translate-x-0 transition-all duration-200 lg:relative lg:z-
|
35 |
-
<
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
<
|
40 |
-
|
41 |
-
|
42 |
-
<
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
<
|
51 |
-
|
52 |
-
|
|
|
|
|
53 |
</div>
|
|
|
|
|
|
|
|
|
54 |
</aside>
|
|
|
2 |
import Icon from "@iconify/svelte"
|
3 |
|
4 |
import Menu from "./Menu.svelte";
|
5 |
+
import HFLogo from "$lib/assets/hf-logo.svg";
|
6 |
|
7 |
let isOpen = false;
|
8 |
|
|
|
32 |
<button class="bg-transparent absolute top-10 right-8 cursor-pointer lg:hidden" on:click="{handleClick}">
|
33 |
<Icon icon="{isOpen ? "mdi:hamburger-remove" : "mdi:hamburger-minus"}" class="w-7 h-7 text-white" />
|
34 |
</button>
|
35 |
+
<aside class="bg-neutral-950 h-screen border-r border-neutral-800 w-full max-w-[344px] absolute -translate-x-full lg:translate-x-0 transition-all duration-200 lg:relative z-20 lg:z-0 flex flex-col justify-between" class:translate-x-0={isOpen}>
|
36 |
+
<div class="w-full">
|
37 |
+
<header class="text-white px-8 pb-8 pt-10 text-xl tracking-wider font-semibold">
|
38 |
+
LoRA Studio
|
39 |
+
</header>
|
40 |
+
<div class="px-4">
|
41 |
+
<ul class="grid grid-cols-1 gap-2">
|
42 |
+
{#each menus as menu}
|
43 |
+
<Menu href={menu.href}>
|
44 |
+
<Icon icon={menu.icon} class="w-5 h-5" />
|
45 |
+
{menu.label}
|
46 |
+
</Menu>
|
47 |
+
|
48 |
+
{/each}
|
49 |
+
</ul>
|
50 |
+
<hr class="border-neutral-800/50 mt-10 mx-4">
|
51 |
+
<Menu href="https://huggingface.co/">
|
52 |
+
<Icon icon="ph:question-fill" class="w-5 h-5" />
|
53 |
+
Help
|
54 |
+
</Menu>
|
55 |
+
</div>
|
56 |
</div>
|
57 |
+
<footer class="text-white text-center text-base pb-8 px-8 flex items-center justify-center gap-2 cursor-pointer">
|
58 |
+
<img src={HFLogo} alt="Hugging Face logo" class="w-8 h-8 inline-block" />
|
59 |
+
<u>Sign in with Hugging Face</u>
|
60 |
+
</footer>
|
61 |
</aside>
|
src/routes/+layout.svelte
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
|
6 |
<div class="flex items-start">
|
7 |
<Sidebar />
|
8 |
-
<main id="app" class="px-6 py-10 lg:px-10 lg:py-12 flex-1 h-screen overflow-auto">
|
9 |
<slot />
|
10 |
</main>
|
11 |
</div>
|
|
|
5 |
|
6 |
<div class="flex items-start">
|
7 |
<Sidebar />
|
8 |
+
<main id="app" class="px-6 py-10 lg:px-10 lg:py-12 flex-1 h-screen overflow-y-auto">
|
9 |
<slot />
|
10 |
</main>
|
11 |
</div>
|