1
+ import React from 'react' ;
2
+ import { FaSearch , FaShoppingCart , FaBell , FaUserCircle } from 'react-icons/fa' ;
3
+ import { Link } from 'react-router-dom' ;
4
+
5
+ // ...
6
+
7
+ < Link to = "/dashboard" >
8
+ < FaUserCircle className = "mx-2 text-black cursor-pointer size-10" />
9
+ < span className = "mx-2 text-black font-semibold text-2xl" > Hi, Vivek</ span >
10
+ </ Link >
11
+
12
+ const Navbar = ( ) => {
13
+ return (
14
+ < nav className = "flex items-center justify-between bg-[#fdf1e8] p-4" >
15
+ { /* Logo and Navigation Links */ }
16
+ < div className = "flex gap-10 items-center" >
17
+ < img src = "" alt = "Logo" className = "h-10" />
18
+ < div className = "ml-4" >
19
+ { /* Home Link */ }
20
+ < a href = "/" className = "mx-2 text-black text-2xl font-bold" > Home</ a >
21
+
22
+ { /* Gifts Dropdown */ }
23
+ < div className = "inline-block relative" >
24
+ < a href = "/gifts" className = "mx-2 text-2xl text-black font-bold" > Gifts</ a >
25
+ </ div >
26
+
27
+ { /* Categories Dropdown */ }
28
+ < div className = "inline-block relative" >
29
+ < a href = "/categories" className = "mx-2 text-2xl text-black font-bold" > Categories</ a >
30
+ </ div >
31
+
32
+ { /* About Us Link */ }
33
+ < a href = "/about" className = "mx-2 text-2xl text-black font-bold" > About Us</ a >
34
+ </ div >
35
+ </ div >
36
+ { /* Search Bar */ }
37
+ < div className = "flex gap-10 items-center rounded-full border-black border-2 bg-gray-200 px-4 py-1" >
38
+ < input type = "text" placeholder = "Search" className = "bg-transparent outline-none" />
39
+ < FaSearch className = "text-gray-600" />
40
+ </ div >
41
+
42
+ { /* User Actions */ }
43
+ < div className = "flex gap-2 items-center" >
44
+ < FaShoppingCart className = "mx-2 text-black cursor-pointer size-10" />
45
+ < FaBell className = "mx-2 text-black cursor-pointer size-10" />
46
+ < Link to = "/dashboard" >
47
+ < div className = 'flex' >
48
+ < FaUserCircle className = "mx-2 text-black cursor-pointer size-10" />
49
+ < span className = "mx-2 text-black font-semibold text-2xl" > Hi, Vivek</ span >
50
+ </ div >
51
+ </ Link >
52
+ </ div >
53
+ </ nav >
54
+ ) ;
55
+ } ;
56
+
57
+ export default Navbar ;
0 commit comments