From 8a3f69a5505a95e35031b55090559cac6322bead Mon Sep 17 00:00:00 2001 From: danji90 Date: Thu, 17 Oct 2024 08:55:57 +0200 Subject: [PATCH] fix(hero image): add prop to maintain aspect ratio of image --- components/PageHeader.js | 13 +++++++++++-- components/SolutionArticle.js | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/components/PageHeader.js b/components/PageHeader.js index f6f78687..530d7817 100644 --- a/components/PageHeader.js +++ b/components/PageHeader.js @@ -1,6 +1,13 @@ import Image from "next/image"; -export default function PageHeader({ src, srcMobile, title, titleDown, text }) { +export default function PageHeader({ + src, + srcMobile, + title, + titleDown, + text, + maintainAspectRatio, +}) { return ( <>
-
+
{src && ( {`${title}