|
1 |
| -// 'use client'; |
2 |
| -// import { useState } from 'react'; |
3 |
| -// import { useRouter } from 'next/navigation'; |
4 |
| - |
5 |
| -// const Navbar = () => { |
6 |
| -// const router = useRouter(); |
7 |
| -// const [isOpen, setIsOpen] = useState(false); |
8 |
| - |
9 |
| -// const handleClick = () => { |
10 |
| -// router.push('/home'); |
11 |
| -// }; |
12 |
| - |
13 |
| -// const toggleMenu = () => { |
14 |
| -// setIsOpen(!isOpen); |
15 |
| -// }; |
16 |
| - |
17 |
| -// return ( |
18 |
| -// <div className="fixed top-0 left-0 right-0 z-50 bg-white text-black shadow-md"> |
19 |
| -// <div className="container mx-auto px-4 sm:px-6 lg:px-8"> |
20 |
| -// <div className="flex justify-between items-center py-4"> |
21 |
| -// {/* logo section */} |
22 |
| -// <div className="flex-shrink-0"> |
23 |
| -// <img |
24 |
| -// onClick={handleClick} |
25 |
| -// src="/images/logo.png" |
26 |
| -// alt="logo" |
27 |
| -// className="w-[40%] cursor-pointer" |
28 |
| -// /> |
29 |
| -// </div> |
30 |
| - |
31 |
| -// {/* hamburger menu button */} |
32 |
| -// <div className="md:flex lg:hidden flex items-center"> |
33 |
| -// <button |
34 |
| -// onClick={toggleMenu} |
35 |
| -// className="text-white focus:outline-none" |
36 |
| -// > |
37 |
| -// <svg |
38 |
| -// className="w-6 h-6" |
39 |
| -// fill="none" |
40 |
| -// stroke="currentColor" |
41 |
| -// viewBox="0 0 24 24" |
42 |
| -// xmlns="http://www.w3.org/2000/svg" |
43 |
| -// > |
44 |
| -// <path |
45 |
| -// strokeLinecap="round" |
46 |
| -// strokeLinejoin="round" |
47 |
| -// strokeWidth="2" |
48 |
| -// d={ |
49 |
| -// isOpen ? 'M6 18L18 6M6 6l12 12' : 'M4 6h16M4 12h16M4 18h16' |
50 |
| -// } |
51 |
| -// /> |
52 |
| -// </svg> |
53 |
| -// </button> |
54 |
| -// </div> |
55 |
| - |
56 |
| -// {/* navlinks section */} |
57 |
| -// <nav className="hidden lg:flex lg:space-x-6"> |
58 |
| -// <a |
59 |
| -// href="/login" |
60 |
| -// className="text-lg font-semibold hover:text-secondary" |
61 |
| -// > |
62 |
| -// Log In |
63 |
| -// </a> |
64 |
| -// <a |
65 |
| -// href="/register" |
66 |
| -// className="text-lg font-semibold hover:text-secondary" |
67 |
| -// > |
68 |
| -// Register |
69 |
| -// </a> |
70 |
| -// </nav> |
71 |
| -// </div> |
72 |
| -// </div> |
73 |
| - |
74 |
| -// {/* Mobile menu */} |
75 |
| -// {isOpen && ( |
76 |
| -// <div className="md:flex lg:hidden bg-primary"> |
77 |
| -// <nav className="flex flex-col space-y-2 px-4 py-2"> |
78 |
| -// <a |
79 |
| -// href="/login" |
80 |
| -// className="text-md font-semibold hover:text-secondary" |
81 |
| -// > |
82 |
| -// Log in |
83 |
| -// </a> |
84 |
| -// <a |
85 |
| -// href="/register" |
86 |
| -// className="text-md font-semibold hover:text-secondary" |
87 |
| -// > |
88 |
| -// Register |
89 |
| -// </a> |
90 |
| -// </nav> |
91 |
| -// </div> |
92 |
| -// )} |
93 |
| -// </div> |
94 |
| -// ); |
95 |
| -// }; |
96 |
| - |
97 |
| -// export default Navbar; |
98 |
| - |
99 | 1 | 'use client';
|
100 | 2 | import { useState } from 'react';
|
101 | 3 | import { useRouter } from 'next/navigation';
|
@@ -148,18 +50,18 @@ const Navbar: React.FC = () => {
|
148 | 50 | </div>
|
149 | 51 |
|
150 | 52 | <ul className="flex space-x-6 ml-4">
|
151 |
| - <li className="hover:underline text-orange-600 cursor-pointer"> |
152 |
| - Dashboard |
153 |
| - </li> |
154 |
| - <li className="hover:underline text-orange-600 cursor-pointer"> |
155 |
| - Team |
156 |
| - </li> |
157 |
| - <li className="hover:underline text-orange-600 cursor-pointer"> |
| 53 | + <a |
| 54 | + href="/login" |
| 55 | + className="hover:underline text-orange-600 cursor-pointer" |
| 56 | + > |
158 | 57 | Login
|
159 |
| - </li> |
160 |
| - <li className="hover:underline text-orange-600 cursor-pointer"> |
| 58 | + </a> |
| 59 | + <a |
| 60 | + href="/register" |
| 61 | + className="hover:underline text-orange-600 cursor-pointer" |
| 62 | + > |
161 | 63 | Register
|
162 |
| - </li> |
| 64 | + </a> |
163 | 65 | </ul>
|
164 | 66 | </div>
|
165 | 67 | <div className="flex items-center space-x-4">
|
|
0 commit comments