diff --git a/app/globals.css b/app/globals.css index 52b84b9e6..b33c7954c 100644 --- a/app/globals.css +++ b/app/globals.css @@ -98,6 +98,8 @@ :root { --max-width: 113.5rem; + --max-width-content: 74.75rem; + --max-width-text-block: 49.5rem; } * { diff --git a/components/ContentType/ContentPage/contentPage.module.css b/components/ContentType/ContentPage/contentPage.module.css index 2d4bcba85..979fad6e5 100644 --- a/components/ContentType/ContentPage/contentPage.module.css +++ b/components/ContentType/ContentPage/contentPage.module.css @@ -1,6 +1,4 @@ -.content { - position: relative; - display: grid; +.contentPage { padding-bottom: var(--Spacing-x9); } @@ -9,8 +7,13 @@ padding: var(--Spacing-x4) var(--Spacing-x2); } -.hero { - display: grid; - justify-content: center; +.content { padding: var(--Spacing-x4) var(--Spacing-x2); + display: grid; + justify-items: center; +} + +.innerContent { + width: 100%; + max-width: var(--max-width-content); } diff --git a/components/ContentType/ContentPage/index.tsx b/components/ContentType/ContentPage/index.tsx index f2387febc..5f9f27dc9 100644 --- a/components/ContentType/ContentPage/index.tsx +++ b/components/ContentType/ContentPage/index.tsx @@ -20,7 +20,7 @@ export default async function ContentPage() { return ( <> -
+
{contentPage.header.heading} @@ -28,14 +28,16 @@ export default async function ContentPage() {
- {heroImage ? ( -
- +
+
+ {heroImage ? ( + + ) : null}
- ) : null} +
diff --git a/components/Hero/hero.module.css b/components/Hero/hero.module.css index af189f368..4ba53fa9f 100644 --- a/components/Hero/hero.module.css +++ b/components/Hero/hero.module.css @@ -1,7 +1,7 @@ .hero { height: 400px; margin-bottom: var(--Spacing-x2); - max-width: 100%; + width: 100%; object-fit: cover; border-radius: var(--Corner-radius-xLarge); margin: 0; diff --git a/components/Intro/intro.module.css b/components/Intro/intro.module.css index 5471f9aaa..b2290fb9f 100644 --- a/components/Intro/intro.module.css +++ b/components/Intro/intro.module.css @@ -1,10 +1,11 @@ .intro { - max-width: 74.75rem; + max-width: var(--max-width-content); margin: 0 auto; } .content { display: grid; + max-width: var(--max-width-text-block); gap: var(--Spacing-x2); }