fix: mugikor menuaren maketazioa hobetzen du

This commit is contained in:
2026-01-10 09:53:50 +01:00
parent 3757897793
commit d85c0787f8
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
---
const { href, class: className, ...props } = Astro.props;
let isActive;
let isActive: boolean;
if (href === "/") {
isActive = Astro.url.pathname === href;
@@ -13,6 +13,7 @@ if (href === "/") {
<a href={href} class:list={[className, { active: isActive }]} {...props}>
<slot />
</a>
<style>
a {
display: inline-block;

View File

@@ -136,11 +136,13 @@ nav {
background: var(--transwhite);
-webkit-backdrop-filter: blur(1px);
backdrop-filter: blur(1px);
padding-top: 25px;
}
nav a {
margin: 25px 0;
margin-bottom: 25px;
}
nav a:not(:last-child) {
padding: 0 12px 0 0;
}