Skip to content

Commit

Permalink
use webp for hero assets
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Feb 5, 2024
1 parent 920cf1e commit 04ccac0
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
{#if typeof window !== 'undefined'}
<img
src={detectTheme() === 'dark' || $theme === 'dark'
? '/images/hero-mobile-example-dark.png'
: '/images/hero-mobile-example.png'}
? '/images/hero-mobile-example-dark.webp'
: '/images/hero-mobile-example.webp'}
alt="mobile example"
class="mx-auto mt-10 w-80 drop-shadow-2xl xl:mx-0 xl:mt-0"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/media/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const brandColors = ['#10B981', '#53C5D5', '#051173', '#0891B2', '#E4EBEC', '#164E63', '#155E75'];
const brand = [
{ link: '/images/hero-mobile-example.png', name: 'App Screenshot' },
{ link: '/images/hero-mobile-example.webp', name: 'App Screenshot' },
{ link: '/images/logo.svg', name: 'BTC Map Logo' },
{ link: '/images/supertagger.svg', name: 'Shadowy Supertagger' },
{ link: '/images/supertagger-king.svg', name: 'Shadowy Supertagger - Leader' }
Expand Down
Binary file removed static/images/hero-mobile-example-dark.png
Binary file not shown.
Binary file added static/images/hero-mobile-example-dark.webp
Binary file not shown.
Binary file removed static/images/hero-mobile-example.png
Binary file not shown.
Binary file added static/images/hero-mobile-example.webp
Binary file not shown.

0 comments on commit 04ccac0

Please sign in to comment.