From 8fe7de9d02c7a8455b7135ec561398409392821d Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Thu, 13 May 2021 14:07:27 +0100 Subject: [PATCH] added donation banner for self-hosted --- components/DonateBanner.tsx | 44 +++++++++++++++++++++++++++++++++++++ pages/index.tsx | 3 +++ 2 files changed, 47 insertions(+) create mode 100644 components/DonateBanner.tsx diff --git a/components/DonateBanner.tsx b/components/DonateBanner.tsx new file mode 100644 index 00000000..dbab9296 --- /dev/null +++ b/components/DonateBanner.tsx @@ -0,0 +1,44 @@ +import { GiftIcon } from "@heroicons/react/outline"; +export default function DonateBanner() { + +if (location.hostname.endsWith(".calendso.com")) { +return null; +} + + return ( + <> +
+
+
+
+
+
+ + +

+ + Support the ongoing development + + + You're using the free self-hosted version. Support the + ongoing development. + +

+
+ +
+
+
+
+ + ); +} diff --git a/pages/index.tsx b/pages/index.tsx index 7abd81cf..252fa6d7 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -254,6 +254,9 @@ export default function Home(props) {
+ + + );