domsPlace/public/App.jsx
2018-03-18 14:22:04 +11:00

61 lines
1.5 KiB
JavaScript

/*
* App
* Overall App wrapper, contains a lot of the logic and handling of how the
* site will function and display.
*
* Dependencies:
* styles/components/_app.scss
*
* Version:
* 1.0.0 - 2018/02/23
*/
import React from 'react';
import { HashRouter, Route, Switch } from 'react-router-dom';
import Header from './components/Header';
import Footer from './components/Footer';
//Pages
import IndexPage from './components/pages/IndexPage';
import AboutPage from './components/pages/AboutPage';
import ProgrammingPage from './components/pages/about/ProgrammingPage';
import PrivacyPolicyPage from './components/pages/PrivacyPolicyPage';
import ContactPage from './components/pages/ContactPage';
//App
class App extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<HashRouter>
<div className="c-app">
<Header />
<Switch>
<Route exact path="/" component={IndexPage} />
<Route exact path="/about" component={AboutPage} />
<Route exact path="/about/programming" component={ProgrammingPage} />
<Route exact path="/privacy-policy" component={PrivacyPolicyPage} />
<Route exact path="/privacy" component={PrivacyPolicyPage} />
<Route exact path="/policy" component={PrivacyPolicyPage} />
<Route exact path="/contact" component={ContactPage} />
</Switch>
<Footer />
</div>
</HashRouter>
)
}
}
export default App;