-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathHeader.tsx
More file actions
40 lines (39 loc) · 1.12 KB
/
Header.tsx
File metadata and controls
40 lines (39 loc) · 1.12 KB
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
36
37
38
39
40
import { NavLink } from "react-router";
export default function Header() {
return (
<header className="sticky top-0 flex items-center justify-around bg-primary/80 py-4 backdrop-blur-lg">
<NavLink className="flex items-center gap-2" to="/">
<img
className="w-12 pr-2"
src={"/images/coffee_cup.png"}
alt="Code Cafe Logo"
/>
<h1 className="text-3xl text-secondary">Code Café</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="/resources">
Resources
</NavLink>
</li>
<li>
<NavLink className="hover:text-accent" to="/events">
Events
</NavLink>
</li>
</ul>
</nav>
</header>
);
}