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..b0b00fc4 100644 --- a/sass/_podcast.scss +++ b/sass/_podcast.scss @@ -11,17 +11,24 @@ } .podcast-hero { - padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); + padding-block: 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-top: clamp(3rem, 7vw, 6rem); + padding-bottom: clamp(3rem, 6vw, 5rem); +} + .podcast-hero h1 { font-family: $fontHero; font-size: clamp(2.5rem, 5.5vw, 4rem); @@ -90,13 +97,34 @@ } .podcast-hero-art { + grid-area: art; + align-self: stretch; + justify-self: end; + display: flex; + flex-direction: column; + width: 100%; + max-width: 32rem; + + 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%; - height: auto; + min-height: clamp(3rem, 7vw, 6rem); + height: 0; } +// 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,6 +378,11 @@ @media (max-width: 700px) { .podcast-hero-inner { grid-template-columns: minmax(0, 1fr); + grid-template-areas: "copy"; + } + + .podcast-hero-copy { + padding-bottom: 3rem; } .podcast-hero-art { diff --git a/templates/podcast.html b/templates/podcast.html index 1bb60448..fb0fdfa2 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,12 @@ + + + + + + Rust in @@ -64,7 +70,6 @@ -