From c6abe5a34726d62eacaf5b6e61840b6d232731f4 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Wed, 24 Jan 2024 10:16:22 +0100 Subject: [PATCH] feat(crabfit): Remove donate button for a link to dgnum.eu --- .../packages/crabfit-frontend/05-dgnum.patch | 37 +++++++++++++++++++ .../packages/crabfit-frontend/default.nix | 1 + 2 files changed, 38 insertions(+) create mode 100644 machines/web01/crabfit/packages/crabfit-frontend/05-dgnum.patch diff --git a/machines/web01/crabfit/packages/crabfit-frontend/05-dgnum.patch b/machines/web01/crabfit/packages/crabfit-frontend/05-dgnum.patch new file mode 100644 index 0000000..ef69772 --- /dev/null +++ b/machines/web01/crabfit/packages/crabfit-frontend/05-dgnum.patch @@ -0,0 +1,37 @@ +diff --git a/src/components/Footer/Footer.module.scss b/src/components/Footer/Footer.module.scss +index e1dbea5..cf7386c 100644 +--- a/src/components/Footer/Footer.module.scss ++++ b/src/components/Footer/Footer.module.scss +@@ -5,6 +5,6 @@ + display: flex; + align-items: center; +- justify-content: space-between; ++ justify-content: center; + + @media print { + display: none; +diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx +index 6ceb727..7480298 100644 +--- a/src/components/Footer/Footer.tsx ++++ b/src/components/Footer/Footer.tsx +@@ -17,18 +17,10 @@ const Footer = async ({ isSmall }: FooterProps) => { + return isRunningInApp + ? null // Cannot show external donation link in an Android app + : + } + diff --git a/machines/web01/crabfit/packages/crabfit-frontend/default.nix b/machines/web01/crabfit/packages/crabfit-frontend/default.nix index 960dc4c..ec451aa 100644 --- a/machines/web01/crabfit/packages/crabfit-frontend/default.nix +++ b/machines/web01/crabfit/packages/crabfit-frontend/default.nix @@ -30,6 +30,7 @@ stdenv.mkDerivation ( ./02-karla.patch ./03-standalone.patch ./04-frontend_url.patch + ./05-dgnum.patch ]; offlineCache = fetchYarnDeps {