🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Refactor HomePage and CustomHeader components for improved layout and functionality
Bill Yang1201941b1697
diff --git a/docs/src/app/(home)/page.tsx b/docs/src/app/(home)/page.tsxindex 15cd2a43a..a559af473 100644--- a/docs/src/app/(home)/page.tsx+++ b/docs/src/app/(home)/page.tsx@@ -91,19 +91,7 @@ export default function HomePage() {<><script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(faqSchema) }} /><div className="flex flex-col items-center justify-center overflow-x-hidden pt-16 md:pt-24">- {/* <GitHubStarButton /> */}- <a- href="https://www.producthunt.com/products/rybbit?embed=true&utm_source=badge-top-post-badge&utm_medium=badge&utm_source=badge-rybbit-2"- target="_blank"- >- <img- src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=1028220&theme=neutral&period=daily&t=1761001525479"- alt="Rybbit - Open Source Google Analytics Replacement | Product Hunt"- style={{ width: "210px", height: "54px", marginBottom: "35px" }}- width="250"- height="54"- />- </a>+ <GitHubStarButton /><h1className={cn(@@ -141,7 +129,6 @@ export default function HomePage() {First 10,000 events/m are free. No credit card required.</p></div>-<div className="relative w-full max-w-[1300px] mb-10 px-4">{/* Background gradients - overlapping circles for organic feel */}<div className="absolute top-0 left-0 w-[550px] h-[550px] bg-emerald-500/40 rounded-full blur-[80px] opacity-70"></div>diff --git a/docs/src/components/CustomHeader.tsx b/docs/src/components/CustomHeader.tsxindex 6fdf37d5e..8a29490d5 100644--- a/docs/src/components/CustomHeader.tsx+++ b/docs/src/components/CustomHeader.tsx@@ -86,20 +86,9 @@ export function CustomHeader() {aria-label="GitHub"onClick={() => trackAdEvent("github", { location: "header" })}>- <div className="flex items-center gap-2">- <svg className="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">- <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />- </svg>- {isLoading ? (- <div className="w-14 h-6 bg-neutral-800 rounded-full animate-pulse"></div>- ) : (- starCount && (- <div className="w-14 text-sm p-1 px-2 bg-neutral-800 rounded-full hover:bg-neutral-700 transition-colors">- {starCount}- </div>- )- )}- </div>+ <svg className="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">+ <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />+ </svg></a>{/* Login Button */}diff --git a/docs/src/components/Footer.tsx b/docs/src/components/Footer.tsxindex e37b4528f..fd8d90cf4 100644--- a/docs/src/components/Footer.tsx+++ b/docs/src/components/Footer.tsx@@ -14,21 +14,18 @@ export function Footer() {Open source, privacy-focused web analytics platform that respectsuser privacy.</p> */}- {/* <div className="mt-4">- <a- href="https://www.producthunt.com/products/rybbit?embed=true&utm_source=badge-top-post-badge&utm_medium=badge&utm_source=badge-rybbit"- target="_blank"- rel="noopener noreferrer"- >- <img- src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=1028220&theme=dark&period=daily&t=1761000444319"- alt="Rybbit - The open source Google Analytics replacement | Product Hunt"- style={{ width: "200px", height: "43px" }}- width="200"- height="43"- />- </a>- </div> */}+ <a+ href="https://www.producthunt.com/products/rybbit?embed=true&utm_source=badge-top-post-badge&utm_medium=badge&utm_source=badge-rybbit-2"+ target="_blank"+ >+ <img+ src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=1028220&theme=neutral&period=daily&t=1761001525479"+ alt="Rybbit - Open Source Google Analytics Replacement | Product Hunt"+ style={{ width: "250px", height: "54px", margin: "20px 0px" }}+ width="250"+ height="54"+ />+ </a>{/* Social Media Links */}<div className="flex gap-4"><a