remove bloat fonts, get rid of svelte-i18n
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
35
app/src/components/page.svelte
Normal file
35
app/src/components/page.svelte
Normal file
@@ -0,0 +1,35 @@
|
||||
<script>
|
||||
import { click } from "$lib/util.js";
|
||||
import { page } from "$app/stores";
|
||||
|
||||
export let link;
|
||||
</script>
|
||||
|
||||
<a
|
||||
class={$page.url.pathname === link ? "active" : "inactive"}
|
||||
data-sveltekit-preload-data
|
||||
on:click={click}
|
||||
href={link}
|
||||
>
|
||||
<slot></slot>
|
||||
</a>
|
||||
|
||||
<style>
|
||||
a {
|
||||
font-weight: 600;
|
||||
font-size: var(--size-3);
|
||||
|
||||
color: var(--white-1);
|
||||
text-decoration: none;
|
||||
text-decoration-color: var(--color);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--color);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.active {
|
||||
color: var(--color);
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user