From 7ff06f1c7b66ba398a55dc4d91b05edfcba1d1b5 Mon Sep 17 00:00:00 2001 From: Akis Date: Wed, 24 Aug 2022 19:07:30 +0300 Subject: [PATCH 1/3] various fixes --- src/lib/Card/Link.svelte | 3 ++- src/lib/Footer.svelte | 14 ---------- src/lib/Nav.svelte | 12 +++++++-- src/lib/{Instances.json => Services.json} | 0 src/routes/contact.md | 15 ++++++++--- src/routes/index.svelte | 2 +- .../{instances.svelte => services.svelte} | 26 +++++++++++-------- 7 files changed, 40 insertions(+), 32 deletions(-) rename src/lib/{Instances.json => Services.json} (100%) rename src/routes/{instances.svelte => services.svelte} (69%) diff --git a/src/lib/Card/Link.svelte b/src/lib/Card/Link.svelte index 6b49d88..cfb9875 100644 --- a/src/lib/Card/Link.svelte +++ b/src/lib/Card/Link.svelte @@ -12,7 +12,8 @@ .web, .email, .picture, - .pgp { + .pgp, + .link { background-color: var(--alt); color: var(--alt-text); font-size: 20px; diff --git a/src/lib/Footer.svelte b/src/lib/Footer.svelte index 1920bcd..8d1ea41 100644 --- a/src/lib/Footer.svelte +++ b/src/lib/Footer.svelte @@ -37,18 +37,4 @@ font-weight: 500; text-align: center; } - - .badge { - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; - } - - img { - width: 270px; - background: var(--accent); - padding: 0.5rem; - border-radius: 10px; - } diff --git a/src/lib/Nav.svelte b/src/lib/Nav.svelte index 500396c..75d82af 100644 --- a/src/lib/Nav.svelte +++ b/src/lib/Nav.svelte @@ -5,7 +5,7 @@ $: currentPage = $page.url.pathname; const menus = [ - { name: "Instances", url: "/instances" }, + { name: "Services", url: "/services" }, { name: "Projects", url: "/projects" }, { name: "Minecraft", url: "/minecraft" }, { name: "Donate", url: "/donate" }, @@ -46,12 +46,20 @@
-
+
+ + + \ No newline at end of file diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 4870672..329c4df 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -25,7 +25,7 @@ marginTop="7" >
- + import { CardInner, CardOuter, LinksOuter, Link } from "$lib/Card"; - import instances from "$lib/Instances.json"; + import services from "$lib/Services.json"; - let groups = instances.reduce((curr, val) => { + let groups = services.reduce((curr, val) => { let group = curr.find((g) => g.category === `${val.category}`); if (group) { group.values.push(val); @@ -13,7 +13,12 @@ }, []); -

Our instances

+ + Our services | Project Segfault + + + +

Our services

{#each groups as group} @@ -21,22 +26,26 @@

{group.category}

{#each group.values as item} - - + @@ -58,11 +67,6 @@ gap: 2rem; } - a { - text-decoration: none; - color: var(--text); - } - .projectWebsite { display: flex; align-items: center; From 72e7b7df4d8587991ab029e538908506feff6e65 Mon Sep 17 00:00:00 2001 From: Akis Date: Wed, 24 Aug 2022 19:25:27 +0300 Subject: [PATCH 2/3] add warnings for js disabled users --- src/routes/contact.md | 20 +++++++++++--------- src/routes/index.svelte | 12 ++++++++++++ 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/src/routes/contact.md b/src/routes/contact.md index 92eef5c..170ef0b 100644 --- a/src/routes/contact.md +++ b/src/routes/contact.md @@ -5,6 +5,7 @@ description: Do you want to contact us? # { title } @@ -16,6 +17,15 @@ description: Do you want to contact us?
+ + ## Our email [contact@projectsegfau.lt](mailto:contact@projectsegfau.lt) @@ -24,12 +34,4 @@ _Please be aware that Microsoft often blocks non-popular emails, if you do conta ## People -You can find ways to contact individual team members [on our team page](/team). - - \ No newline at end of file +You can find ways to contact individual team members [on our team page](/team). \ No newline at end of file diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 329c4df..ecc2acf 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -2,6 +2,7 @@ import SvelteSeo from "svelte-seo"; import Hero from "$lib/Hero.svelte"; import LinkButton from "$lib/LinkButton.svelte"; + import Note from "$lib/Form/Note.svelte"; import dayjs from "dayjs"; let description: string = "Open source development and hosted services."; @@ -67,6 +68,17 @@ {/await}
+ + {#if announcements.severity === "info"}