-
Notifications
You must be signed in to change notification settings - Fork 1
/
Nav.jsx
67 lines (52 loc) · 2.26 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
import React, {Component} from 'react';
import {Link} from "react-router-dom";
import aboutUs from "./AboutUs"
import List_ele from "./List_ele";
class Nav extends Component {
constructor(props) {
super(props);
this.state = {}
}
render() {
return (
<nav className="navbar navbar-expand-lg navbar-dark bg-dark static-top">
<div className="container">
{/*logo*/}
<a className="navbar-brand" href="#">
<img src="http://placehold.it/150x50?text=Logo" alt=""/>
</a>
{/*logo*/}
<button className="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarResponsive"
aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span className="navbar-toggler-icon"/>
</button>
<div className="collapse navbar-collapse" id="navbarResponsive">
<ul className="navbar-nav ml-auto">
<li className="nav-item active">
<a className="nav-link" href="#">
Home
<span className="sr-only">(current)</span>
</a>
</li>
{/*About us*/}
<li className="nav-item"><a className="nav-link" href= "/Hello" target="_blank">About</a>
</li>
<li className="nav-item">
<a className="nav-link" href="#">
List
</a>
</li>
<li className="nav-item">
<a className="nav-link" href="#">
Contact
</a>
</li>
</ul>
</div>
</div>
</nav>
)
}
}
export default Nav;