47 lines
1.3 KiB
Svelte
47 lines
1.3 KiB
Svelte
|
<script lang="ts">
|
||
|
import {page} from "$app/stores";
|
||
|
import { Button } from "$lib/components/ui/button"
|
||
|
|
||
|
const button = "border-t-2 bg-black/50 hover:bg-black/70 hover:border-primary w-28";
|
||
|
|
||
|
</script>
|
||
|
|
||
|
|
||
|
<ul class="w-full h-16 border-b sticky flex flex-row items-center justify-center gap-3 backdrop-blur-sm bg-black/40">
|
||
|
<li>
|
||
|
<Button
|
||
|
variant="ghost"
|
||
|
href="/"
|
||
|
class="{button} + {$page.url.pathname == '/' ? 'border-primary text-primary' : 'text-accent'}"
|
||
|
>
|
||
|
Home
|
||
|
</Button>
|
||
|
</li>
|
||
|
<li>
|
||
|
<Button
|
||
|
variant="ghost"
|
||
|
href="/servers"
|
||
|
class="{button} + {$page.url.pathname.startsWith('/servers') ? 'border-primary text-primary' : 'text-accent'}"
|
||
|
>
|
||
|
Servers
|
||
|
</Button>
|
||
|
</li>
|
||
|
<li>
|
||
|
<Button
|
||
|
variant="ghost"
|
||
|
href="/services"
|
||
|
class="{button} + {$page.url.pathname.startsWith('/services') ? 'border-primary text-primary' : 'text-accent'}"
|
||
|
>
|
||
|
Services
|
||
|
</Button>
|
||
|
</li>
|
||
|
<li>
|
||
|
<Button
|
||
|
variant="ghost"
|
||
|
href="/about"
|
||
|
class="{button} + {$page.url.pathname.startsWith('/about') ? 'border-primary text-primary' : 'text-accent'}"
|
||
|
>
|
||
|
About
|
||
|
</Button>
|
||
|
</li>
|
||
|
</ul>
|