Update, built Contact Page

This commit is contained in:
2018-03-10 21:26:44 +11:00
parent ceb48e104c
commit c24c29c899
33 changed files with 1041 additions and 134 deletions

View File

@@ -10,11 +10,13 @@
* 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';
import IndexPage from './components/pages/IndexPage';
import ContactPage from './components/pages/ContactPage';
class App extends React.Component {
constructor(props) {
@@ -23,11 +25,18 @@ class App extends React.Component {
render() {
return (
<div className="c-app">
<Header />
<IndexPage />
<Footer />
</div>
<HashRouter>
<div className="c-app">
<Header />
<Switch>
<Route exact path="/" component={IndexPage} />
<Route path="/contact" component={ContactPage} />
</Switch>
<Footer />
</div>
</HashRouter>
)
}
}