From 881c210366f1ac3cf34313538a9a996d5bb9898d Mon Sep 17 00:00:00 2001 From: Senofy <63175905+Senofy@users.noreply.github.com> Date: Tue, 10 Mar 2026 15:00:41 -0500 Subject: [PATCH] Add sidebar navigation with responsive bottom bar Three pages: AutoTrader, AutoBuyer, AutoRequester. Fixed left sidebar on desktop (md+), bottom tab bar on mobile. Co-Authored-By: Claude Opus 4.6 --- app/autobuyer/page.tsx | 12 +++++ app/autorequester/page.tsx | 12 +++++ app/components/Sidebar.tsx | 100 +++++++++++++++++++++++++++++++++++++ app/layout.tsx | 6 ++- 4 files changed, 129 insertions(+), 1 deletion(-) create mode 100644 app/autobuyer/page.tsx create mode 100644 app/autorequester/page.tsx create mode 100644 app/components/Sidebar.tsx diff --git a/app/autobuyer/page.tsx b/app/autobuyer/page.tsx new file mode 100644 index 0000000..5124938 --- /dev/null +++ b/app/autobuyer/page.tsx @@ -0,0 +1,12 @@ +export default function AutoBuyer() { + return ( +
+
+

AutoBuyer

+
+ Coming soon +
+
+
+ ); +} diff --git a/app/autorequester/page.tsx b/app/autorequester/page.tsx new file mode 100644 index 0000000..85019b1 --- /dev/null +++ b/app/autorequester/page.tsx @@ -0,0 +1,12 @@ +export default function AutoRequester() { + return ( +
+
+

AutoRequester

+
+ Coming soon +
+
+
+ ); +} diff --git a/app/components/Sidebar.tsx b/app/components/Sidebar.tsx new file mode 100644 index 0000000..71cb576 --- /dev/null +++ b/app/components/Sidebar.tsx @@ -0,0 +1,100 @@ +'use client'; + +import Link from 'next/link'; +import { usePathname } from 'next/navigation'; + +const NAV_ITEMS = [ + { + label: 'AutoTrader', + href: '/', + icon: ( + + + + ), + }, + { + label: 'AutoBuyer', + href: '/autobuyer', + icon: ( + + + + + + ), + }, + { + label: 'AutoRequester', + href: '/autorequester', + icon: ( + + + + + + + ), + }, +]; + +export default function Sidebar() { + const pathname = usePathname(); + + return ( + <> + {/* Desktop sidebar */} + + + {/* Mobile bottom bar */} + + + ); +} diff --git a/app/layout.tsx b/app/layout.tsx index 1d11acd..8e09167 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,5 +1,6 @@ import type { Metadata } from "next"; import "./globals.css"; +import Sidebar from "./components/Sidebar"; export const metadata: Metadata = { title: "AutoTrader", @@ -13,7 +14,10 @@ export default function RootLayout({ }>) { return ( - {children} + + +
{children}
+ ); }