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'; import Github from './Github';
const App = (props) => { const App = (props) => {
return ( return (
<BrowserRouter>
<div className="App"> <div className="App">
<BrowserRouter> <Navigation />
<div> <Switch>
<Navigation /> <Route path="/" exact component={Home} />
<Switch> <Route path="/github" component={Github} />
<Route path="/" exact component={Home} /> </Switch>
<Route path="/github" component={Github} />
</Switch>
</div>
</BrowserRouter>
</div> </div>
); </BrowserRouter>
);
} }
export default App; export default App;

View File

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