Skip to content

Commit

Permalink
refac: styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Jul 8, 2024
1 parent 088e7b0 commit e8fbb8f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
font-display: swap;
}

@font-face {
font-family: 'Archivo';
src: url('/assets/fonts/Archivo-Variable.ttf');
font-display: swap;
}

@font-face {
font-family: 'Mona Sans';
src: url('/assets/fonts/Mona-Sans.woff2');
Expand Down Expand Up @@ -32,6 +38,10 @@ math {
@apply underline;
}

.font-primary {
font-family: 'Archivo', sans-serif;
}

iframe {
@apply rounded-lg;
}
Expand Down
6 changes: 3 additions & 3 deletions src/lib/components/chat/Messages/Placeholder.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</div>

<div
class=" mt-2 mb-4 text-3xl text-gray-800 dark:text-gray-100 font-semibold text-left flex items-center gap-4"
class=" mt-2 mb-4 text-3xl text-gray-800 dark:text-gray-100 font-semibold text-left flex items-center gap-4 font-primary"
>
<div>
<div class=" capitalize line-clamp-1" in:fade={{ duration: 200 }}>
Expand Down Expand Up @@ -102,15 +102,15 @@
</div>
{/if}
{:else}
<div class=" font-medium text-gray-400 dark:text-gray-500 line-clamp-1">
<div class=" font-medium text-gray-400 dark:text-gray-500 line-clamp-1 font-p">
{$i18n.t('How can I help you today?')}
</div>
{/if}
</div>
</div>
</div>

<div class=" w-full" in:fade={{ duration: 200, delay: 300 }}>
<div class=" w-full font-primary" in:fade={{ duration: 200, delay: 300 }}>
<Suggestions
suggestionPrompts={models[selectedModelIdx]?.info?.meta?.suggestion_prompts ??
$config.default_prompt_suggestions}
Expand Down
Binary file added static/assets/fonts/Archivo-Variable.ttf
Binary file not shown.

0 comments on commit e8fbb8f

Please sign in to comment.