Added about informaion and cards. Also Changed theme

About now has cards, and has a dark theme
Other page themes needed to be changed to account for About's theme
This commit is contained in:
Camerin Figueroa 2021-09-20 15:13:44 -04:00
parent 2142310d8d
commit 11bc2df70a
6 changed files with 39 additions and 16 deletions

View File

@ -1,24 +1,36 @@
import React from 'react'; import React from 'react';
import { connect } from 'react-redux'; import { Link } from 'react-router-dom';
import './css/Github.css'; import './css/About.css';
import {getRepos} from '../actions'; import ReactImage from '../img/react.webp';
import ProfilePic from '../img/profile.webp';
import Theater from './Theater'; import Theater from './Theater';
import space from '../img/space.webp'; import Card from './Card';
class Github extends React.Component {
class About extends React.Component {
componentDidMount () {
document.title = "About";
}
render() { render() {
return ( return (
<div className="About"> <div className="About">
<h1>About</h1> <Theater title="About" description="This page has information about me and about this site." extraClasses="h-50v" />
<p>Hello World</p> <Card title="Build with React" image={ReactImage}>
This website is created with <a href="https://reactjs.org/">React</a>, a javascript library for creating user interfaces and webapps.
React uses a component based design to help developers create easily re-usable code, and to help streamline the development process.
JSX is a part of react which makes it easy to design websites directly in javascript code.
</Card>
<Card title="Camerin Figueroa" image={ProfilePic}>
I am a computer science student at Marist College in Poughkeepsie, NY. I'm closing in on my Bachelors Degree in Computer Science.
I went to Orange County Community College for my Associates Degree in Computer Science. You can find a few of my projects on my
<a href="https://github.com/RaspberryProgramming" target="_blank" rel="noreferrer"> github</a> or look through a list in the
<Link to="/github"> Github Page</Link>
</Card>
</div> </div>
); );
} }
} }
const mapStateToProps = (state) => { export default About;
return { repos: state.github.repos};
}
export default connect(mapStateToProps, { getRepos })(Github);

View File

@ -0,0 +1,8 @@
.About {
background-color: #3F3F4A;
color: #AA9AA0
}
.About .title {
color: #BF8D8C !important;
}

View File

@ -1,18 +1,17 @@
a:link { a:link {
color:black; color: #FFFFFF;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
} }
a:visited { a:visited {
color:black; color: #FFF0F0;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
} }
body { body {
font-family: Arial, Helvetica, sans-serif; font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; margin:0;
margin:0;
width: 100vw; width: 100vw;
overflow-x: hidden; overflow-x: hidden;

View File

@ -8,6 +8,10 @@
height:100%; height:100%;
} }
.theater.h-50v {
height:50vw;
}
.theater-bg { .theater-bg {
height: 100%; height: 100%;

BIN
src/img/profile.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
src/img/react.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB