Moved routes to its own component and folder; changed navbar css to be

used as intended; changed exprience css; version bump
This commit is contained in:
mitchelljfs 2018-07-15 22:40:29 -07:00
parent e4a4580ceb
commit ab5f6fb062
6 changed files with 70 additions and 36 deletions

25
src/routes/index.js Normal file
View file

@ -0,0 +1,25 @@
// @flow
import React from "react"
import { Route, Switch } from "react-router-dom"
import Home from "../containers/Home"
import Projects from "../containers/Projects"
import Experience from "../containers/Experience"
import Contact from "../containers/Contact"
type Props = {}
class Routes extends React.Component<Props> {
render() {
return (
<Switch>
<Route exact path="/" component={Home} />
<Route path="/projects" component={Projects} />
<Route path="/experience" component={Experience} />
<Route path="/contact" component={Contact} />
</Switch>
)
}
}
export default Routes