Merge branch 'main' of github.com:ProjectSegfault/website

This commit is contained in:
Midou36O 2022-09-13 17:12:24 +01:00
commit f059565553
Signed by: midou
GPG Key ID: 08063D5407090BC2
11 changed files with 78 additions and 92 deletions

View File

@ -13,3 +13,9 @@
class="form-textbox" class="form-textbox"
{placeholder} {placeholder}
/> />
<style>
textarea {
resize: vertical;
}
</style>

View File

@ -4,7 +4,7 @@
"description": "A frontend for YouTube.", "description": "A frontend for YouTube.",
"website": "https://invidious.projectsegfau.lt/", "website": "https://invidious.projectsegfau.lt/",
"icon": "https://github.com/iv-org/invidious/raw/master/assets/invidious-colored-vector.svg", "icon": "https://github.com/iv-org/invidious/raw/master/assets/invidious-colored-vector.svg",
"category": "Instances", "category": "General",
"projectWebsite": "https://invidious.io/" "projectWebsite": "https://invidious.io/"
}, },
{ {
@ -12,7 +12,7 @@
"description": "A frontend for Odysee.", "description": "A frontend for Odysee.",
"website": "https://lbry.projectsegfau.lt/", "website": "https://lbry.projectsegfau.lt/",
"icon": "https://codeberg.org/avatars/dd785d92b4d4df06d448db075cd29274", "icon": "https://codeberg.org/avatars/dd785d92b4d4df06d448db075cd29274",
"category": "Instances", "category": "General",
"projectWebsite": "https://codeberg.org/librarian/librarian" "projectWebsite": "https://codeberg.org/librarian/librarian"
}, },
{ {
@ -20,7 +20,7 @@
"description": "A frontend for Reddit.", "description": "A frontend for Reddit.",
"website": "https://libreddit.projectsegfau.lt/", "website": "https://libreddit.projectsegfau.lt/",
"icon": "https://github.com/spikecodes/libreddit/raw/master/static/logo.png", "icon": "https://github.com/spikecodes/libreddit/raw/master/static/logo.png",
"category": "Instances", "category": "General",
"projectWebsite": "https://github.com/spikecodes/libreddit" "projectWebsite": "https://github.com/spikecodes/libreddit"
}, },
{ {
@ -28,7 +28,7 @@
"description": "A frontend for Twitter.", "description": "A frontend for Twitter.",
"website": "https://nitter.projectsegfau.lt/", "website": "https://nitter.projectsegfau.lt/",
"icon": "https://github.com/zedeus/nitter/raw/master/public/logo.png", "icon": "https://github.com/zedeus/nitter/raw/master/public/logo.png",
"category": "Instances", "category": "General",
"projectWebsite": "https://github.com/zedeus/nitter" "projectWebsite": "https://github.com/zedeus/nitter"
}, },
{ {
@ -36,7 +36,7 @@
"description": "An open source and decentralized chat application.", "description": "An open source and decentralized chat application.",
"website": "https://chat.projectsegfau.lt/", "website": "https://chat.projectsegfau.lt/",
"icon": "https://element.io/images/logo-mark-primary.svg", "icon": "https://element.io/images/logo-mark-primary.svg",
"category": "Instances", "category": "General",
"projectWebsite": "https://element.io/" "projectWebsite": "https://element.io/"
}, },
{ {
@ -44,7 +44,7 @@
"description": "Another frontend for YouTube.", "description": "Another frontend for YouTube.",
"website": "https://piped.projectsegfau.lt/", "website": "https://piped.projectsegfau.lt/",
"icon": "https://github.com/TeamPiped/Piped/raw/master/public/img/icons/logo.svg", "icon": "https://github.com/TeamPiped/Piped/raw/master/public/img/icons/logo.svg",
"category": "Instances", "category": "General",
"projectWebsite": "https://github.com/TeamPiped/Piped" "projectWebsite": "https://github.com/TeamPiped/Piped"
}, },
{ {
@ -52,7 +52,7 @@
"description": "A private meta-search engine.", "description": "A private meta-search engine.",
"website": "https://search.projectsegfau.lt/search", "website": "https://search.projectsegfau.lt/search",
"icon": "https://docs.searxng.org/_static/searxng-wordmark.svg", "icon": "https://docs.searxng.org/_static/searxng-wordmark.svg",
"category": "Instances", "category": "General",
"projectWebsite": "https://searxng.org/" "projectWebsite": "https://searxng.org/"
}, },
{ {
@ -60,7 +60,7 @@
"description": "A web interface for Git, alternative to GitHub.", "description": "A web interface for Git, alternative to GitHub.",
"website": "https://git.projectsegfau.lt", "website": "https://git.projectsegfau.lt",
"icon": "https://gitea.io/images/gitea.png", "icon": "https://gitea.io/images/gitea.png",
"category": "Instances", "category": "General",
"projectWebsite": "https://gitea.io/" "projectWebsite": "https://gitea.io/"
}, },
{ {

View File

@ -5,8 +5,7 @@
$: currentPage = $page.url.pathname; $: currentPage = $page.url.pathname;
const menus = [ const menus = [
{ name: "Services", url: "/services" }, { name: "Instances", url: "/instances" },
{ name: "Projects", url: "/projects" },
{ name: "Donate", url: "/donate" }, { name: "Donate", url: "/donate" },
{ name: "FAQ", url: "/faq" }, { name: "FAQ", url: "/faq" },
{ name: "Contact us", url: "/contact" }, { name: "Contact us", url: "/contact" },
@ -39,14 +38,17 @@
href={url}>{name}</a href={url}>{name}</a
> >
{/each} {/each}
<a href="https://matrix.to/#/#project-segfault:projectsegfau.lt/"> <a href="https://matrix.to/#/#project-segfault:projectsegfau.lt/" class="icon">
<div class="i-simple-icons:matrix" /> <div class="i-simple-icons:matrix" />
<span>Matrix</span>
</a> </a>
<a href="https://github.com/ProjectSegfault/"> <a href="https://github.com/ProjectSegfault/" class="icon">
<div class="i-simple-icons:github" /> <div class="i-simple-icons:github" />
<span>GitHub</span>
</a> </a>
<div class="theme-toggle"> <div class="theme-toggle icon">
<ThemeToggle /> <ThemeToggle />
<span>Toggle theme</span>
</div> </div>
</div> </div>
</nav> </nav>
@ -122,7 +124,11 @@
display: none; display: none;
} }
@media screen and (max-width: 1058px) { .icon > span {
display: none;
}
@media screen and (max-width: 900px) {
.links { .links {
display: none; display: none;
width: 100%; width: 100%;
@ -166,5 +172,16 @@
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1rem;
} }
.icon > span {
display: block;
}
.icon {
display: flex !important;
align-items: center;
flex-direction: row;
gap: 0.5rem;
}
} }
</style> </style>

View File

@ -1,14 +0,0 @@
[
{
"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

@ -2,7 +2,7 @@
{ {
"name": "Midou", "name": "Midou",
"matrix": "https://matrix.to/#/@midou:projectsegfau.lt/", "matrix": "https://matrix.to/#/@midou:projectsegfau.lt/",
"position": "System administrator", "position": "Sysadmin",
"description": "I don't need to describe myself.", "description": "I don't need to describe myself.",
"git": "https://github.com/Midou36O/", "git": "https://github.com/Midou36O/",
"website": "https://miicord.com/", "website": "https://miicord.com/",
@ -19,7 +19,7 @@
{ {
"name": "openssl_rand", "name": "openssl_rand",
"matrix": "https://matrix.to/#/@openssl_rand:projectsegfau.lt/", "matrix": "https://matrix.to/#/@openssl_rand:projectsegfau.lt/",
"position": "System administrator", "position": "Sysadmin",
"description": "\"I am openssl_rand, a system administrator of the project Segfau.lt.\" - GitHub Copilot", "description": "\"I am openssl_rand, a system administrator of the project Segfau.lt.\" - GitHub Copilot",
"email": "mailto:openssl_rand@projectsegfau.lt" "email": "mailto:openssl_rand@projectsegfau.lt"
}, },
@ -29,12 +29,5 @@
"position": "Backup host", "position": "Backup host",
"description": "I am Stephenvk and I host a server that takes our backups.", "description": "I am Stephenvk and I host a server that takes our backups.",
"website": "https://stephenvk.xyz" "website": "https://stephenvk.xyz"
},
{
"name": "Segfault",
"position": "Support for cats",
"description": "meow meow meow mrrp",
"email": "mailto:cat-support@projectsegfau.lt",
"picture": "https://projectsegfau.lt:8448/_matrix/media/r0/download/projectsegfau.lt/tRNGfetEFQhDchqzhfBbxtUi"
} }
] ]

View File

@ -27,15 +27,10 @@
> >
<div class="buttons"> <div class="buttons">
<LinkButton <LinkButton
url="/services" url="/instances"
title="Explore our services" title="Explore our instances"
icon="i-fa6-solid:bell-concierge" icon="i-fa6-solid:bell-concierge"
/> />
<LinkButton
url="/projects"
title="Explore our projects"
icon="i-fa6-solid:tractor"
/>
<LinkButton <LinkButton
url="/donate" url="/donate"
icon="i-fa6-solid:money-bill" icon="i-fa6-solid:money-bill"
@ -68,9 +63,11 @@
<h1>{announcements.title}</h1> <h1>{announcements.title}</h1>
</div> </div>
<div class="read-more"> {#if announcements.link}
<a href={announcements.link}>Read more...</a> <div class="read-more">
</div> <a href={announcements.link}>Read more...</a>
</div>
{/if}
</div> </div>
</div> </div>
{:catch} {:catch}

View File

@ -1,6 +1,6 @@
--- ---
title: Contact us title: Contact us
description: Do you want to contact us? description: Do you want to contact us? (you don't)
--- ---
<script lang="ts"> <script lang="ts">

View File

@ -1,8 +1,8 @@
<script> <script>
import { CardInner, CardOuter, LinksOuter, Link } from "$lib/Card"; import { CardInner, CardOuter, LinksOuter, Link } from "$lib/Card";
import services from "$lib/Services.json"; import instances from "$lib/Instances.json";
let groups = services.reduce((curr, val) => { let groups = instances.reduce((curr, val) => {
let group = curr.find((g) => g.category === `${val.category}`); let group = curr.find((g) => g.category === `${val.category}`);
if (group) { if (group) {
group.values.push(val); group.values.push(val);
@ -14,11 +14,11 @@
</script> </script>
<svelte:head> <svelte:head>
<title>Our services | Project Segfault</title> <title>Our instances | Project Segfault</title>
<meta name="description" content="Our collection of services." /> <meta name="description" content="Our collection of instances." />
</svelte:head> </svelte:head>
<h1>Our services</h1> <h1>Our instances</h1>
<CardOuter> <CardOuter>
<div class="wrapper"> <div class="wrapper">
{#each groups as group} {#each groups as group}

View File

@ -1,36 +0,0 @@
<script lang="ts">
import { CardInner, CardOuter, Link, LinksOuter } from "$lib/Card";
import projects from "$lib/Projects.json";
</script>
<svelte:head>
<title>Our projects | Project Segfault</title>
<meta name="description" content="Our collection of projects." />
</svelte:head>
<h1>Our projects</h1>
<CardOuter>
{#each projects as { name, description, git, github, website }}
<CardInner title={name} {description}>
<LinksOuter>
{#if website}
<Link url={website} class="web">
<div class="i-fa6-solid:globe" />
</Link>
{/if}
{#if github}
<Link url={github} class="githubcolored">
<div class="i-simple-icons:github" />
</Link>
{/if}
{#if git}
<Link url={git} class="gitcolored">
<div class="i-simple-icons:git" />
</Link>
{/if}
</LinksOuter>
</CardInner>
{/each}
</CardOuter>

View File

@ -10,7 +10,7 @@
<h1>Our team</h1> <h1>Our team</h1>
<CardOuter> <CardOuter>
{#each members as { name, discord, matrix, position, description, git, pgp, website, email, picture }} {#each members as { name, discord, matrix, position, description, github, git, pgp, website, email, picture }}
<CardInner title={name} {position} {description}> <CardInner title={name} {position} {description}>
<LinksOuter> <LinksOuter>
{#if matrix} {#if matrix}
@ -25,6 +25,12 @@
</Link> </Link>
{/if} {/if}
{#if github}
<Link url={github} class="githubcolored">
<div class="i-simple-icons:github" />
</Link>
{/if}
{#if git} {#if git}
<Link url={git} class="gitcolored"> <Link url={git} class="gitcolored">
<div class="i-simple-icons:git" /> <div class="i-simple-icons:git" />

View File

@ -184,7 +184,7 @@
</TimelineItem> </TimelineItem>
<TimelineItem> <TimelineItem>
<TimelineOppositeContent slot="opposite-content"> <TimelineOppositeContent slot="opposite-content">
<p>Now</p> <p>July 2022</p>
</TimelineOppositeContent> </TimelineOppositeContent>
<TimelineSeparator> <TimelineSeparator>
<TimelineDot style={"background-color: #fff; "} /> <TimelineDot style={"background-color: #fff; "} />
@ -205,7 +205,7 @@
</TimelineItem> </TimelineItem>
<TimelineItem> <TimelineItem>
<TimelineOppositeContent slot="opposite-content"> <TimelineOppositeContent slot="opposite-content">
<p>Now-er</p> <p>August 2022</p>
</TimelineOppositeContent> </TimelineOppositeContent>
<TimelineSeparator> <TimelineSeparator>
<TimelineDot style={"background-color: #fff; "} /> <TimelineDot style={"background-color: #fff; "} />
@ -223,6 +223,23 @@
</p> </p>
</TimelineContent> </TimelineContent>
</TimelineItem> </TimelineItem>
<TimelineItem>
<TimelineOppositeContent slot="opposite-content">
<p>September 2022</p>
</TimelineOppositeContent>
<TimelineSeparator>
<TimelineDot style={"background-color: #fff; "} />
<TimelineConnector />
</TimelineSeparator>
<TimelineContent>
<h3>
Resignation of members and the start of a new era.
</h3>
<p>
Devnol, Odyssey and akisblack resigned from the team leading to a serious loss of manpower. To combat this, we decided to shut down some of our unused instances as well as the ones that were painful to deal with. You can read more over at <a href="https://blog.projectsegfau.lt/resignation-of-3-members-of-projectsegfault/">this blog post</a>.
</p>
</TimelineContent>
</TimelineItem>
</Timeline> </Timeline>
<style> <style>