mirror of
https://github.com/ProjectSegfault/website.git
synced 2025-05-31 14:12:04 +05:30
initial work on refactor
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
import IconMatrix from "~icons/simple-icons/matrix";
|
||||
import IconGitHub from "~icons/simple-icons/github";
|
||||
import IconSignal from "~icons/fa6-solid/signal";
|
||||
import * as global from "../i18n/_global.json";
|
||||
import { t } from "$lib/translations";
|
||||
import { page } from "$app/stores";
|
||||
</script>
|
||||
|
||||
@@ -22,19 +20,19 @@
|
||||
{/if}
|
||||
<hr />
|
||||
<div class="content">
|
||||
<span>{$t("common.FOOTER_COPYRIGHT")}</span>
|
||||
<span>© 2021 - present, Project Segfault</span>
|
||||
|
||||
<div class="links">
|
||||
<a href={global.MATRIX_INVITE}>
|
||||
<a href="https://matrix.to/#/#project-segfault:projectsegfau.lt/">
|
||||
<IconMatrix />
|
||||
</a>
|
||||
<a href={global.DISCORD_INVITE}>
|
||||
<a href="https://discord.gg/26EG7fFtfS/">
|
||||
<IconDiscord />
|
||||
</a>
|
||||
<a href={global.GITHUB}>
|
||||
<a href="https://github.com/ProjectSegfault/">
|
||||
<IconGitHub />
|
||||
</a>
|
||||
<a href={global.STATUS}>
|
||||
<a href="https://status.projectsegfau.lt/">
|
||||
<IconSignal />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
38
src/lib/MDsvexLayout.svelte
Normal file
38
src/lib/MDsvexLayout.svelte
Normal file
@@ -0,0 +1,38 @@
|
||||
<script lang="ts">
|
||||
export let title;
|
||||
export let description;
|
||||
export let separator;
|
||||
import SvelteSeo from 'svelte-seo';
|
||||
// Enjoy the jank.
|
||||
if(title === "Project Segfault") {
|
||||
title = "";
|
||||
separator = "";
|
||||
}
|
||||
else {
|
||||
separator = "|";
|
||||
}
|
||||
</script>
|
||||
|
||||
<SvelteSeo
|
||||
openGraph={{
|
||||
title: title,
|
||||
description: description,
|
||||
type: 'website',
|
||||
images: [
|
||||
{
|
||||
url: 'https://projectsegfau.lt:8448/_matrix/media/r0/download/projectsegfau.lt/HBgjhWUExhKPzbpkpIqQfUkF',
|
||||
width: 850,
|
||||
height: 650,
|
||||
alt: 'Image'
|
||||
}
|
||||
]
|
||||
}}
|
||||
/>
|
||||
|
||||
<svelte:head>
|
||||
<title>{title} {separator} Project Segfault</title>
|
||||
</svelte:head>
|
||||
|
||||
<div class="mdsvex_content">
|
||||
<slot />
|
||||
</div>
|
||||
24
src/lib/Members.json
Normal file
24
src/lib/Members.json
Normal file
@@ -0,0 +1,24 @@
|
||||
[
|
||||
{
|
||||
"name": "Midou",
|
||||
"matrix": "https://matrix.to/#/@midou:projectsegfau.lt/",
|
||||
"position": "System administrator"
|
||||
},
|
||||
{
|
||||
"name": "MrLeRien",
|
||||
"discord": "https://discord.com/users/213634643327582208/",
|
||||
"position": "Hoster"
|
||||
},
|
||||
{
|
||||
"name": "akisblack",
|
||||
"matrix": "https://matrix.to/#/@akis:projectsegfau.lt/",
|
||||
"discord": "https://discord.com/users/845535118285602866/",
|
||||
"position": "Web developer"
|
||||
},
|
||||
{
|
||||
"name": "Devnol",
|
||||
"matrix": "https://matrix.to/#/@devnol:projectsegfau.lt/",
|
||||
"discord": "https://discord.com/users/429353559566319626/",
|
||||
"position": "Hoster"
|
||||
}
|
||||
]
|
||||
@@ -1,27 +1,23 @@
|
||||
<script>
|
||||
import * as global from "../i18n/_global.json";
|
||||
import { t } from "$lib/translations";
|
||||
</script>
|
||||
|
||||
<nav>
|
||||
<a class="brand" href="/">
|
||||
<img src="/logo.png" alt="{global.NAME} logo" />
|
||||
<img src="/logo.png" alt="Project Segfault logo" />
|
||||
<span
|
||||
style="color: var(--accent-secondary); margin-left: 4px; margin-right: 4px;"
|
||||
>{global.PROJECT}</span
|
||||
>Project</span
|
||||
>
|
||||
<span style="color: var(--accent-primary); margin-right: 8px;"
|
||||
>{global.SEGFAULT}</span
|
||||
>Segfault</span
|
||||
>
|
||||
</a>
|
||||
|
||||
<div class="links">
|
||||
<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="/faq">{$t("common.NAVBAR_FAQ")}</a>
|
||||
<a href="/contact">{$t("common.NAVBAR_CONTACT")}</a>
|
||||
<a href={global.BLOG_URL}>{$t("common.NAVBAR_BLOG")}</a>
|
||||
<a href="https://instances.projectsegfau.lt/">Instances & Gameservers</a>
|
||||
<a href="/minecraft">Minecraft</a>
|
||||
<a href="/donate">Donate</a>
|
||||
<a href="/faq">FAQ</a>
|
||||
<a href="/contact">Contact</a>
|
||||
<a href="https://blog.projectsegfau.lt/">Blog</a>
|
||||
<a href="/legal">Legal</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 426 KiB |
@@ -1,33 +0,0 @@
|
||||
import i18n from "sveltekit-i18n";
|
||||
|
||||
/** @type {import('sveltekit-i18n').Config} */
|
||||
const config = {
|
||||
loaders: [
|
||||
{
|
||||
locale: "en",
|
||||
key: "common",
|
||||
loader: async () => (await import("../i18n/common.json")).default
|
||||
},
|
||||
{
|
||||
locale: "nb",
|
||||
key: "common",
|
||||
loader: async () => (await import("../i18n/nb.json")).default
|
||||
},
|
||||
{
|
||||
locale: "fr",
|
||||
key: "common",
|
||||
loader: async () => (await import("../i18n/fr.json")).default
|
||||
}
|
||||
/*
|
||||
{
|
||||
locale: "el",
|
||||
key: "common",
|
||||
loader: async () => (await import("../i18n/el.json")).default
|
||||
}
|
||||
*/
|
||||
]
|
||||
};
|
||||
|
||||
export const { t, locale, locales, loading, loadTranslations } = new i18n(
|
||||
config
|
||||
);
|
||||
Reference in New Issue
Block a user