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() {