🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Comparison (#369)
Bill Yangf466fdad2357
diff --git a/client/src/app/subscribe/components/utils.ts b/client/src/app/subscribe/components/utils.tsindex 248e59265..a84970767 100644--- a/client/src/app/subscribe/components/utils.ts+++ b/client/src/app/subscribe/components/utils.ts@@ -25,8 +25,14 @@ export const PRO_FEATURES = ["Unlimited websites","Unlimited team members","Real-time analytics",+ "Web vitals","Custom events",- "Funnels & user flows",+ "Sessions",+ "Funnels",+ "Goals",+ "Journeys",+ "User profiles",+ "Retention","All features",];diff --git a/docs/src/app/page.jsx b/docs/src/app/page.jsxindex 5cc47d5bf..e62a92df8 100644--- a/docs/src/app/page.jsx+++ b/docs/src/app/page.jsx@@ -19,7 +19,7 @@ import { UserProfiles } from "./components/Cards/UserProfiles";import { UserSessions } from "./components/Cards/UserSessions";import { Integrations } from "./components/integrations";import { Logo } from "./components/Logo";-import { PricingSection } from "./components/PricingSection";+import { PricingSection } from "./pricing/components/PricingSection";import { TweetCard } from "./components/Tweet";const tilt_wrap = Tilt_Warp({diff --git a/docs/src/app/pricing/components/ComparisonSection.jsx b/docs/src/app/pricing/components/ComparisonSection.jsxnew file mode 100644index 000000000..6e8ac1a64--- /dev/null+++ b/docs/src/app/pricing/components/ComparisonSection.jsx@@ -0,0 +1,259 @@+"use client";++import { Check, X } from "lucide-react";+import { cn } from "../../../lib/utils";++const COMPARISON_FEATURES = [+ {+ category: "Usage",+ features: [+ {+ name: "Monthly events",+ free: "3,000",+ pro: "100K - 10M+",+ },+ {+ name: "Number of websites",+ free: "Up to 3",+ pro: "Unlimited",+ },+ {+ name: "Team members",+ free: false,+ pro: "Unlimited",+ },+ ],+ },+ {+ category: "Features",+ features: [+ {+ name: "Core analytics dashboard",+ free: true,+ pro: true,+ },+ {+ name: "Advanced filtering",+ free: true,+ pro: true,+ },+ {+ name: "Custom events",+ free: true,+ pro: true,+ },+ {+ name: "Bot filtering",+ free: true,+ pro: true,+ },+ {+ name: "Real-time globe",+ free: false,+ pro: true,+ },+ {+ name: "Web vitals",+ free: false,+ pro: true,+ },+ {+ name: "Pages view",+ free: false,+ pro: true,+ },+ {+ name: "Sessions",+ free: false,+ pro: true,+ },+ {+ name: "User profiles",+ free: false,+ pro: true,+ },+ {+ name: "Funnels",+ free: false,+ pro: true,+ },+ {+ name: "Goals",+ free: false,+ pro: true,+ },+ {+ name: "Journeys",+ free: false,+ pro: true,+ },+ {+ name: "Retention",+ free: false,+ pro: true,+ },+ {+ name: "Advanced events view",+ free: false,+ pro: true,+ },+ ],+ },+ {+ category: "Data & Privacy",+ features: [+ {+ name: "Privacy-friendly",+ free: true,+ pro: true,+ },+ {+ name: "GDPR compliant",+ free: true,+ pro: true,+ },+ {+ name: "No cookies required",+ free: true,+ pro: true,+ },+ {+ name: "Data retention",+ free: "6 months",+ pro: "3 years",+ },+ ],+ },+ {+ category: "Support & Integrations",+ features: [+ {+ name: "Email support",+ free: "Community",+ pro: "Priority",+ },+ // {+ // name: "API access",+ // free: false,+ // pro: true,+ // },+ // {+ // name: "Custom domains",+ // free: false,+ // pro: true,+ // },+ // {+ // name: "White labeling",+ // free: false,+ // pro: true,+ // },+ ],+ },+];++function FeatureCell({ value, isPro = false }) {+ if (typeof value === "boolean") {+ return value ? (+ <Check className="h-5 w-5 text-emerald-400 mx-auto" />+ ) : (+ <X className="h-5 w-5 text-neutral-500 mx-auto" />+ );+ }++ return (+ <span className={cn("text-sm text-center block text-white")}>{value}</span>+ );+}++export function ComparisonSection() {+ return (+ <section className="-mt-8 pb-8 w-full">+ <div className="max-w-5xl mx-auto px-4">+ {/* <div className="text-center mb-12">+ <h2 className="text-3xl md:text-4xl font-bold mb-4">+ Feature Comparison+ </h2>+ <p className="text-neutral-300 max-w-2xl mx-auto">+ Compare our Free and Pro plans to find the perfect fit for your+ needs+ </p>+ </div> */}++ <div className="w-full border border-neutral-800/50 rounded-lg overflow-hidden ">+ {/* Table Header */}+ <div className="grid grid-cols-3 gap-0 py-6 bg-neutral-800/20">+ <div className="flex items-center px-6 border-r border-neutral-700/50 text-xl font-semibold text-neutral-200">+ Compare Plans+ </div>+ <div className="flex flex-col items-center justify-center px-6 border-r border-neutral-700/50">+ <div className="font-semibold text-lg text-center mb-3">+ Free{" "}+ <span className="text-sm text-neutral-400 font-normal">+ $0/month+ </span>+ </div>+ <a+ href="https://app.rybbit.io/signup"+ className="inline-flex items-center justify-center px-4 py-2 bg-neutral-700 hover:bg-neutral-600 text-white text-sm font-medium rounded-lg border border-neutral-600 transform hover:-translate-y-0.5 transition-all duration-200"+ >+ Start Free+ </a>+ </div>+ <div className="flex flex-col items-center justify-center px-6">+ <div className="font-semibold text-lg text-emerald-400 text-center mb-3">+ Pro{" "}+ <span className="text-sm text-neutral-400 font-normal">+ Starting at $19/month+ </span>+ </div>+ <a+ href="https://app.rybbit.io/signup"+ className="inline-flex items-center justify-center px-4 py-2 bg-emerald-600 hover:bg-emerald-500 text-white text-sm font-medium rounded-lg shadow-lg shadow-emerald-900/20 transform hover:-translate-y-0.5 transition-all duration-200"+ >+ Try Pro Free+ </a>+ </div>+ </div>++ {/* Feature Categories */}+ {COMPARISON_FEATURES.map((category, categoryIndex) => (+ <div key={categoryIndex}>+ {/* Category Header - Skip for "Usage" category */}+ {category.category !== "Usage" && (+ <div className="grid grid-cols-3 gap-0 py-3 border-b border-neutral-700 bg-neutral-800/10">+ <div className="flex items-center px-6 border-r border-neutral-700/50">+ <h3 className="font-semibold text-neutral-100 text-base">+ {category.category}+ </h3>+ </div>+ <div className="border-r border-neutral-700/50"></div>+ <div></div>+ </div>+ )}++ {/* Category Features */}+ {category.features.map((feature, featureIndex) => (+ <div+ key={featureIndex}+ className="grid grid-cols-3 gap-0 py-3 hover:bg-neutral-800/20 transition-colors border-b border-neutral-800/30 last:border-b-0"+ >+ <div className="flex items-center px-6 border-r border-neutral-700/50">+ <span className="text-sm text-neutral-300">+ {feature.name}+ </span>+ </div>+ <div className="flex items-center justify-center px-6 border-r border-neutral-700/50">+ <FeatureCell value={feature.free} />+ </div>+ <div className="flex items-center justify-center px-6">+ <FeatureCell value={feature.pro} isPro={true} />+ </div>+ </div>+ ))}+ </div>+ ))}+ </div>+ </div>+ </section>+ );+}diff --git a/docs/src/app/components/PricingSection.jsx b/docs/src/app/pricing/components/PricingSection.jsxsimilarity index 98%rename from docs/src/app/components/PricingSection.jsxrename to docs/src/app/pricing/components/PricingSection.jsxindex 11e157e3d..7630dd6a1 100644--- a/docs/src/app/components/PricingSection.jsx+++ b/docs/src/app/pricing/components/PricingSection.jsx@@ -4,7 +4,7 @@ import { Slider } from "@/components/ui/slider";import { Check, X, CheckCircle } from "lucide-react";import Link from "next/link";import { useState } from "react";-import { cn } from "../../lib/utils";+import { cn } from "../../../lib/utils";// Available event tiers for the sliderconst EVENT_TIERS = [@@ -23,11 +23,14 @@ const PRO_FEATURES = ["Unlimited websites","Unlimited team members","Real-time analytics",+ "Web vitals","Custom events","Sessions","Funnels","Goals",- "User flows",+ "Journeys",+ "User profiles",+ "Retention","All features",];@@ -96,7 +99,7 @@ export function PricingSection() {{/* Two card layout */}<div className="flex flex-col lg:flex-row gap-6 max-w-6xl mx-auto justify-center items-start">{/* Free Plan Card */}- <div className="w-full lg:w-70 flex-shrink-0 md:h-[666px] h-full">+ <div className="w-full lg:w-70 flex-shrink-0 md:h-[788px] h-full"><div className="bg-neutral-800/30 rounded-xl border border-neutral-700 overflow-hidden backdrop-blur-sm shadow-lg h-full"><div className="p-6"><div className="md:mb-[70px] mb-6">diff --git a/docs/src/app/pricing/page.jsx b/docs/src/app/pricing/page.jsxindex 614e78ddf..b02583ada 100644--- a/docs/src/app/pricing/page.jsx+++ b/docs/src/app/pricing/page.jsx@@ -1,4 +1,5 @@-import { PricingSection } from "../components/PricingSection";+import { PricingSection } from "./components/PricingSection";+import { ComparisonSection } from "./components/ComparisonSection";export const metadata = {title: "Pricing",@@ -9,6 +10,7 @@ export default function Pricing() {return (<div className="flex flex-col items-center justify-center overflow-x-hidden"><PricingSection />+ <ComparisonSection />{/* FAQ section */}<div className="max-w-lg mx-auto px-4 pb-16">diff --git a/docs/tsconfig.json b/docs/tsconfig.jsonindex 1bb6a08f0..07862e6cf 100644--- a/docs/tsconfig.json+++ b/docs/tsconfig.json@@ -33,7 +33,8 @@"**/*.ts","**/*.tsx",".next/types/**/*.ts",- "src/app/providers.jsx"+ "src/app/providers.jsx",+ "src/app/pricing/components/ComparisonSection.jsx"],"exclude": ["node_modules"