diff --git a/components/ContentType/ContentPage/contentPage.module.css b/components/ContentType/ContentPage/contentPage.module.css index 357376ad9..026aa6065 100644 --- a/components/ContentType/ContentPage/contentPage.module.css +++ b/components/ContentType/ContentPage/contentPage.module.css @@ -34,8 +34,7 @@ } .contentContainer { - display: flex; - flex-direction: column; + display: grid; padding: var(--Spacing-x4) var(--Spacing-x2) 0; gap: var(--Spacing-x4); } @@ -44,10 +43,6 @@ width: 100%; } -.innerContent { - width: 100%; -} - @media (min-width: 768px) { .headerIntro { gap: var(--Spacing-x3); @@ -59,7 +54,6 @@ padding: var(--Spacing-x4) 0; } .contentContainer { - display: grid; grid-template-columns: var(--max-width-text-block) 1fr; gap: var(--Spacing-x9); max-width: var(--max-width-content); diff --git a/components/ContentType/ContentPage/index.tsx b/components/ContentType/ContentPage/index.tsx index 5b9807d2e..5c5c63893 100644 --- a/components/ContentType/ContentPage/index.tsx +++ b/components/ContentType/ContentPage/index.tsx @@ -25,30 +25,32 @@ export default async function ContentPage() {
-
- {header.heading} - {header.preamble} -
- {header.navigation_links ? ( - + {header ? ( + <> +
+ {header.heading} + {header.preamble} +
+ {header.navigation_links ? ( + + ) : null} + ) : null}
- {hero_image && ( + {hero_image ? (
- )} + ) : null}
-
- {blocks ? : null} -
+ {blocks ? : null}
{sidebar?.length ? : null}