From fb9c560c5beed89660ad36c2e2249e12e8b7f78f Mon Sep 17 00:00:00 2001 From: Dipanshu Rawat <144578298+Jaydeeprawat17@users.noreply.github.com> Date: Tue, 24 Jun 2025 01:40:46 +0530 Subject: [PATCH] add: github stars count by API --- apps/web/src/components/header.tsx | 14 ++++++++++++-- apps/web/src/components/landing/hero.tsx | 4 +++- apps/web/src/lib/fetchGhStars.ts | 20 ++++++++++++++++++++ 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 apps/web/src/lib/fetchGhStars.ts diff --git a/apps/web/src/components/header.tsx b/apps/web/src/components/header.tsx index 109d022..cada527 100644 --- a/apps/web/src/components/header.tsx +++ b/apps/web/src/components/header.tsx @@ -6,8 +6,11 @@ import { Button } from "./ui/button"; import { ArrowRight } from "lucide-react"; import { HeaderBase } from "./header-base"; import { useSession } from "@/lib/auth-client"; +import { ghStars } from "@/lib/fetchGhStars"; +import { Star } from "lucide-react"; export function Header() { + const stars = ghStars(); const { data: session } = useSession(); const leftContent = ( @@ -19,8 +22,15 @@ export function Header() { const rightContent = (