Skip to content

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

Update dependencies and enhance documentation layout

Bill Yangbba39cee2ad9
diff --git a/docs/content/docs/(docs)/index.mdx b/docs/content/docs/(docs)/index.mdx
index 7f02356ec..52faa937c 100644
--- a/docs/content/docs/(docs)/index.mdx
+++ b/docs/content/docs/(docs)/index.mdx
@@ -45,13 +45,14 @@ import {
**Rybbit** is a powerful open source web and products analytics platform. Check out our [live demo](https://demo.rybbit.com/81) using a real production site.
-<div className="relative rounded-lg overflow-hidden border-8 border-neutral-100/5 shadow-2xl shadow-emerald-900/10">
+{/* md+: render the demo at a 117.6% viewport and scale to 0.85 so it shows
+ its desktop layout at preview size. Keep 1:1 on mobile — a scaled viewport
+ would land between the demo's responsive breakpoints. The two values must
+ stay reciprocal. */}
+<div className="relative rounded-lg overflow-hidden border-8 border-neutral-100/5 shadow-2xl shadow-emerald-900/10 h-[600px] md:h-[700px] lg:h-[750px]">
<iframe
src="https://demo.rybbit.com/81"
- width="1300"
- height="750"
- className="w-full h-[600px] md:h-[700px] lg:h-[750px]"
- style={{ border: "none" }}
+ className="block w-full h-full border-none md:w-[117.6%] md:h-[117.6%] md:origin-top-left md:scale-[0.85]"
title="Rybbit Analytics Demo"
></iframe>
</div>
diff --git a/docs/messages/de.json b/docs/messages/de.json
index 89dcca738..e1bf1a9fd 100644
--- a/docs/messages/de.json
+++ b/docs/messages/de.json
@@ -260,8 +260,6 @@
"4kz8UK": "Core Web Vitals bestanden",
"k6I8wU": "Live-Demo",
"_KlgcS": "7 Tage kostenlos testen. Jederzeit kündbar.",
- "_6_sPX": "Dokumentation",
- "YHpxa5": "Sponsoren",
"AyGauy": "Anmelden",
"8HJxXG": "Registrieren",
"Otku29": "Hauptmenü schließen",
@@ -327,6 +325,39 @@
"ghirOh": "DPA",
"u9xEkD": "© {year} Rybbit. Alle Rechte vorbehalten.",
"hkJfuy": "Mit ❤️ von Fröschen gemacht",
+ "5XUZRZ": "Traffic, Quellen und Echtzeit-Einblicke",
+ "ry1eVy": "Echte Nutzersitzungen ansehen",
+ "90Fubr": "JavaScript-Fehler erfassen",
+ "IjloO4": "Sehen Sie, wo Nutzer abspringen",
+ "dvrL1q": "Die wichtigen Conversions verfolgen",
+ "ibkCw8": "Wiederkehrende Besucher messen",
+ "BBTx1L": "Wie sich Besucher durch Ihre Website bewegen",
+ "x3hviT": "Nutzer und ihre Merkmale identifizieren",
+ "fqV2q2": "Jede beliebige Aktion verfolgen",
+ "7JQj0y": "Einzelne Besuche durchsuchen",
+ "PW1xnM": "Website-Performance überwachen",
+ "X-rPk_": "Nach Anwendungsfall",
+ "Alc97V": "SaaS",
+ "VWP8tD": "Startups",
+ "M3zU1C": "E-Commerce",
+ "TzhzIH": "Creator",
+ "aMWgjX": "Entwickler",
+ "qnQu9D": "Agenturen",
+ "oxaO4Q": "Europäische Unternehmen",
+ "gnfbRO": "vs. Google Analytics",
+ "xHzypf": "vs. Plausible",
+ "12zwOq": "vs. PostHog",
+ "qbewDZ": "vs. Matomo",
+ "EKtClK": "Erste Schritte",
+ "KeO1lq": "Self-Hosting",
+ "FBj3zr": "Roadmap",
+ "-FjR0V": "Kostenlose Tools",
+ "YHpxa5": "Sponsoren",
+ "asqGnV": "Lösungen",
+ "_6_sPX": "Dokumentation",
+ "6i7R4y": "Alle Features",
+ "aOrcvK": "Alle Vergleiche",
+ "Y26fp-": "Alles, was ein einziges Skript erfasst",
"4U5kPn": "In der EU gehostete Cloud",
"lqwcC0": "Verstehen",
"8KOs6d": "Einrichtung in Minuten",
@@ -335,7 +366,6 @@
"67KJ1V": "Messen",
"0sS0Yo": "API & Datenexport",
"eRzcbw": "Privat bleiben",
- "KeO1lq": "Self-Hosting",
"rCSmI9": "Open Source",
"gpZ2SY": "Vertrauen von über 10.000 Organisationen weltweit",
"8fhc99": "Ein vernetzter Arbeitsbereich",
diff --git a/docs/messages/en.json b/docs/messages/en.json
index bff3f143b..1f8fae49d 100644
--- a/docs/messages/en.json
+++ b/docs/messages/en.json
@@ -260,8 +260,6 @@
"4kz8UK": "Passing Core Web Vitals",
"k6I8wU": "Live demo",
"_KlgcS": "7-day free trial. Cancel anytime.",
- "_6_sPX": "Docs",
- "YHpxa5": "Sponsors",
"AyGauy": "Login",
"8HJxXG": "Sign up",
"Otku29": "Close main menu",
@@ -327,6 +325,39 @@
"ghirOh": "DPA",
"u9xEkD": "© {year} Rybbit. All rights reserved.",
"hkJfuy": "Made with ❤️ by frogs",
+ "5XUZRZ": "Traffic, sources, and realtime insights",
+ "ry1eVy": "Watch real user sessions",
+ "90Fubr": "Catch JavaScript errors",
+ "IjloO4": "See where users drop off",
+ "dvrL1q": "Track the conversions that matter",
+ "ibkCw8": "Measure returning visitors",
+ "BBTx1L": "How visitors move through your site",
+ "x3hviT": "Identify users and their traits",
+ "fqV2q2": "Track any action you care about",
+ "7JQj0y": "Browse individual visits",
+ "PW1xnM": "Monitor site performance",
+ "X-rPk_": "By use case",
+ "Alc97V": "SaaS",
+ "VWP8tD": "Startups",
+ "M3zU1C": "Ecommerce",
+ "TzhzIH": "Creators",
+ "aMWgjX": "Developers",
+ "qnQu9D": "Agencies",
+ "oxaO4Q": "European companies",
+ "gnfbRO": "vs. Google Analytics",
+ "xHzypf": "vs. Plausible",
+ "12zwOq": "vs. PostHog",
+ "qbewDZ": "vs. Matomo",
+ "EKtClK": "Getting started",
+ "KeO1lq": "Self-hosting",
+ "FBj3zr": "Roadmap",
+ "-FjR0V": "Free tools",
+ "YHpxa5": "Sponsors",
+ "asqGnV": "Solutions",
+ "_6_sPX": "Docs",
+ "6i7R4y": "All features",
+ "aOrcvK": "All comparisons",
+ "Y26fp-": "Everything one script captures",
"4U5kPn": "EU-hosted cloud",
"lqwcC0": "Understand",
"8KOs6d": "Setup in minutes",
@@ -335,7 +366,6 @@
"67KJ1V": "Measure",
"0sS0Yo": "API & data export",
"eRzcbw": "Stay private",
- "KeO1lq": "Self-hosting",
"rCSmI9": "Open source",
"gpZ2SY": "Trusted by 10,000+ organizations worldwide",
"8fhc99": "One connected workspace",
diff --git a/docs/messages/es.json b/docs/messages/es.json
index 394c73d8d..cbb986fee 100644
--- a/docs/messages/es.json
+++ b/docs/messages/es.json
@@ -260,8 +260,6 @@
"4kz8UK": "Core Web Vitals aprobados",
"k6I8wU": "Demo en vivo",
"_KlgcS": "Prueba gratuita de 7 días. Cancela cuando quieras.",
- "_6_sPX": "Documentación",
- "YHpxa5": "Patrocinadores",
"AyGauy": "Iniciar sesión",
"8HJxXG": "Registrarse",
"Otku29": "Cerrar menú principal",
@@ -327,6 +325,39 @@
"ghirOh": "DPA",
"u9xEkD": "© {year} Rybbit. Todos los derechos reservados.",
"hkJfuy": "Hecho con ❤️ por ranas",
+ "5XUZRZ": "Tráfico, fuentes e información en tiempo real",
+ "ry1eVy": "Mira sesiones de usuarios reales",
+ "90Fubr": "Captura errores de JavaScript",
+ "IjloO4": "Ve dónde abandonan los usuarios",
+ "dvrL1q": "Rastrea las conversiones que importan",
+ "ibkCw8": "Mide los visitantes recurrentes",
+ "BBTx1L": "Cómo se mueven los visitantes por tu sitio",
+ "x3hviT": "Identifica usuarios y sus atributos",
+ "fqV2q2": "Rastrea cualquier acción que te interese",
+ "7JQj0y": "Explora visitas individuales",
+ "PW1xnM": "Monitoriza el rendimiento del sitio",
+ "X-rPk_": "Por caso de uso",
+ "Alc97V": "SaaS",
+ "VWP8tD": "Startups",
+ "M3zU1C": "Ecommerce",
+ "TzhzIH": "Creadores",
+ "aMWgjX": "Desarrolladores",
+ "qnQu9D": "Agencias",
+ "oxaO4Q": "Empresas europeas",
+ "gnfbRO": "vs. Google Analytics",
+ "xHzypf": "vs. Plausible",
+ "12zwOq": "vs. PostHog",
+ "qbewDZ": "vs. Matomo",
+ "EKtClK": "Primeros pasos",
+ "KeO1lq": "Autoalojamiento",
+ "FBj3zr": "Hoja de ruta",
+ "-FjR0V": "Herramientas gratuitas",
+ "YHpxa5": "Patrocinadores",
+ "asqGnV": "Soluciones",
+ "_6_sPX": "Documentación",
+ "6i7R4y": "Todas las funciones",
+ "aOrcvK": "Todas las comparativas",
+ "Y26fp-": "Todo lo que captura un solo script",
"4U5kPn": "Nube alojada en la UE",
"lqwcC0": "Entender",
"8KOs6d": "Configuración en minutos",
@@ -335,7 +366,6 @@
"67KJ1V": "Medir",
"0sS0Yo": "API y exportación de datos",
"eRzcbw": "Protege tu privacidad",
- "KeO1lq": "Autoalojamiento",
"rCSmI9": "Código abierto",
"gpZ2SY": "Con la confianza de más de 10,000 organizaciones en todo el mundo",
"8fhc99": "Un espacio de trabajo conectado",
diff --git a/docs/messages/fr.json b/docs/messages/fr.json
index 5712e7c97..0ecd97d5d 100644
--- a/docs/messages/fr.json
+++ b/docs/messages/fr.json
@@ -260,8 +260,6 @@
"4kz8UK": "Core Web Vitals réussis",
"k6I8wU": "Démo en direct",
"_KlgcS": "Essai gratuit de 7 jours. Annulable à tout moment.",
- "_6_sPX": "Docs",
- "YHpxa5": "Sponsors",
"AyGauy": "Connexion",
"8HJxXG": "S'inscrire",
"Otku29": "Fermer le menu principal",
@@ -327,6 +325,39 @@
"ghirOh": "DPA",
"u9xEkD": "© {year} Rybbit. Tous droits réservés.",
"hkJfuy": "Fait avec ❤️ par des grenouilles",
+ "5XUZRZ": "Trafic, sources et données en temps réel",
+ "ry1eVy": "Regarder de vraies sessions utilisateurs",
+ "90Fubr": "Capturer les erreurs JavaScript",
+ "IjloO4": "Voyez où les utilisateurs abandonnent",
+ "dvrL1q": "Suivre les conversions qui comptent",
+ "ibkCw8": "Mesurer les visiteurs récurrents",
+ "BBTx1L": "Comment les visiteurs naviguent sur votre site",
+ "x3hviT": "Identifier les utilisateurs et leurs attributs",
+ "fqV2q2": "Suivre n'importe quelle action",
+ "7JQj0y": "Parcourir les visites individuelles",
+ "PW1xnM": "Surveiller les performances du site",
+ "X-rPk_": "Par cas d'usage",
+ "Alc97V": "SaaS",
+ "VWP8tD": "Startups",
+ "M3zU1C": "E-commerce",
+ "TzhzIH": "Créateurs",
+ "aMWgjX": "Développeurs",
+ "qnQu9D": "Agences",
+ "oxaO4Q": "Entreprises européennes",
+ "gnfbRO": "vs Google Analytics",
+ "xHzypf": "vs Plausible",
+ "12zwOq": "vs PostHog",
+ "qbewDZ": "vs Matomo",
+ "EKtClK": "Premiers pas",
+ "KeO1lq": "Auto-hébergement",
+ "FBj3zr": "Feuille de route",
+ "-FjR0V": "Outils gratuits",
+ "YHpxa5": "Sponsors",
+ "asqGnV": "Solutions",
+ "_6_sPX": "Docs",
+ "6i7R4y": "Toutes les fonctionnalités",
+ "aOrcvK": "Toutes les comparaisons",
+ "Y26fp-": "Tout ce qu'un seul script capture",
"4U5kPn": "Cloud hébergé dans l'UE",
"lqwcC0": "Comprendre",
"8KOs6d": "Configuration en quelques minutes",
@@ -335,7 +366,6 @@
"67KJ1V": "Mesurer",
"0sS0Yo": "API et export de données",
"eRzcbw": "Préservez votre confidentialité",
- "KeO1lq": "Auto-hébergement",
"rCSmI9": "Open source",
"gpZ2SY": "Approuvé par plus de 10 000 organisations dans le monde",
"8fhc99": "Un espace de travail unifié",
diff --git a/docs/messages/it.json b/docs/messages/it.json
index 3fa06b9a5..ce8708310 100644
--- a/docs/messages/it.json
+++ b/docs/messages/it.json
@@ -260,8 +260,6 @@
"4kz8UK": "Core Web Vitals superati",
"k6I8wU": "Demo live",
"_KlgcS": "7 giorni di prova gratuita. Annulla in qualsiasi momento.",
- "_6_sPX": "Documentazione",
- "YHpxa5": "Sponsor",
"AyGauy": "Accedi",
"8HJxXG": "Registrati",
"Otku29": "Chiudi il menu principale",
@@ -327,6 +325,39 @@
"ghirOh": "DPA",
"u9xEkD": "© {year} Rybbit. Tutti i diritti riservati.",
"hkJfuy": "Fatto con ❤️ dalle rane",
+ "5XUZRZ": "Traffico, sorgenti e insight in tempo reale",
+ "ry1eVy": "Guarda sessioni di utenti reali",
+ "90Fubr": "Cattura gli errori JavaScript",
+ "IjloO4": "Scopri dove gli utenti abbandonano",
+ "dvrL1q": "Traccia le conversioni che contano",
+ "ibkCw8": "Misura i visitatori di ritorno",
+ "BBTx1L": "Come i visitatori si muovono nel tuo sito",
+ "x3hviT": "Identifica gli utenti e i loro attributi",
+ "fqV2q2": "Traccia qualsiasi azione ti interessi",
+ "7JQj0y": "Sfoglia le singole visite",
+ "PW1xnM": "Monitora le prestazioni del sito",
+ "X-rPk_": "Per caso d'uso",
+ "Alc97V": "SaaS",
+ "VWP8tD": "Startup",
+ "M3zU1C": "E-commerce",
+ "TzhzIH": "Creator",
+ "aMWgjX": "Sviluppatori",
+ "qnQu9D": "Agenzie",
+ "oxaO4Q": "Aziende europee",
+ "gnfbRO": "vs. Google Analytics",
+ "xHzypf": "vs. Plausible",
+ "12zwOq": "vs. PostHog",
+ "qbewDZ": "vs. Matomo",
+ "EKtClK": "Per iniziare",
+ "KeO1lq": "Self-hosting",
+ "FBj3zr": "Roadmap",
+ "-FjR0V": "Strumenti gratuiti",
+ "YHpxa5": "Sponsor",
+ "asqGnV": "Soluzioni",
+ "_6_sPX": "Documentazione",
+ "6i7R4y": "Tutte le funzionalità",
+ "aOrcvK": "Tutti i confronti",
+ "Y26fp-": "Tutto ciò che un solo script cattura",
"4U5kPn": "Cloud ospitato nell'UE",
"lqwcC0": "Comprendi",
"8KOs6d": "Configurazione in pochi minuti",
@@ -335,7 +366,6 @@
"67KJ1V": "Misura",
"0sS0Yo": "API ed esportazione dati",
"eRzcbw": "Proteggi la privacy",
- "KeO1lq": "Self-hosting",
"rCSmI9": "Open source",
"gpZ2SY": "Scelto da oltre 10.000 organizzazioni in tutto il mondo",
"8fhc99": "Un unico spazio di lavoro connesso",
diff --git a/docs/messages/ja.json b/docs/messages/ja.json
index 7dff66cb2..fda4a5e0c 100644
--- a/docs/messages/ja.json
+++ b/docs/messages/ja.json
@@ -260,8 +260,6 @@
"4kz8UK": "合格した Core Web Vitals",
"k6I8wU": "ライブデモ",
"_KlgcS": "7日間の無料トライアル。いつでもキャンセル可能。",
- "_6_sPX": "ドキュメント",
- "YHpxa5": "スポンサー",
"AyGauy": "ログイン",
"8HJxXG": "サインアップ",
"Otku29": "メインメニューを閉じる",
@@ -327,6 +325,39 @@
"ghirOh": "DPA",
"u9xEkD": "© {year} Rybbit. 全著作権所有。",
"hkJfuy": "カエルたちが ❤️ を込めて制作",
+ "5XUZRZ": "トラフィック、流入元、リアルタイムのインサイト",
+ "ry1eVy": "実際のユーザーセッションを再生",
+ "90Fubr": "JavaScript エラーを捕捉",
+ "IjloO4": "ユーザーの離脱ポイントを特定",
+ "dvrL1q": "重要なコンバージョンを計測",
+ "ibkCw8": "リピーターを計測",
+ "BBTx1L": "訪問者のサイト内の動きを把握",
+ "x3hviT": "ユーザーと属性を識別",
+ "fqV2q2": "あらゆるアクションをトラッキング",
+ "7JQj0y": "個別の訪問を閲覧",
+ "PW1xnM": "サイトパフォーマンスを監視",
+ "X-rPk_": "ユースケース別",
+ "Alc97V": "SaaS",
+ "VWP8tD": "スタートアップ",
+ "M3zU1C": "Eコマース",
+ "TzhzIH": "クリエイター",
+ "aMWgjX": "開発者",
+ "qnQu9D": "代理店",
+ "oxaO4Q": "ヨーロッパの企業",
+ "gnfbRO": "Google Analytics との比較",
+ "xHzypf": "Plausible との比較",
+ "12zwOq": "PostHog との比較",
+ "qbewDZ": "Matomo との比較",
+ "EKtClK": "はじめに",
+ "KeO1lq": "セルフホスティング",
+ "FBj3zr": "ロードマップ",
+ "-FjR0V": "無料ツール",
+ "YHpxa5": "スポンサー",
+ "asqGnV": "ソリューション",
+ "_6_sPX": "ドキュメント",
+ "6i7R4y": "すべての機能",
+ "aOrcvK": "すべての比較",
+ "Y26fp-": "1つのスクリプトで捉えるすべて",
"4U5kPn": "EUホスティングのクラウド",
"lqwcC0": "理解する",
"8KOs6d": "数分でセットアップ完了",
@@ -335,7 +366,6 @@
"67KJ1V": "測定",
"0sS0Yo": "API とデータエクスポート",
"eRzcbw": "プライバシーを守る",
- "KeO1lq": "セルフホスティング",
"rCSmI9": "オープンソース",
"gpZ2SY": "世界中の10,000以上の組織に信頼されています",
"8fhc99": "統合されたひとつのワークスペース",
diff --git a/docs/messages/ko.json b/docs/messages/ko.json
index ce726b6e1..c0ca8eefc 100644
--- a/docs/messages/ko.json
+++ b/docs/messages/ko.json
@@ -260,8 +260,6 @@
"4kz8UK": "통과한 Core Web Vitals",
"k6I8wU": "라이브 데모",
"_KlgcS": "7일 무료 체험. 언제든지 취소 가능.",
- "_6_sPX": "문서",
- "YHpxa5": "스폰서",
"AyGauy": "로그인",
"8HJxXG": "회원가입",
"Otku29": "메인 메뉴 닫기",
@@ -327,6 +325,39 @@
"ghirOh": "DPA",
"u9xEkD": "© {year} Rybbit. 모든 권리 보유.",
"hkJfuy": "개구리들이 ❤️ 를 담아 만든",
+ "5XUZRZ": "트래픽, 유입 경로, 실시간 인사이트",
+ "ry1eVy": "실제 사용자 세션 보기",
+ "90Fubr": "JavaScript 오류 포착",
+ "IjloO4": "사용자가 이탈하는 지점 확인",
+ "dvrL1q": "중요한 전환 추적",
+ "ibkCw8": "재방문자 측정",
+ "BBTx1L": "방문자가 사이트를 어떻게 이동하는지 확인",
+ "x3hviT": "사용자와 속성 식별",
+ "fqV2q2": "원하는 모든 행동 추적",
+ "7JQj0y": "개별 방문 살펴보기",
+ "PW1xnM": "사이트 성능 모니터링",
+ "X-rPk_": "사용 사례별",
+ "Alc97V": "SaaS",
+ "VWP8tD": "스타트업",
+ "M3zU1C": "이커머스",
+ "TzhzIH": "크리에이터",
+ "aMWgjX": "개발자",
+ "qnQu9D": "에이전시",
+ "oxaO4Q": "유럽 기업",
+ "gnfbRO": "Google Analytics 비교",
+ "xHzypf": "Plausible 비교",
+ "12zwOq": "PostHog 비교",
+ "qbewDZ": "Matomo 비교",
+ "EKtClK": "시작하기",
+ "KeO1lq": "셀프 호스팅",
+ "FBj3zr": "로드맵",
+ "-FjR0V": "무료 도구",
+ "YHpxa5": "스폰서",
+ "asqGnV": "솔루션",
+ "_6_sPX": "문서",
+ "6i7R4y": "모든 기능",
+ "aOrcvK": "모든 비교 보기",
+ "Y26fp-": "스크립트 하나로 담아내는 모든 것",
"4U5kPn": "EU 호스팅 클라우드",
"lqwcC0": "이해",
"8KOs6d": "몇 분 만에 설정 완료",
@@ -335,7 +366,6 @@
"67KJ1V": "측정",
"0sS0Yo": "API 및 데이터 내보내기",
"eRzcbw": "프라이버시 지키기",
- "KeO1lq": "셀프 호스팅",
"rCSmI9": "오픈 소스",
"gpZ2SY": "전 세계 10,000개 이상의 기업이 신뢰합니다",
"8fhc99": "하나로 연결된 워크스페이스",
diff --git a/docs/messages/pl.json b/docs/messages/pl.json
index 3faa9847b..f9d30c149 100644
--- a/docs/messages/pl.json
+++ b/docs/messages/pl.json
@@ -260,8 +260,6 @@
"4kz8UK": "Zaliczone Core Web Vitals",
"k6I8wU": "Demo na żywo",
"_KlgcS": "7-dniowy bezpłatny okres próbny. Anuluj w dowolnym momencie.",
- "_6_sPX": "Dokumentacja",
- "YHpxa5": "Sponsorzy",
"AyGauy": "Zaloguj się",
"8HJxXG": "Zarejestruj się",
"Otku29": "Zamknij menu główne",
@@ -327,6 +325,39 @@
"ghirOh": "DPA",
"u9xEkD": "© {year} Rybbit. Wszelkie prawa zastrzeżone.",
"hkJfuy": "Zrobione z ❤️ przez żaby",
+ "5XUZRZ": "Ruch, źródła i dane w czasie rzeczywistym",
+ "ry1eVy": "Oglądaj sesje prawdziwych użytkowników",
+ "90Fubr": "Wychwytuj błędy JavaScript",
+ "IjloO4": "Zobacz, gdzie użytkownicy rezygnują",
+ "dvrL1q": "Śledź konwersje, które się liczą",
+ "ibkCw8": "Mierz powracających odwiedzających",
+ "BBTx1L": "Jak odwiedzający poruszają się po Twojej stronie",
+ "x3hviT": "Identyfikuj użytkowników i ich cechy",
+ "fqV2q2": "Śledź dowolną akcję",
+ "7JQj0y": "Przeglądaj pojedyncze wizyty",
+ "PW1xnM": "Monitoruj wydajność strony",
+ "X-rPk_": "Według zastosowania",
+ "Alc97V": "SaaS",
+ "VWP8tD": "Startupy",
+ "M3zU1C": "E-commerce",
+ "TzhzIH": "Twórcy",
+ "aMWgjX": "Deweloperzy",
+ "qnQu9D": "Agencje",
+ "oxaO4Q": "Firmy europejskie",
+ "gnfbRO": "vs Google Analytics",
+ "xHzypf": "vs Plausible",
+ "12zwOq": "vs PostHog",
+ "qbewDZ": "vs Matomo",
+ "EKtClK": "Pierwsze kroki",
+ "KeO1lq": "Self-hosting",
+ "FBj3zr": "Plan rozwoju",
+ "-FjR0V": "Darmowe narzędzia",
+ "YHpxa5": "Sponsorzy",
+ "asqGnV": "Rozwiązania",
+ "_6_sPX": "Dokumentacja",
+ "6i7R4y": "Wszystkie funkcje",
+ "aOrcvK": "Wszystkie porównania",
+ "Y26fp-": "Wszystko, co rejestruje jeden skrypt",
"4U5kPn": "Chmura hostowana w UE",
"lqwcC0": "Zrozum",
"8KOs6d": "Konfiguracja w minutach",
@@ -335,7 +366,6 @@
"67KJ1V": "Mierz",
"0sS0Yo": "API i eksport danych",
"eRzcbw": "Zachowaj prywatność",
- "KeO1lq": "Self-hosting",
"rCSmI9": "Open source",
"gpZ2SY": "Zaufało nam ponad 10 000 organizacji na całym świecie",
"8fhc99": "Jedna, połączona przestrzeń robocza",
diff --git a/docs/messages/pt.json b/docs/messages/pt.json
index b3140d2ff..65b4f7efd 100644
--- a/docs/messages/pt.json
+++ b/docs/messages/pt.json
@@ -260,8 +260,6 @@
"4kz8UK": "Core Web Vitals aprovados",
"k6I8wU": "Demo ao vivo",
"_KlgcS": "Teste gratuito de 7 dias. Cancele quando quiser.",
- "_6_sPX": "Documentação",
- "YHpxa5": "Patrocinadores",
"AyGauy": "Entrar",
"8HJxXG": "Cadastre-se",
"Otku29": "Fechar menu principal",
@@ -327,6 +325,39 @@
"ghirOh": "DPA",
"u9xEkD": "© {year} Rybbit. Todos os direitos reservados.",
"hkJfuy": "Feito com ❤️ por sapos",
+ "5XUZRZ": "Tráfego, fontes e insights em tempo real",
+ "ry1eVy": "Assista a sessões de usuários reais",
+ "90Fubr": "Capture erros de JavaScript",
+ "IjloO4": "Veja onde os usuários abandonam",
+ "dvrL1q": "Acompanhe as conversões que importam",
+ "ibkCw8": "Meça visitantes recorrentes",
+ "BBTx1L": "Como os visitantes navegam pelo seu site",
+ "x3hviT": "Identifique usuários e seus atributos",
+ "fqV2q2": "Acompanhe qualquer ação importante para você",
+ "7JQj0y": "Navegue por visitas individuais",
+ "PW1xnM": "Monitore o desempenho do site",
+ "X-rPk_": "Por caso de uso",
+ "Alc97V": "SaaS",
+ "VWP8tD": "Startups",
+ "M3zU1C": "E-commerce",
+ "TzhzIH": "Criadores",
+ "aMWgjX": "Desenvolvedores",
+ "qnQu9D": "Agências",
+ "oxaO4Q": "Empresas europeias",
+ "gnfbRO": "vs. Google Analytics",
+ "xHzypf": "vs. Plausible",
+ "12zwOq": "vs. PostHog",
+ "qbewDZ": "vs. Matomo",
+ "EKtClK": "Primeiros passos",
+ "KeO1lq": "Auto-hospedagem",
+ "FBj3zr": "Roadmap",
+ "-FjR0V": "Ferramentas gratuitas",
+ "YHpxa5": "Patrocinadores",
+ "asqGnV": "Soluções",
+ "_6_sPX": "Documentação",
+ "6i7R4y": "Todos os recursos",
+ "aOrcvK": "Todas as comparações",
+ "Y26fp-": "Tudo o que um único script captura",
"4U5kPn": "Nuvem hospedada na UE",
"lqwcC0": "Entender",
"8KOs6d": "Configure em minutos",
@@ -335,7 +366,6 @@
"67KJ1V": "Medir",
"0sS0Yo": "API e exportação de dados",
"eRzcbw": "Mantenha a privacidade",
- "KeO1lq": "Auto-hospedagem",
"rCSmI9": "Código aberto",
"gpZ2SY": "Com a confiança de mais de 10.000 organizações em todo o mundo",
"8fhc99": "Um espaço de trabalho conectado",
diff --git a/docs/messages/zh.json b/docs/messages/zh.json
index 8fc4c554b..f107965c1 100644
--- a/docs/messages/zh.json
+++ b/docs/messages/zh.json
@@ -260,8 +260,6 @@
"4kz8UK": "通过的 Core Web Vitals",
"k6I8wU": "在线演示",
"_KlgcS": "7 天免费试用,可随时取消。",
- "_6_sPX": "文档",
- "YHpxa5": "赞助商",
"AyGauy": "登录",
"8HJxXG": "注册",
"Otku29": "关闭主菜单",
@@ -327,6 +325,39 @@
"ghirOh": "DPA",
"u9xEkD": "© {year} Rybbit。保留所有权利。",
"hkJfuy": "由青蛙用 ❤️ 制作",
+ "5XUZRZ": "流量、来源与实时洞察",
+ "ry1eVy": "观看真实用户会话",
+ "90Fubr": "捕获 JavaScript 错误",
+ "IjloO4": "查看用户在哪里流失",
+ "dvrL1q": "追踪真正重要的转化",
+ "ibkCw8": "衡量回访访客",
+ "BBTx1L": "了解访客如何浏览您的网站",
+ "x3hviT": "识别用户及其属性",
+ "fqV2q2": "追踪任何您关心的操作",
+ "7JQj0y": "浏览单个访问",
+ "PW1xnM": "监控网站性能",
+ "X-rPk_": "按使用场景",
+ "Alc97V": "SaaS",
+ "VWP8tD": "初创公司",
+ "M3zU1C": "电商",
+ "TzhzIH": "创作者",
+ "aMWgjX": "开发者",
+ "qnQu9D": "代理机构",
+ "oxaO4Q": "欧洲企业",
+ "gnfbRO": "对比 Google Analytics",
+ "xHzypf": "对比 Plausible",
+ "12zwOq": "对比 PostHog",
+ "qbewDZ": "对比 Matomo",
+ "EKtClK": "快速上手",
+ "KeO1lq": "自托管",
+ "FBj3zr": "路线图",
+ "-FjR0V": "免费工具",
+ "YHpxa5": "赞助商",
+ "asqGnV": "解决方案",
+ "_6_sPX": "文档",
+ "6i7R4y": "全部功能",
+ "aOrcvK": "全部对比",
+ "Y26fp-": "一段脚本,尽揽一切",
"4U5kPn": "欧盟托管云服务",
"lqwcC0": "理解",
"8KOs6d": "几分钟内完成部署",
@@ -335,7 +366,6 @@
"67KJ1V": "衡量",
"0sS0Yo": "API 与数据导出",
"eRzcbw": "保护隐私",
- "KeO1lq": "自托管",
"rCSmI9": "开源",
"gpZ2SY": "深受全球 10,000+ 家组织信赖",
"8fhc99": "一体化协作空间",
diff --git a/docs/package-lock.json b/docs/package-lock.json
index 8273af89b..789974dba 100644
--- a/docs/package-lock.json
+++ b/docs/package-lock.json
@@ -12,6 +12,7 @@
"@calcom/embed-react": "^1.5.3",
"@icons-pack/react-simple-icons": "^13.11.1",
"@radix-ui/react-accordion": "^1.2.14",
+ "@radix-ui/react-navigation-menu": "^1.2.18",
"@radix-ui/react-slider": "^1.4.1",
"@types/luxon": "^3.7.2",
"boring-avatars": "^2.0.4",
@@ -2582,25 +2583,145 @@
}
},
"node_modules/@radix-ui/react-navigation-menu": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.16.tgz",
- "integrity": "sha512-nJ0SkrSQgudyYhMiYeHA1ayLVuduEJCFLan1RZZN7c9kqzzCFLaU9kuy81uNtqzweM9YaQPgWzxi9MwQ9jZ04g==",
+ "version": "1.2.18",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.18.tgz",
+ "integrity": "sha512-K9HiuxZ6xCwSaHcIuUpxyhy4w5gpwzWjh9dHTSbMN3Ix4qAyVObS9RlU3zMycb0PO3v9Tpk0BXMwWvXOUbVXew==",
"license": "MIT",
"dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-collection": "1.1.10",
+ "@radix-ui/primitive": "1.1.5",
+ "@radix-ui/react-collection": "1.1.12",
"@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
+ "@radix-ui/react-context": "1.2.0",
"@radix-ui/react-direction": "1.1.2",
- "@radix-ui/react-dismissable-layer": "1.1.13",
+ "@radix-ui/react-dismissable-layer": "1.1.15",
"@radix-ui/react-id": "1.1.2",
- "@radix-ui/react-presence": "1.1.6",
- "@radix-ui/react-primitive": "2.1.6",
+ "@radix-ui/react-presence": "1.1.7",
+ "@radix-ui/react-primitive": "2.1.7",
"@radix-ui/react-use-callback-ref": "1.1.2",
"@radix-ui/react-use-controllable-state": "1.2.3",
"@radix-ui/react-use-layout-effect": "1.1.2",
"@radix-ui/react-use-previous": "1.1.2",
- "@radix-ui/react-visually-hidden": "1.2.6"
+ "@radix-ui/react-visually-hidden": "1.2.7"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/primitive": {
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.5.tgz",
+ "integrity": "sha512-d86WIWFYNtGA0H/d8exstrTRTp7eWJYlYJbtNofxr/3ljupZYn6EFDG/Qgu/0Kc8v7yMUxySagqJsL1+PdYjWg==",
+ "license": "MIT"
+ },
+ "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-collection": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.12.tgz",
+ "integrity": "sha512-nb67INpE0IahJKN7EYPp9m9YGwYeKlnzxT3MwXVkgCskaSJia97kG4T0ywpjNUSSnoJk/uvk12V8vbrEHEj+/Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "1.1.3",
+ "@radix-ui/react-context": "1.2.0",
+ "@radix-ui/react-primitive": "2.1.7",
+ "@radix-ui/react-slot": "1.3.0"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-context": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.2.0.tgz",
+ "integrity": "sha512-fOE+JtN9rygNZkCnHRBEP0TAvLldlhyOxMsbwFvTP4nAs+nBmfnna+o/Zski2wkmY1YMrFC0aSzsHoLY47iLrg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-dismissable-layer": {
+ "version": "1.1.15",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.15.tgz",
+ "integrity": "sha512-b0XaRlzn2QKuo10XyNgi2DAJDf5XC9d1nD3FJcuvCjbR7+4Ad28zmZsLsqx+hvDEzMnRuZaZxZm9gYObV6RmRA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.5",
+ "@radix-ui/react-compose-refs": "1.1.3",
+ "@radix-ui/react-primitive": "2.1.7",
+ "@radix-ui/react-use-callback-ref": "1.1.2",
+ "@radix-ui/react-use-effect-event": "0.0.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-presence": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.7.tgz",
+ "integrity": "sha512-zBZ4QM5XG3JRanDmqXYf3MD6th4AFXFmgU6KNMFzUaV6F3uw9I5/zjMUvFriSEn5ewo1nxuibvyxJdmLlDcslA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-layout-effect": "1.1.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-primitive": {
+ "version": "2.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.7.tgz",
+ "integrity": "sha512-bC3NiwsprbxKjuon9l7X6BUTw7FPVzEYaL92MPEY5SCd/9hUTPXVFtVwRix7778wtRsVao+zE062gL79FZleeQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-slot": "1.3.0"
},
"peerDependencies": {
"@types/react": "*",
@@ -3036,12 +3157,35 @@
}
},
"node_modules/@radix-ui/react-visually-hidden": {
- "version": "1.2.6",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.6.tgz",
- "integrity": "sha512-jCE0WljWifTI4niIMCll06kGpsJTAPiZVU9H4WR1N6qW7At9ystHbN7dDB+we2xH535roFHj7qKS+RGj0FMDWQ==",
+ "version": "1.2.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.7.tgz",
+ "integrity": "sha512-1wNZBggTDK3GRuuQ6nP4k2yi7a6l7I5qbMPbZcRsrGsGVead/f/d5FhEzUvqFs0bcrDLx7n1zKQ3JvLR6whaaw==",
"license": "MIT",
"dependencies": {
- "@radix-ui/react-primitive": "2.1.6"
+ "@radix-ui/react-primitive": "2.1.7"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive": {
+ "version": "2.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.7.tgz",
+ "integrity": "sha512-bC3NiwsprbxKjuon9l7X6BUTw7FPVzEYaL92MPEY5SCd/9hUTPXVFtVwRix7778wtRsVao+zE062gL79FZleeQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-slot": "1.3.0"
},
"peerDependencies": {
"@types/react": "*",
diff --git a/docs/package.json b/docs/package.json
index e35dc6856..2b16d40d7 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -13,6 +13,7 @@
"@calcom/embed-react": "^1.5.3",
"@icons-pack/react-simple-icons": "^13.11.1",
"@radix-ui/react-accordion": "^1.2.14",
+ "@radix-ui/react-navigation-menu": "^1.2.18",
"@radix-ui/react-slider": "^1.4.1",
"@types/luxon": "^3.7.2",
"boring-avatars": "^2.0.4",
diff --git a/docs/src/components/CustomHeader.tsx b/docs/src/components/CustomHeader.tsx
index 360c81ac4..73c8d56d6 100644
--- a/docs/src/components/CustomHeader.tsx
+++ b/docs/src/components/CustomHeader.tsx
@@ -1,6 +1,8 @@
"use client";
import { AppLink } from "@/components/AppLink";
+import { DesktopNav } from "@/components/header/DesktopNav";
+import { MobileNav } from "@/components/header/MobileNav";
import { ThemeSwitcher } from "@/components/ThemeSwitcher";
import { trackAdEvent } from "@/lib/trackAdEvent";
import { Menu, X } from "lucide-react";
@@ -13,13 +15,6 @@ export function CustomHeader() {
const t = useExtracted();
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
- const navItems = [
- { href: "/pricing", label: t("Pricing") },
- { href: "/features", label: t("Features") },
- { href: "/docs", label: t("Docs") },
- { href: "/sponsors", label: t("Sponsors") },
- ];
-
return (
<header className="sticky top-0 z-50 w-full border-b border-neutral-200 bg-white/95 backdrop-blur-sm dark:border-neutral-800 dark:bg-neutral-950/95">
<nav
@@ -42,19 +37,9 @@ export function CustomHeader() {
/>
</Link>
- <div className="hidden items-center md:flex">
- {navItems.map((item) => (
- <Link
- key={item.href}
- href={item.href}
- className="rounded-md px-2.5 py-1.5 text-sm font-medium text-neutral-600 transition-colors hover:bg-neutral-100 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 dark:text-neutral-400 dark:hover:bg-neutral-900 dark:hover:text-white"
- >
- {item.label}
- </Link>
- ))}
- </div>
+ <DesktopNav />
- <div className="hidden items-center gap-2 md:flex">
+ <div className="hidden items-center gap-2 lg:flex">
<ThemeSwitcher />
<AppLink
href="https://app.rybbit.io"
@@ -78,7 +63,7 @@ export function CustomHeader() {
<button
type="button"
- className="inline-flex size-10 items-center justify-center rounded-md text-neutral-600 transition-colors hover:bg-neutral-100 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 dark:text-neutral-400 dark:hover:bg-neutral-900 dark:hover:text-white md:hidden"
+ className="inline-flex size-10 items-center justify-center rounded-md text-neutral-600 transition-colors hover:bg-neutral-100 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 dark:text-neutral-400 dark:hover:bg-neutral-900 dark:hover:text-white lg:hidden"
onClick={() => setMobileMenuOpen((open) => !open)}
aria-expanded={mobileMenuOpen}
aria-controls="mobile-navigation"
@@ -88,54 +73,7 @@ export function CustomHeader() {
</button>
</nav>
- {mobileMenuOpen && (
- <div id="mobile-navigation" className="border-t border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-950 md:hidden">
- <div className="mx-auto max-w-[1200px] border-x border-neutral-200 px-5 py-4 dark:border-neutral-800 sm:px-8">
- <div className="grid gap-1">
- {navItems.map((item) => (
- <Link
- key={item.href}
- href={item.href}
- className="rounded-md px-3 py-3 text-base font-medium text-neutral-700 transition-colors hover:bg-neutral-100 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 dark:text-neutral-300 dark:hover:bg-neutral-900 dark:hover:text-white"
- onClick={() => setMobileMenuOpen(false)}
- >
- {item.label}
- </Link>
- ))}
- </div>
-
- <div className="mt-4 flex items-center justify-between border-t border-neutral-200 pt-4 dark:border-neutral-800">
- <ThemeSwitcher />
- <div className="flex items-center gap-2">
- <AppLink
- href="https://app.rybbit.io"
- target="_blank"
- rel="noopener noreferrer"
- onClick={() => {
- trackAdEvent("login", { location: "header" });
- setMobileMenuOpen(false);
- }}
- className="inline-flex h-10 items-center justify-center rounded-md border border-neutral-300 px-4 text-sm font-medium text-neutral-900 dark:border-neutral-700 dark:text-white"
- >
- {t("Login")}
- </AppLink>
- <AppLink
- href="https://app.rybbit.io/signup"
- target="_blank"
- rel="noopener noreferrer"
- onClick={() => {
- trackAdEvent("signup", { location: "header" });
- setMobileMenuOpen(false);
- }}
- className="inline-flex h-10 items-center justify-center rounded-md bg-emerald-600 px-4 text-sm font-medium text-white"
- >
- {t("Sign up")}
- </AppLink>
- </div>
- </div>
- </div>
- </div>
- )}
+ {mobileMenuOpen && <MobileNav onNavigate={() => setMobileMenuOpen(false)} />}
</header>
);
}
diff --git a/docs/src/components/GitHubStarButton.tsx b/docs/src/components/GitHubStarButton.tsx
index 770f55bc7..8808901cc 100644
--- a/docs/src/components/GitHubStarButton.tsx
+++ b/docs/src/components/GitHubStarButton.tsx
@@ -28,19 +28,18 @@ export function GitHubStarButton() {
onClick={() => trackAdEvent("github")}
className="inline-flex items-center gap-2 rounded-md border border-neutral-300 px-3 py-2 text-xs font-medium text-neutral-700 transition-colors duration-200 hover:bg-neutral-100 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-900 dark:hover:text-white"
>
- <svg className="size-3.5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
- <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.3.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>
- <span>Open source on GitHub</span>
- <span className="h-3.5 w-px bg-neutral-300 dark:bg-neutral-700" aria-hidden="true" />
- <span className="flex min-w-10 items-center justify-end gap-1 tabular-nums">
- <Star className="size-3 fill-current text-amber-500 dark:text-amber-400" aria-hidden="true" />
- {isLoading ? (
- <span className="h-3 w-7 animate-pulse rounded-sm bg-neutral-300 dark:bg-neutral-700" />
- ) : (
- starCount && <span>{starCount}</span>
- )}
- </span>
+ <svg className="size-3.5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
+ <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.3.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>
+ {/* <span className="h-3.5 w-px bg-neutral-300 dark:bg-neutral-700" aria-hidden="true" /> */}
+ <span className="flex min-w-10 items-center justify-end gap-1 tabular-nums">
+ <Star className="size-3 fill-current text-amber-500 dark:text-amber-400" aria-hidden="true" />
+ {isLoading ? (
+ <span className="h-3 w-7 animate-pulse rounded-sm bg-neutral-300 dark:bg-neutral-700" />
+ ) : (
+ starCount && <span>{starCount}</span>
+ )}
+ </span>
</a>
);
}
diff --git a/docs/src/components/HeroSection.tsx b/docs/src/components/HeroSection.tsx
index c37361846..9916c17aa 100644
--- a/docs/src/components/HeroSection.tsx
+++ b/docs/src/components/HeroSection.tsx
@@ -31,12 +31,7 @@ interface HeroSectionProps {
showGitHubStar?: boolean;
}
-export function HeroSection({
- title,
- subtitle,
- showEUFlag = true,
- showGitHubStar = true,
-}: HeroSectionProps) {
+export function HeroSection({ title, subtitle, showEUFlag = true, showGitHubStar = true }: HeroSectionProps) {
const t = useExtracted();
return (
@@ -117,7 +112,12 @@ export function HeroSection({
viewBox="0 0 8 8"
className="size-1.5 opacity-0 transition-opacity duration-150 group-hover/lights:opacity-100 motion-reduce:transition-none"
>
- <path d="M2.2 2.2l3.6 3.6M5.8 2.2L2.2 5.8" stroke="#8c1a10" strokeWidth="1.1" strokeLinecap="round" />
+ <path
+ d="M2.2 2.2l3.6 3.6M5.8 2.2L2.2 5.8"
+ stroke="#8c1a10"
+ strokeWidth="1.1"
+ strokeLinecap="round"
+ />
</svg>
</span>
<span className="flex size-2.5 items-center justify-center rounded-full bg-[#febc2e]">
@@ -145,22 +145,25 @@ export function HeroSection({
>
demo.rybbit.com
</a>
- <div className="flex items-center justify-self-end gap-1.5 text-xs text-neutral-500 dark:text-neutral-400">
+ {/* <div className="flex items-center justify-self-end gap-1.5 text-xs text-neutral-500 dark:text-neutral-400">
<span className="relative flex size-2" aria-hidden="true">
<span className="absolute inline-flex size-full animate-ping rounded-full bg-emerald-500 opacity-60 motion-reduce:hidden" />
<span className="relative inline-flex size-2 rounded-full bg-emerald-500" />
</span>
<span className="hidden sm:inline">{t("Live")}</span>
- </div>
+ </div> */}
+ </div>
+ {/* md+: render the demo at a 125% viewport and scale to 0.8 so it
+ shows its full desktop layout at preview size. Keep 1:1 on
+ mobile — a scaled viewport would land between the demo's
+ responsive breakpoints. The two values must stay reciprocal. */}
+ <div className="h-[600px] min-w-0 max-w-full overflow-hidden md:h-[700px] lg:h-[750px]">
+ <iframe
+ src="https://demo.rybbit.com/81/main"
+ className="block h-full w-full border-none md:h-[117.6%] md:w-[117.6%] md:origin-top-left md:scale-[0.85]"
+ title="Rybbit Analytics Demo"
+ />
</div>
- <iframe
- src="https://demo.rybbit.com/81/main"
- width="100%"
- height="750"
- className="block h-[600px] min-w-0 max-w-full md:h-[700px] lg:h-[750px]"
- style={{ border: "none" }}
- title="Rybbit Analytics Demo"
- />
</div>
</div>
</div>
diff --git a/docs/src/components/header/DesktopNav.tsx b/docs/src/components/header/DesktopNav.tsx
new file mode 100644
index 000000000..a1340974d
--- /dev/null
+++ b/docs/src/components/header/DesktopNav.tsx
@@ -0,0 +1,220 @@
+"use client";
+
+import {
+ NavigationMenu,
+ NavigationMenuContent,
+ NavigationMenuItem,
+ NavigationMenuLink,
+ NavigationMenuList,
+ NavigationMenuTrigger,
+ navigationMenuTriggerStyle,
+} from "@/components/ui/navigation-menu";
+import { ArrowRight, ArrowUpRight, Star } from "lucide-react";
+import Image from "next/image";
+import Link from "next/link";
+import { useHeaderNav, type HeaderNavGroup, type HeaderNavLink } from "./HeaderNavData";
+
+/** Crosshair tick, same mark as GridCrosses on the landing sections. */
+function SeamCross({ className }: { className?: string }) {
+ return (
+ <svg
+ width="11"
+ height="11"
+ viewBox="0 0 11 11"
+ fill="none"
+ aria-hidden="true"
+ className={`pointer-events-none absolute z-10 -translate-x-1/2 -translate-y-1/2 text-neutral-400 dark:text-neutral-600 ${className ?? ""}`}
+ >
+ <path d="M5.5 0V11M0 5.5H11" stroke="currentColor" strokeWidth="1" />
+ </svg>
+ );
+}
+
+const seamGrid = "grid gap-px bg-neutral-200 dark:bg-neutral-800";
+const seamCell = "bg-white dark:bg-neutral-950";
+
+function FeatureCell({ link }: { link: HeaderNavLink }) {
+ const Icon = link.icon;
+ return (
+ <NavigationMenuLink asChild>
+ <Link
+ href={link.href}
+ className={`${seamCell} group flex h-full flex-col p-3.5 transition-colors hover:bg-neutral-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-neutral-500 dark:hover:bg-neutral-900`}
+ >
+ {Icon && (
+ <Icon
+ className="mb-2.5 size-4 text-neutral-500 transition-colors group-hover:text-emerald-600 dark:text-neutral-400 dark:group-hover:text-emerald-500"
+ aria-hidden="true"
+ />
+ )}
+ <span className="text-sm font-semibold tracking-tight text-neutral-900 dark:text-white">{link.label}</span>
+ {link.description && (
+ <span className="mt-1 text-xs leading-snug text-neutral-600 dark:text-neutral-400">{link.description}</span>
+ )}
+ </Link>
+ </NavigationMenuLink>
+ );
+}
+
+function PlainLinkList({ group }: { group: HeaderNavGroup }) {
+ return (
+ <>
+ <p className="px-2.5 pb-1.5 pt-1 text-xs font-medium text-neutral-500 dark:text-neutral-400">{group.label}</p>
+ <ul>
+ {group.links.map((link) => (
+ <li key={link.href}>
+ <NavigationMenuLink asChild>
+ <Link
+ href={link.href}
+ className="block rounded-sm px-2.5 py-1.5 text-sm font-medium text-neutral-700 transition-colors hover:bg-neutral-100 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-neutral-500 dark:text-neutral-300 dark:hover:bg-neutral-900 dark:hover:text-white"
+ >
+ {link.label}
+ </Link>
+ </NavigationMenuLink>
+ </li>
+ ))}
+ </ul>
+ </>
+ );
+}
+
+/** The single emerald action a panel is allowed: its aggregate link. */
+function AggregateLink({ href, label, className }: { href: string; label: string; className?: string }) {
+ return (
+ <NavigationMenuLink asChild>
+ <Link
+ href={href}
+ className={`group/all flex items-center gap-1 text-sm font-medium text-emerald-700 transition-colors hover:text-emerald-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-emerald-500 dark:text-emerald-500 dark:hover:text-emerald-400 ${className ?? ""}`}
+ >
+ {label}
+ <ArrowRight
+ className="size-3.5 transition-transform group-hover/all:translate-x-0.5 motion-reduce:transition-none"
+ aria-hidden="true"
+ />
+ </Link>
+ </NavigationMenuLink>
+ );
+}
+
+export function DesktopNav() {
+ const nav = useHeaderNav();
+
+ return (
+ <NavigationMenu className="hidden lg:flex">
+ <NavigationMenuList>
+ <NavigationMenuItem>
+ <NavigationMenuTrigger>{nav.labels.features}</NavigationMenuTrigger>
+ <NavigationMenuContent>
+ <div className="relative w-[700px]">
+ {/* Legend strip: the one-script promise + the aggregate action */}
+ <div className="flex h-10 items-center justify-between border-b border-neutral-200 px-3.5 dark:border-neutral-800">
+ <p className="text-xs text-neutral-500 dark:text-neutral-400">{nav.labels.oneScript}</p>
+ <AggregateLink href="/features" label={nav.labels.allFeatures} />
+ </div>
+ {/* Crosshairs where the column seams meet the legend seam */}
+ <SeamCross className="left-1/3 top-10" />
+ <SeamCross className="left-2/3 top-10" />
+ <ul className={`${seamGrid} grid-cols-3`}>
+ {nav.features.map((link) => (
+ <li key={link.href} className="h-full">
+ <FeatureCell link={link} />
+ </li>
+ ))}
+ <li aria-hidden="true" className={`${seamCell} relative`}>
+ <Image
+ src="/rybbit/frog_black.svg"
+ alt=""
+ width={44}
+ height={44}
+ className="absolute bottom-3 right-3 opacity-[0.08] dark:invert"
+ />
+ </li>
+ </ul>
+ </div>
+ </NavigationMenuContent>
+ </NavigationMenuItem>
+
+ <NavigationMenuItem>
+ <NavigationMenuTrigger>{nav.labels.solutions}</NavigationMenuTrigger>
+ <NavigationMenuContent>
+ <div className={`${seamGrid} w-[460px] grid-cols-2`}>
+ <div className={`${seamCell} p-2`}>
+ <PlainLinkList group={nav.useCases} />
+ </div>
+ <div className={`${seamCell} flex flex-col p-2`}>
+ <PlainLinkList group={nav.compare} />
+ <AggregateLink
+ href="/compare"
+ label={nav.labels.allComparisons}
+ className="mt-auto px-2.5 pb-1.5 pt-3"
+ />
+ </div>
+ </div>
+ </NavigationMenuContent>
+ </NavigationMenuItem>
+
+ <NavigationMenuItem>
+ <NavigationMenuTrigger>{nav.labels.resources}</NavigationMenuTrigger>
+ <NavigationMenuContent>
+ <ul className={`${seamGrid} w-[440px] grid-cols-2`}>
+ {nav.resources.map((link) => {
+ const Icon = link.icon;
+ return (
+ <li key={link.href} className="h-full">
+ <NavigationMenuLink asChild>
+ <Link
+ href={link.href}
+ className={`${seamCell} group flex h-full items-center gap-2.5 p-3 text-sm font-medium text-neutral-700 transition-colors hover:bg-neutral-50 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-neutral-500 dark:text-neutral-300 dark:hover:bg-neutral-900 dark:hover:text-white`}
+ >
+ {Icon && (
+ <Icon
+ className="size-4 shrink-0 text-neutral-500 transition-colors group-hover:text-emerald-600 dark:text-neutral-400 dark:group-hover:text-emerald-500"
+ aria-hidden="true"
+ />
+ )}
+ {link.label}
+ </Link>
+ </NavigationMenuLink>
+ </li>
+ );
+ })}
+ <li className="h-full">
+ <NavigationMenuLink asChild>
+ <a
+ href="https://github.com/rybbit-io/rybbit"
+ target="_blank"
+ rel="noopener noreferrer"
+ className={`${seamCell} group flex h-full items-center gap-2.5 p-3 text-sm font-medium text-neutral-700 transition-colors hover:bg-neutral-50 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-neutral-500 dark:text-neutral-300 dark:hover:bg-neutral-900 dark:hover:text-white`}
+ >
+ <Star
+ className="size-4 shrink-0 text-neutral-500 transition-colors group-hover:text-emerald-600 dark:text-neutral-400 dark:group-hover:text-emerald-500"
+ aria-hidden="true"
+ />
+ GitHub
+ <ArrowUpRight className="ml-auto size-3.5 text-neutral-400 dark:text-neutral-500" aria-hidden="true" />
+ </a>
+ </NavigationMenuLink>
+ </li>
+ </ul>
+ </NavigationMenuContent>
+ </NavigationMenuItem>
+
+ <NavigationMenuItem>
+ <NavigationMenuLink asChild>
+ <Link href="/pricing" className={navigationMenuTriggerStyle}>
+ {nav.labels.pricing}
+ </Link>
+ </NavigationMenuLink>
+ </NavigationMenuItem>
+
+ <NavigationMenuItem>
+ <NavigationMenuLink asChild>
+ <Link href="/docs" className={navigationMenuTriggerStyle}>
+ {nav.labels.docs}
+ </Link>
+ </NavigationMenuLink>
+ </NavigationMenuItem>
+ </NavigationMenuList>
+ </NavigationMenu>
+ );
+}
diff --git a/docs/src/components/header/HeaderNavData.tsx b/docs/src/components/header/HeaderNavData.tsx
new file mode 100644
index 000000000..910dfeaf2
--- /dev/null
+++ b/docs/src/components/header/HeaderNavData.tsx
@@ -0,0 +1,159 @@
+"use client";
+
+import { useExtracted } from "next-intl";
+import {
+ AlertTriangle,
+ BookOpen,
+ Building2,
+ Funnel,
+ Gauge,
+ Heart,
+ Map,
+ MousePointerClick,
+ Newspaper,
+ Rewind,
+ Route,
+ Server,
+ Target,
+ TrendingUp,
+ UserCheck,
+ Users,
+ Video,
+ Wrench,
+} from "lucide-react";
+import type { ComponentType } from "react";
+
+export interface HeaderNavLink {
+ href: string;
+ label: string;
+ description?: string;
+ icon?: ComponentType<{ className?: string }>;
+}
+
+export interface HeaderNavGroup {
+ label: string;
+ links: HeaderNavLink[];
+}
+
+export function useHeaderNav() {
+ const t = useExtracted();
+
+ const features: HeaderNavLink[] = [
+ {
+ href: "/features/web-analytics",
+ label: t("Web Analytics"),
+ description: t("Traffic, sources, and realtime insights"),
+ icon: TrendingUp,
+ },
+ {
+ href: "/features/session-replay",
+ label: t("Session Replay"),
+ description: t("Watch real user sessions"),
+ icon: Video,
+ },
+ {
+ href: "/features/error-tracking",
+ label: t("Error Tracking"),
+ description: t("Catch JavaScript errors"),
+ icon: AlertTriangle,
+ },
+ {
+ href: "/features/funnels",
+ label: t("Funnels"),
+ description: t("See where users drop off"),
+ icon: Funnel,
+ },
+ {
+ href: "/features/goals",
+ label: t("Goals"),
+ description: t("Track the conversions that matter"),
+ icon: Target,
+ },
+ {
+ href: "/features/retention",
+ label: t("Retention"),
+ description: t("Measure returning visitors"),
+ icon: UserCheck,
+ },
+ {
+ href: "/features/user-journeys",
+ label: t("User Journeys"),
+ description: t("How visitors move through your site"),
+ icon: Route,
+ },
+ {
+ href: "/features/user-profiles",
+ label: t("User Profiles"),
+ description: t("Identify users and their traits"),
+ icon: Users,
+ },
+ {
+ href: "/features/custom-events",
+ label: t("Custom Events"),
+ description: t("Track any action you care about"),
+ icon: MousePointerClick,
+ },
+ {
+ href: "/features/sessions",
+ label: t("Sessions"),
+ description: t("Browse individual visits"),
+ icon: Rewind,
+ },
+ {
+ href: "/features/web-vitals",
+ label: t("Web Vitals"),
+ description: t("Monitor site performance"),
+ icon: Gauge,
+ },
+ ];
+
+ const useCases: HeaderNavGroup = {
+ label: t("By use case"),
+ links: [
+ { href: "/for-saas", label: t("SaaS") },
+ { href: "/for-startups", label: t("Startups") },
+ { href: "/for-ecommerce", label: t("Ecommerce") },
+ { href: "/for-creators", label: t("Creators") },
+ { href: "/for-developers", label: t("Developers") },
+ { href: "/for-agencies", label: t("Agencies") },
+ { href: "/for-european-companies", label: t("European companies") },
+ ],
+ };
+
+ const compare: HeaderNavGroup = {
+ label: t("Compare"),
+ links: [
+ { href: "/compare/google-analytics", label: t("vs. Google Analytics") },
+ { href: "/compare/plausible", label: t("vs. Plausible") },
+ { href: "/compare/posthog", label: t("vs. PostHog") },
+ { href: "/compare/matomo", label: t("vs. Matomo") },
+ ],
+ };
+
+ const resources: HeaderNavLink[] = [
+ { href: "/docs", label: t("Getting started"), icon: BookOpen },
+ { href: "/docs/self-hosting", label: t("Self-hosting"), icon: Server },
+ { href: "/docs/roadmap", label: t("Roadmap"), icon: Map },
+ { href: "/blog", label: t("Blog"), icon: Newspaper },
+ { href: "/tools", label: t("Free tools"), icon: Wrench },
+ { href: "/enterprise", label: t("Enterprise"), icon: Building2 },
+ { href: "/sponsors", label: t("Sponsors"), icon: Heart },
+ ];
+
+ return {
+ labels: {
+ features: t("Features"),
+ solutions: t("Solutions"),
+ resources: t("Resources"),
+ pricing: t("Pricing"),
+ docs: t("Docs"),
+ allFeatures: t("All features"),
+ allComparisons: t("All comparisons"),
+ oneScript: t("Everything one script captures"),
+ },
+ features,
+ useCases,
+ compare,
+ resources,
+ };
+}
diff --git a/docs/src/components/header/MobileNav.tsx b/docs/src/components/header/MobileNav.tsx
new file mode 100644
index 000000000..d54d03aa7
--- /dev/null
+++ b/docs/src/components/header/MobileNav.tsx
@@ -0,0 +1,123 @@
+"use client";
+
+import { AppLink } from "@/components/AppLink";
+import { ThemeSwitcher } from "@/components/ThemeSwitcher";
+import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion";
+import { trackAdEvent } from "@/lib/trackAdEvent";
+import { useExtracted } from "next-intl";
+import Link from "next/link";
+import { useHeaderNav, type HeaderNavLink } from "./HeaderNavData";
+
+interface MobileNavProps {
+ onNavigate: () => void;
+}
+
+function MobileLink({ link, onNavigate }: { link: HeaderNavLink; onNavigate: () => void }) {
+ return (
+ <Link
+ href={link.href}
+ className="block rounded-md px-3 py-2 text-sm font-medium text-neutral-600 transition-colors hover:bg-neutral-100 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 dark:text-neutral-400 dark:hover:bg-neutral-900 dark:hover:text-white"
+ onClick={onNavigate}
+ >
+ {link.label}
+ </Link>
+ );
+}
+
+export function MobileNav({ onNavigate }: MobileNavProps) {
+ const t = useExtracted();
+ const nav = useHeaderNav();
+
+ const sections = [
+ {
+ value: "features",
+ label: nav.labels.features,
+ links: [...nav.features, { href: "/features", label: nav.labels.allFeatures }],
+ },
+ {
+ value: "solutions",
+ label: nav.labels.solutions,
+ links: [
+ ...nav.useCases.links,
+ ...nav.compare.links,
+ { href: "/compare", label: nav.labels.allComparisons },
+ ],
+ },
+ {
+ value: "resources",
+ label: nav.labels.resources,
+ links: nav.resources,
+ },
+ ];
+
+ return (
+ <div
+ id="mobile-navigation"
+ className="max-h-[calc(100dvh-3.5rem)] overflow-y-auto border-t border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-950 lg:hidden"
+ >
+ <div className="mx-auto max-w-[1200px] border-x border-neutral-200 px-5 py-2 dark:border-neutral-800 sm:px-8">
+ <Accordion type="multiple">
+ {sections.map((section) => (
+ <AccordionItem key={section.value} value={section.value} className="border-neutral-200 dark:border-neutral-800">
+ <AccordionTrigger className="px-3 py-3 text-base font-medium text-neutral-700 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 dark:text-neutral-300 dark:hover:text-white">
+ {section.label}
+ </AccordionTrigger>
+ <AccordionContent className="pb-2">
+ {section.links.map((link) => (
+ <MobileLink key={link.href} link={link} onNavigate={onNavigate} />
+ ))}
+ </AccordionContent>
+ </AccordionItem>
+ ))}
+ </Accordion>
+
+ <div className="grid gap-1 py-2">
+ <Link
+ href="/pricing"
+ className="rounded-md px-3 py-3 text-base font-medium text-neutral-700 transition-colors hover:bg-neutral-100 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 dark:text-neutral-300 dark:hover:bg-neutral-900 dark:hover:text-white"
+ onClick={onNavigate}
+ >
+ {nav.labels.pricing}
+ </Link>
+ <Link
+ href="/docs"
+ className="rounded-md px-3 py-3 text-base font-medium text-neutral-700 transition-colors hover:bg-neutral-100 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 dark:text-neutral-300 dark:hover:bg-neutral-900 dark:hover:text-white"
+ onClick={onNavigate}
+ >
+ {nav.labels.docs}
+ </Link>
+ </div>
+
+ <div className="flex items-center justify-between border-t border-neutral-200 py-4 dark:border-neutral-800">
+ <ThemeSwitcher />
+ <div className="flex items-center gap-2">
+ <AppLink
+ href="https://app.rybbit.io"
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() => {
+ trackAdEvent("login", { location: "header" });
+ onNavigate();
+ }}
+ className="inline-flex h-10 items-center justify-center rounded-md border border-neutral-300 px-4 text-sm font-medium text-neutral-900 dark:border-neutral-700 dark:text-white"
+ >
+ {t("Login")}
+ </AppLink>
+ <AppLink
+ href="https://app.rybbit.io/signup"
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() => {
+ trackAdEvent("signup", { location: "header" });
+ onNavigate();
+ }}
+ className="inline-flex h-10 items-center justify-center rounded-md bg-emerald-600 px-4 text-sm font-medium text-white"
+ >
+ {t("Sign up")}
+ </AppLink>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/docs/src/components/ui/navigation-menu.tsx b/docs/src/components/ui/navigation-menu.tsx
new file mode 100644
index 000000000..9e7752326
--- /dev/null
+++ b/docs/src/components/ui/navigation-menu.tsx
@@ -0,0 +1,102 @@
+"use client"
+
+import * as React from "react"
+import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu"
+import { ChevronDown } from "lucide-react"
+
+import { cn } from "@/lib/utils"
+
+const NavigationMenu = React.forwardRef<
+ React.ElementRef<typeof NavigationMenuPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>
+>(({ className, children, ...props }, ref) => (
+ <NavigationMenuPrimitive.Root
+ ref={ref}
+ className={cn("relative z-10 flex items-center justify-center", className)}
+ {...props}
+ >
+ {children}
+ <NavigationMenuViewport />
+ </NavigationMenuPrimitive.Root>
+))
+NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName
+
+const NavigationMenuList = React.forwardRef<
+ React.ElementRef<typeof NavigationMenuPrimitive.List>,
+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>
+>(({ className, ...props }, ref) => (
+ <NavigationMenuPrimitive.List
+ ref={ref}
+ className={cn("flex flex-1 list-none items-center justify-center", className)}
+ {...props}
+ />
+))
+NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName
+
+const NavigationMenuItem = NavigationMenuPrimitive.Item
+
+const navigationMenuTriggerStyle =
+ "group inline-flex items-center gap-1 rounded-md px-2.5 py-1.5 text-sm font-medium text-neutral-600 transition-colors hover:bg-neutral-100 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-950 dark:text-neutral-400 dark:hover:bg-neutral-900 dark:hover:text-white dark:data-[state=open]:bg-neutral-900 dark:data-[state=open]:text-white"
+
+const NavigationMenuTrigger = React.forwardRef<
+ React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,
+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>
+>(({ className, children, ...props }, ref) => (
+ <NavigationMenuPrimitive.Trigger
+ ref={ref}
+ className={cn(navigationMenuTriggerStyle, className)}
+ {...props}
+ >
+ {children}
+ <ChevronDown
+ className="size-3.5 transition-transform duration-200 group-data-[state=open]:rotate-180 motion-reduce:transition-none"
+ aria-hidden="true"
+ />
+ </NavigationMenuPrimitive.Trigger>
+))
+NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName
+
+const NavigationMenuContent = React.forwardRef<
+ React.ElementRef<typeof NavigationMenuPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>
+>(({ className, ...props }, ref) => (
+ <NavigationMenuPrimitive.Content
+ ref={ref}
+ className={cn(
+ "left-0 top-0 w-auto data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-4 data-[motion=from-start]:slide-in-from-left-4 data-[motion=to-end]:slide-out-to-right-4 data-[motion=to-start]:slide-out-to-left-4 motion-reduce:data-[motion]:animate-none md:absolute",
+ className
+ )}
+ {...props}
+ />
+))
+NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName
+
+const NavigationMenuLink = NavigationMenuPrimitive.Link
+
+const NavigationMenuViewport = React.forwardRef<
+ React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,
+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>
+>(({ className, ...props }, ref) => (
+ <div className="absolute left-1/2 top-full flex -translate-x-1/2 justify-center">
+ <NavigationMenuPrimitive.Viewport
+ ref={ref}
+ className={cn(
+ "relative mt-2 h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] origin-top overflow-hidden rounded-lg border border-neutral-200 bg-white shadow-lg transition-[width,height] duration-200 ease-out data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95 motion-reduce:transition-none motion-reduce:data-[state]:animate-none dark:border-neutral-800 dark:bg-neutral-950",
+ className
+ )}
+ {...props}
+ />
+ </div>
+))
+NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName
+
+export {
+ NavigationMenu,
+ NavigationMenuContent,
+ NavigationMenuItem,
+ NavigationMenuLink,
+ NavigationMenuList,
+ NavigationMenuTrigger,
+ NavigationMenuViewport,
+ navigationMenuTriggerStyle,
+}