Added About Page
This commit is contained in:
parent
647a222fca
commit
ab5da7f253
|
|
@ -0,0 +1,24 @@
|
||||||
|
import React from 'react';
|
||||||
|
import { connect } from 'react-redux';
|
||||||
|
import './css/Github.css';
|
||||||
|
import {getRepos} from '../actions';
|
||||||
|
import Theater from './Theater';
|
||||||
|
import space from '../img/space.webp';
|
||||||
|
|
||||||
|
class Github extends React.Component {
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<div className="About">
|
||||||
|
<h1>About</h1>
|
||||||
|
<p>Hello World</p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const mapStateToProps = (state) => {
|
||||||
|
return { repos: state.github.repos};
|
||||||
|
}
|
||||||
|
|
||||||
|
export default connect(mapStateToProps, { getRepos })(Github);
|
||||||
|
|
@ -6,9 +6,8 @@ import Github from './Github';
|
||||||
|
|
||||||
const App = (props) => {
|
const App = (props) => {
|
||||||
return (
|
return (
|
||||||
<div className="App">
|
|
||||||
<BrowserRouter>
|
<BrowserRouter>
|
||||||
<div>
|
<div className="App">
|
||||||
<Navigation />
|
<Navigation />
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path="/" exact component={Home} />
|
<Route path="/" exact component={Home} />
|
||||||
|
|
@ -16,7 +15,6 @@ const App = (props) => {
|
||||||
</Switch>
|
</Switch>
|
||||||
</div>
|
</div>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,6 @@ const Navigation = (props) => {
|
||||||
Home
|
Home
|
||||||
<HouseDoor />
|
<HouseDoor />
|
||||||
</Link>
|
</Link>
|
||||||
<Link to="/about">
|
|
||||||
About Me
|
|
||||||
<FileEarmarkPerson />
|
|
||||||
</Link>
|
|
||||||
<Link to="/github">
|
<Link to="/github">
|
||||||
Github Repos
|
Github Repos
|
||||||
<Github />
|
<Github />
|
||||||
|
|
@ -22,6 +18,10 @@ const Navigation = (props) => {
|
||||||
Youtube Videos
|
Youtube Videos
|
||||||
<Youtube />
|
<Youtube />
|
||||||
</Link>
|
</Link>
|
||||||
|
<Link to="/about">
|
||||||
|
About
|
||||||
|
<FileEarmarkPerson />
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue