-
Notifications
You must be signed in to change notification settings - Fork 0
/
Nav.jsx
68 lines (66 loc) · 1.41 KB
/
Nav.jsx
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import React from "react";
import "./nav.css";
import { ImHome } from "react-icons/im";
import { FaHandHoldingUsd } from "react-icons/fa";
import { SiSemanticuireact } from "react-icons/si";
import { MdContacts } from "react-icons/md";
import { AiOutlineFundProjectionScreen } from "react-icons/ai";
import { useState } from "react";
const Nav = () => {
const [activeNav, setActiveNav] = useState("#");
return (
<nav>
<a
href="#"
onClick={() => {
setActiveNav("#");
}}
className={activeNav === "#" ? "active" : ""}
title="Home"
>
<ImHome />
</a>
<a
href="#experience"
onClick={() => {
setActiveNav("#experience");
}}
className={activeNav === "#experience" ? "active" : ""}
title="Experience"
>
<FaHandHoldingUsd />
</a>
<a
href="#skills"
onClick={() => {
setActiveNav("#skills");
}}
className={activeNav === "#skills" ? "active" : ""}
title="Skills"
>
<SiSemanticuireact />
</a>
<a
href="#projects"
onClick={() => {
setActiveNav("#projects");
}}
className={activeNav === "#projects" ? "active" : ""}
title="Projects"
>
<AiOutlineFundProjectionScreen />
</a>
<a
href="#contact"
onClick={() => {
setActiveNav("#contact");
}}
className={activeNav === "#contact" ? "active" : ""}
title="Contact"
>
<MdContacts />
</a>
</nav>
);
};
export default Nav;