diff --git a/src/components/Header.astro b/src/components/Header.astro
index 316423173..25005ee84 100644
--- a/src/components/Header.astro
+++ b/src/components/Header.astro
@@ -31,66 +31,76 @@ const { activeNav } = Astro.props;
)
}
-
-
-
+
+
+
+ {
+ SITE.lightAndDarkMode && (
+
+ )
+ }
+
+
+
+
@@ -103,38 +113,44 @@ const { activeNav } = Astro.props;
@apply max-w-3xl mx-auto flex flex-col sm:flex-row justify-between items-center;
}
.top-nav-wrap {
- @apply w-full p-4 sm:py-8 flex justify-between items-center;
+ @apply relative w-full p-4 sm:py-8 flex justify-between items-start sm:items-center;
}
.logo {
- @apply font-semibold text-xl sm:text-2xl py-1;
+ @apply absolute sm:static font-semibold text-xl sm:text-2xl py-1;
}
.hamburger-menu {
- @apply p-2 sm:hidden;
+ @apply self-end p-2 sm:hidden;
}
.hamburger-menu svg {
@apply fill-skin-base w-6 h-6 scale-125;
}
+
nav {
- @apply w-full py-2 sm:py-0 sm:pr-4 flex flex-col items-center sm:justify-end sm:flex-row sm:space-x-4 bg-skin-fill;
+ @apply w-full sm:py-0 sm:ml-2 flex flex-col items-center sm:justify-end sm:flex-row sm:space-x-4 bg-skin-fill;
}
nav ul {
- @apply flex flex-col sm:flex-row sm:space-x-4;
+ @apply mt-4 w-44 grid grid-rows-4 grid-cols-2 gap-y-2 gap-x-2 sm:gap-y-0 sm:mt-0 sm:ml-0 sm:w-auto sm:gap-x-5;
+ }
+ nav ul li {
+ @apply col-span-2 flex justify-center items-center;
}
- nav li {
- @apply py-3 sm:py-2 text-center my-1 sm:my-0;
+ nav ul li a {
+ @apply px-4 py-3 w-full text-center sm:px-2 sm:py-1 sm:my-0 font-medium hover:text-skin-accent;
}
- nav a {
- @apply px-6 py-3 sm:py-2 sm:px-3 font-medium hover:text-skin-accent;
+ nav ul li:nth-child(4) a {
+ @apply w-auto;
+ }
+ nav ul li:nth-child(4),
+ nav ul li:nth-child(5) {
+ @apply col-span-1;
}
nav a.active {
@apply underline underline-offset-4 decoration-wavy decoration-2;
}
- .button-wrapper {
- @apply flex my-2 sm:my-0 space-x-4;
- }
- .button-wrapper a.active svg {
+ nav a.active svg {
@apply fill-skin-accent;
}
+
nav button {
@apply p-1;
}
@@ -168,16 +184,19 @@ const { activeNav } = Astro.props;