Skip to content

Commit 63036c5

Browse files
committed
feat: add some branding on shared conv if closed
1 parent 6eaf621 commit 63036c5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/lib/components/chat/ChatWindow.svelte

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import { beforeNavigate } from "$app/navigation";
4141
import { isVirtualKeyboard } from "$lib/utils/isVirtualKeyboard";
4242
import { usePublicConfig } from "$lib/utils/PublicConfig.svelte";
43+
import Logo from "../icons/Logo.svelte";
4344
4445
interface Props {
4546
messages?: Message[];
@@ -250,6 +251,23 @@
250251
}}
251252
/>
252253

254+
{#if publicConfig.isClosed && shared}
255+
<div
256+
class="fixed left-0 right-0 top-0 z-40 bg-gradient-to-b from-white via-white/80 to-transparent pb-12 pt-2 dark:from-gray-900 dark:via-gray-900/80"
257+
>
258+
<div class="flex justify-center">
259+
<a
260+
class="flex items-center rounded-xl text-lg font-semibold text-gray-800 dark:text-gray-200"
261+
href="{publicConfig.PUBLIC_ORIGIN}{base}/"
262+
>
263+
<Logo classNames="mr-1" />
264+
{publicConfig.PUBLIC_APP_NAME}
265+
</a>
266+
</div>
267+
</div>
268+
<div class="h-8"></div>
269+
{/if}
270+
253271
<div class="relative z-[-1] min-h-0 min-w-0">
254272
<div
255273
class="scrollbar-custom h-full overflow-y-auto"

0 commit comments

Comments
 (0)