diff --git a/src/web/src/app/page.jsx b/src/web/src/app/page.jsx index dc253a1..77ab05e 100644 --- a/src/web/src/app/page.jsx +++ b/src/web/src/app/page.jsx @@ -6,6 +6,6 @@ import { HeroSection1, HeroSection2, HeroSection3 } from "@/components/hero"; // Exports export default function Index() { return ( -
+ ); } diff --git a/src/web/src/components/header.jsx b/src/web/src/components/header.jsx index 31e41af..bfac633 100644 --- a/src/web/src/components/header.jsx +++ b/src/web/src/components/header.jsx @@ -3,6 +3,8 @@ import { useState, useEffect } from "react"; import Link from "next/link"; import { motion, AnimatePresence } from "framer-motion"; +import { FaBars } from "react-icons/fa"; // Import hamburger icon + // Tabs(links to be converted into a tab menu) const tabs = [ @@ -79,7 +81,7 @@ function TabMenu({ tabs, activeTab, setActiveTab }) { }, hidden: { opacity: 0 } }} - className="flex space-x-1" + className="hidden 2xl:flex xl:flex lg:flex md:flex space-x-1" // Hide on small screens > {tabs.map((tab) => ( @@ -88,6 +90,36 @@ function TabMenu({ tabs, activeTab, setActiveTab }) { ); } +function CollapsibleMenu({ tabs, activeTab, setActiveTab }) { + return ( + + {tabs.map((tab) => ( + + + + ))} + + ); +} + function Header() { const [mounted, setMounted] = useState(false); const [activeTab, setActiveTab] = useState(tabs[0].id); @@ -100,7 +132,10 @@ function Header() {
{mounted && ( - + <> + + + )}