From bb52ec0cc1eec42a9183adaddb0fe5b882ed7051 Mon Sep 17 00:00:00 2001 From: Razze Date: Fri, 1 Nov 2024 17:27:52 +0100 Subject: [PATCH] Restyle donations page --- frontend/pages/donate.tsx | 61 ++++++++++++++++++- .../src/components/payment/DonationInput.tsx | 4 +- 2 files changed, 61 insertions(+), 4 deletions(-) diff --git a/frontend/pages/donate.tsx b/frontend/pages/donate.tsx index 4b5169ea4..f99903be2 100644 --- a/frontend/pages/donate.tsx +++ b/frontend/pages/donate.tsx @@ -1,10 +1,11 @@ import { GetStaticProps } from "next" -import { useTranslation } from "next-i18next" +import { Trans, useTranslation } from "next-i18next" import { serverSideTranslations } from "next-i18next/serverSideTranslations" import { NextSeo } from "next-seo" import LoginGuard from "../src/components/login/LoginGuard" import DonationInput from "../src/components/payment/DonationInput" import { Permission, UserInfo } from "src/codegen" +import clsx from "clsx" export default function Donate() { const { t } = useTranslation() @@ -26,7 +27,63 @@ export default function Donate() {

{t("donate-to", { project: "Flathub" })}

- +
+
+

+ +

    +
  • + 🌐 Flathub welcomes your donations: Your + support helps maintain the app repository for Flatpak + applications and keeps its vital infrastructure in top + shape +
  • +
  • + 💰 Where your funds go: +
      +
    • + 🌐 Infrastructure: Keep the platform + running smoothly +
    • +
    • + 💻 Hosting services: Cover the costs + of keeping everything online and accessible +
    • +
    • + 📦 Software development: Cover the + costs of developing Flathub and related tools +
    • +
    • + 🚀 Development: Support ongoing + development of Flatpak technology, enhancing its + features and expanding its reach +
    • +
    • + 🔧 Portal development: Support the + creation and improvement of portals, which provide + secure, easy access to system services for Flatpak + apps +
    • +
    +
  • +
  • + 🌟 Your impact: Every contribution helps + create a robust and diverse ecosystem of apps for all + Linux users +
  • +
+

+ Your support makes a difference! 🙌 +

+ +

+
+ +
diff --git a/frontend/src/components/payment/DonationInput.tsx b/frontend/src/components/payment/DonationInput.tsx index 1e034fb7a..c1ff60fd4 100644 --- a/frontend/src/components/payment/DonationInput.tsx +++ b/frontend/src/components/payment/DonationInput.tsx @@ -85,13 +85,13 @@ const DonationInput: FunctionComponent = ({ org }) => { return (

{t("select-donation-amount")}

-
+
{presets}