mirror of
https://github.com/ProjectSegfault/website.git
synced 2025-05-31 14:12:04 +05:30
refactor naming scheme and add a global file
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<script lang="ts">
|
||||
import SvelteSeo from "svelte-seo";
|
||||
import Banner from "$lib/images/ProjectSegfault_Desktop_16-9.png";
|
||||
import * as strings from "$lib/strings";
|
||||
import * as global from "../i18n/_global.json";
|
||||
import { t } from '$lib/translations';
|
||||
</script>
|
||||
|
||||
<SvelteSeo
|
||||
openGraph={{
|
||||
title: strings.NAME,
|
||||
description: $t('common.indexDescription'),
|
||||
title: global.NAME,
|
||||
description: $t('common.INDEX_DESCRIPTION'),
|
||||
type: "website",
|
||||
images: [
|
||||
{
|
||||
@@ -22,7 +22,7 @@
|
||||
/>
|
||||
|
||||
<svelte:head>
|
||||
<title>{strings.NAME}</title>
|
||||
<title>{global.NAME}</title>
|
||||
</svelte:head>
|
||||
|
||||
<div class="mdsvex_content">
|
||||
|
||||
@@ -3,25 +3,26 @@
|
||||
import IconMatrix from "~icons/simple-icons/matrix";
|
||||
import IconGitHub from "~icons/simple-icons/github";
|
||||
import IconSignal from "~icons/fa6-solid/signal";
|
||||
import * as strings from "$lib/strings";
|
||||
import * as global from "../i18n/_global.json";
|
||||
import { t } from '$lib/translations';
|
||||
</script>
|
||||
|
||||
<footer>
|
||||
<hr />
|
||||
<div class="content">
|
||||
<span>{strings.COPYRIGHT}</span>
|
||||
<span>{$t('common.FOOTER_COPYRIGHT')}</span>
|
||||
|
||||
<div class="links">
|
||||
<a href={strings.MATRIX_INVITE}>
|
||||
<a href={global.MATRIX_INVITE}>
|
||||
<IconMatrix />
|
||||
</a>
|
||||
<a href={strings.DISCORD_INVITE}>
|
||||
<a href={global.DISCORD_INVITE}>
|
||||
<IconDiscord />
|
||||
</a>
|
||||
<a href={strings.GITHUB}>
|
||||
<a href={global.GITHUB}>
|
||||
<IconGitHub />
|
||||
</a>
|
||||
<a href={strings.STATUS}>
|
||||
<a href={global.STATUS}>
|
||||
<IconSignal />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
<script>
|
||||
import * as strings from "$lib/strings";
|
||||
import * as global from "../i18n/_global.json";
|
||||
import { t } from '$lib/translations';
|
||||
</script>
|
||||
|
||||
<nav>
|
||||
<a class="brand" href="/">
|
||||
<img src="/logo.png" alt="{strings.NAME} logo" />
|
||||
<img src="/logo.png" alt="{global.NAME} logo" />
|
||||
<span
|
||||
style="color: var(--accent-secondary); margin-left: 4px; margin-right: 4px;"
|
||||
>{strings.PROJECT}</span
|
||||
>{global.PROJECT}</span
|
||||
>
|
||||
<span style="color: var(--accent-primary); margin-right: 8px;"
|
||||
>{strings.SEGFAULT}</span
|
||||
>{global.SEGFAULT}</span
|
||||
>
|
||||
</a>
|
||||
|
||||
<div class="links">
|
||||
<a href="https://instances.projectsegfau.lt/">{$t('common.navbarInstances')}</a>
|
||||
<a href="/minecraft">{$t('common.navbarMinecraft')}</a>
|
||||
<a href="/donate">{$t('common.navbarDonate')}</a>
|
||||
<a href="wiki.projectsegfau.lt/about/faq">{$t('common.FAQ')}</a>
|
||||
<a href="/contact">{$t('common.navbarContact')}</a>
|
||||
<a href="https://blog.projectsegfau.lt/">{$t('common.Blog')}</a>
|
||||
<a href={global.INSTANCES}>{$t('common.NAVBAR_INSTANCES')}</a>
|
||||
<a href="/minecraft">{global.MINECRAFT}</a>
|
||||
<a href="/donate">{$t('common.NAVBAR_DONATE')}</a>
|
||||
<a href={global.FAQ_URL}>{$t('common.NAVBAR_FAQ')}</a>
|
||||
<a href="/contact">{$t('common.NAVBAR_CONTACT')}</a>
|
||||
<a href={global.BLOG_URL}>{$t('common.NAVBAR_BLOG')}</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"NAME": "Project Segfault",
|
||||
"PROJECT": "Project",
|
||||
"SEGFAULT": "Segfault",
|
||||
"COPYRIGHT": "© 2021 - present, Project Segfault",
|
||||
"MATRIX_INVITE": "https://matrix.to/#/#project-segfault:projectsegfau.lt",
|
||||
"DISCORD_INVITE": "https://discord.gg/26EG7fFtfS",
|
||||
"GITHUB": "https://github.com/ProjectSegfault",
|
||||
"STATUS": "https://status.projectsegfau.lt/"
|
||||
}
|
||||
Reference in New Issue
Block a user