From 937d12ddff0299f3f702875efab221a0fa41067a Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 9 Aug 2024 13:13:48 +0600 Subject: [PATCH] web/donate: bring up repeated card css to container also fixed some scaling quirks on mobile --- .../donate/DonateCardContainer.svelte | 85 +++++++++++++ .../donate/DonateOptionsCard.svelte | 113 ++++-------------- .../components/donate/DonationOption.svelte | 13 +- web/src/routes/donate/+page.svelte | 2 + 4 files changed, 121 insertions(+), 92 deletions(-) create mode 100644 web/src/components/donate/DonateCardContainer.svelte diff --git a/web/src/components/donate/DonateCardContainer.svelte b/web/src/components/donate/DonateCardContainer.svelte new file mode 100644 index 00000000..e69a0da6 --- /dev/null +++ b/web/src/components/donate/DonateCardContainer.svelte @@ -0,0 +1,85 @@ + + + + + diff --git a/web/src/components/donate/DonateOptionsCard.svelte b/web/src/components/donate/DonateOptionsCard.svelte index 2b7b0a4e..3b3609c7 100644 --- a/web/src/components/donate/DonateOptionsCard.svelte +++ b/web/src/components/donate/DonateOptionsCard.svelte @@ -5,6 +5,8 @@ import IconCoin from "@tabler/icons-svelte/IconCoin.svelte"; import IconCalendarRepeat from "@tabler/icons-svelte/IconCalendarRepeat.svelte"; + import DonateCardContainer from "$components/donate/DonateCardContainer.svelte"; + import DonationOption from "$components/donate/DonationOption.svelte"; import IconCup from "@tabler/icons-svelte/IconCup.svelte"; @@ -49,7 +51,7 @@ }; -
+
@@ -74,8 +76,8 @@ role="tab" >
-
{$t("donate.card.monthly")}
-
+ + @@ -124,111 +126,40 @@
-
+ -
+ diff --git a/web/src/routes/donate/+page.svelte b/web/src/routes/donate/+page.svelte index a0a60a32..dbe61fc7 100644 --- a/web/src/routes/donate/+page.svelte +++ b/web/src/routes/donate/+page.svelte @@ -1,6 +1,8 @@