-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNavbar.js
More file actions
70 lines (68 loc) · 1.59 KB
/
Navbar.js
File metadata and controls
70 lines (68 loc) · 1.59 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
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
69
70
// Navbar.js
import { Link, NavLink } from "react-router-dom";
const styles = {
nav: {
display: "flex",
alignItems: "center",
justifyContent: "space-between",
padding: "10px 20px",
backgroundColor: "#007bff",
color: "#fff",
},
siteTitle: {
fontSize: "30px",
fontWeight: "bold",
textDecoration: "none",
color: "#fff",
},
linkList: {
display: "flex",
listStyle: "none",
margin: 0,
padding: 0,
},
listItem: {
marginLeft: "20px",
},
link: {
textDecoration: "none",
color: "#fff",
fontSize: "16px",
fontWeight: "bold",
transition: "color 0.3s ease",
},
activeLink: {
color: "#ffc107",
},
};
export default function Navbar() {
return (
<nav style={styles.nav}>
<Link to="/" style={styles.siteTitle}>
WQM
</Link>
<ul style={styles.linkList}>
<li style={styles.listItem}>
<NavLink to="/Complaint" style={styles.link} activeStyle={styles.activeLink}>
Raise Complaint
</NavLink>
</li>
<li style={styles.listItem}>
<NavLink to="/StayAware" style={styles.link} activeStyle={styles.activeLink}>
Stay Aware
</NavLink>
</li>
<li style={styles.listItem}>
<NavLink to="/About" style={styles.link} activeStyle={styles.activeLink}>
About
</NavLink>
</li>
<li style={styles.listItem}>
<NavLink to="/Login" style={styles.link} activeStyle={styles.activeLink}>
Admin
</NavLink>
</li>
</ul>
</nav>
);
}