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 ( + + + + + + + + + + + Healthway + + + Diagnostics + + + + + {/* Desktop Menu */} + + + Home + + + + History + + + + Technology + + + + Launch Portal + + + + {/* Mobile Button */} + setIsOpen(!isOpen)} + aria-label="Toggle navigation menu" + > + {isOpen ? "✕" : "☰"} + + + + {/* Mobile Dropdown */} + {isOpen && ( + + + setIsOpen(false)}> + Home + + + setIsOpen(false)}> + History + + + setIsOpen(false)}> + Technology + + + setIsOpen(false)} + > + Launch Portal + + + + )} + + + ); +} \ 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 ( - - - - - - - - - Healthway - - - Diagnostics - - - - - - Home - History - Technology - - Launch Portal - - - - - ); -}; + export default function RootLayout({ children,