-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathNav.jsx
111 lines (110 loc) · 3.34 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import React from 'react'
import '../index.css'
import '../tabres.css'
import '../responsive.css'
import {
BrowserRouter as Router,
Route,
Switch,
NavLink,
Redirect,
} from 'react-router-dom'
import Home from './Home'
import About from './About'
import Service from './Service'
import Team from './Team'
import Project from './Project'
import Start from './Start'
import Error from './Error'
const Nav = () => {
return (
<>
<Router>
<nav>
<div id="Container">
<div id="NavContentWrapper">
<h2 id="NavTitle">Brigrate</h2>
<ul id="NavLinks">
<li>
<NavLink exact activeClassName="active" to="/">
Home
</NavLink>
</li>
<li>
<NavLink exact activeClassName="active" to="/about">
About
</NavLink>
</li>
<li>
<NavLink exact activeClassName="active" to="/service">
Service
</NavLink>
</li>
<li>
<NavLink exact activeClassName="active" to="/team">
Team
</NavLink>
</li>
<li>
<NavLink exact activeClassName="active" to="/project">
Project
</NavLink>
</li>
<li>
<NavLink exact activeClassName="active" to="/start">
Get Started
</NavLink>
</li>
</ul>
<div id="Burger">
<i className="fas fa-bars"></i>
<ul id="NavLinksMobile">
<li>
<NavLink exact activeClassName="active" to="/">
Home
</NavLink>
</li>
<li>
<NavLink exact activeClassName="active" to="/about">
About
</NavLink>
</li>
<li>
<NavLink exact activeClassName="active" to="/service">
Service
</NavLink>
</li>
<li>
<NavLink exact activeClassName="active" to="/team">
Team
</NavLink>
</li>
<li>
<NavLink exact activeClassName="active" to="/project">
Project
</NavLink>
</li>
<li>
<NavLink exact activeClassName="active" to="/start">
Get Started
</NavLink>
</li>
</ul>
</div>
</div>
</div>
</nav>
<Switch>
<Route exact path="/" component={Home} />
<Route exact path="/about" component={About} />
<Route exact path="/service" component={Service} />
<Route exact path="/team" component={Team} />
<Route exact path="/project" component={Project} />
<Route exact path="/start" component={Start} />
<Redirect to="/" />
</Switch>
</Router>
</>
)
}
export default Nav