From 7afd2c290cbf6cd797c1e950948b24ebc0e0541e Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Wed, 5 Nov 2025 01:16:24 -0600 Subject: [PATCH] feat: add GithubStars component to display GitHub stars with animated visuals and integrate it into the Header component --- apps/website/components/GithubStars.tsx | 127 ++++++++++++++++++++++++ apps/website/components/Header.tsx | 3 + 2 files changed, 130 insertions(+) create mode 100644 apps/website/components/GithubStars.tsx diff --git a/apps/website/components/GithubStars.tsx b/apps/website/components/GithubStars.tsx new file mode 100644 index 0000000..fe7f909 --- /dev/null +++ b/apps/website/components/GithubStars.tsx @@ -0,0 +1,127 @@ +"use client"; + +import Link from "next/link"; +import { cn } from "@/lib/utils"; + +type GithubStarsProps = { + className?: string; + repoUrl?: string; + label?: string; + count?: string; +}; + +export function GithubStars({ + className, + repoUrl = "https://github.com/dokploy/dokploy", + label = "GitHub Stars", + count = "26k", +}: GithubStarsProps) { + return ( + + {/* sparkling stars */} + + {/* top-left star */} + + {/* top-right star */} + + {/* bottom-right star */} + + + + {/* subtle shine */} + + + + + {/* GitHub mark */} + + + + + {/* copy */} + + Stars + {count} + + + {/* subtle ring on hover */} + + + ); +} + +export default GithubStars; diff --git a/apps/website/components/Header.tsx b/apps/website/components/Header.tsx index da1122d..ba853dd 100644 --- a/apps/website/components/Header.tsx +++ b/apps/website/components/Header.tsx @@ -11,6 +11,7 @@ import { trackGAEvent } from "./analitycs"; import { Logo } from "./shared/Logo"; import AnimatedGradientText from "./ui/animated-gradient-text"; import { Button, buttonVariants } from "./ui/button"; +import GithubStars from "./GithubStars"; function MobileNavLink({ href, @@ -173,6 +174,8 @@ export function Header() {