feat:sw-561 updated design

This commit is contained in:
Linus Flood
2024-10-11 12:58:46 +02:00
parent 79a01ae699
commit 1408284af8
7 changed files with 26 additions and 17 deletions

View File

@@ -1,5 +1,4 @@
.layout { .layout {
background-color: var(--Base-Background-Primary-Normal);
display: grid; display: grid;
font-family: var(--typography-Body-Regular-fontFamily); font-family: var(--typography-Body-Regular-fontFamily);
gap: var(--Spacing-x3); gap: var(--Spacing-x3);
@@ -9,6 +8,10 @@
margin: 0 auto; margin: 0 auto;
} }
.container {
background-color: var(--Base-Background-Primary-Normal);
}
.content { .content {
display: grid; display: grid;
padding-bottom: var(--Spacing-x9); padding-bottom: var(--Spacing-x9);

View File

@@ -9,12 +9,14 @@ export default async function MyPagesLayout({
breadcrumbs: React.ReactNode breadcrumbs: React.ReactNode
}>) { }>) {
return ( return (
<section className={styles.layout}> <div className={styles.container}>
{breadcrumbs} <section className={styles.layout}>
<section className={styles.content}> {breadcrumbs}
<Sidebar /> <section className={styles.content}>
{children} <Sidebar />
{children}
</section>
</section> </section>
</section> </div>
) )
} }

View File

@@ -1,5 +1,4 @@
.layout { .layout {
background-color: var(--Base-Background-Primary-Normal);
display: grid; display: grid;
font-family: var(--typography-Body-Regular-fontFamily); font-family: var(--typography-Body-Regular-fontFamily);
gap: var(--Spacing-x3); gap: var(--Spacing-x3);
@@ -8,3 +7,7 @@
margin: 0 auto; margin: 0 auto;
max-width: var(--max-width); max-width: var(--max-width);
} }
.container {
background-color: var(--Base-Background-Primary-Normal);
}

View File

@@ -16,9 +16,11 @@ export default function ContentTypeLayout({
} }
>) { >) {
return ( return (
<section className={styles.layout}> <div className={styles.container}>
{breadcrumbs} <section className={styles.layout}>
{children} {breadcrumbs}
</section> {children}
</section>
</div>
) )
} }

View File

@@ -1,6 +1,4 @@
.layout { .layout {
min-height: 100dvh; min-height: 100dvh;
background-color: var(--Base-Background-Primary-Normal); background-color: var(--Base-Background-Primary-Normal);
max-width: var(--max-width);
margin: 0 auto;
} }

View File

@@ -5,6 +5,8 @@
background-color: var(--Scandic-Brand-Warm-White); background-color: var(--Scandic-Brand-Warm-White);
min-height: 100dvh; min-height: 100dvh;
flex-direction: column; flex-direction: column;
max-width: var(--max-width);
margin: 0 auto;
} }
.section { .section {

View File

@@ -7,9 +7,8 @@
} }
.content { .content {
max-width: 1434px; max-width: var(--max-width);
margin-left: auto; margin: 0 auto;
margin-right: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: var(--Spacing-x7); gap: var(--Spacing-x7);