Skip to content

Commit 6b599cb

Browse files
Add files via upload
1 parent e95db8f commit 6b599cb

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/index.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
import './index.css';
4+
import 'bootstrap/dist/css/bootstrap.min.css';
5+
import { Route, BrowserRouter as Router, Switch, Redirect } from 'react-router-dom';
6+
import Navigation from './components/Navigation';
7+
import Home from './pages/Home';
8+
import Manifesto from './pages/Manifesto';
9+
import Journal from './pages/Journal';
10+
import Contact from './pages/Contact';
11+
import Login from './pages/Login';
12+
import SignUp from './pages/SignUp';
13+
import Footer from './components/Footer';
14+
import Header from './components/Header';
15+
16+
function App() {
17+
return (
18+
<Router>
19+
<Navigation />
20+
<Switch>
21+
<Route path='/' exact component={Home} />
22+
<Route path='/manifesto' exact component={Manifesto} />
23+
<Route path='/journal' exact component={Journal} />
24+
<Route path='/contact' exact component={Contact} />
25+
<Route path='/login' exact component={Login} />
26+
<Route path='/signup' exact component={SignUp} />
27+
<Route path='/header' component={Header} />
28+
<Redirect to='/' />
29+
</Switch>
30+
<Footer />
31+
</Router>
32+
);
33+
}
34+
35+
ReactDOM.render(<App />, document.getElementById('root'));

0 commit comments

Comments
 (0)