Skip to content

Commit b672fb7

Browse files
committed
thumbnail update
1 parent 5165490 commit b672fb7

File tree

1 file changed

+21
-28
lines changed

1 file changed

+21
-28
lines changed

src/routes/assistant/[assistantId]/thumbnail.png/ChatThumbnail.svelte

Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,32 @@
88
export let createdByName: string | undefined;
99
export let avatarUrl: string | undefined;
1010
11-
const imgUrl = `${href}${base}/${PUBLIC_APP_ASSETS}/icon.svg`;
11+
const imgUrl = `${href}${base}/${PUBLIC_APP_ASSETS}/logo.svg`;
1212
</script>
1313

14-
<div class="flex h-full w-full flex-col items-center justify-center bg-gray-900 p-2">
15-
<div class="flex w-full flex-row items-center justify-center bg-gray-900 p-2 text-white">
14+
<div class="flex h-full w-full flex-col items-center justify-center bg-black p-2">
15+
<div class="flex w-full max-w-[540px] items-start justify-center text-white">
1616
{#if avatarUrl}
17-
<img class="h-32 w-32 rounded-full" src={avatarUrl} alt="avatar" />
18-
{:else}
19-
<div
20-
class="flex h-32 w-32 items-center justify-center rounded-full bg-gray-300 text-4xl font-bold uppercase text-gray-500"
21-
>
22-
{name[0]}
23-
</div>
17+
<img class="h-64 w-64 rounded-full" src={avatarUrl} alt="avatar" />
2418
{/if}
2519
<div class="ml-10 flex flex-col items-start">
26-
<h1 class=" text-2xl font-thin">
27-
<img class=" mr-2 h-8 w-8" src={imgUrl} alt="app logo" />
28-
Chat with
29-
</h1>
30-
<span class="-mt-5 max-w-[65vw] text-3xl font-black">
31-
{name}
32-
</span>
33-
{#if createdByName}
34-
<h3 class="mt-2 font-medium text-gray-400">
35-
Created by
36-
<span class="ml-1 underline">{createdByName}</span>
37-
</h3>
38-
{/if}
20+
<p class="mb-2 mt-0 text-3xl font-normal text-gray-400">
21+
<img class="mr-1.5 h-8 w-8" src={imgUrl} alt="app logo" />
22+
AI assistant
23+
</p>
24+
<h1 class="m-0 {name.length < 38 ? 'text-5xl' : ''} text-balance font-black">{name}</h1>
25+
<p class="mb-8 text-pretty text-2xl">
26+
{description.slice(0, 160)}
27+
{#if description.length > 160}...{/if}
28+
</p>
29+
<div class="rounded-full bg-[#FFA800] px-8 py-3 text-3xl font-semibold text-black">
30+
Start chatting
31+
</div>
3932
</div>
4033
</div>
41-
<h2 class="max-w-[90vw] items-center text-center font-medium text-gray-400">
42-
{description.slice(0, 200)}
43-
{#if description.length > 200}...{/if}
44-
<!-- line clamping doesnt work with satori hence this character based approach -->
45-
</h2>
34+
{#if createdByName}
35+
<p class="absolute bottom-4 right-8 text-2xl text-gray-400">
36+
An AI assistant created by {createdByName}
37+
</p>
38+
{/if}
4639
</div>

0 commit comments

Comments
 (0)