Compare commits
2 commits
ba605b759c
...
ea89858e81
Author | SHA1 | Date | |
---|---|---|---|
ea89858e81 | |||
10d6d54846 |
2 changed files with 6 additions and 6 deletions
|
@ -8,11 +8,11 @@ const { pathname } = Astro.url;
|
|||
</div>
|
||||
<nav class="flex flex-wrap gap-2">
|
||||
<a class={`headerlink ${pathname === '/' ? 'headerlink-active' : ''}`} href="/">home</a>
|
||||
<a class={`headerlink ${pathname === '/blog' ? 'headerlink-active' : ''}`} href="/blog">blog</a>
|
||||
<a class={`headerlink ${pathname === '/logs' ? 'headerlink-active' : ''}`} href="/logs">logs</a>
|
||||
<a class={`headerlink ${pathname === '/gallery' ? 'headerlink-active' : ''}`} href="/gallery">gallery</a>
|
||||
<a class={`headerlink ${pathname === '/guestbook' ? 'headerlink-active' : ''}`} href="/guestbook">guestbook</a>
|
||||
<a class={`headerlink ${pathname === '/slashes' ? 'headerlink-active' : ''}`} href="/slashes">more</a>
|
||||
<a class={`headerlink ${pathname === '/blog' || pathname === '/blog/' ? 'headerlink-active' : ''}`} href="/blog">blog</a>
|
||||
<a class={`headerlink ${pathname === '/logs' || pathname === '/logs' ? 'headerlink-active' : ''}`} href="/logs">logs</a>
|
||||
<a class={`headerlink ${pathname === '/gallery' || pathname === '/gallery/' ? 'headerlink-active' : ''}`} href="/gallery">gallery</a>
|
||||
<a class={`headerlink ${pathname === '/guestbook' || pathname === '/guestbook/' ? 'headerlink-active' : ''}`} href="/guestbook">guestbook</a>
|
||||
<a class={`headerlink ${pathname === '/slashes' || pathname === '/slashes/' ? 'headerlink-active' : ''}`} href="/slashes">more</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ hr {
|
|||
|
||||
.headerlink-active {
|
||||
border: 2px solid var(--dark-link);
|
||||
padding: 0.5vh 1vh;
|
||||
padding: 0.5vh 1.5vh;
|
||||
border-radius: 10px;
|
||||
font-weight: 600;
|
||||
background-color: var(--dark-link);
|
||||
|
|
Loading…
Add table
Reference in a new issue