remove bloat fonts, get rid of svelte-i18n
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
46
app/src/components/navbar.svelte
Normal file
46
app/src/components/navbar.svelte
Normal file
@@ -0,0 +1,46 @@
|
||||
<script>
|
||||
import Page from "$components/page.svelte";
|
||||
import Language from "$components/language.svelte";
|
||||
|
||||
import { _ } from "$lib/locale.js";
|
||||
</script>
|
||||
|
||||
<nav>
|
||||
<h3>ngn.tf</h3>
|
||||
<div>
|
||||
<Page link="/">{$_("navbar.home")}</Page>
|
||||
<Page link="/services">{$_("navbar.services")}</Page>
|
||||
<Page link="/donate">{$_("navbar.donate")}</Page>
|
||||
<Language />
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<style>
|
||||
nav {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
background: var(--glass);
|
||||
box-shadow: var(--box-shadow);
|
||||
border-bottom: solid 2px var(--color);
|
||||
|
||||
padding: 15px 40px;
|
||||
}
|
||||
|
||||
nav div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
justify-content: right;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
nav h3 {
|
||||
color: var(--color);
|
||||
font-family: var(--monospace);
|
||||
font-size: var(--size-4);
|
||||
font-weight: 900;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user