From a421a16955157c4ef1aebad3ff6e5b041aa18702 Mon Sep 17 00:00:00 2001 From: EvanLin3141 Date: Tue, 4 Feb 2025 17:55:41 +0000 Subject: [PATCH] FEAT: Added Sidebar SideBar now available with Logo on top --- frontend/src/components/Layout/ListRow.tsx | 2 +- frontend/src/components/Layout/Navbar.tsx | 17 +++++++++++++++-- frontend/src/components/Layout/Sidebar.tsx | 8 ++++++-- frontend/src/components/aside/GenreList.tsx | 18 ++++++++++++++++++ 4 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 frontend/src/components/aside/GenreList.tsx diff --git a/frontend/src/components/Layout/ListRow.tsx b/frontend/src/components/Layout/ListRow.tsx index 30a155e..3c50446 100644 --- a/frontend/src/components/Layout/ListRow.tsx +++ b/frontend/src/components/Layout/ListRow.tsx @@ -32,7 +32,7 @@ const ListItem: React.FC = ({ className="flex flex-col bg-gray-800 rounded-lg overflow-hidden cursor-pointer hover:bg-gray-700 transition-colors" onClick={onItemClick} > -
+
{thumbnail ? ( = ({ const [showAuthModal, setShowAuthModal] = useState(false); const { isLoggedIn } = useAuth(); const isVideoPage = location.pathname.includes("/EduGuru"); + const [showSideBar, setShowSideBar] = useState(false); useEffect(() => { if (showAuthModal) { @@ -49,6 +50,10 @@ const Navbar: React.FC = ({ }); }; + const handleSideBar = () => { + setShowSideBar(!showSideBar); + } + return (