🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Enhance IndexPage layout and functionality
Bill Yang93151ed7b0ea
diff --git a/docs/src/app/page.jsx b/docs/src/app/page.jsxindex fb0819ee4..3d0064091 100644--- a/docs/src/app/page.jsx+++ b/docs/src/app/page.jsx@@ -1,7 +1,7 @@import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion";import { Tilt_Warp } from "next/font/google";import Link from "next/link";-import { CheckCircle } from "lucide-react";+import { CheckCircle, ExternalLink } from "lucide-react";import { cn } from "../lib/utils";import { GitHubStarButton } from "@/components/GitHubStarButton";import { AdvancedFilters } from "./components/Cards/AdvancedFilters";@@ -106,22 +106,23 @@ export default function IndexPage() {Next-gen, open source, lightweight, cookieless web & product analytics for everyone.</h2>- <div className="flex flex-col sm:flex-row my-8 md:my-10 items-center justify-center gap-4 md:gap-6 text-base md:text-lg px-4">- <Link- href="https://app.rybbit.io/signup"- className="w-full sm:w-auto"- data-rybbit-event="signup"- data-rybbit-prop-location="hero"- >- <button className="w-full sm:w-auto bg-emerald-600 hover:bg-emerald-500 text-white font-medium px-5 py-3 rounded-lg shadow-lg shadow-emerald-900/20 transform hover:-translate-y-0.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-opacity-50 cursor-pointer">- Track your site for free- </button>- <p className="text-neutral-400 text-xs md:text-sm flex items-center justify-center gap-2 mt-6">- <CheckCircle className="w-3 h-3 md:w-4 md:h-4" />- No credit card required- </p>- </Link>-+ <div className="flex flex-col items-center my-8 md:my-10 gap-4 md:gap-6 text-base md:text-lg px-4">+ <div>+ <Link+ href="https://app.rybbit.io/signup"+ className="w-full sm:w-auto"+ data-rybbit-event="signup"+ data-rybbit-prop-location="hero"+ >+ <button className="w-full sm:w-auto bg-emerald-600 hover:bg-emerald-500 text-white font-medium px-5 py-3 rounded-lg shadow-lg shadow-emerald-900/20 transform hover:-translate-y-0.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-opacity-50 cursor-pointer">+ Track your site for free+ </button>+ </Link>+ </div>+ <div className="text-neutral-400 text-xs md:text-sm flex items-center justify-center gap-2">+ <CheckCircle className="w-3 h-3 md:w-4 md:h-4" />+ No credit card required • 3,000 free events/month+ </div>{/* <Link href="https://demo.rybbit.io/21" className="w-full sm:w-auto" data-rybbit-event="demo"><button className="w-full sm:w-auto bg-neutral-800 hover:bg-neutral-700 text-white font-medium px-5 py-3 rounded-lg border border-neutral-600 transform hover:-translate-y-0.5 transition-all duration-200 hover:border-neutral-400 focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-opacity-50 cursor-pointer">View Live Demo@@ -133,19 +134,14 @@ export default function IndexPage() {{/* 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><div className="absolute top-20 left-20 w-[400px] h-[400px] bg-emerald-600/30 rounded-full blur-[70px] opacity-50"></div>-<div className="absolute bottom-0 right-0 w-[500px] h-[500px] bg-blue-500/40 rounded-full blur-[80px] opacity-60"></div><div className="absolute bottom-40 right-20 w-[350px] h-[350px] bg-indigo-500/30 rounded-full blur-[75px] opacity-50"></div>-<div className="absolute top-1/4 right-0 w-[320px] h-[320px] bg-purple-500/40 rounded-full blur-[70px] opacity-50"></div><div className="absolute top-1/3 right-20 w-[250px] h-[250px] bg-violet-500/30 rounded-full blur-[65px] opacity-40"></div>-<div className="absolute bottom-1/3 left-0 w-[320px] h-[320px] bg-emerald-400/30 rounded-full blur-[70px] opacity-60"></div><div className="absolute bottom-1/4 left-20 w-[240px] h-[240px] bg-teal-400/25 rounded-full blur-[65px] opacity-50"></div>-<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[450px] h-[450px] bg-indigo-400/30 rounded-full blur-[80px] opacity-50"></div><div className="absolute top-1/2 left-1/2 -translate-x-1/3 -translate-y-1/3 w-[350px] h-[350px] bg-sky-400/20 rounded-full blur-[75px] opacity-40"></div>-{/* Iframe container with responsive visibility */}<div className="relative z-10 rounded-lg overflow-hidden border-8 border-neutral-100/5 shadow-2xl shadow-emerald-900/10">{/* Remove mobile message and show iframe on all devices */}@@ -158,6 +154,17 @@ export default function IndexPage() {title="Rybbit Analytics Demo"></iframe></div>+ <div className="flex items-center justify-center">+ <Link+ href="https://demo.rybbit.io/21"+ className="text-neutral-400 hover:text-neutral-200 text-sm flex items-center gap-1 mt-4"+ data-rybbit-event="demo"+ target="_blank"+ >+ View full demo site+ <ExternalLink className="w-4 h-4" />+ </Link>+ </div></div><section className="py-14 md:py-20 w-full max-w-7xl px-4">@@ -259,9 +266,9 @@ export default function IndexPage() {</AccordionTrigger><AccordionContent className="px-6 pb-4 text-neutral-300"><p>- Google Analytics is free because Google uses it as a funnel into their ecosystem and to sell- ads. Rybbit's only goal is to provide you with high quality analytics. No more confusing- dashboards pushing random AI features nobody wants.+ Google Analytics is free because Google uses it as a funnel into their ecosystem and to sell ads.+ Rybbit's only goal is to provide you with high quality analytics. No more confusing dashboards+ pushing random AI features nobody wants.</p><br /><p>