refactor: use astro:assets Image for beta page screenshots

Moves the five beta screenshots into src/assets/img/beta and renders
them with Astro's Image component so they get optimized output, baked
dimensions, and async decoding instead of plain <img> from /public.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mudskipper
2026-05-20 14:44:25 +10:00
parent 61c0c27446
commit 1b9c8cc13c
6 changed files with 16 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

View File

@@ -1,5 +1,11 @@
---
import { Image } from "astro:assets";
import FeaturedVideo from "../video/FeaturedVideo";
import heroImg from "../../assets/img/beta/audacity-4-beta-hero.webp";
import envelopeImg from "../../assets/img/beta/audacity-4-beta-envelope.webp";
import labelsImg from "../../assets/img/beta/audacity-4-beta-labels.webp";
import spectrogramImg from "../../assets/img/beta/audacity-4-beta-spectrogram.webp";
import cloudProjectsImg from "../../assets/img/beta/audacity-4-beta-cloud-projects.webp";
---
<div class="my-6 space-y-16">
@@ -26,8 +32,8 @@ import FeaturedVideo from "../video/FeaturedVideo";
</p>
</div>
<img
src="/audacity-4-beta-hero.webp"
<Image
src={heroImg}
alt="Audacity 4 beta: multitrack project view"
class="w-full rounded-lg shadow-md"
/>
@@ -53,8 +59,8 @@ import FeaturedVideo from "../video/FeaturedVideo";
</p>
<div class="mt-8 grid grid-cols-1 sm:grid-cols-2 gap-6">
<div>
<img
src="/audacity-4-beta-envelope.webp"
<Image
src={envelopeImg}
alt="Envelope editing in Audacity 4 beta"
class="aspect-video w-full object-cover rounded-md"
/>
@@ -65,8 +71,8 @@ import FeaturedVideo from "../video/FeaturedVideo";
</p>
</div>
<div>
<img
src="/audacity-4-beta-labels.webp"
<Image
src={labelsImg}
alt="Label tracks in Audacity 4 beta"
class="aspect-video w-full object-cover rounded-md"
/>
@@ -77,8 +83,8 @@ import FeaturedVideo from "../video/FeaturedVideo";
</p>
</div>
<div>
<img
src="/audacity-4-beta-spectrogram.webp"
<Image
src={spectrogramImg}
alt="Spectral editing in Audacity 4 beta"
class="aspect-video w-full object-cover rounded-md"
/>
@@ -89,8 +95,8 @@ import FeaturedVideo from "../video/FeaturedVideo";
</p>
</div>
<div>
<img
src="/audacity-4-beta-cloud-projects.webp"
<Image
src={cloudProjectsImg}
alt="Cloud projects and audio.com in Audacity 4 beta"
class="aspect-video w-full object-cover rounded-md"
/>