From 2a460c4275f9d827352704947bf20eb07a6641f1 Mon Sep 17 00:00:00 2001 From: JovannMC Date: Tue, 31 Dec 2024 16:05:57 +0300 Subject: [PATCH] Add fallback messages, formatting Adds fallback messages to github contributors and top donors format files --- src/lib/sections/about/Credits.svelte | 111 +++++++++------ src/lib/sections/about/Donate.svelte | 182 ++++++++++++------------ src/lib/sections/about/Resources.svelte | 61 ++++---- src/lib/sections/about/index.ts | 8 +- src/routes/+layout.svelte | 10 +- 5 files changed, 195 insertions(+), 177 deletions(-) diff --git a/src/lib/sections/about/Credits.svelte b/src/lib/sections/about/Credits.svelte index 3238081..e19d1f5 100644 --- a/src/lib/sections/about/Credits.svelte +++ b/src/lib/sections/about/Credits.svelte @@ -2,7 +2,7 @@ import Panel from "$lib/components/visual/Panel.svelte"; import { HeartHandshakeIcon } from "lucide-svelte"; - let { mainContribs, ghContribs } = $props(); + let { mainContribs, ghContribs } = $props(); {#snippet contributor(name: string, role: string, avatar: string)} @@ -21,51 +21,68 @@ {/snippet} -

- - Credits -

+

+ + Credits +

- -
-
- {#each mainContribs as contrib} - {@const { name, role, avatar } = contrib} - {@render contributor(name, role, avatar)} - {/each} -
-
+ +
+
+ {#each mainContribs as contrib} + {@const { name, role, avatar } = contrib} + {@render contributor(name, role, avatar)} + {/each} +
+
- -
-
-

GitHub Contributors

-

- Big thanks to all these people for helping out! - - Want to help too? - -

-
-
- {#each ghContribs as contrib} - {@const { name, avatar } = contrib} - {name} - {/each} -
-
-
\ No newline at end of file + +
+
+

GitHub Contributors

+ {#if ghContribs && ghContribs.length > 0} +

+ Big thanks to all these people for helping out! + + Want to help too? + +

+ {:else} +

+ Seems like no one has contributed yet... + + be the first to contribute! + +

+ {/if} +
+ + {#if ghContribs && ghContribs.length > 0} +
+ {#each ghContribs as contrib} + {@const { name, avatar } = contrib} + {name} + {/each} +
+ {/if} +
+ diff --git a/src/lib/sections/about/Donate.svelte b/src/lib/sections/about/Donate.svelte index 938aadc..f9cf32a 100644 --- a/src/lib/sections/about/Donate.svelte +++ b/src/lib/sections/about/Donate.svelte @@ -1,8 +1,13 @@ {#snippet donor(name: string, amount: number | string, avatar: string)} @@ -18,96 +23,95 @@ {/snippet} -
-

- - Donate to VERT -

-

- With your support, we can keep maintaining and improving - VERT. -

-
+
+

+ + Donate to VERT +

+

+ With your support, we can keep maintaining and improving VERT. +

+
-
-
- +
+
+ - -
-
- - - -
- $ - -
-
-
+ +
+
+ + + +
+ $ + +
+
+
-
-

- Payments and subscription management
are handled through - Liberapay -

+
+

+ Payments and subscription management
are handled through Liberapay +

- -
+ +
- -
-
-

Our top donors

-

- People like these fuel the things we love to do. - Thank you so much! -

-
+
+
+

Our top donors

+ {#if donors && donors.length > 0} +

+ People like these fuel the things we love to do. Thank you + so much! +

+ {:else} +

+ Seems like no one has donated yet... so if you do, you will + pop up here! +

+ {/if} +
-
- {#each donors as dono} - {@const { name, amount, avatar } = dono} - {@render donor(name, amount, avatar)} - {/each} -
-
- \ No newline at end of file + {#if donors && donors.length > 0} +
+ {#each donors as dono} + {@const { name, amount, avatar } = dono} + {@render donor(name, amount, avatar)} + {/each} +
+ {/if} +
+
diff --git a/src/lib/sections/about/Resources.svelte b/src/lib/sections/about/Resources.svelte index 96847c4..5d62153 100644 --- a/src/lib/sections/about/Resources.svelte +++ b/src/lib/sections/about/Resources.svelte @@ -4,35 +4,32 @@ -

- - Resources -

- -
\ No newline at end of file +

+ + Resources +

+
+ + + Discord server + + + + Source code + +
+ diff --git a/src/lib/sections/about/index.ts b/src/lib/sections/about/index.ts index 1920e83..032009c 100644 --- a/src/lib/sections/about/index.ts +++ b/src/lib/sections/about/index.ts @@ -1,4 +1,4 @@ -export { default as Credits } from './Credits.svelte'; -export { default as Donate } from './Donate.svelte'; -export { default as Resources } from './Resources.svelte'; -export { default as Why } from './Why.svelte'; +export { default as Credits } from "./Credits.svelte"; +export { default as Donate } from "./Donate.svelte"; +export { default as Resources } from "./Resources.svelte"; +export { default as Why } from "./Why.svelte"; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 848a01a..c28ffa8 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -189,15 +189,15 @@
{@render children()}
-
+