replace png with webp where applicable
All checks were successful
delpoy / build-and-deploy (push) Successful in 45s

This commit is contained in:
bytedream 2024-12-03 15:58:33 +01:00
parent 1d8e99be8a
commit 48d3565008
21 changed files with 11 additions and 11 deletions

View File

@ -12,37 +12,37 @@
let navPaths = $state([ let navPaths = $state([
{ {
name: 'Startseite', name: 'Startseite',
sprite: `${env.PUBLIC_BASE_PATH}/img/menu-home.png`, sprite: `${env.PUBLIC_BASE_PATH}/img/menu-home.webp`,
href: `${env.PUBLIC_BASE_PATH}/`, href: `${env.PUBLIC_BASE_PATH}/`,
active: false active: false
}, },
{ {
name: 'Registrieren', name: 'Registrieren',
sprite: `${env.PUBLIC_BASE_PATH}/img/menu-register.png`, sprite: `${env.PUBLIC_BASE_PATH}/img/menu-register.webp`,
href: `${env.PUBLIC_BASE_PATH}/register`, href: `${env.PUBLIC_BASE_PATH}/register`,
active: false active: false
}, },
{ {
name: 'Regeln', name: 'Regeln',
sprite: `${env.PUBLIC_BASE_PATH}/img/menu-rules.png`, sprite: `${env.PUBLIC_BASE_PATH}/img/menu-rules.webp`,
href: `${env.PUBLIC_BASE_PATH}/rules`, href: `${env.PUBLIC_BASE_PATH}/rules`,
active: false active: false
}, },
{ {
name: 'FAQ', name: 'FAQ',
sprite: `${env.PUBLIC_BASE_PATH}/img/menu-faq.png`, sprite: `${env.PUBLIC_BASE_PATH}/img/menu-faq.webp`,
href: `${env.PUBLIC_BASE_PATH}/faq`, href: `${env.PUBLIC_BASE_PATH}/faq`,
active: false active: false
}, },
{ {
name: 'Feedback & Kontakt', name: 'Feedback & Kontakt',
sprite: `${env.PUBLIC_BASE_PATH}/img/menu-feedback.png`, sprite: `${env.PUBLIC_BASE_PATH}/img/menu-feedback.webp`,
href: `${env.PUBLIC_BASE_PATH}/feedback`, href: `${env.PUBLIC_BASE_PATH}/feedback`,
active: false active: false
}, },
{ {
name: 'Team', name: 'Team',
sprite: `${env.PUBLIC_BASE_PATH}/img/menu-team.png`, sprite: `${env.PUBLIC_BASE_PATH}/img/menu-team.webp`,
href: `${env.PUBLIC_BASE_PATH}/team`, href: `${env.PUBLIC_BASE_PATH}/team`,
active: false active: false
} }
@ -93,7 +93,7 @@
{#if !onAdminPage} {#if !onAdminPage}
<meta property="og:url" content={$page.url.toString()} /> <meta property="og:url" content={$page.url.toString()} />
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:image" content="{env.PUBLIC_BASE_PATH}/img/logo-512.png" /> <meta property="og:image" content="{env.PUBLIC_BASE_PATH}/img/logo-512.webp" />
{/if} {/if}
</svelte:head> </svelte:head>
@ -128,13 +128,13 @@
> >
<img <img
class="absolute w-full h-full p-1 pixelated" class="absolute w-full h-full p-1 pixelated"
src="{env.PUBLIC_BASE_PATH}/img/menu-button.png" src="{env.PUBLIC_BASE_PATH}/img/menu-button.webp"
alt="menu" alt="menu"
/> />
<img <img
class="opacity-0 transition-opacity delay-50 group-hover/menu-button:opacity-100 absolute w-full h-full p-[3px] pixelated" class="opacity-0 transition-opacity delay-50 group-hover/menu-button:opacity-100 absolute w-full h-full p-[3px] pixelated"
class:opacity-100={isTouch && showMenuPermanent} class:opacity-100={isTouch && showMenuPermanent}
src="{env.PUBLIC_BASE_PATH}/img/selected-frame.png" src="{env.PUBLIC_BASE_PATH}/img/selected-frame.webp"
alt="menu hover" alt="menu hover"
/> />
</button> </button>
@ -158,7 +158,7 @@
onclick={() => goto(navPath.href)} onclick={() => goto(navPath.href)}
> >
<div <div
style="background-image: url('{env.PUBLIC_BASE_PATH}/img/menu-inventory-bar.png'); background-position: -{i * style="background-image: url('{env.PUBLIC_BASE_PATH}/img/menu-inventory-bar.webp'); background-position: -{i *
3.5}rem 0;" 3.5}rem 0;"
class="block w-full h-full bg-no-repeat bg-horizontal-sprite pixelated" class="block w-full h-full bg-no-repeat bg-horizontal-sprite pixelated"
></div> ></div>
@ -168,7 +168,7 @@
<img <img
class="transition-opacity delay-50 group-hover/menu-item:opacity-100 absolute w-full h-full pixelated scale-110 z-10" class="transition-opacity delay-50 group-hover/menu-item:opacity-100 absolute w-full h-full pixelated scale-110 z-10"
class:opacity-0={!navPath.active} class:opacity-0={!navPath.active}
src="{env.PUBLIC_BASE_PATH}/img/selected-frame.png" src="{env.PUBLIC_BASE_PATH}/img/selected-frame.webp"
alt="menu hover" alt="menu hover"
/> />
</a> </a>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

BIN
static/img/logo-512.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

BIN
static/img/menu-button.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 B

BIN
static/img/menu-faq.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 B

BIN
static/img/menu-home.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 B

BIN
static/img/menu-rules.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

BIN
static/img/menu-team.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B