From f1f56408d5841e13c786737da741d76cd88a6fb4 Mon Sep 17 00:00:00 2001
From: Kamran Ahmed
Date: Thu, 22 Feb 2024 13:54:15 +0000
Subject: [PATCH] Update opensource banner
---
src/components/OpenSourceBanner.astro | 28 +-------
src/components/OpenSourceStat.astro | 95 ++++++++++++++++++++++++++-
2 files changed, 94 insertions(+), 29 deletions(-)
diff --git a/src/components/OpenSourceBanner.astro b/src/components/OpenSourceBanner.astro
index e671f06c8..9c3ca2f9e 100644
--- a/src/components/OpenSourceBanner.astro
+++ b/src/components/OpenSourceBanner.astro
@@ -16,8 +16,8 @@ const discordInfo = await getDiscordInfo();
href='https://github.com/search?o=desc&q=stars%3A%3E100000&s=stars&type=Repositories'
target='_blank'
class='font-medium text-gray-600 underline underline-offset-2 hover:text-black'
- >6th most starred project on GitHub and is visited by hundreds of thousands of developers every month.
+ >6th most starred project on GitHub
+ and is visited by hundreds of thousands of developers every month.
@@ -28,29 +28,5 @@ const discordInfo = await getDiscordInfo();
value={discordInfo.totalFormatted}
/>
-
-
diff --git a/src/components/OpenSourceStat.astro b/src/components/OpenSourceStat.astro
index 4a1d195e7..00595a1b5 100644
--- a/src/components/OpenSourceStat.astro
+++ b/src/components/OpenSourceStat.astro
@@ -1,13 +1,102 @@
---
+import { ChevronUp } from 'lucide-react';
+import Icon from './AstroIcon.astro';
export interface Props {
value: string;
text: string;
}
const { value, text } = Astro.props;
+
+const isGitHubStars = text.toLowerCase() === 'github stars';
+const isRegistered = text.toLowerCase() === 'registered users';
+const isDiscordMembers = text.toLowerCase() === 'discord members';
---
-