From 2f86ee45501073a91db624ce470eaef0dbc75ed6 Mon Sep 17 00:00:00 2001 From: Samandar Turgunboyev Date: Tue, 16 Dec 2025 18:42:38 +0500 Subject: [PATCH] added menu mobile navbar --- .../privacy-policy/ui/PrivacyPlicy.tsx | 4 +- src/features/profile/ui/Profile.tsx | 6 - src/widgets/navbar/ui/index.tsx | 215 +++++++++++++++++- 3 files changed, 206 insertions(+), 19 deletions(-) diff --git a/src/features/privacy-policy/ui/PrivacyPlicy.tsx b/src/features/privacy-policy/ui/PrivacyPlicy.tsx index 86c56b5..30ea34b 100644 --- a/src/features/privacy-policy/ui/PrivacyPlicy.tsx +++ b/src/features/privacy-policy/ui/PrivacyPlicy.tsx @@ -3,9 +3,9 @@ import { Database, Eye, FileText, Lock, Shield, UserCheck } from 'lucide-react'; const PrivacyPolicy = () => { return ( -
+
{/* Hero Section */} -
+
diff --git a/src/features/profile/ui/Profile.tsx b/src/features/profile/ui/Profile.tsx index 54d433b..4be39c7 100644 --- a/src/features/profile/ui/Profile.tsx +++ b/src/features/profile/ui/Profile.tsx @@ -11,13 +11,10 @@ import { Card, CardContent } from '@/shared/ui/card'; import { CheckCircle, ChevronRight, - Handshake, - HelpCircle, History, Home, LogOut, MapPin, - MessageCircleQuestion, Package, RefreshCw, ShoppingBag, @@ -87,9 +84,6 @@ const Profile = () => { { id: 'overview', label: 'Umumiy', icon: Home }, { id: 'orders', label: 'Buyurtmalar', icon: ShoppingBag }, { id: 'history', label: 'Tarix', icon: History }, - { id: 'agency', label: "Hamkor bo'lish", icon: Handshake }, - { id: 'faq', label: 'Savol javoblar', icon: MessageCircleQuestion }, - { id: 'support', label: "Qo'llab-quvvatlash", icon: HelpCircle }, ]; const statistics = { diff --git a/src/widgets/navbar/ui/index.tsx b/src/widgets/navbar/ui/index.tsx index add65bd..d63715e 100644 --- a/src/widgets/navbar/ui/index.tsx +++ b/src/widgets/navbar/ui/index.tsx @@ -1,10 +1,19 @@ 'use client'; -import { useRouter } from '@/shared/config/i18n/navigation'; +import { Link, useRouter } from '@/shared/config/i18n/navigation'; import formatPhone from '@/shared/lib/formatPhone'; import { Button } from '@/shared/ui/button'; import { Input } from '@/shared/ui/input'; import { Popover, PopoverContent } from '@/shared/ui/popover'; +import { + Sheet, + SheetClose, + SheetContent, + SheetFooter, + SheetHeader, + SheetTitle, + SheetTrigger, +} from '@/shared/ui/sheet'; import { categoryList } from '@/widgets/welcome/lib/data'; import { PopoverTrigger } from '@radix-ui/react-popover'; import { @@ -14,6 +23,7 @@ import { Instagram, LayoutGrid, Mail, + MenuIcon, Phone, Search, Send, @@ -73,34 +83,64 @@ const Navbar = () => { <>
-
    -
  • +
      + {/* Sahifalar */} +
    • + + Biz haqimizda + +
    • +
    • + + Maxfiylik siyosati + +
    • +
    • + + Savol-javob + +
    • + + {/* Divider */} +
    • |
    • + + {/* Ijtimoiy tarmoqlar */} +
    • -
    • +
    • -
    • +
    • -
    • +
    • -
    • +
    • -
    • - +
    • +

      {formatPhone('+998901234567')}

      @@ -128,7 +168,7 @@ const Navbar = () => { className="w-10 h-10" />
-
+
+ + + + + + + +
+ logo +
+

GASTRO

+
+
+ +
+ {/* Menu Bo'limlari */} +
+ {/* Asosiy Sahifalar */} +
+

+ Sahifalar +

+ +
+ + {/* Divider */} + +
+ + + + + + + +