From ed2f8be81045c0c5fef118b097bb8515215a2693 Mon Sep 17 00:00:00 2001 From: Luc van Kampen Date: Sun, 8 Jun 2025 01:05:46 +0200 Subject: [PATCH 1/4] Add mobile hamburger menus --- web/src/components/Navbar.tsx | 2 ++ web/src/components/Sidebar.tsx | 6 +++-- .../components/layout/RightbarHamburger.tsx | 25 ++++++++++++++++++ .../components/layout/SidebarHamburger.tsx | 25 ++++++++++++++++++ web/src/routes/__root.tsx | 2 +- web/src/routes/chat/$chatId.tsx | 26 +++++++++++++------ web/src/routes/index.tsx | 8 +++--- 7 files changed, 80 insertions(+), 14 deletions(-) create mode 100644 web/src/components/layout/RightbarHamburger.tsx create mode 100644 web/src/components/layout/SidebarHamburger.tsx diff --git a/web/src/components/Navbar.tsx b/web/src/components/Navbar.tsx index 34efedf..061e794 100644 --- a/web/src/components/Navbar.tsx +++ b/web/src/components/Navbar.tsx @@ -6,6 +6,7 @@ import { SiEthereum } from 'react-icons/si'; import { useAuth, useLogout } from '../api/auth'; import { LoginButton } from './LoginButton'; +import { SidebarHamburger } from './layout/SidebarHamburger'; export const Navbar: FC = () => { const data = useMatches(); @@ -29,6 +30,7 @@ export const Navbar: FC = () => { <>
+ { +import classNames from 'classnames'; + +export const Sidebar = ({ className = '' }: { className?: string } = {}) => { const { pathname } = useRouterState({ select: (s) => s.location }); const { isAuthenticated } = useAuth(); return ( -
+