Added About Page

This commit is contained in:
Camerin 2021-09-19 21:31:08 -04:00
parent 647a222fca
commit ab5da7f253
3 changed files with 37 additions and 15 deletions

24
src/components/About.js Normal file
View File

@ -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);

View File

@ -5,19 +5,17 @@ import Home from './Home';
import Github from './Github';
const App = (props) => {
return (
return (
<BrowserRouter>
<div className="App">
<BrowserRouter>
<div>
<Navigation />
<Switch>
<Route path="/" exact component={Home} />
<Route path="/github" component={Github} />
</Switch>
</div>
</BrowserRouter>
<Navigation />
<Switch>
<Route path="/" exact component={Home} />
<Route path="/github" component={Github} />
</Switch>
</div>
);
</BrowserRouter>
);
}
export default App;

View File

@ -10,10 +10,6 @@ const Navigation = (props) => {
Home
<HouseDoor />
</Link>
<Link to="/about">
About Me
<FileEarmarkPerson />
</Link>
<Link to="/github">
Github Repos
<Github />
@ -22,6 +18,10 @@ const Navigation = (props) => {
Youtube Videos
<Youtube />
</Link>
<Link to="/about">
About
<FileEarmarkPerson />
</Link>
</div>
);
}