🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
begged for stars
Bill Yangde7c1ae0d6a2
diff --git a/docs/src/app/layout.jsx b/docs/src/app/layout.jsxindex dc6948da2..5069effda 100644--- a/docs/src/app/layout.jsx+++ b/docs/src/app/layout.jsx@@ -1,15 +1,13 @@/* eslint-env node */-import {- Tilt_Warp,-} from "next/font/google"-import Image from 'next/image'-import { Footer, Layout, Navbar } from 'nextra-theme-docs'-import 'nextra-theme-docs/style.css'-import { Head } from 'nextra/components'-import { getPageMap } from 'nextra/page-map'-import './globals.css'-import { SmallLogo } from './components/Logo'-import Link from 'next/link'+import { Tilt_Warp } from "next/font/google";+import Image from "next/image";+import { Footer, Layout, Navbar } from "nextra-theme-docs";+import "nextra-theme-docs/style.css";+import { Head, Banner } from "nextra/components";+import { getPageMap } from "nextra/page-map";+import "./globals.css";+import { SmallLogo } from "./components/Logo";+import Link from "next/link";const tilt_wrap = Tilt_Warp({subsets: ["latin"],@@ -17,25 +15,26 @@ const tilt_wrap = Tilt_Warp({});export const metadata = {- metadataBase: new URL('https://rybbit.io'),+ metadataBase: new URL("https://rybbit.io"),title: {- template: '%s - Rybbit'+ template: "%s - Rybbit",},- description: 'Next-gen, open source, lightweight, cookieless web & product analytics for everyone.',+ description:+ "Next-gen, open source, lightweight, cookieless web & product analytics for everyone.",// description: 'Next-gen, open source, lightweight, cookieless web & product analytics for everyone — GDPR/CCPA compliant.',- applicationName: 'Rybbit',- generator: 'Next.js',+ applicationName: "Rybbit",+ generator: "Next.js",appleWebApp: {- title: 'Rybbit'+ title: "Rybbit",},other: {- 'msapplication-TileImage': '/ms-icon-144x144.png',- 'msapplication-TileColor': '#fff'+ "msapplication-TileImage": "/ms-icon-144x144.png",+ "msapplication-TileColor": "#fff",},twitter: {- site: 'https://rybbit.io'- }-}+ site: "https://rybbit.io",+ },+};function Footer_() {return (@@ -47,54 +46,76 @@ function Footer_() {Copyright {new Date().getFullYear()} © Rybbit.</div><div className="flex gap-4 text-sm">- <Link href="/privacy" className="text-neutral-400 hover:text-white transition-colors">+ <Link+ href="/privacy"+ className="text-neutral-400 hover:text-white transition-colors"+ >Privacy Policy</Link>- <Link href="/contact" className="text-neutral-400 hover:text-white transition-colors">+ <Link+ href="/contact"+ className="text-neutral-400 hover:text-white transition-colors"+ >Contact</Link></div></div></div></div>- )+ );}export default async function RootLayout({ children }) {const navbar = (<Navbarlogo={- <div className={`text-2xl flex items-center gap-1.5 ${tilt_wrap.className}`}>+ <div+ className={`text-2xl flex items-center gap-1.5 ${tilt_wrap.className}`}+ ><Image src="/rybbit.png" alt="Rybbit" width={30} height={30} />rybbit.</div>}chatLink="https://discord.gg/DEhGb4hYBj"projectLink="https://github.com/rybbit-io/rybbit"-- children={<a href="https://app.rybbit.io">- <button className="bg-neutral-800 hover:bg-neutral-700 text-white text-sm font-medium px-3 py-1.5 rounded-md 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">- Login- </button>- </a>}+ children={+ <a href="https://app.rybbit.io">+ <button className="bg-neutral-800 hover:bg-neutral-700 text-white text-sm font-medium px-3 py-1.5 rounded-md 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">+ Login+ </button>+ </a>+ }/>- )- const pageMap = await getPageMap()+ );+ const pageMap = await getPageMap();return (<html lang="en" dir="ltr" suppressHydrationWarning>- <Head color={{- hue: 158,- saturation: 64,- lightness: 51,- }} />- <script- src="https://app.rybbit.io/api/script.js"- site-id="2"- defer+ <Head+ color={{+ hue: 158,+ saturation: 64,+ lightness: 51,+ }}/>+ <script src="https://app.rybbit.io/api/script.js" site-id="2" defer /><body><Layout- // banner={<Banner storageKey="Rybbit">Rybbit Alpha</Banner>}+ banner={+ <div className="text-center text-sm text-neutral-100 pt-2 pb-1 bg-neutral-700/50 flex items-center justify-center gap-2">+ <div className="mb-1">+ 🚀 We just launched! Please star us on Github!{" "}+ </div>+ <a+ class="github-button"+ href="https://github.com/buttons/github-buttons"+ data-color-scheme="no-preference: light; light: light; dark: light;"+ data-show-count="true"+ aria-label="Star buttons/github-buttons on GitHub"+ >+ Star+ </a>+ </div>+ }navbar={navbar}footer={<Footer_ />}editLink="Edit this page on GitHub"@@ -108,7 +129,8 @@ export default async function RootLayout({ children }) {>{children}</Layout>+ <script async defer src="https://buttons.github.io/buttons.js"></script></body></html>- )+ );}