Update Header.tsx
Browse files- Header.tsx +18 -0
Header.tsx
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from "react";
|
| 2 |
+
|
| 3 |
+
const Header: React.FC = () => {
|
| 4 |
+
return (
|
| 5 |
+
<header className="bg-blue-600 text-white p-4 shadow-md">
|
| 6 |
+
<div className="container mx-auto flex justify-between items-center">
|
| 7 |
+
<h1 className="text-2xl font-bold">My Website</h1>
|
| 8 |
+
<nav className="space-x-4">
|
| 9 |
+
<a href="#home" className="hover:underline">Home</a>
|
| 10 |
+
<a href="#about" className="hover:underline">About</a>
|
| 11 |
+
<a href="#contact" className="hover:underline">Contact</a>
|
| 12 |
+
</nav>
|
| 13 |
+
</div>
|
| 14 |
+
</header>
|
| 15 |
+
);
|
| 16 |
+
};
|
| 17 |
+
|
| 18 |
+
export default Header;
|