From f4dea4e905946c560405a6a4a6caca9655425b22 Mon Sep 17 00:00:00 2001 From: Elijah Potter Date: Sun, 14 Jan 2024 11:49:04 -0700 Subject: [PATCH] Added better font + fixed overflow on underlines --- web/src/app.css | 7 +++++++ web/src/lib/Underlines.svelte | 6 ++++-- web/src/routes/+page.svelte | 9 ++++++--- web/static/fonts/outfit.ttf | Bin 0 -> 110572 bytes 4 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 web/static/fonts/outfit.ttf diff --git a/web/src/app.css b/web/src/app.css index 3128f5300..28b8f8a6b 100644 --- a/web/src/app.css +++ b/web/src/app.css @@ -4,4 +4,11 @@ * { user-select: none; + font-family: Outfit; } + +@font-face { + font-family: Outfit; + src: url('/fonts/outfit.ttf'); +} + diff --git a/web/src/lib/Underlines.svelte b/web/src/lib/Underlines.svelte index 53e6c90fc..28d3d36d4 100644 --- a/web/src/lib/Underlines.svelte +++ b/web/src/lib/Underlines.svelte @@ -59,8 +59,10 @@ {:else if typeof chunk == 'string'} {chunk} {:else} - - {chunk[0]} + + + {chunk[0]} + {/if} {/each} diff --git a/web/src/routes/+page.svelte b/web/src/routes/+page.svelte index ab56aabce..62125a9bc 100644 --- a/web/src/routes/+page.svelte +++ b/web/src/routes/+page.svelte @@ -23,12 +23,15 @@
-
+
- + +
+
+