fix(SW-190): fixed some styling irregularities
This commit is contained in:
@@ -98,6 +98,8 @@
|
|||||||
|
|
||||||
:root {
|
:root {
|
||||||
--max-width: 113.5rem;
|
--max-width: 113.5rem;
|
||||||
|
--max-width-content: 74.75rem;
|
||||||
|
--max-width-text-block: 49.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
.content {
|
.contentPage {
|
||||||
position: relative;
|
|
||||||
display: grid;
|
|
||||||
padding-bottom: var(--Spacing-x9);
|
padding-bottom: var(--Spacing-x9);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -9,8 +7,13 @@
|
|||||||
padding: var(--Spacing-x4) var(--Spacing-x2);
|
padding: var(--Spacing-x4) var(--Spacing-x2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero {
|
.content {
|
||||||
display: grid;
|
|
||||||
justify-content: center;
|
|
||||||
padding: var(--Spacing-x4) var(--Spacing-x2);
|
padding: var(--Spacing-x4) var(--Spacing-x2);
|
||||||
|
display: grid;
|
||||||
|
justify-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.innerContent {
|
||||||
|
width: 100%;
|
||||||
|
max-width: var(--max-width-content);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export default async function ContentPage() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<section className={styles.content}>
|
<section className={styles.contentPage}>
|
||||||
<header className={styles.header}>
|
<header className={styles.header}>
|
||||||
<Intro>
|
<Intro>
|
||||||
<Title as="h2">{contentPage.header.heading}</Title>
|
<Title as="h2">{contentPage.header.heading}</Title>
|
||||||
@@ -28,14 +28,16 @@ export default async function ContentPage() {
|
|||||||
</Intro>
|
</Intro>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{heroImage ? (
|
<main className={styles.content}>
|
||||||
<div className={styles.hero}>
|
<div className={styles.innerContent}>
|
||||||
<Hero
|
{heroImage ? (
|
||||||
alt={heroImage.meta.alt || heroImage.meta.caption || ""}
|
<Hero
|
||||||
src={heroImage.url}
|
alt={heroImage.meta.alt || heroImage.meta.caption || ""}
|
||||||
/>
|
src={heroImage.url}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
</main>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<TrackingSDK pageData={tracking} />
|
<TrackingSDK pageData={tracking} />
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
.hero {
|
.hero {
|
||||||
height: 400px;
|
height: 400px;
|
||||||
margin-bottom: var(--Spacing-x2);
|
margin-bottom: var(--Spacing-x2);
|
||||||
max-width: 100%;
|
width: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border-radius: var(--Corner-radius-xLarge);
|
border-radius: var(--Corner-radius-xLarge);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
.intro {
|
.intro {
|
||||||
max-width: 74.75rem;
|
max-width: var(--max-width-content);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
max-width: var(--max-width-text-block);
|
||||||
gap: var(--Spacing-x2);
|
gap: var(--Spacing-x2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user