From d100a931354cf8ee3b5dea663abe9a31b5e37ab1 Mon Sep 17 00:00:00 2001 From: Ravikumar Prajapati Date: Thu, 4 Jun 2026 12:22:00 +0530 Subject: [PATCH] Fix mobile navbar responsiveness and add hamburger menu --- src/app/components/navbar.tsx | 102 ++++++++++++++++++++++++++++++++++ src/app/layout.tsx | 33 +---------- 2 files changed, 104 insertions(+), 31 deletions(-) create mode 100644 src/app/components/navbar.tsx diff --git a/src/app/components/navbar.tsx b/src/app/components/navbar.tsx new file mode 100644 index 0000000..4a293fd --- /dev/null +++ b/src/app/components/navbar.tsx @@ -0,0 +1,102 @@ +"use client"; + +import Link from "next/link"; +import { useState } from "react"; + +export default function Navbar() { + const [isOpen, setIsOpen] = useState(false); + + return ( + + ); +} \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 2cc7947..6e3b74c 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,7 +1,7 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; -import Link from "next/link"; +import Navbar from "./components/navbar"; const geistSans = Geist({ variable: "--font-geist-sans", @@ -18,36 +18,7 @@ export const metadata: Metadata = { description: "High-precision AI analysis for clinical retina diagnostics.", }; -const Navbar = () => { - return ( - - ); -}; + export default function RootLayout({ children,