more changes

This commit is contained in:
Akis 2022-08-04 18:50:02 +03:00
parent d257749a9d
commit 916e21694c
Signed by untrusted user: akis
GPG Key ID: 267BF5C6677944ED
8 changed files with 201 additions and 89 deletions

View File

@ -1,7 +1,4 @@
<script> <script>
import IconMatrix from "~icons/simple-icons/matrix";
import IconGitHub from "~icons/simple-icons/github";
import IconSignal from "~icons/fa6-solid/signal";
import { page } from "$app/stores"; import { page } from "$app/stores";
</script> </script>
@ -10,7 +7,7 @@
<a <a
href="https://www.abuseipdb.com/user/82331" href="https://www.abuseipdb.com/user/82331"
title="AbuseIPDB is an IP address blacklist for webmasters and sysadmins to report IP addresses engaging in abusive behavior on their networks" title="AbuseIPDB is an IP address blacklist for webmasters and sysadmins to report IP addresses engaging in abusive behavior on their networks"
style="width: fit-content;" style="width: fit-content; padding: 1rem;"
> >
<img <img
src="https://www.abuseipdb.com/contributor/82331.svg" src="https://www.abuseipdb.com/contributor/82331.svg"
@ -18,68 +15,34 @@
/> />
</a> </a>
{/if} {/if}
<hr />
<div class="content"> <div class="content">
<span>© 2021 - present, Project Segfault</span> <span>© 2021 - present, Project Segfault team</span>
<span>Made with <a href="https://kit.svelte.dev/">SvelteKit</a> and released under the <a href="https://opensource.org/licenses/MIT/">MIT license</a>.</span>
<div class="links">
<a href="https://matrix.to/#/#project-segfault:projectsegfau.lt/">
<IconMatrix />
</a>
<a href="https://github.com/ProjectSegfault/">
<IconGitHub />
</a>
<a href="https://status.projectsegfau.lt/">
<IconSignal />
</a>
</div>
</div> </div>
</footer> </footer>
<style> <style>
footer { footer {
padding: 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-size: 20px; font-size: 20px;
position: sticky; position: sticky;
top: 100vh; top: 100vh;
width: calc(100vw - 2rem);
}
hr {
color: var(--accent-primary);
width: 100%;
margin-left: 0;
} }
div.content { div.content {
display: flex;
justify-content: space-between;
}
div.links {
display: flex;
gap: 12px;
margin-left: 8px;
}
.links a {
text-decoration: none;
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: column;
border-top: 1px solid var(--grey);
padding: .5rem;
} }
@media only screen and (max-width: 500px) { div.content > * {
.content { color: var(--text);
display: flex; font-size: 13px;
flex-direction: column; font-weight: 500;
gap: 8px; text-align: center;
}
div.links {
margin-left: 0;
}
} }
img { img {

View File

@ -1,5 +1,7 @@
<script> <script>
import IconBars from "~icons/fa6-solid/bars"; import IconBars from "~icons/fa6-solid/bars";
import IconMatrix from "~icons/simple-icons/matrix";
import IconGitHub from "~icons/simple-icons/github";
</script> </script>
<nav> <nav>
@ -16,15 +18,22 @@
</label> </label>
<div class="links"> <div class="links">
<a href="https://instances.projectsegfau.lt/">Hosted services</a <a href="https://instances.projectsegfau.lt/">Instances</a
> >
<a href="/minecraft">Minecraft</a> <a href="/minecraft">Minecraft</a>
<a href="/donate">Donate</a> <a href="/donate">Donate</a>
<a href="/faq">FAQ</a> <a href="/faq">FAQ</a>
<a href="/contact">Contact us</a> <a href="/contact">Contact us</a>
<a href="/members">Our team</a> <a href="/team">Our team</a>
<a href="https://blog.projectsegfau.lt/">Blog</a> <a href="https://blog.projectsegfau.lt/">Blog</a>
<a href="/legal">Legal</a> <a href="/legal">Legal</a>
<a href="https://status.projectsegfau.lt/">Status</a>
<a href="https://matrix.to/#/#project-segfault:projectsegfau.lt/">
<IconMatrix />
</a>
<a href="https://github.com/ProjectSegfault/">
<IconGitHub />
</a>
</div> </div>
</nav> </nav>
@ -54,6 +63,7 @@
.links { .links {
display: flex; display: flex;
gap: 0.5rem; gap: 0.5rem;
} }
.links > * { .links > * {
@ -64,6 +74,8 @@
transition: color .25s; transition: color .25s;
font-size: 13px; font-size: 13px;
font-weight: 500; font-weight: 500;
display: flex;
align-items: center;
} }
.links > *:hover { .links > *:hover {
@ -85,7 +97,7 @@
display: none; display: none;
} }
@media screen and (max-width: 1150px) { @media screen and (max-width: 870px) {
.links { .links {
display: none; display: none;
width: 100%; width: 100%;
@ -109,7 +121,7 @@
z-index: 1; z-index: 1;
position: absolute; position: absolute;
right: 1rem; right: 1rem;
top: .35rem; top: .5rem;
border: none; border: none;
border-radius: 10px; border-radius: 10px;
height: 30px; height: 30px;

14
src/lib/Projects.json Normal file
View File

@ -0,0 +1,14 @@
[
{
"name": "Website",
"description": "Our website written in SvelteKit.",
"github": "https://github.com/ProjectSegfault/website/",
"website": "https://projectsegfau.lt/"
},
{
"name": "Segfautils",
"description": "Web utilities (APIs) for Project Segfault, but you could probably use them too.",
"github": "https://github.com/ProjectSegfault/Segfautils/",
"website": "https://segfautils.projectsegfau.lt/"
}
]

View File

@ -10,17 +10,23 @@
font-display: swap; font-display: swap;
} }
@font-face {
font-family: Raleway;
src: url("/Raleway.ttf");
font-display: swap;
}
html { html {
--primary: #151515; --primary: #151515;
--secondary: #252525; --secondary: #252525;
--tertiary: #353535; --tertiary: #353535;
--accent-primary: #00d4aa; --accent-primary: #B59BD8;
--accent-secondary: #00d4aa; --accent-secondary: #B59BD8;
--accent-tertiary: #00d4aa; --accent-tertiary: #B59BD8;
--text: #ffffffde; --text: #ffffffde;
--grey: #5454547a; --grey: #5454547a;
--font-primary: Comfortaa; --font-primary: Raleway;
--font-header: Inter --font-header: Raleway;
} }
@ -44,4 +50,9 @@ a {
text-decoration: underline; text-decoration: underline;
color: var(--accent-primary); color: var(--accent-primary);
text-underline-offset: 5px; text-underline-offset: 5px;
transition: filter .25s;
}
a:hover {
filter: brightness(125%);
} }

View File

@ -12,33 +12,18 @@
<div class="hero"> <div class="hero">
<h1><span>Project</span> <span>Segfault</span></h1> <h1><span>Project</span> <span>Segfault</span></h1>
<p>Open source development <br /> and hosted services</p> <p>Open source development and hosted services</p>
<div class="buttons">
<a href="https://instances.projectsegfau.lt/">Explore our services</a>
<a href="/projects">Explore our projects</a>
</div>
</div> </div>
<h2>What is this?</h2>
<p>
We are 7 humans 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!
</p>
<h2>Tell me more! What do you guys host? Where can I contact you? Can you fix my daughter's iPad?</h2>
<p>
We can't fix your daughter's iPad, but there is a navigation bar at the top of the page with links to websites and pages that explain things about us, or contain useful information about our services.
</p>
<style> <style>
h1 { h1 {
font-size: 50px; font-size: 50px;
font-weight: 800; font-weight: 800;
text-shadow: 0px 2px 2px rgba(78, 78, 78, 0.6);
}
h1 > *:first-child {
color: var(--accent-secondary);
}
h1 > *:last-child {
color: var(--accent-primary); color: var(--accent-primary);
} }
@ -46,19 +31,41 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: center;
text-align: start; margin-top: 7%;
font-family: var(--font-header); font-family: var(--font-header);
} }
.hero > p { .hero > * {
margin: 0; margin: 0;
padding: 0; padding: 0;
text-align: center;
} }
.hero > p { .hero > p {
font-size: 40px; font-size: 30px;
font-weight: 600;
color: #b6b6b6; color: #b6b6b6;
} }
.buttons {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: 1rem;
margin: 1rem;
}
a {
text-decoration: none;
background-color: var(--accent-primary);
padding: 1rem;
color: var(--primary);
border-radius: 10px;
transition: filter .25s;
}
a:hover {
filter: brightness(125%);
}
</style> </style>

106
src/routes/projects.svelte Normal file
View File

@ -0,0 +1,106 @@
<script lang="ts">
import projects from "$lib/Projects.json";
import IconGitHub from "~icons/simple-icons/github";
import IconGlobe from "~icons/fa6-solid/globe";
import IconEmail from "~icons/fa6-solid/envelope";
import IconCamera from "~icons/fa6-solid/camera";
</script>
<svelte:head>
<title>Our projects | Project Segfault</title>
<meta name="description" content="Our collection of projects." />
</svelte:head>
<div class="team">
<h1>Our projects</h1>
<div class="projects-outer">
{#each projects as { name, description, github, website }}
<div class="projects-inner">
<div class="main">
<span>{name}</span>
{#if description}
<p class="description">{description}</p>
{/if}
</div>
<div class="socials">
{#if github}
<a href={github} class="githubcolored"><IconGitHub /></a
>
{/if}
{#if website}
<a href={website} class="web"><IconGlobe /></a>
{/if}
</div>
</div>
{/each}
</div>
</div>
<style>
.projects-outer {
display: flex;
flex-direction: column;
gap: 2rem;
flex-flow: row wrap;
}
.projects-inner {
background-color: #252525;
border-radius: 10px;
padding: 1rem;
width: 30em;
display: flex;
flex-direction: column;
}
.main {
flex: 1;
}
span {
font-size: 25px;
font-weight: bold;
}
a {
border: none;
border-radius: 10px;
padding: 0.5rem;
cursor: pointer;
font-family: var(--font-primary);
color: var(--secondary);
text-decoration: none;
width: fit-content;
}
.githubcolored {
background-color: #333;
color: #fff !important;
font-size: 20px;
height: 23px;
}
.web {
background-color: var(--tertiary);
color: #fff !important;
font-size: 20px;
height: 23px;
transition: all 0.5s;
}
.web:hover {
background-color: var(--accent-tertiary);
color: var(--secondary) !important;
}
.socials {
display: flex;
flex-direction: row;
gap: 0.5rem;
}
</style>

View File

@ -128,15 +128,14 @@
height: 23px; height: 23px;
} }
.web:hover { .web {
background-color: var(--accent-tertiary);
color: var(--secondary) !important;
transition: all 0.5s; transition: all 0.5s;
} }
.web:active { .web:hover {
background-color: var(--accent-primary); background-color: var(--accent-tertiary);
transition: all 0.5s; color: var(--secondary) !important;
} }
.socials { .socials {

BIN
static/Raleway.ttf Normal file

Binary file not shown.