🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Replace PNG logos with SVG logos across multiple components for improved scalability and quality
Bill Yang7bb58515e2df
diff --git a/client/src/app/[site]/main/components/MainSection/MainSection.tsx b/client/src/app/[site]/main/components/MainSection/MainSection.tsxindex f4c5ec94b..cb0ea4fcb 100644--- a/client/src/app/[site]/main/components/MainSection/MainSection.tsx+++ b/client/src/app/[site]/main/components/MainSection/MainSection.tsx@@ -80,7 +80,7 @@ export function MainSection() {tilt_wrap.className)}>- <Image src="/rybbit.png" alt="Rybbit" width={20} height={20} />+ <Image src="/rybbit.svg" alt="Rybbit" width={20} height={20} />rybbit.io</Link></div>diff --git a/client/src/app/[site]/performance/components/PerformanceChart.tsx b/client/src/app/[site]/performance/components/PerformanceChart.tsxindex e10043f08..4c22b4dca 100644--- a/client/src/app/[site]/performance/components/PerformanceChart.tsx+++ b/client/src/app/[site]/performance/components/PerformanceChart.tsx@@ -298,7 +298,7 @@ export function PerformanceChart() {tilt_wrap.className)}>- <Image src="/rybbit.png" alt="Rybbit" width={20} height={20} />+ <Image src="/rybbit.svg" alt="Rybbit" width={20} height={20} />rybbit.io</Link></div>diff --git a/client/src/app/invitation/page.tsx b/client/src/app/invitation/page.tsxindex 0af6d32fa..770b3094f 100644--- a/client/src/app/invitation/page.tsx+++ b/client/src/app/invitation/page.tsx@@ -32,7 +32,7 @@ function AuthComponent() {return (<Card className="w-full max-w-md p-1"><CardHeader>- <Image src="/rybbit.png" alt="Rybbit" width={32} height={32} />+ <Image src="/rybbit.svg" alt="Rybbit" width={32} height={32} /><CardTitle className="text-2xl flex justify-center">Join {organization}</CardTitle>@@ -94,7 +94,7 @@ function AcceptInvitationInner() {return (<Card className="w-full max-w-md"><CardHeader>- <Image src="/rybbit.png" alt="Rybbit" width={32} height={32} />+ <Image src="/rybbit.svg" alt="Rybbit" width={32} height={32} /><CardTitle className="text-2xl flex justify-center">Invitation</CardTitle>diff --git a/client/src/app/login/page.tsx b/client/src/app/login/page.tsxindex f45a541e6..c14a6388b 100644--- a/client/src/app/login/page.tsx+++ b/client/src/app/login/page.tsx@@ -54,7 +54,7 @@ export default function Page() {<div></div><Card className="w-full max-w-sm p-1"><CardHeader>- <Image src="/rybbit.png" alt="Rybbit" width={32} height={32} />+ <Image src="/rybbit.svg" alt="Rybbit" width={32} height={32} /><CardTitle className="text-2xl flex justify-center">Sign in</CardTitle>@@ -111,8 +111,8 @@ export default function Page() {</CardContent></Card><div className="text-xs text-muted-foreground">- <a- href="https://rybbit.io"+ <a+ href="https://rybbit.io"target="_blank"rel="noopener"title="Rybbit - Open Source Privacy-Focused Web Analytics"diff --git a/client/src/app/reset-password/page.tsx b/client/src/app/reset-password/page.tsxindex 6ed59f2e6..9d7f16f8b 100644--- a/client/src/app/reset-password/page.tsx+++ b/client/src/app/reset-password/page.tsx@@ -83,7 +83,7 @@ export default function ResetPasswordPage() {<div className="flex justify-center items-center h-screen w-full p-4"><Card className="w-full max-w-sm p-1"><CardHeader>- <Image src="/rybbit.png" alt="Rybbit" width={32} height={32} />+ <Image src="/rybbit.svg" alt="Rybbit" width={32} height={32} /><CardTitle className="text-2xl flex justify-center">{resetSuccess? "Password Reset Successful"diff --git a/client/src/app/signup/page.tsx b/client/src/app/signup/page.tsxindex aaf0b3f3c..caafb4bfd 100644--- a/client/src/app/signup/page.tsx+++ b/client/src/app/signup/page.tsx@@ -463,7 +463,7 @@ export default function SignupPage() {<div className="flex justify-center items-center h-screen w-full"><Card className="w-full max-w-sm p-1"><CardHeader>- <Image src="/rybbit.png" alt="Rybbit" width={32} height={32} />+ <Image src="/rybbit.svg" alt="Rybbit" width={32} height={32} /><CardTitle className="text-2xl flex justify-center">Sign Up Disabled</CardTitle>@@ -565,8 +565,8 @@ export default function SignupPage() {</div></Card><div className="text-xs text-muted-foreground relative z-10 mt-4">- <a- href="https://rybbit.io"+ <a+ href="https://rybbit.io"target="_blank"rel="noopener"title="Rybbit - Open Source Privacy-Focused Web Analytics"diff --git a/client/src/components/Logo.tsx b/client/src/components/Logo.tsxindex 9ddc0320e..6d2c04b10 100644--- a/client/src/components/Logo.tsx+++ b/client/src/components/Logo.tsx@@ -17,7 +17,7 @@ export function Logo({<divclassName={cn("flex items-center gap-1.5 text-lg", tilt_wrap.className)}>- <Image src="/rybbit.png" alt="Rybbit" width={22} height={22} />+ <Image src="/rybbit.svg" alt="Rybbit" width={22} height={22} />rybbit.</div>);@@ -28,7 +28,7 @@ export function Logo({<divclassName={cn("flex items-center gap-1.5 text-xl", tilt_wrap.className)}>- <Image src="/rybbit.png" alt="Rybbit" width={24} height={24} />+ <Image src="/rybbit.svg" alt="Rybbit" width={24} height={24} />rybbit.</div>);@@ -37,9 +37,12 @@ export function Logo({if (size === "large") {return (<div- className={cn("flex items-center gap-1.5 text-2xl", tilt_wrap.className)}+ className={cn(+ "flex items-center gap-1.5 text-2xl",+ tilt_wrap.className+ )}>- <Image src="/rybbit.png" alt="Rybbit" width={27} height={27} />+ <Image src="/rybbit.svg" alt="Rybbit" width={27} height={27} />rybbit.</div>);@@ -50,7 +53,7 @@ export function Logo({<divclassName={cn("flex items-center gap-2 text-3xl", tilt_wrap.className)}>- <Image src="/rybbit.png" alt="Rybbit" width={34} height={34} />+ <Image src="/rybbit.svg" alt="Rybbit" width={34} height={34} />rybbit.</div>);@@ -61,7 +64,7 @@ export function Logo({<divclassName={cn("flex items-center gap-2 text-4xl", tilt_wrap.className)}>- <Image src="/rybbit.png" alt="Rybbit" width={38} height={38} />+ <Image src="/rybbit.svg" alt="Rybbit" width={38} height={38} />rybbit.</div>);diff --git a/docs/public/rybbit.svg b/docs/public/rybbit.svgnew file mode 100644index 000000000..5715b29bd--- /dev/null+++ b/docs/public/rybbit.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 191.16 144.69"><path fill="#FFF" d="M127.29 118.47c.91-2.62 4.71-7.47 10.12-12.69 6.8-6.56 15.9-13.49 23.29-18.39-9.95 26.6-9.53 39.61 30.46 57.28-8.67.04-34.1 0-43.73 0-7.81-4.95-22.3-19.93-20.13-26.2Z"/><path fill="#FFF" d="M113.68 42.32c8.45 0 14.93-7.08 14.93-15.53 0-6.19-3.36-11.53-9.08-13.9-5.72-2.37-12.52-1.27-16.67 3.32-3.91 4.33-5.68 10.95-3.32 16.67 2.37 5.72 7.95 9.44 14.13 9.44Zm24.03-25.52c15.38.04 48.87 11.91 48.87 18 0 12.63-13.28 34-19.32 39.03 3.1-7.58 6.5-17.77 6.54-26.73-9.85 2.38-21.94 7.12-32.89 14.25-11.78 7.68-22.36 18-28.79 29.71-6.75 12.27-8.49 23.37-5.37 32.95 2.54 7.81 8.48 14.63 16.69 20.66H82.18c-5.46-5.46-9.15-12.24-9.03-23.63.07-7.17 1.64-16.23 6.46-25.84-25.96 27.78-20.91 44.54-30.62 46.43-9.49 1.84-25.15-13.11-31.29-19.56 2.55 6.95 12.06 17.92 20.77 22.6H3.93c-5.91-22.5-5.03-54.5 1.79-77.44 7.12 4.9 16.15 15.05 21.43 22.46 11.09-27.4 40.19-55.7 59.47-64.98C87.59 10.67 98.99-.03 113.09 0c11.29-.02 20.69 6.64 24.63 16.8Z"/><circle cx="117.09" cy="27.09" r="7.59" fill="#FFF"/></svg>\ No newline at end of filediff --git a/docs/src/app/components/Logo.jsx b/docs/src/app/components/Logo.jsxindex ab9ed8f32..5b4081926 100644--- a/docs/src/app/components/Logo.jsx+++ b/docs/src/app/components/Logo.jsx@@ -1,25 +1,29 @@import { Tilt_Warp } from "next/font/google";-import Image from 'next/image';-import { cn } from '../../lib/utils';+import Image from "next/image";+import { cn } from "../../lib/utils";const tilt_wrap = Tilt_Warp({- subsets: ["latin"],- weight: "400",- });+ subsets: ["latin"],+ weight: "400",+});export function Logo() {return (- <div className={cn("text-4xl flex items-center gap-3", tilt_wrap.className)}>- <Image src="/rybbit.png" alt="Rybbit" width={40} height={40} />- rybbit.+ <div+ className={cn("text-4xl flex items-center gap-3", tilt_wrap.className)}+ >+ <Image src="/rybbit.svg" alt="Rybbit" width={40} height={40} />+ rybbit.</div>);}export function SmallLogo() {return (- <div className={cn("text-2xl flex items-center gap-1.5", tilt_wrap.className)}>- <Image src="/rybbit.png" alt="Rybbit" width={32} height={32} />+ <div+ className={cn("text-2xl flex items-center gap-1.5", tilt_wrap.className)}+ >+ <Image src="/rybbit.svg" alt="Rybbit" width={32} height={32} />rybbit.</div>);diff --git a/docs/src/app/layout.jsx b/docs/src/app/layout.jsxindex 8b28332f8..5b8bbdeb4 100644--- a/docs/src/app/layout.jsx+++ b/docs/src/app/layout.jsx@@ -27,6 +27,9 @@ export const metadata = {// description: 'Next-gen, open source, lightweight, cookieless web & product analytics for everyone — GDPR/CCPA compliant.',applicationName: "Rybbit",generator: "Next.js",+ alternates: {+ canonical: "https://rybbit.io",+ },openGraph: {type: "website",locale: "en_US",@@ -91,6 +94,44 @@ function Footer_() {);}+// JSON-LD structured data for organization+const organizationSchema = {+ "@context": "https://schema.org",+ "@type": "Organization",+ name: "Rybbit",+ description: "Open source, privacy-focused web analytics platform",+ url: "https://rybbit.io",+ logo: "https://rybbit.io/rybbit.svg",+ sameAs: ["https://github.com/rybbit-io/rybbit"],+ contactPoint: {+ "@type": "ContactPoint",+ email: "[email protected]",+ contactType: "customer support",+ },+};++// JSON-LD structured data for software application+const softwareSchema = {+ "@context": "https://schema.org",+ "@type": "SoftwareApplication",+ name: "Rybbit",+ applicationCategory: "Analytics",+ operatingSystem: "Web",+ offers: {+ "@type": "Offer",+ price: "0",+ priceCurrency: "USD",+ priceValidUntil: "2025-12-31",+ },+ description: "Open source web analytics platform that respects user privacy",+ softwareVersion: "1.0",+ url: "https://rybbit.io",+ author: {+ "@type": "Organization",+ name: "Rybbit",+ },+};+export default async function RootLayout({ children }) {const navbar = (<Navbar@@ -101,7 +142,7 @@ export default async function RootLayout({ children }) {tilt_wrap.className)}>- <Image src="/rybbit.png" alt="Rybbit" width={30} height={30} />+ <Image src="/rybbit.svg" alt="Rybbit" width={30} height={30} />rybbit.</div>}@@ -179,6 +220,16 @@ export default async function RootLayout({ children }) {defersrc="https://buttons.github.io/buttons.js"></script>+ <script+ type="application/ld+json"+ dangerouslySetInnerHTML={{+ __html: JSON.stringify(organizationSchema),+ }}+ />+ <script+ type="application/ld+json"+ dangerouslySetInnerHTML={{ __html: JSON.stringify(softwareSchema) }}+ /></PostHogProvider></body></html>diff --git a/docs/src/app/page.jsx b/docs/src/app/page.jsxindex 3cfcf970e..5e8a6d772 100644--- a/docs/src/app/page.jsx+++ b/docs/src/app/page.jsx@@ -33,9 +33,70 @@ export const metadata = {"Next-gen, open source, lightweight, cookieless web & product analytics for everyone — GDPR/CCPA compliant.",};+// FAQ Structured Data+const faqSchema = {+ "@context": "https://schema.org",+ "@type": "FAQPage",+ mainEntity: [+ {+ "@type": "Question",+ name: "Is Rybbit GDPR and CCPA compliant?",+ acceptedAnswer: {+ "@type": "Answer",+ text: "Yes, Rybbit is fully compliant with GDPR, CCPA, and other privacy regulations. We don't use cookies or collect any personal data that could identify your users. We salt user IDs daily to ensure users are not fingerprinted. You will not need to display a cookie consent banner to your users."+ }+ },+ {+ "@type": "Question",+ name: "How does Rybbit compare to Google Analytics?",+ acceptedAnswer: {+ "@type": "Answer",+ text: "Rybbit is much less bloated than Google Analytics, both in terms of our tracking script and the UX of the dashboard. We show you exactly what you need to see. The difference in usability is night and day."+ }+ },+ {+ "@type": "Question",+ name: "Can I self-host Rybbit?",+ acceptedAnswer: {+ "@type": "Answer",+ text: "Absolutely! Rybbit is available as a self-hosted option. You can install it on your own server and have complete control over your data. We also offer a cloud version if you prefer a managed solution."+ }+ },+ {+ "@type": "Question",+ name: "How easy is it to set up Rybbit?",+ acceptedAnswer: {+ "@type": "Answer",+ text: "Setting up Rybbit is incredibly simple. Just add a small script to your website or install @rybbit/js from npm, and you're good to go. Most users are up and running in less than 5 minutes."+ }+ },+ {+ "@type": "Question",+ name: "What platforms does Rybbit support?",+ acceptedAnswer: {+ "@type": "Answer",+ text: "Rybbit works with virtually any website platform. Whether you're using WordPress, Shopify, Next.js, React, Vue, or any other framework, our simple tracking snippet integrates seamlessly."+ }+ },+ {+ "@type": "Question",+ name: "Is Rybbit truly open source?",+ acceptedAnswer: {+ "@type": "Answer",+ text: "Yes, Rybbit is 100% open source. Every single line of code, including for our cloud/enterprise offerings, is available on GitHub under the AGPL 3.0 license."+ }+ }+ ]+};+export default function IndexPage() {return (- <div className="flex flex-col items-center justify-center overflow-x-hidden">+ <>+ <script+ type="application/ld+json"+ dangerouslySetInnerHTML={{ __html: JSON.stringify(faqSchema) }}+ />+ <div className="flex flex-col items-center justify-center overflow-x-hidden"><h1className={cn("text-4xl md:text-5xl lg:text-7xl font-semibold pt-16 md:pt-24 px-4 tracking-tight max-w-4xl text-center text-transparent bg-clip-text bg-gradient-to-b from-white via-gray-100 to-gray-400",@@ -422,6 +483,7 @@ export default function IndexPage() {</div></div></section>- </div>+ </div>+ </>);}diff --git a/docs/src/app/robots.js b/docs/src/app/robots.jsnew file mode 100644index 000000000..be46d3349--- /dev/null+++ b/docs/src/app/robots.js@@ -0,0 +1,18 @@+export default function robots() {+ return {+ rules: [+ {+ userAgent: '*',+ allow: '/',+ disallow: [+ '/_next/',+ '/api/',+ '/*.json$',+ '/_ignored/',+ ],+ },+ ],+ sitemap: 'https://rybbit.io/sitemap.xml',+ host: 'https://rybbit.io',+ };+}\ No newline at end of filediff --git a/docs/src/app/sitemap.js b/docs/src/app/sitemap.jsnew file mode 100644index 000000000..be0327055--- /dev/null+++ b/docs/src/app/sitemap.js@@ -0,0 +1,49 @@+export default function sitemap() {+ const baseUrl = 'https://rybbit.io';++ // Static pages+ const staticPages = [+ '',+ '/pricing',+ '/contact',+ '/privacy',+ '/blog',+ ].map((route) => ({+ url: `${baseUrl}${route}`,+ lastModified: new Date(),+ changeFrequency: 'weekly',+ priority: route === '' ? 1 : 0.8,+ }));++ // Documentation pages - you can expand this based on your docs structure+ const docPages = [+ '/docs',+ '/docs/self-hosting',+ '/docs/script',+ '/docs/track-events',+ '/docs/definitions',+ '/docs/guides/next-js',+ '/docs/guides/react',+ '/docs/guides/wordpress',+ '/docs/guides/shopify',+ ].map((route) => ({+ url: `${baseUrl}${route}`,+ lastModified: new Date(),+ changeFrequency: 'monthly',+ priority: 0.7,+ }));++ // Blog posts would be dynamically generated in a real implementation+ // For now, adding the known blog posts+ const blogPosts = [+ '/blog/5k-stars',+ '/blog/website-traffic-drop',+ ].map((route) => ({+ url: `${baseUrl}${route}`,+ lastModified: new Date(),+ changeFrequency: 'monthly',+ priority: 0.6,+ }));++ return [...staticPages, ...docPages, ...blogPosts];+}\ No newline at end of file