From bf73f512e296b0750caeb9343cd45d5926ae3f6d Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 6 Aug 2024 14:48:06 +0600 Subject: [PATCH] web/donate: move donation options card to own component - moved reused variables to parent - added body text --- web/i18n/en/donate.json | 5 +- web/src/components/donate/DonateBanner.svelte | 20 +-- .../donate/DonateOptionsCard.svelte | 129 +++++++++++++++ web/src/routes/donate/+page.svelte | 151 ++++-------------- 4 files changed, 168 insertions(+), 137 deletions(-) create mode 100644 web/src/components/donate/DonateOptionsCard.svelte diff --git a/web/i18n/en/donate.json b/web/i18n/en/donate.json index 7cd62c35..a9d93e6d 100644 --- a/web/i18n/en/donate.json +++ b/web/i18n/en/donate.json @@ -1,4 +1,7 @@ { "banner.title": "Support a safe\nand open Internet", - "banner.subtitle": "donate to imput or share the\njoy of cobalt with a friend" + "banner.subtitle": "donate to imput or share the\njoy of cobalt with a friend", + + "body.motivation": "cobalt helps thousands of producers, educators, and other creative people to do what they love. we created cobalt because we believe that internet doesn’t have to be scary. greed and ads have ruined the internet — we are fighting back with friendly and open tools that aren’t made for profit.", + "body.keep_going": "you can help us stay motivated & keep creating safe alternatives to unfair and abusive web tools by sharing cobalt with a friend or by donating to us." } diff --git a/web/src/components/donate/DonateBanner.svelte b/web/src/components/donate/DonateBanner.svelte index 4e522a0c..afc48a27 100644 --- a/web/src/components/donate/DonateBanner.svelte +++ b/web/src/components/donate/DonateBanner.svelte @@ -33,24 +33,14 @@ diff --git a/web/src/routes/donate/+page.svelte b/web/src/routes/donate/+page.svelte index e36ebef3..7862929e 100644 --- a/web/src/routes/donate/+page.svelte +++ b/web/src/routes/donate/+page.svelte @@ -1,31 +1,8 @@ @@ -36,120 +13,52 @@
-
- {#each {length: 2} as _} - -
-
-
-
monthly donation
-
processed by liberapay
-
-
- {#each {length: 4} as _} - - - {/each} -
-
- - -
- -
- {/each} +
+ + +
+