diff --git a/src/components/Header.astro b/src/components/Header.astro index 9e8772a..219e2fa 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -11,7 +11,7 @@ const { isHidden = true } = Astro.props let isHidden = true const button = this.querySelector("button") - const menuElement: HTMLElement = document.getElementById("#menu-body")! + const menuElement: HTMLElement = document.getElementById("menu-body")! button?.addEventListener("click", () => { isHidden = !isHidden if (isHidden) { @@ -35,7 +35,7 @@ const { isHidden = true } = Astro.props { LINKS.map((data) => {data.toUpperCase()}) } @@ -51,15 +51,16 @@ const { isHidden = true } = Astro.props + - + \ No newline at end of file diff --git a/src/components/HeaderLink.astro b/src/components/HeaderLink.astro index 1bf6163..d8c310a 100644 --- a/src/components/HeaderLink.astro +++ b/src/components/HeaderLink.astro @@ -14,7 +14,9 @@ const isActive = href === pathname || href === "/" + subpath?.[0] href={href} class:list={[ className, - { "text-lg py-2.5 px-4 text-black font-semibold border-b-4 hover:text-gray-600": isActive }, + { + "text-neutral-900 font-semibold hover:text-gray-600 underline underline-offset-8": isActive, + }, ]} {...props} > diff --git a/src/styles/global.css b/src/styles/global.css index 621b2e6..c7e1c91 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -75,16 +75,9 @@ @apply flex; @apply items-center; @apply py-8; - @apply text-neutral-500; @apply uppercase; } - nav a:active { - @apply text-neutral-900; - @apply border-b-2; - @apply border-neutral-900; - } - main { @apply flex; @apply flex-col;