🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
feat: Add Footer component to SiteLayout
Bill Yang0c67a90e6d57
diff --git a/client/src/app/[site]/layout.tsx b/client/src/app/[site]/layout.tsxindex 75a2f6f98..a9ee02756 100644--- a/client/src/app/[site]/layout.tsx+++ b/client/src/app/[site]/layout.tsx@@ -8,6 +8,7 @@ import { useStore } from "../../lib/store";import { useSyncStateWithUrl } from "../../lib/urlParams";import { Header } from "./components/Header/Header";import { Sidebar } from "./components/Sidebar/Sidebar";+import { Footer } from "../components/Footer";export default function SiteLayout({children,@@ -62,6 +63,7 @@ export default function SiteLayout({{/* <div className="px-4 py-2 max-w-[1400px] mx-auto w-full mb-4"> */}<Header /><div>{children}</div>+ <Footer /></div></div></div>diff --git a/client/src/app/components/Footer.tsx b/client/src/app/components/Footer.tsxnew file mode 100644index 000000000..4b70f7ddf--- /dev/null+++ b/client/src/app/components/Footer.tsx@@ -0,0 +1,27 @@+import Link from "next/link";++const VERSION = "v0.1.4";++export function Footer() {+ const gitSha = process.env.NEXT_PUBLIC_GIT_SHA;+ return (+ <div className="flex justify-center items-center h-12 text-neutral-400 gap-4 text-xs">+ <p>© 2025 Rybbit</p>+ <Link+ href={`https://github.com/rybbit-io/rybbit/releases/tag/${VERSION}`}+ className="hover:text-neutral-300"+ >+ {VERSION}+ </Link>+ <Link href="https://rybbit.io/docs" className="hover:text-neutral-300">+ Docs+ </Link>+ <Link+ href="https://github.com/rybbit-io/rybbit"+ className="hover:text-neutral-300"+ >+ Github+ </Link>+ </div>+ );+}