Skip to content

Commit 7c6f43f

Browse files
committed
feat : styling header
1 parent 8cc0669 commit 7c6f43f

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

src/common/Header/AuthHeader.jsx

+30-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,36 @@ import { Link } from 'react-router-dom';
33

44
export default function AuthHeader() {
55
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>
1135
</nav>
12-
</div>
36+
</header>
1337
);
1438
}

src/common/Header/DefaultHeader.jsx

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
import React from 'react';
22

33
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+
);
514
}

0 commit comments

Comments
 (0)