Skip to content

Commit

Permalink
Merge pull request #1199 from syntaxfm/issue-1196
Browse files Browse the repository at this point in the history
active nav items
  • Loading branch information
wesbos authored Oct 19, 2023
2 parents ae3f5f4 + a48735c commit 1dbede2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/routes/(site)/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
</div>

<nav class="desktop_nav content">
<a href="/shows">Shows</a>
<a href="/about">About</a>
<a href="/potluck">Potluck Qs</a>
<a class={$page.url.pathname.startsWith('/shows') ? 'active' : ''} href="/shows">Shows</a>
<a class={$page.url.pathname.startsWith('/about') ? 'active' : ''} href="/about">About</a>
<a class={$page.url.pathname.startsWith('/potluck') ? 'active' : ''} href="/potluck"
>Potluck Qs</a
>
<!-- <a rel="noopener" target="_blank" href="https://swag.sentry.io">Swag</a> -->
<Search />
<MobileNav />
Expand Down Expand Up @@ -91,6 +93,10 @@
background: var(--primary);
color: var(--bg);
}
&.active {
background-color: var(--primary);
color: var(--bg);
}
@media (--above_med) {
display: block;
}
Expand Down

1 comment on commit 1dbede2

@vercel
Copy link

@vercel vercel bot commented on 1dbede2 Oct 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

syntax-website-v2 – ./

syntax-website-v2-syntax.vercel.app
syntax-website-v2-git-v2-syntax.vercel.app
beta.syntax.fm

Please sign in to comment.