From 1cdc202731fb589920147f90c66d898437465334 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Thu, 25 Jun 2026 23:42:34 +0200 Subject: [PATCH] Stop reading clutter --- public/media/video/ad_astra.vtt | 13 ------------- src/components/AtAGlance.astro | 12 +----------- src/components/PostMediaFigure.astro | 11 +---------- src/components/VideoThumbnail.astro | 11 ----------- src/content.config.ts | 20 ++++---------------- src/layouts/Post.astro | 1 - src/lib/site.ts | 8 ++++---- src/pages/about.astro | 2 +- 8 files changed, 11 insertions(+), 67 deletions(-) delete mode 100644 public/media/video/ad_astra.vtt diff --git a/public/media/video/ad_astra.vtt b/public/media/video/ad_astra.vtt deleted file mode 100644 index 578c7b6..0000000 --- a/public/media/video/ad_astra.vtt +++ /dev/null @@ -1,13 +0,0 @@ -WEBVTT - -00:00.000 --> 00:04.000 -No spoken dialogue. Game audio only. - -00:04.000 --> 00:35.000 -The Ad Astra handheld board runs the game on a small OLED display. - -00:35.000 --> 01:05.000 -The player controls the game through the IR input while the engine updates the display in real time. - -01:05.000 --> 01:34.600 -The clip continues showing gameplay on the custom ATtiny85-based board. diff --git a/src/components/AtAGlance.astro b/src/components/AtAGlance.astro index 37fd108..1ebdfa7 100644 --- a/src/components/AtAGlance.astro +++ b/src/components/AtAGlance.astro @@ -5,7 +5,6 @@ import ProjectLinks from './ProjectLinks.astro'; type Link = CollectionEntry<'work'>['data']['links'][number]; interface Props { - role?: string; projectPeriod?: string; stack?: string[]; scale?: string; @@ -14,18 +13,9 @@ interface Props { headingId: string; } -const { - role, - projectPeriod, - stack = [], - scale, - outcome, - links = [], - headingId, -} = Astro.props; +const { projectPeriod, stack = [], scale, outcome, links = [], headingId } = Astro.props; const rows: Array<[string, string]> = []; -if (role) rows.push(['Role', role]); if (projectPeriod) rows.push(['Period', projectPeriod]); if (stack.length > 0) rows.push(['Stack', stack.join(', ')]); if (scale) rows.push(['Scale', scale]); diff --git a/src/components/PostMediaFigure.astro b/src/components/PostMediaFigure.astro index 922a7a7..9277e6e 100644 --- a/src/components/PostMediaFigure.astro +++ b/src/components/PostMediaFigure.astro @@ -18,7 +18,7 @@ const videoHeight = item.type === 'video' ? (item.poster?.height ?? 720) : undef { item.type === 'video' ? ( // Decorative videos stay inert and hidden from assistive tech. Meaningful - // videos expose controls, captions, and an accessible name. + // videos expose controls and an accessible name. item.decorative ? ( ) ) : ( diff --git a/src/components/VideoThumbnail.astro b/src/components/VideoThumbnail.astro index 0c80548..2d46ab9 100644 --- a/src/components/VideoThumbnail.astro +++ b/src/components/VideoThumbnail.astro @@ -111,17 +111,6 @@ const playScript = ` > {video.webm && } {video.mp4 && } - { - video.captions && ( - - ) - }