From 614511d59a864d6877e1e6a8aae4d182b35cc7dd Mon Sep 17 00:00:00 2001 From: cc Date: Tue, 14 Apr 2026 19:36:59 +0200 Subject: [PATCH] Add footer and improve layout structure - Create Footer component with links to GitHub and Mastodon - Restructure root layout with flex column for sticky footer - Update OS layout to use flex-1 for proper height inheritance --- src/app/layout.tsx | 14 +++++++++----- src/app/os/layout.tsx | 2 +- src/components/footer.tsx | 30 ++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 src/components/footer.tsx diff --git a/src/app/layout.tsx b/src/app/layout.tsx index a02a860..23e21ea 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -4,6 +4,7 @@ import { ThemeProvider } from "next-themes"; import "./globals.css"; import { NavTop } from "@/components/navtop"; +import { Footer } from "@/components/footer"; import { Toaster } from "@/components/ui/sonner"; import { Suspense } from "react"; @@ -34,11 +35,14 @@ export default function RootLayout({ className={`${geistSans.variable} ${geistMono.variable} antialiased`} > - - - -
{children}
-
+
+ + + +
{children}
+
+
+
diff --git a/src/app/os/layout.tsx b/src/app/os/layout.tsx index 98562f9..f775293 100644 --- a/src/app/os/layout.tsx +++ b/src/app/os/layout.tsx @@ -38,7 +38,7 @@ export default function OSDetailLayout({ }, [os]); return ( -
+
diff --git a/src/components/footer.tsx b/src/components/footer.tsx new file mode 100644 index 0000000..4534f08 --- /dev/null +++ b/src/components/footer.tsx @@ -0,0 +1,30 @@ +export function Footer() { + return ( + + ); +}