fix build and format files to match code style

This commit is contained in:
Akis 2022-06-18 19:26:58 +03:00
parent d5a7a0c031
commit 928e025114
17 changed files with 265 additions and 229 deletions

View File

@ -5,7 +5,7 @@
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"

View File

@ -22,4 +22,3 @@ jobs:
commit-message: Successfully built
clean: true
single-commit: false

View File

@ -29,4 +29,4 @@
"unplugin-icons": "^0.14.5"
},
"type": "module"
}
}

View File

@ -2,8 +2,14 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="icon"
href="%sveltekit.assets%/logo.png"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1"
/>
%sveltekit.head%
</head>
<body>

View File

@ -1,70 +1,70 @@
<script>
import IconDiscord from "~icons/simple-icons/discord";
import IconMatrix from "~icons/simple-icons/matrix";
import IconGitHub from "~icons/simple-icons/github";
import IconSignal from "~icons/fa6-solid/signal";
import IconDiscord from "~icons/simple-icons/discord";
import IconMatrix from "~icons/simple-icons/matrix";
import IconGitHub from "~icons/simple-icons/github";
import IconSignal from "~icons/fa6-solid/signal";
</script>
<footer>
<hr />
<div class="content">
<span>© 2021 - present, Project Segfault</span>
<hr />
<div class="content">
<span>© 2021 - present, Project Segfault</span>
<div class="links">
<a href="https://matrix.to/#/#project-segfault:projectsegfau.lt">
<IconMatrix />
</a>
<a href="https://discord.gg/26EG7fFtfS">
<IconDiscord />
</a>
<a href="https://github.com/ProjectSegfault">
<IconGitHub />
</a>
<a href="https://status.projectsegfau.lt/">
<IconSignal />
</a>
</div>
</div>
<div class="links">
<a href="https://matrix.to/#/#project-segfault:projectsegfau.lt">
<IconMatrix />
</a>
<a href="https://discord.gg/26EG7fFtfS">
<IconDiscord />
</a>
<a href="https://github.com/ProjectSegfault">
<IconGitHub />
</a>
<a href="https://status.projectsegfau.lt/">
<IconSignal />
</a>
</div>
</div>
</footer>
<style>
footer {
padding: 1rem;
display: flex;
flex-direction: column;
font-size: 20px;
}
footer {
padding: 1rem;
display: flex;
flex-direction: column;
font-size: 20px;
}
hr {
color: var(--accent-primary);
width: 100%;
margin-left: 0;
}
hr {
color: var(--accent-primary);
width: 100%;
margin-left: 0;
}
div.content {
display: flex;
justify-content: space-between;
}
div.content {
display: flex;
justify-content: space-between;
}
div.links {
display: flex;
gap: 12px;
margin-left: 8px;
}
div.links {
display: flex;
gap: 12px;
margin-left: 8px;
}
.links a {
text-decoration: none;
}
.links a {
text-decoration: none;
}
@media only screen and (max-width: 500px) {
.content {
display: flex;
flex-direction: column;
gap: 8px;
}
@media only screen and (max-width: 500px) {
.content {
display: flex;
flex-direction: column;
gap: 8px;
}
div.links {
margin-left: 0;
}
}
</style>
div.links {
margin-left: 0;
}
}
</style>

View File

