From 516f9443762dff37ee82ead4bef9e405c4bb2daa Mon Sep 17 00:00:00 2001 From: Matthias Endler Date: Fri, 27 Nov 2026 14:05:37 +0100 Subject: [PATCH 1/2] Use vector cover illustration in podcast hero --- content/podcast/cover.svg | 1 + sass/_podcast.scss | 25 +++++++++++++++++++++---- templates/podcast.html | 4 ++-- 3 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 content/podcast/cover.svg diff --git a/content/podcast/cover.svg b/content/podcast/cover.svg new file mode 100644 index 00000000..6a6af58e --- /dev/null +++ b/content/podcast/cover.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sass/_podcast.scss b/sass/_podcast.scss index af4a1ee5..67e3af3b 100644 --- a/sass/_podcast.scss +++ b/sass/_podcast.scss @@ -11,17 +11,23 @@ } .podcast-hero { - padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); + padding-block: clamp(3rem, 7vw, 6rem) 0; padding-inline: max(1.25rem, calc((100% - 1200px) / 2)); } .podcast-hero-inner { display: grid; - grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); + grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); + grid-template-areas: "art copy"; align-items: center; gap: 2rem; } +.podcast-hero-copy { + grid-area: copy; + padding-bottom: clamp(3rem, 6vw, 5rem); +} + .podcast-hero h1 { font-family: $fontHero; font-size: clamp(2.5rem, 5.5vw, 4rem); @@ -90,13 +96,18 @@ } .podcast-hero-art { + grid-area: art; + align-self: end; + justify-self: end; display: block; width: 100%; + max-width: 32rem; height: auto; } +// Overlay the artwork with the actual section edge rather than a separate clip. .podcast-listening { - margin-top: 1.5rem; + margin-top: 0; padding: 3rem 1.25rem; background-color: $brightBgrdScnd; text-align: center; @@ -350,10 +361,16 @@ @media (max-width: 700px) { .podcast-hero-inner { grid-template-columns: minmax(0, 1fr); + grid-template-areas: "copy" "art"; + } + + .podcast-hero-copy { + padding-bottom: 0; } .podcast-hero-art { - display: none; + max-width: 20rem; + justify-self: center; } // Size the stacked title so its longest line fits between the page gutters. diff --git a/templates/podcast.html b/templates/podcast.html index 1bb60448..98923161 100644 --- a/templates/podcast.html +++ b/templates/podcast.html @@ -10,7 +10,7 @@ "name": "Rust in Production", "description": {{ section.description | json_encode | safe }}, "url": "https://corrode.dev/podcast/", - "image": "https://corrode.dev/podcast/social.png", + "image": "https://corrode.dev/podcast/cover.svg", "inLanguage": "en", "isAccessibleForFree": true, "publisher": { @@ -39,6 +39,7 @@
+ A foundry pouring molten metal into a Rust gear

Rust in @@ -64,7 +65,6 @@

-
From 8c68fce8c41a8dded158479d05d1dc88b3f287dc Mon Sep 17 00:00:00 2001 From: Matthias Endler Date: Fri, 27 Nov 2026 15:02:17 +0100 Subject: [PATCH 2/2] Extend podcast cables to the header and hide artwork on mobile --- sass/_podcast.scss | 32 ++++++++++++++++++++++++-------- templates/podcast.html | 7 ++++++- 2 files changed, 30 insertions(+), 9 deletions(-) diff --git a/sass/_podcast.scss b/sass/_podcast.scss index 67e3af3b..b0b00fc4 100644 --- a/sass/_podcast.scss +++ b/sass/_podcast.scss @@ -11,7 +11,7 @@ } .podcast-hero { - padding-block: clamp(3rem, 7vw, 6rem) 0; + padding-block: 0; padding-inline: max(1.25rem, calc((100% - 1200px) / 2)); } @@ -25,6 +25,7 @@ .podcast-hero-copy { grid-area: copy; + padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 6vw, 5rem); } @@ -97,12 +98,28 @@ .podcast-hero-art { grid-area: art; - align-self: end; + align-self: stretch; justify-self: end; - display: block; + display: flex; + flex-direction: column; width: 100%; max-width: 32rem; - height: auto; + + img { + display: block; + flex: none; + width: 100%; + height: auto; + } +} + +// Stretch only the straight cables, leaving the illustration's proportions intact. +.podcast-hero-cables { + display: block; + flex: 1 0 0; + width: 100%; + min-height: clamp(3rem, 7vw, 6rem); + height: 0; } // Overlay the artwork with the actual section edge rather than a separate clip. @@ -361,16 +378,15 @@ @media (max-width: 700px) { .podcast-hero-inner { grid-template-columns: minmax(0, 1fr); - grid-template-areas: "copy" "art"; + grid-template-areas: "copy"; } .podcast-hero-copy { - padding-bottom: 0; + padding-bottom: 3rem; } .podcast-hero-art { - max-width: 20rem; - justify-self: center; + display: none; } // Size the stacked title so its longest line fits between the page gutters. diff --git a/templates/podcast.html b/templates/podcast.html index 98923161..fb0fdfa2 100644 --- a/templates/podcast.html +++ b/templates/podcast.html @@ -39,7 +39,12 @@
- A foundry pouring molten metal into a Rust gear +
+ + A foundry pouring molten metal into a Rust gear +

Rust in