summaryrefslogtreecommitdiffstats
path: root/src/components/Header
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Header')
-rw-r--r--src/components/Header/Header.module.scss18
-rw-r--r--src/components/Header/Header.tsx9
2 files changed, 25 insertions, 2 deletions
diff --git a/src/components/Header/Header.module.scss b/src/components/Header/Header.module.scss
new file mode 100644
index 0000000..b6bd15d
--- /dev/null
+++ b/src/components/Header/Header.module.scss
@@ -0,0 +1,18 @@
+.wrapper {
+ display: grid;
+ grid-template-columns:
+ minmax(0, 1fr) min(calc(100vw - var(--spacing-md) * 2), 100ch)
+ minmax(0, 1fr);
+ align-items: center;
+ padding: var(--spacing-sm) 0 var(--spacing-md);
+ position: relative;
+}
+
+.body {
+ grid-column: 2;
+ display: flex;
+ flex-flow: row wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: var(--spacing-md);
+}
diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx
index 599fdc0..52da2e8 100644
--- a/src/components/Header/Header.tsx
+++ b/src/components/Header/Header.tsx
@@ -1,9 +1,14 @@
import Branding from '@components/Branding/Branding';
+import MainNav from '@components/MainNav/MainNav';
+import styles from './Header.module.scss';
const Header = () => {
return (
- <header>
- <Branding />
+ <header className={styles.wrapper}>
+ <div className={styles.body}>
+ <Branding />
+ <MainNav />
+ </div>
</header>
);
};