|
1 | 1 | <script lang="ts">
|
2 |
| - import logo from "../../../../../static/huggingchat/logo.svg?raw"; |
3 |
| - import { usePublicConfig } from "$lib/utils/PublicConfig.svelte"; |
4 |
| - const publicConfig = usePublicConfig(); |
| 2 | + import logo from "../../../../../static/huggingchat/fulltext-logo.svg?raw"; |
5 | 3 |
|
6 | 4 | interface Props {
|
7 | 5 | name: string;
|
8 |
| - logoUrl: string | undefined; |
| 6 | + isHuggingChat?: boolean; |
| 7 | + backgroundImage?: string; |
9 | 8 | }
|
10 | 9 |
|
11 |
| - let { name, logoUrl }: Props = $props(); |
| 10 | + let { name, isHuggingChat = false }: Props = $props(); |
12 | 11 | </script>
|
13 | 12 |
|
14 |
| -<div class=" flex h-[648px] w-full flex-col items-center bg-white"> |
15 |
| - <div class="flex flex-1 flex-col items-center justify-center"> |
16 |
| - {#if logoUrl} |
17 |
| - <img class="h-48 w-48" src={logoUrl} alt="avatar" /> |
18 |
| - {/if} |
19 |
| - <h1 class="m-0 text-5xl font-bold text-black"> |
20 |
| - {name} |
21 |
| - </h1> |
22 |
| - </div> |
| 13 | +<div |
| 14 | + class=" flex h-[648px] w-full flex-col items-center justify-center bg-black text-white" |
| 15 | + style="background-image: url(https://cdn-uploads.huggingface.co/production/uploads/5f17f0a0925b9863e28ad517/L4XVRJ7MsfFDD7ROx_geO.png);" |
| 16 | +> |
| 17 | + <h1 class="mb-8 text-7xl font-bold text-white"> |
| 18 | + {name.split("/")[1]} |
| 19 | + </h1> |
23 | 20 |
|
24 |
| - <div |
25 |
| - class="flex h-[200px] w-full flex-col items-center justify-center rounded-b-none bg-{publicConfig.PUBLIC_APP_COLOR}-500/10 pb-10 pt-10 text-4xl text-gray-500" |
26 |
| - style="border-radius: 100% 100% 0 0;" |
27 |
| - > |
28 |
| - Try it now |
29 |
| - {#if publicConfig.isHuggingChat} |
30 |
| - on |
31 |
| - {/if} |
32 |
| - |
33 |
| - {#if publicConfig.isHuggingChat} |
34 |
| - <div class="flex flex-row pt-3 text-5xl font-bold text-black"> |
35 |
| - <div class="mr-5 flex items-center justify-center" id="logo"> |
36 |
| - <!-- eslint-disable-next-line --> |
37 |
| - {@html logo} |
38 |
| - </div> |
39 |
| - <span>HuggingChat</span> |
40 |
| - </div> |
41 |
| - {/if} |
42 |
| - </div> |
| 21 | + {#if isHuggingChat} |
| 22 | + <div class="flex items-center text-5xl text-white"> |
| 23 | + <div class="mr-4 text-4xl">Chat with it on</div> |
| 24 | + <!-- eslint-disable-next-line --> |
| 25 | + {@html logo} |
| 26 | + </div> |
| 27 | + {/if} |
43 | 28 | </div>
|
0 commit comments