Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Use AVIF / WEBP

Blue Mouse10ed8c42fbab
diff --git a/web/app/routes/_index.tsx b/web/app/routes/_index.tsx
index f746196a0..debfa2d5e 100644
--- a/web/app/routes/_index.tsx
+++ b/web/app/routes/_index.tsx
@@ -330,10 +330,14 @@ const Hero = () => {
<div className='relative isolate overflow-hidden bg-gray-50 pt-2 dark:bg-slate-950'>
<div className='relative mx-2 overflow-hidden rounded-t-4xl bg-slate-950 shadow-2xl ring-1 shadow-slate-950/20 ring-black/5 dark:ring-white/10'>
<div aria-hidden className='pointer-events-none absolute inset-0'>
- <div
- className='absolute inset-0 bg-cover bg-center opacity-95 saturate-125'
- style={{ backgroundImage: "url('/assets/hero-background-4.png')" }}
- />
+ <picture className='absolute inset-0 block'>
+ <source srcSet='/assets/hero-background-1.avif' type='image/avif' />
+ <img
+ alt=''
+ className='size-full object-cover object-center opacity-95 saturate-125'
+ src='/assets/hero-background.webp'
+ />
+ </picture>
<div className='absolute inset-0 bg-slate-950/50' />
<div className='absolute inset-0 bg-radial-[at_50%_0%] from-indigo-300/30 via-slate-950/10 to-slate-950/80' />
<div className='absolute inset-x-0 bottom-0 h-1/3 bg-linear-to-b from-transparent to-slate-950' />
diff --git a/web/public/assets/hero-background-4.png b/web/public/assets/hero-background-4.png
deleted file mode 100644
index 00dabc575..000000000
Binary files a/web/public/assets/hero-background-4.png and /dev/null differ
diff --git a/web/public/assets/hero-background.avif b/web/public/assets/hero-background.avif
new file mode 100644
index 000000000..6ac44de31
Binary files /dev/null and b/web/public/assets/hero-background.avif differ
diff --git a/web/public/assets/hero-background.png b/web/public/assets/hero-background.png
deleted file mode 100644
index 413d3d5d9..000000000
Binary files a/web/public/assets/hero-background.png and /dev/null differ
diff --git a/web/public/assets/hero-background.webp b/web/public/assets/hero-background.webp
new file mode 100644
index 000000000..d87770817
Binary files /dev/null and b/web/public/assets/hero-background.webp differ