From 708c68fb071a00374df175fa8c91bfd748576d8f Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Tue, 22 Jul 2025 19:08:04 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Update=20bottom=20navigation=20with?= =?UTF-8?q?=20raised=20scanner=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change Dashboard to Home in navigation - Add raised purple scanner button in center - Implement new nav layout: Home | Cards | Scanner | Collections | More - Scanner button features elevated design with purple gradient - Add proper active/inactive states for all nav items - Remove unused navigationItems array to fix linting warning - Perfect spacing with justify-around layout --- src/components/MobileNavbar.tsx | 192 +++++++++++++++++--------------- 1 file changed, 100 insertions(+), 92 deletions(-) diff --git a/src/components/MobileNavbar.tsx b/src/components/MobileNavbar.tsx index 722ecdf..15739ec 100644 --- a/src/components/MobileNavbar.tsx +++ b/src/components/MobileNavbar.tsx @@ -3,13 +3,6 @@ import { Link, useLocation, useNavigate } from 'react-router-dom'; import { useAuth } from '../contexts/AuthContext'; import { useTheme } from '../contexts/ThemeContext'; -interface NavigationItem { - name: string; - href: string; - icon: React.ReactNode; - activeIcon?: React.ReactNode; -} - const MobileNavbar: React.FC = () => { const { user, logout, isAdmin } = useAuth(); const { toggleTheme, effectiveTheme } = useTheme(); @@ -17,70 +10,6 @@ const MobileNavbar: React.FC = () => { const navigate = useNavigate(); const [showUserMenu, setShowUserMenu] = useState(false); - const navigationItems: NavigationItem[] = [ - { - name: 'Dashboard', - href: '/dashboard', - icon: ( - - - - ), - activeIcon: ( - - - - ), - }, - { - name: 'Cards', - href: '/cards', - icon: ( - - - - ), - activeIcon: ( - - - - ), - }, - { - name: 'Scanner', - href: '/scanner', - icon: ( - - - - - ), - activeIcon: ( - - - - ), - }, - { - name: 'Collections', - href: '/collections', - icon: ( - - - - ), - }, - { - name: 'More', - href: '/menu', - icon: ( - - - - ), - }, - ]; - const handleLogout = () => { logout(); setShowUserMenu(false); @@ -143,27 +72,106 @@ const MobileNavbar: React.FC = () => { {/* Bottom Navigation */}