File tree 2 files changed +40
-7
lines changed
2 files changed +40
-7
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,36 @@ import { Link } from 'react-router-dom';
3
3
4
4
export default function AuthHeader ( ) {
5
5
return (
6
- < div >
7
- < nav >
8
- < Link to = "/" > Hero</ Link >
9
- < Link to = "/main" > Main</ Link >
10
- < Link to = "/share" > Share</ Link >
6
+ < header className = "bg-white shadow-md sticky top-0 z-50 my-4" >
7
+ < nav className = "container mx-auto flex justify-between items-center p-4" >
8
+ { /* Logo */ }
9
+ < div className = "text-2xl font-bold text-blue-600" > MyLogo</ div >
10
+
11
+ { /* Desktop Menu */ }
12
+ < ul className = "hidden md:flex space-x-6" >
13
+ < li >
14
+ < Link
15
+ to = "/"
16
+ className = "text-gray-700 hover:text-blue-600 text-xl" >
17
+ Hero
18
+ </ Link >
19
+ </ li >
20
+ < li >
21
+ < Link
22
+ to = "/main"
23
+ className = "text-gray-700 hover:text-blue-600 text-xl" >
24
+ Main
25
+ </ Link >
26
+ </ li >
27
+ < li >
28
+ < Link
29
+ to = "/share"
30
+ className = "text-gray-700 hover:text-blue-600 text-xl" >
31
+ Share
32
+ </ Link >
33
+ </ li >
34
+ </ ul >
11
35
</ nav >
12
- </ div >
36
+ </ header >
13
37
) ;
14
38
}
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
3
3
export default function DefaultHeader ( ) {
4
- return < div > Header</ div > ;
4
+ return (
5
+ < div >
6
+ < nav className = "flex" >
7
+ < div >
8
+ < span className = "" > Logo</ span >
9
+ </ div >
10
+ < div className = "" > </ div >
11
+ </ nav >
12
+ </ div >
13
+ ) ;
5
14
}
You can’t perform that action at this time.
0 commit comments