Skip to content

Commit 07637fe

Browse files
authored
Improve navbar #5 (#21)
1 parent ef6be1b commit 07637fe

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/components/Header.astro

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,23 @@ const path = Astro.url.pathname;
99

1010
<header class="border-line border-b">
1111
<div class="site-container flex items-center justify-between gap-4 py-4">
12-
<a href="/projects" class="text-lg font-bold tracking-tight">
12+
<a
13+
href="/projects"
14+
class="flex items-center gap-2 text-lg font-bold tracking-tight"
15+
>
16+
<img src="/ccss-logo.svg" alt="CCSS logo" class="h-6 w-auto" />
1317
Carleton Computer Science <span class="text-accent">Showcase</span>
1418
</a>
1519
<div class="grouped flex items-center gap-5">
16-
<nav class="flex gap-5 text-sm">
20+
<nav class="flex gap-5">
1721
{
1822
navLinks.map(({ href, label }) => (
1923
<a
2024
href={href}
2125
aria-current={path.startsWith(href) ? 'page' : undefined}
2226
class:list={[
2327
'hover:text-accent transition-colors',
24-
path.startsWith(href) ? 'text-accent' : 'text-muted',
28+
path.startsWith(href) ? 'text-accent' : 'text-ink',
2529
]}
2630
>
2731
{label}

0 commit comments

Comments
 (0)