diff --git a/src/components/layout/MobileNav.tsx b/src/components/layout/MobileNav.tsx index 30cf5a5..b327a9c 100644 --- a/src/components/layout/MobileNav.tsx +++ b/src/components/layout/MobileNav.tsx @@ -1,12 +1,15 @@ import { Link, useRouterState } from '@tanstack/react-router' +import { Home, ClipboardList, Layers, Trophy, User } from 'lucide-react' import { cn } from '@/lib/utils' -const NAV_ITEMS = [ - { to: '/', label: 'Home', icon: 'home', matchPrefix: '/', exact: true }, - { to: '/archivement', label: 'Thành tích', icon: 'emoji_events', matchPrefix: '/archivement', exact: false }, - { to: '/toeic', label: 'Luyện đề', icon: 'assignment', matchPrefix: '/toeic', exact: false }, - { to: '/writing', label: 'Writing', icon: 'edit_note', matchPrefix: '/writing', exact: false }, - { to: '/settings', label: 'Cài đặt', icon: 'settings', matchPrefix: '/settings', exact: false }, +// Atelier Mobile tab bar — 5 tabs matching the mobile design. +// Labels keep the mobile design's playful brevity: Hôm nay / Luyện / Thẻ / Thành tích / Tôi +const TABS = [ + { to: '/', label: 'Hôm nay', icon: Home, matchPrefix: '/', exact: true }, + { to: '/toeic', label: 'Luyện', icon: ClipboardList, matchPrefix: '/toeic', exact: false }, + { to: '/flash-card', label: 'Thẻ', icon: Layers, matchPrefix: '/flash-card', exact: false }, + { to: '/archivement', label: 'Thành tích', icon: Trophy, matchPrefix: '/archivement', exact: false }, + { to: '/settings', label: 'Tôi', icon: User, matchPrefix: '/settings', exact: false }, ] function isActive(pathname: string, prefix: string, exact: boolean) { @@ -18,22 +21,19 @@ export function MobileNav() { const pathname = location.pathname return ( -