mirror of
https://github.com/mitchell/mjfs.us.git
synced 2025-12-19 21:57:22 +00:00
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:
parent
e4a4580ceb
commit
ab5f6fb062
6 changed files with 70 additions and 36 deletions
25
src/routes/index.js
Normal file
25
src/routes/index.js
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue