From aec575c3b5797069e4964cfafa26e3de3b92f99e Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 13 Dec 2021 22:04:03 +0100 Subject: chore: add main-nav component I choose to implement main-nav paths manually instead of fetching them from GraphQL to ensure functional navigation without JS. --- src/components/Header/Header.module.scss | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/components/Header/Header.module.scss (limited to 'src/components/Header/Header.module.scss') 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); +} -- cgit v1.2.3