From 1a664c97d40208d4d7f8ae9be9e503560d7500cc Mon Sep 17 00:00:00 2001 From: satr14 <90962949+SX-9@users.noreply.github.com> Date: Mon, 7 Jul 2025 11:45:56 +0700 Subject: [PATCH] optimization and visibility fixes --- src/app.css | 6 +++--- src/hooks.server.ts | 1 - src/routes/+page.svelte | 11 ++++++----- static/stray.woff2 | Bin 0 -> 3416 bytes 4 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 static/stray.woff2 diff --git a/src/app.css b/src/app.css index 53df05f..79d4fdd 100644 --- a/src/app.css +++ b/src/app.css @@ -1,7 +1,7 @@ -@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); @font-face { font-family: Stray; - src: url("/stray.otf") format("opentype"); + font-display: swap; + src: url("/stray.woff2") format("woff2"); } @tailwind base; @@ -10,7 +10,7 @@ * { @apply transition-all duration-300 ease-in-out; } html { @apply h-full scroll-smooth; } -body { @apply bg-ctp-crust text-ctp-text h-full font-[Roboto,_sans-serif]; } +body { @apply bg-ctp-crust text-ctp-text h-full; } h1 { @apply text-3xl md:text-4xl font-semibold my-4; } h2 { @apply text-2xl md:text-3xl font-bold my-4; } h3 { @apply text-xl md:text-2xl font-bold my-4; } diff --git a/src/hooks.server.ts b/src/hooks.server.ts index 083f94b..0751e0e 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -3,7 +3,6 @@ import info from '$lib'; export const handle: Handle = async ({ event, resolve }) => !event.request.headers.get('user-agent')?.includes('curl') ? await resolve(event) : new Response(`\ \ -\x1b[2J\x1b[3J\x1b[H\ \x1b[1m${info.subtitle}\x1b[0m ${info.description} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 1f04992..0c2f6dd 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -27,14 +27,14 @@ }); -