@ -1,86 +1,91 @@
<script>
import * as strings from "$lib/strings";
import * as strings from "$lib/strings";
</script>
<nav>
<a class="brand" href="/">
<img src="/logo.png" alt="Project Segfault logo">
<span style="color: var(--accent-secondary); margin-left: 4px; margin-right: 4px;">{strings.PROJECT}</span>
<span style="color: var(--accent-primary); margin-right: 8px;">{strings.SEGFAULT}</span>
</a>
<a class="brand" href="/">
<img src="/logo.png" alt="Project Segfault logo" />
<span
style="color: var(--accent-secondary); margin-left: 4px; margin-right: 4px;"
>{strings.PROJECT}</span
>
<span style="color: var(--accent-primary); margin-right: 8px;"
>{strings.SEGFAULT}</span
>
</a>
<div class="links">
<a href="https://instances.projectsegfau.lt/">{strings.INSTANCES}</a>
<a href="/minecraft">{strings.MINECRAFT}</a>
<a href="/donate">{strings.DONATE}</a>
<a href="/faq">{strings.FAQ}</a>
<a href="/contact">{strings.CONTACT}</a>
<a href="https://blog.projectsegfau.lt/">{strings.BLOG}</a>
</div>
<div class="links">
<a href="https://instances.projectsegfau.lt/">{strings.INSTANCES}</a>
<a href="/minecraft">{strings.MINECRAFT}</a>
<a href="/donate">{strings.DONATE}</a>
<a href="/faq">{strings.FAQ}</a>
<a href="/contact">{strings.CONTACT}</a>
<a href="https://blog.projectsegfau.lt/">{strings.BLOG}</a>
</div>
</nav>
<style>
nav {
background-color: var(--secondary);
padding: 1rem;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
nav {
background-color: var(--secondary);
padding: 1rem;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
a.brand {
display: flex;
flex-direction: row;
align-items: center;
text-decoration: none;
}
a.brand {
display: flex;
flex-direction: row;
align-items: center;
text-decoration: none;
}
.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;
}
.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;
}
.links > *:hover {
background-color: var(--accent-tertiary);
text-decoration: none;
transition: all 0.5s;
color: var(--secondary);
}
.links > *:hover {
background-color: var(--accent-tertiary);
text-decoration: none;
transition: all 0.5s;
color: var(--secondary);
}
.links > *:active {
background-color: var(--accent-primary);
text-decoration: none;
transition: all 0.5s;
color: var(--secondary);
}
.links > *:active {
background-color: var(--accent-primary);
text-decoration: none;
transition: all 0.5s;
color: var(--secondary);
}
img {
height: 36px;
border-radius: 50%;
}
img {
height: 36px;
border-radius: 50%;
}
div.links {
display: flex;
gap: 8px;
}
div.links {
display: flex;
gap: 8px;
}
@media only screen and (max-width: 820px) {
nav {
flex-direction: column;
align-items: flex-start;
}
@media only screen and (max-width: 820px) {
nav {
flex-direction: column;
align-items: flex-start;
}
div.links {
flex-direction: column;
margin-top: 10px;
gap: 19px;
}
}
div.links {
flex-direction: column;
margin-top: 10px;
gap: 19px;
}
}
</style>

View File

@ -1,33 +1,33 @@
@font-face {
font-family: Comfortaa;
src: url("/Comfortaa.ttf");
font-display: swap;
font-family: Comfortaa;
src: url("/Comfortaa.ttf");
font-display: swap;
}
html {
--primary: #151515;
--secondary: #252525;
--tertiary: #353535;
--accent-primary: #00d4aa;
--accent-secondary: #ce1717;
--text: #fff;
--font-primary: Comfortaa;
--accent-tertiary: #4beacb;
--primary: #151515;
--secondary: #252525;
--tertiary: #353535;
--accent-primary: #00d4aa;
--accent-secondary: #ce1717;
--text: #fff;
--font-primary: Comfortaa;
--accent-tertiary: #4beacb;
}
body {
font-family: var(--font-primary);
background-color: var(--primary);
color: var(--text);
margin: 0;
font-family: var(--font-primary);
background-color: var(--primary);
color: var(--text);
margin: 0;
}
main {
padding: 1rem;
padding: 1rem;
}
a {
text-decoration: underline;
color: var(--accent-primary);
text-underline-offset: 5px;
}
text-decoration: underline;
color: var(--accent-primary);
text-underline-offset: 5px;
}

View File

@ -1,32 +1,31 @@
<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 = "|";
}
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'
}
]
}}
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>
@ -35,4 +34,4 @@
<div class="mdsvex_content">
<slot />
</div>
</div>

View File

@ -1,10 +1,10 @@
{
"PROJECT": "Project",
"SEGFAULT": "Segfault",
"INSTANCES": "Instances & Gameservers",
"MINECRAFT": "Minecraft",
"DONATE": "Donate",
"FAQ": "FAQ",
"CONTACT": "Contact",
"BLOG": "Blog"
}
"PROJECT": "Project",
"SEGFAULT": "Segfault",
"INSTANCES": "Instances & Gameservers",
"MINECRAFT": "Minecraft",
"DONATE": "Donate",
"FAQ": "FAQ",
"CONTACT": "Contact",
"BLOG": "Blog"
}

View File

@ -1,11 +1,11 @@
<script>
import "$lib/app.css";
import Nav from "$lib/Nav.svelte";
import Footer from "$lib/Footer.svelte";
import "$lib/app.css";
import Nav from "$lib/Nav.svelte";
import Footer from "$lib/Footer.svelte";
</script>
<Nav />
<main>
<slot />
<slot />
</main>
<Footer />
<Footer />

View File

