Swapped out links in header

This commit is contained in:
Neshura 2023-08-08 19:43:30 +02:00
parent 280f3c912f
commit 9b1640c16c
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -1,6 +1,5 @@
<script> <script>
import { page } from '$app/stores'; import { page } from '$app/stores';
import logo from '$lib/images/svelte-logo.svg';
import discord from '$lib/images/discord.svg'; import discord from '$lib/images/discord.svg';
</script> </script>
@ -14,7 +13,10 @@
</svg> </svg>
<ul> <ul>
<li aria-current={$page.url.pathname === '/' ? 'page' : undefined}> <li aria-current={$page.url.pathname === '/' ? 'page' : undefined}>
<a href="/">Graphs</a> <a href="/">Home</a>
</li>
<li aria-current={$page.url.pathname.startsWith('/graphs') ? 'page' : undefined}>
<a href="/graphs">Graphs</a>
</li> </li>
<li aria-current={$page.url.pathname === '/legacy-graphs' ? 'page' : undefined}> <li aria-current={$page.url.pathname === '/legacy-graphs' ? 'page' : undefined}>
<a href="/legacy-graphs">Game 15 Graphs</a> <a href="/legacy-graphs">Game 15 Graphs</a>
@ -35,7 +37,7 @@
</nav> </nav>
<div class="corner"> <div class="corner">
<a href="https://github.com/sveltejs/kit"> <a href="https://discord.gg/chellaris" target="_blank" rel="noopener noreferrer">
<img src={discord} alt="Discord" /> <img src={discord} alt="Discord" />
</a> </a>
</div> </div>