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} />
- -
- - - - {starCount} - Star on GitHub - - - - - Join on Discord - -
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'; --- -
-

{value}

-

{text}

+
+ { + isGitHubStars && ( +

+ Rank 6th +  out of 28m! +

+ ) + } + + { + isRegistered && ( +

+ +55k + every month +

+ ) + } + + { + isDiscordMembers && ( +

+ +1.5k + every month +

+ ) + } +

+ {value} +

+

{text}

+ { + isGitHubStars && ( + +
+ + Star us on GitHub +
+ + Help us reach #1 + +
+ ) + } + { + isRegistered && ( + +
+ + Register yourself +
+ + Commit to your growth + +
+ ) + } + { + isDiscordMembers && ( + +
+ + Join on Discord +
+ + Join the community + +
+ ) + }