@ -4,6 +4,7 @@ description: Do you want to contact us?
---
# {title}
## {description}
# Our email
@ -20,36 +21,39 @@ description: Do you want to contact us?
<div id="Active" style="display:none">
<h1>People</h1>
<div>
<div>
<span>Midou:</span>
<a class="matrixcolored" href="https://matrix.to/#/@midou:projectsegfau.lt">[Matrix]</a>
</div>
<div>
<div>
<span>MrLeRien:</span>
<a class="discordcolored" href="https://discord.com/users/213634643327582208">Discord</a>
</div>
<div>
<div>
<span>Odyssey:</span>
<a class="matrixcolored" href="https://matrix.to/#/@odyssey346:projectsegfau.lt">[Matrix]</a>
<a class="discordcolored" href="https://discord.com/users/315843700490240002">Discord</a>
</div>
<div>
<div>
<span>Devnol:</span>
<a class="matrixcolored" href="https://matrix.to/#/@devnol:projectsegfau.lt">[Matrix]</a>
<a class="discordcolored" href="https://discordapp.com/users/429353559566319626">Discord</a>
</div>
</div>
<button
id="hide"
type="button"
onclick='document.getElementById("Active").style.display ="block"; document.getElementById("hide").style.display = "none" ;'
<button
id="hide"
type="button"
onclick='document.getElementById("Active").style.display ="block"; document.getElementById("hide").style.display = "none" ;'
>
Click to show who is active on what platform
</button>
<style>
@ -91,4 +95,4 @@ description: Do you want to contact us?
background-color: #5865F2;
color: #fff !important;
}
</style>
</style>

View File

@ -2,19 +2,21 @@
title: Donate to Project Segfault
description: Our donation methods
---
<script lang="ts">
import MoneroQR from "$lib/images/Monero.png";
</script>
# {title}
## {description}
# please do
If you donate, we will be more motivated to work on the server and host more stuff and maybe even get more hardware. I really recommend you donate any spare money you have if you enjoy or use our services on a daily basis.
# yeah sure I'll donate. links?
<div class="monero">
<span>Monero: <code>47L7Qsto7XcifY3CdG18ySe5Tt83kpFLDLve9jQwbc9taPBLNGv6ZrJNUKpMG9Nj9zHgCZ4FQMSyt75e8Jvx12JFLtJyFdA</code></span>
<img src={MoneroQR} alt="Monero Qr Code">
@ -41,4 +43,4 @@ If you donate, we will be more motivated to work on the server and host more stu
margin-top: 8px;
}
}
</style>
</style>

View File

