Adding contact page.

This commit is contained in:
2018-05-13 14:44:00 +10:00
parent dd9ac5f2f0
commit 466bdee08c
9 changed files with 182 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ import { HashRouter, Route, Switch } from 'react-router-dom';
//Pages
import Homepage from './page/home/Homepage';
import ContactPage from './page/contact/ContactPage';
class App extends React.Component {
constructor(props) {
@@ -41,6 +42,7 @@ class App extends React.Component {
<main className="o-main">
<Switch>
<Route exact path="/" component={ Homepage } />
<Route exact path="/contact" component={ ContactPage } />
</Switch>
</main>
</div>