nav branding (#84)
Browse files* nav branding
* spacing
src/lib/components/NavMenu.svelte
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
import { page } from "$app/stores";
|
4 |
import { createEventDispatcher } from "svelte";
|
5 |
|
|
|
6 |
import CarbonTrashCan from "~icons/carbon/trash-can";
|
7 |
import CarbonExport from "~icons/carbon/export";
|
8 |
import { switchTheme } from "$lib/switchTheme";
|
@@ -18,15 +19,21 @@
|
|
18 |
}> = [];
|
19 |
</script>
|
20 |
|
21 |
-
<div class="flex-none sticky top-0
|
|
|
|
|
|
|
|
|
22 |
<a
|
23 |
href={base || "/"}
|
24 |
-
class="border
|
25 |
>
|
26 |
New Chat
|
27 |
</a>
|
28 |
</div>
|
29 |
-
<div
|
|
|
|
|
30 |
{#each conversations as conv}
|
31 |
<a
|
32 |
data-sveltekit-noscroll
|
@@ -61,7 +68,9 @@
|
|
61 |
</a>
|
62 |
{/each}
|
63 |
</div>
|
64 |
-
<div
|
|
|
|
|
65 |
<button
|
66 |
on:click={switchTheme}
|
67 |
type="button"
|
|
|
3 |
import { page } from "$app/stores";
|
4 |
import { createEventDispatcher } from "svelte";
|
5 |
|
6 |
+
import Logo from "$lib/components/icons/Logo.svelte";
|
7 |
import CarbonTrashCan from "~icons/carbon/trash-can";
|
8 |
import CarbonExport from "~icons/carbon/export";
|
9 |
import { switchTheme } from "$lib/switchTheme";
|
|
|
19 |
}> = [];
|
20 |
</script>
|
21 |
|
22 |
+
<div class="flex-none max-sm:pt-0 sticky top-0 px-3 py-3.5 flex items-center justify-between">
|
23 |
+
<div class="rounded-xl font-semibold text-lg flex items-center">
|
24 |
+
<Logo classNames="mr-1 text-3xl" />
|
25 |
+
HuggingChat
|
26 |
+
</div>
|
27 |
<a
|
28 |
href={base || "/"}
|
29 |
+
class="flex border py-0.5 px-2 rounded-lg shadow-sm hover:shadow-none bg-white dark:bg-gray-700 dark:border-gray-600 text-center"
|
30 |
>
|
31 |
New Chat
|
32 |
</a>
|
33 |
</div>
|
34 |
+
<div
|
35 |
+
class="flex flex-col overflow-y-auto px-3 pb-3 pt-2 gap-1 bg-gradient-to-l from-gray-50 dark:from-gray-800/30 rounded-r-xl"
|
36 |
+
>
|
37 |
{#each conversations as conv}
|
38 |
<a
|
39 |
data-sveltekit-noscroll
|
|
|
68 |
</a>
|
69 |
{/each}
|
70 |
</div>
|
71 |
+
<div
|
72 |
+
class="flex flex-col p-3 gap-2 bg-gradient-to-l from-gray-50 dark:from-gray-800/30 rounded-r-xl"
|
73 |
+
>
|
74 |
<button
|
75 |
on:click={switchTheme}
|
76 |
type="button"
|
src/lib/components/chat/ChatIntroduction.svelte
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
<div class="grid lg:grid-cols-3 gap-8 my-auto">
|
13 |
<div class="lg:col-span-1">
|
14 |
<div>
|
15 |
-
<div class="text-2xl font-
|
16 |
<Logo classNames="mr-1 text-yellow-400 text-4xl" />
|
17 |
HuggingChat
|
18 |
</div>
|
|
|
12 |
<div class="grid lg:grid-cols-3 gap-8 my-auto">
|
13 |
<div class="lg:col-span-1">
|
14 |
<div>
|
15 |
+
<div class="text-2xl font-semibold mb-3 flex items-center">
|
16 |
<Logo classNames="mr-1 text-yellow-400 text-4xl" />
|
17 |
HuggingChat
|
18 |
</div>
|
src/routes/+layout.svelte
CHANGED
@@ -54,9 +54,7 @@
|
|
54 |
on:deleteConversation={(ev) => deleteConversation(ev.detail)}
|
55 |
/>
|
56 |
</MobileNav>
|
57 |
-
<nav
|
58 |
-
class="max-md:hidden grid grid-rows-[auto,1fr,auto] grid-cols-1 max-h-screen bg-gradient-to-l from-gray-50 dark:from-gray-800/30 rounded-r-xl"
|
59 |
-
>
|
60 |
<NavMenu
|
61 |
conversations={data.conversations}
|
62 |
on:shareConversation={(ev) => shareConversation(ev.detail.id, ev.detail.title)}
|
|
|
54 |
on:deleteConversation={(ev) => deleteConversation(ev.detail)}
|
55 |
/>
|
56 |
</MobileNav>
|
57 |
+
<nav class="max-md:hidden grid grid-rows-[auto,1fr,auto] grid-cols-1 max-h-screen">
|
|
|
|
|
58 |
<NavMenu
|
59 |
conversations={data.conversations}
|
60 |
on:shareConversation={(ev) => shareConversation(ev.detail.id, ev.detail.title)}
|