@ -4,18 +4,24 @@ description: Frequently or not frequently asked questions about Project Segfault
---
# {title}
## Who is the project owner?
Orignally: Midou (Sysadmin) and Mrlerien (Hoster), but now Odyssey346 (Game Server Sysadmin, webdev and social media manager) and Devnol (Hoster) are with us.
# Hold on, what if Devnol decides to backstab you?
I highly doubt he will, but in any case this happens, critical services will stay up. So only extra (non important services) running on the server will be gone, but you should be aware of that anyways.
# One of your services contains toxic people!
You can contact us by mail or Matrix and we can figure this out with you. But we recommend that you put most of these requests in our support channel at [#support:projectsegfau.lt](https://matrix.to/#/#support:projectsegfau.lt) on Matrix.
If it's something personal, just say that you have a report against someone on one of our services and you'd like to be contacted by an admin and we'll constact you ASAP. We have no lives so we're quite active.
# How can I trust your services?
Well, you really can't. We don't make our logs or anything public, however, if you would like the data we have on you, please contact us. If you're paranoid, **you are allowed to use Tor on our services**, but we don't host any .onion links.
# Which ways do you prefer to communicate?
Look at <a href="/contact">Contact</a>.
Look at <a href="/contact">Contact</a>.

View File

@ -8,7 +8,9 @@ description: 4 idiots, a Sun server and a Hitachi Compute Rack.
## {description}
# what
We are 4 teenagers who have a decently powerful server. What do we do with this server? Host game servers and random assortment of privacy respecting tools like Invidious, Nextcloud, Matrix etc.... and maybe some original works. You'll see eventually!
# Tell me more! What do you guys host? Where can I contact you? Can you fix my daughter's iPad?
We can't fix your daughter's iPad, but there is a navigation bar at the top of the page with links to websites that explain things about us, or contain useful information about us.
We can't fix your daughter's iPad, but there is a navigation bar at the top of the page with links to websites that explain things about us, or contain useful information about us.

View File

@ -1,14 +1,17 @@
---
title: Project Segfault MC
---
# {title}
# [Click me to go back to the Minecraft site](/minecraft)
## Recommended mods list
These are picked by our community or are for server features like voice chatting.
If you play on Bedrock, try to find an alternative to these. Mods like Simple Voice Chat have no alternative on Bedrock, sorry.
- [Xaero's World Map](https://www.curseforge.com/minecraft/mc-mods/xaeros-world-map) & [Xaero's Minimap](https://www.curseforge.com/minecraft/mc-mods/xaeros-minimap)
- Any optimization mod (We recommend at least Sodium)
- [Simple Voice Chat](https://www.curseforge.com/minecraft/mc-mods/simple-voice-chat)
- [Xaero's World Map](https://www.curseforge.com/minecraft/mc-mods/xaeros-world-map) & [Xaero's Minimap](https://www.curseforge.com/minecraft/mc-mods/xaeros-minimap)
- Any optimization mod (We recommend at least Sodium)
- [Simple Voice Chat](https://www.curseforge.com/minecraft/mc-mods/simple-voice-chat)

View File

@ -6,26 +6,30 @@ description: Yeah, we have a Minecraft server.
# {title}
# {description}
We have an invite-only SMP server running on our network on version 1.18* (1.18, 1.18.1, 1.18.2) which is also bridged to Bedrock using GeyserMC.
We have an invite-only SMP server running on our network on version 1.18\* (1.18, 1.18.1, 1.18.2) which is also bridged to Bedrock using GeyserMC.
If you would like to join, please [join our Discord](https://discord.gg/26EG7fFtfS) and ask us there to be whitelisted.
## Rules
1. Do not modify buildings without permission.
2. Do not bypass protections. (mining around a protected door, bypassing chest locks etc)
3. Do not cheat
4. Do not lag the shit out of the server.
## IP
**Java**: mc.projectsegfau.lt:25565
**Bedrock** mc.projectsegfau.lt:19132
*psst, you can join bedrock on your switch using the app we've linked below!*
_psst, you can join bedrock on your switch using the app we've linked below!_
*another psst, if you play on both Java and Bedrock, [link your accounts together on GeyserMC's website!](https://link.geysermc.org)* Your accounts will be linked together meaning you will have the exact same experience.
_another psst, if you play on both Java and Bedrock, [link your accounts together on GeyserMC's website!](https://link.geysermc.org)_ Your accounts will be linked together meaning you will have the exact same experience.
## Links
[Dynmap](https://map.mc.projectsegfau.lt)
[MC Server Connector for iOS](https://apps.apple.com/us/app/mc-server-connector/id1548251304)
@ -33,20 +37,23 @@ If you would like to join, please [join our Discord](https://discord.gg/26EG7fFt
[MC Server Connector for Android](https://play.google.com/store/apps/details?id=com.smokiem.mcserverconnector&hl=no&gl=US)
## Recommended Client-Side Mods
[Click me for a list of recommended client-side mods](/minecraft/client-side-mods)
## Plugin list
This is a manually made list of our plugins, so it might not be up to date.
- BlockLocker
- CoreProtect
- [Dynmap](https://map.mc.projectsegfau.lt)
- EssentialsX (EssentialsXDiscord, EssentialsXGeoIP)
- Geyser & Floodgate
- LuckPerms
- mcMMO (manually built! fuck buying things. [Click here to download our build](https://downloads.projectsegfau.lt))
- TabTPS
- Vault
- ViaVersion (You may only connect from a base version and its subversions (1.18, 1.18.1, 1.18.2). You cannot connect from a major version older than the major version the server is running.)
- PlugMan
- CombatLogX
- Simple Voice Mod
- BlockLocker
- CoreProtect
- [Dynmap](https://map.mc.projectsegfau.lt)
- EssentialsX (EssentialsXDiscord, EssentialsXGeoIP)
- Geyser & Floodgate
- LuckPerms
- mcMMO (manually built! fuck buying things. [Click here to download our build](https://downloads.projectsegfau.lt))
- TabTPS
- Vault
- ViaVersion (You may only connect from a base version and its subversions (1.18, 1.18.1, 1.18.2). You cannot connect from a major version older than the major version the server is running.)
- PlugMan
- CombatLogX
- Simple Voice Mod

View File

@ -1,6 +1,6 @@
import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
import icons from 'unplugin-icons/vite'
import adapter from "@sveltejs/adapter-static";
import preprocess from "svelte-preprocess";
import icons from "unplugin-icons/vite";
import { mdsvex } from "mdsvex";
/** @type {import('@sveltejs/kit').Config} */
@ -23,10 +23,13 @@ const config = {
vite: {
plugins: [
icons({
compiler: 'svelte',
}),
],
compiler: "svelte"
})
]
},
prerender: {
default: true
}
}
};