2022-06-18 00:22:07 +05:30
|
|
|
<script>
|
2022-06-22 12:17:02 +05:30
|
|
|
import * as global from "../i18n/_global.json";
|
2022-06-22 12:27:47 +05:30
|
|
|
import { t } from "$lib/translations";
|
2022-06-18 00:22:07 +05:30
|
|
|
</script>
|
|
|
|
|
|
|
|
<nav>
|
2022-06-18 21:56:58 +05:30
|
|
|
<a class="brand" href="/">
|
2022-06-22 12:17:02 +05:30
|
|
|
<img src="/logo.png" alt="{global.NAME} logo" />
|
2022-06-18 21:56:58 +05:30
|
|
|
<span
|
|
|
|
style="color: var(--accent-secondary); margin-left: 4px; margin-right: 4px;"
|
2022-06-22 12:17:02 +05:30
|
|
|
>{global.PROJECT}</span
|
2022-06-18 21:56:58 +05:30
|
|
|
>
|
|
|
|
<span style="color: var(--accent-primary); margin-right: 8px;"
|
2022-06-22 12:17:02 +05:30
|
|
|
>{global.SEGFAULT}</span
|
2022-06-18 21:56:58 +05:30
|
|
|
>
|
|
|
|
</a>
|
2022-06-18 00:22:07 +05:30
|
|
|
|
2022-06-18 21:56:58 +05:30
|
|
|
<div class="links">
|
2022-06-22 12:27:47 +05:30
|
|
|
<a href={global.INSTANCES}>{$t("common.NAVBAR_INSTANCES")}</a>
|
2022-06-22 12:17:02 +05:30
|
|
|
<a href="/minecraft">{global.MINECRAFT}</a>
|
2022-06-22 12:27:47 +05:30
|
|
|
<a href="/donate">{$t("common.NAVBAR_DONATE")}</a>
|
2022-06-22 17:06:21 +05:30
|
|
|
<a href="/faq">{$t("common.NAVBAR_FAQ")}</a>
|
2022-06-22 12:27:47 +05:30
|
|
|
<a href="/contact">{$t("common.NAVBAR_CONTACT")}</a>
|
|
|
|
<a href={global.BLOG_URL}>{$t("common.NAVBAR_BLOG")}</a>
|
2022-06-18 21:56:58 +05:30
|
|
|
</div>
|
2022-06-18 00:22:07 +05:30
|
|
|
</nav>
|
|
|
|
|
|
|
|
<style>
|
2022-06-18 21:56:58 +05:30
|
|
|
nav {
|
|
|
|
background-color: var(--secondary);
|
|
|
|
padding: 1rem;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
2022-06-18 00:22:07 +05:30
|
|
|
|
2022-06-18 21:56:58 +05:30
|
|
|
a.brand {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2022-06-18 00:22:07 +05:30
|
|
|
|
2022-06-18 21:56:58 +05:30
|
|
|
.links > * {
|
|
|
|
background-color: var(--tertiary);
|
|
|
|
border: none;
|
|
|
|
border-radius: 10px;
|
|
|
|
padding: 1rem;
|
|
|
|
cursor: pointer;
|
|
|
|
color: var(--text);
|
|
|
|
font-family: var(--font-primary);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2022-06-18 11:15:20 +05:30
|
|
|
|
2022-06-18 21:56:58 +05:30
|
|
|
.links > *:hover {
|
|
|
|
background-color: var(--accent-tertiary);
|
|
|
|
text-decoration: none;
|
|
|
|
transition: all 0.5s;
|
|
|
|
color: var(--secondary);
|
|
|
|
}
|
2022-06-18 18:07:23 +05:30
|
|
|
|
2022-06-18 21:56:58 +05:30
|
|
|
.links > *:active {
|
|
|
|
background-color: var(--accent-primary);
|
|
|
|
text-decoration: none;
|
|
|
|
transition: all 0.5s;
|
|
|
|
color: var(--secondary);
|
|
|
|
}
|
2022-06-18 14:47:19 +05:30
|
|
|
|
2022-06-18 21:56:58 +05:30
|
|
|
img {
|
|
|
|
height: 36px;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
2022-06-18 00:22:07 +05:30
|
|
|
|
2022-06-18 21:56:58 +05:30
|
|
|
div.links {
|
|
|
|
display: flex;
|
|
|
|
gap: 8px;
|
|
|
|
}
|
2022-06-18 00:22:07 +05:30
|
|
|
|
2022-06-18 21:56:58 +05:30
|
|
|
@media only screen and (max-width: 820px) {
|
|
|
|
nav {
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-start;
|
|
|
|
}
|
2022-06-18 00:22:07 +05:30
|
|
|
|
2022-06-18 21:56:58 +05:30
|
|
|
div.links {
|
|
|
|
flex-direction: column;
|
|
|
|
margin-top: 10px;
|
|
|
|
gap: 19px;
|
|
|
|
}
|
|
|
|
}
|
2022-06-18 18:31:38 +05:30
|
|
|
</style>
|