mirror of
https://github.com/audacity/audacity.github.io.git
synced 2026-05-30 20:47:36 -05:00
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:
BIN
src/assets/img/beta/audacity-4-beta-cloud-projects.webp
Normal file
BIN
src/assets/img/beta/audacity-4-beta-cloud-projects.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
BIN
src/assets/img/beta/audacity-4-beta-envelope.webp
Normal file
BIN
src/assets/img/beta/audacity-4-beta-envelope.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
BIN
src/assets/img/beta/audacity-4-beta-hero.webp
Normal file
BIN
src/assets/img/beta/audacity-4-beta-hero.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
BIN
src/assets/img/beta/audacity-4-beta-labels.webp
Normal file
BIN
src/assets/img/beta/audacity-4-beta-labels.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
src/assets/img/beta/audacity-4-beta-spectrogram.webp
Normal file
BIN
src/assets/img/beta/audacity-4-beta-spectrogram.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
@@ -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"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user