Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Add affiliate program link to Footer component

Bill Yang54e2a3e5f67f
diff --git a/client/src/app/components/Footer.tsx b/client/src/app/components/Footer.tsx
index cdc006a5b..9f5a17b0c 100644
--- a/client/src/app/components/Footer.tsx
+++ b/client/src/app/components/Footer.tsx
@@ -119,6 +119,14 @@ export function Footer() {
API Reference
</a>
</li>
+ <li>
+ <a
+ href="https://rybbit.com/affiliate"
+ className="text-neutral-500 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-white transition-colors"
+ >
+ 50% Affiliate Program
+ </a>
+ </li>
</ul>
</div>
diff --git a/docs/src/app/(home)/affiliate/page.tsx b/docs/src/app/(home)/affiliate/page.tsx
new file mode 100644
index 000000000..f1fe6cbcb
--- /dev/null
+++ b/docs/src/app/(home)/affiliate/page.tsx
@@ -0,0 +1,153 @@
+import { BackgroundGrid } from "@/components/BackgroundGrid";
+import { CheckCircle } from "lucide-react";
+import { Tilt_Warp } from "next/font/google";
+import { TrackedButton } from "../../../components/TrackedButton";
+import { cn } from "../../../lib/utils";
+import type { Metadata } from "next";
+
+const tilt_wrap = Tilt_Warp({
+ subsets: ["latin"],
+ weight: "400",
+});
+
+export const metadata: Metadata = {
+ title: "Affiliate Program - Rybbit Analytics",
+ description:
+ "Earn 50% recurring commission for 12 months by referring customers to Rybbit, the open-source privacy-first analytics platform.",
+ openGraph: {
+ title: "Rybbit Affiliate Program",
+ description:
+ "Earn 50% recurring commission for 12 months by referring customers to Rybbit.",
+ type: "website",
+ url: "https://rybbit.com/affiliate",
+ },
+ alternates: {
+ canonical: "https://rybbit.com/affiliate",
+ },
+};
+
+const perks = [
+ {
+ title: "50% Commission",
+ description: "Earn 50% of every payment your referrals make",
+ },
+ {
+ title: "12 Months Recurring",
+ description: "Get paid every month for a full year per referral",
+ },
+ {
+ title: "60-Day Cookie",
+ description: "Generous 60-day attribution window on all referral links",
+ },
+ {
+ title: "Monthly Payouts",
+ description: "Reliable payouts every month via Rewardful",
+ },
+];
+
+export default function AffiliatePage() {
+ return (
+ <div className="flex flex-col items-center justify-center overflow-x-hidden pt-16 md:pt-24">
+ <BackgroundGrid />
+ <div className="relative flex flex-col py-8">
+ <h1
+ className={cn(
+ "relative z-10 text-4xl md:text-5xl lg:text-7xl font-medium px-4 tracking-tight max-w-4xl text-center text-transparent bg-clip-text bg-gradient-to-b from-neutral-900 via-neutral-700 to-neutral-500 dark:from-white dark:via-gray-100 dark:to-gray-400",
+ tilt_wrap.className
+ )}
+ >
+ 50%/ Affiliate Program
+ </h1>
+ <h2 className="relative z-10 text-base md:text-xl pt-4 md:pt-6 px-4 tracking-tight max-w-4xl text-center text-neutral-600 dark:text-neutral-300 font-light">
+ Earn 50% recurring commission for 12 months by referring customers to
+ Rybbit.
+ </h2>
+
+ <div className="relative z-10 flex flex-col items-center my-8 md:my-10">
+ <div className="flex flex-col sm:flex-row items-center justify-center gap-4 md:gap-6 text-base md:text-lg px-4">
+ <TrackedButton
+ href="https://rybbit.getrewardful.com/signup"
+ eventName="affiliate_signup_click"
+ eventProps={{
+ location: "hero",
+ button_text: "Join the Program",
+ }}
+ target="_blank"
+ rel="noopener noreferrer"
+ 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"
+ >
+ Join the Program
+ </TrackedButton>
+ </div>
+ </div>
+ </div>
+
+ {/* Perks Grid */}
+ <section className="py-12 w-full max-w-5xl mx-auto px-4 z-10">
+ <div className="bg-neutral-200/40 dark:bg-neutral-900/40 p-2 rounded-3xl border border-neutral-300 dark:border-neutral-800">
+ <div className="bg-neutral-50 dark:bg-neutral-900 backdrop-blur-sm rounded-2xl border border-neutral-300 dark:border-neutral-800 p-8">
+ <div className="grid grid-cols-1 sm:grid-cols-2 gap-6">
+ {perks.map((perk) => (
+ <div key={perk.title} className="flex items-start gap-3">
+ <CheckCircle className="w-5 h-5 text-emerald-500 mt-0.5 flex-shrink-0" />
+ <div>
+ <h3 className="font-medium text-neutral-900 dark:text-white">
+ {perk.title}
+ </h3>
+ <p className="text-sm text-neutral-600 dark:text-neutral-400">
+ {perk.description}
+ </p>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ </div>
+ </section>
+
+ {/* How It Works */}
+ <section className="pb-16 w-full max-w-5xl mx-auto px-4 z-10">
+ <h3 className="text-2xl font-medium text-center mb-8 text-neutral-900 dark:text-white">
+ How It Works
+ </h3>
+ <div className="grid grid-cols-1 md:grid-cols-3 gap-6">
+ {[
+ {
+ step: "1",
+ title: "Sign Up",
+ description:
+ "Create your free affiliate account and get your unique referral link.",
+ },
+ {
+ step: "2",
+ title: "Share",
+ description:
+ "Share your link with your audience — blog posts, social media, newsletters, etc.",
+ },
+ {
+ step: "3",
+ title: "Earn",
+ description:
+ "Earn 50% of every payment for 12 months when someone subscribes through your link.",
+ },
+ ].map((item) => (
+ <div
+ key={item.step}
+ className="bg-neutral-50 dark:bg-neutral-900 border border-neutral-300 dark:border-neutral-800 rounded-xl p-6 text-center"
+ >
+ <div className="w-8 h-8 rounded-full bg-emerald-600 text-white text-sm font-medium flex items-center justify-center mx-auto mb-3">
+ {item.step}
+ </div>
+ <h4 className="font-medium text-neutral-900 dark:text-white mb-1">
+ {item.title}
+ </h4>
+ <p className="text-sm text-neutral-600 dark:text-neutral-400">
+ {item.description}
+ </p>
+ </div>
+ ))}
+ </div>
+ </section>
+ </div>
+ );
+}
diff --git a/docs/src/components/Footer.tsx b/docs/src/components/Footer.tsx
index 7fce4e718..d98b6b5e0 100644
--- a/docs/src/components/Footer.tsx
+++ b/docs/src/components/Footer.tsx
@@ -186,6 +186,11 @@ export function Footer() {
OSS Friends
</Link>
</li>
+ <li>
+ <Link href="/affiliate" className="text-neutral-500 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white transition-colors">
+ 50% Affiliate Program
+ </Link>
+ </li>
</ul>
</div>