From 0749c30db0424b026914c64a77c81c56563085fc Mon Sep 17 00:00:00 2001 From: dusk Date: Fri, 21 Feb 2025 16:07:08 +0300 Subject: [PATCH] refactor: optimize fonts, images --- src/app.html | 2 +- src/routes/+layout.svelte | 12 +++--- src/routes/+page.svelte | 8 ++-- .../entries/{+layout.ts => +layout.server.ts} | 0 src/routes/entries/+page.svelte | 4 +- src/routes/entries/_layout.svelte | 2 +- src/routes/entries/_rss/+server.ts | 2 +- src/routes/guestbook/+page.svelte | 4 +- src/routes/lateststuff.md | 2 +- src/styles/app.css | 40 ++++++++++-------- static/88x31.gif | Bin 17567 -> 8792 bytes static/88x31_midnight.gif | Bin 8124 -> 4110 bytes static/88x31_sunrise.gif | Bin 8293 -> 4107 bytes static/fonts/comic.woff2 | Bin 127408 -> 0 bytes static/fonts/comicbd.woff2 | Bin 116300 -> 0 bytes static/fonts/comici.woff2 | Bin 108004 -> 0 bytes static/fonts/subset-ComicSansMS-Bold.woff2 | Bin 0 -> 38112 bytes static/fonts/subset-ComicSansMS-Italic.woff2 | Bin 0 -> 30496 bytes static/fonts/subset-ComicSansMS.woff2 | Bin 0 -> 43584 bytes static/icons/about.png | Bin 446 -> 0 bytes static/icons/about.webp | Bin 0 -> 170 bytes static/icons/cd_audio.png | Bin 631 -> 0 bytes static/icons/cd_audio.webp | Bin 0 -> 350 bytes static/icons/contact.png | Bin 406 -> 0 bytes static/icons/contact.webp | Bin 0 -> 128 bytes static/icons/entries.png | Bin 451 -> 0 bytes static/icons/entries.webp | Bin 0 -> 162 bytes static/icons/entry.png | Bin 507 -> 0 bytes static/icons/entry.webp | Bin 0 -> 214 bytes static/icons/gaze.png | Bin 2130 -> 0 bytes static/icons/gaze.webp | Bin 0 -> 1182 bytes static/icons/gaze_closed.png | Bin 1329 -> 0 bytes static/icons/gaze_closed.webp | Bin 0 -> 818 bytes static/icons/gaze_site.png | Bin 1868 -> 0 bytes static/icons/gaze_site.webp | Bin 0 -> 1318 bytes static/icons/guestbook.png | Bin 563 -> 0 bytes static/icons/guestbook.webp | Bin 0 -> 250 bytes static/icons/home.png | Bin 677 -> 0 bytes static/icons/home.webp | Bin 0 -> 354 bytes static/icons/question.png | Bin 448 -> 0 bytes static/icons/question.webp | Bin 0 -> 160 bytes static/icons/warning.png | Bin 442 -> 0 bytes static/icons/warning.webp | Bin 0 -> 150 bytes static/pfp-iojkqpwerojnasduijf.png | Bin 46228 -> 0 bytes static/pfp-iojkqpwerojnasduijf.webp | Bin 0 -> 984 bytes 45 files changed, 40 insertions(+), 36 deletions(-) rename src/routes/entries/{+layout.ts => +layout.server.ts} (100%) delete mode 100644 static/fonts/comic.woff2 delete mode 100644 static/fonts/comicbd.woff2 delete mode 100644 static/fonts/comici.woff2 create mode 100644 static/fonts/subset-ComicSansMS-Bold.woff2 create mode 100644 static/fonts/subset-ComicSansMS-Italic.woff2 create mode 100644 static/fonts/subset-ComicSansMS.woff2 delete mode 100644 static/icons/about.png create mode 100644 static/icons/about.webp delete mode 100644 static/icons/cd_audio.png create mode 100644 static/icons/cd_audio.webp delete mode 100644 static/icons/contact.png create mode 100644 static/icons/contact.webp delete mode 100644 static/icons/entries.png create mode 100644 static/icons/entries.webp delete mode 100644 static/icons/entry.png create mode 100644 static/icons/entry.webp delete mode 100644 static/icons/gaze.png create mode 100644 static/icons/gaze.webp delete mode 100644 static/icons/gaze_closed.png create mode 100644 static/icons/gaze_closed.webp delete mode 100644 static/icons/gaze_site.png create mode 100644 static/icons/gaze_site.webp delete mode 100644 static/icons/guestbook.png create mode 100644 static/icons/guestbook.webp delete mode 100644 static/icons/home.png create mode 100644 static/icons/home.webp delete mode 100644 static/icons/question.png create mode 100644 static/icons/question.webp delete mode 100644 static/icons/warning.png create mode 100644 static/icons/warning.webp delete mode 100644 static/pfp-iojkqpwerojnasduijf.png create mode 100644 static/pfp-iojkqpwerojnasduijf.webp diff --git a/src/app.html b/src/app.html index 065ece0..66ebb32 100644 --- a/src/app.html +++ b/src/app.html @@ -2,7 +2,7 @@ - + %sveltekit.head% diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index fc68000..a83c0a9 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -21,10 +21,10 @@ } const menuItems: MenuItem[] = [ - { href: '', name: 'home', iconUri: '/icons/home.png' }, - { href: 'entries', name: 'entries', iconUri: '/icons/entries.png' }, - { href: 'guestbook', name: 'guestbook', iconUri: '/icons/guestbook.png' }, - { href: 'about', name: 'about', iconUri: '/icons/about.png' } + { href: '', name: 'home', iconUri: '/icons/home.webp' }, + { href: 'entries', name: 'entries', iconUri: '/icons/entries.webp' }, + { href: 'guestbook', name: 'guestbook', iconUri: '/icons/guestbook.webp' }, + { href: 'about', name: 'about', iconUri: '/icons/about.webp' } ]; $: routeComponents = data.route.split('/'); @@ -49,7 +49,7 @@ {title} - +
{#if doAddPostItem && menuIdx == 1} - + {/if} {/each}