-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathHeader.tsx
More file actions
35 lines (34 loc) · 995 Bytes
/
Header.tsx
File metadata and controls
35 lines (34 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { NavLink } from "react-router";
export default function Header() {
return (
<header className="sticky top-0 bg-primary/80 backdrop-blur-lg py-4 flex justify-around items-center">
<NavLink className="flex gap-2 items-center" to="/">
<img
className="w-12 pr-2"
src={"/images/coffee_cup.png"}
alt="Code Cafe Logo"
/>
<h1 className="text-secondary text-3xl">Code Cafe</h1>
</NavLink>
<nav>
<ul className="flex list-none gap-3 text-secondary">
<li>
<NavLink className="hover:text-accent" to="/">
Home
</NavLink>
</li>
<li>
<NavLink className="hover:text-accent" to="/about">
About Us
</NavLink>
</li>
<li>
<NavLink className="hover:text-accent" to="/events">
Events
</NavLink>
</li>
</ul>
</nav>
</header>
);
}