Skip to content

Commit

Permalink
chore: revert header image layout updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danji90 committed Oct 17, 2024
1 parent bd9cb43 commit d8c76e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
13 changes: 2 additions & 11 deletions components/PageHeader.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import Image from "next/image";

export default function PageHeader({
src,
srcMobile,
title,
titleDown,
text,
maintainAspectRatio,
}) {
export default function PageHeader({ src, srcMobile, title, titleDown, text }) {
return (
<>
<div
Expand All @@ -18,9 +11,7 @@ export default function PageHeader({
"h-[calc(100vh-8rem)] lg:h-[50vh]"
}`}
>
<div
className={`relative ${titleDown ? "h-[max(75vw,300px)] sm:h-[min(50vw,600px)]" : "h-full"} ${maintainAspectRatio ? "w-[min(100%,1800px)] sm:h-[min(50vw,900px)] m-auto" : ""}`}
>
<div className={`relative ${titleDown ? "h-[50vh]" : "h-full"}`}>
{src && (
<Image
alt={`${title} Cover`}
Expand Down
1 change: 0 additions & 1 deletion components/SolutionArticle.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export default function Solution(props) {
srcMobile={solution.pageCoverMobile}
title={solution.title}
titleDown
maintainAspectRatio
/>
<Article body={solution.body} imageSizes={solution.imageSizes} />
<ContactPerson
Expand Down

0 comments on commit d8c76e3

Please # to comment.