From 32e1d21d1588deb469ef86d34619e0f7c6111756 Mon Sep 17 00:00:00 2001 From: Camerin Figueroa Date: Mon, 20 Sep 2021 15:11:19 -0400 Subject: [PATCH] Added title to each page --- src/components/Github.js | 4 ++-- src/components/Home.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Github.js b/src/components/Github.js index 188c4d3..bbc1354 100644 --- a/src/components/Github.js +++ b/src/components/Github.js @@ -8,9 +8,9 @@ import space from '../img/space.webp'; class Github extends React.Component { componentDidMount() { + document.title = "Github Repos"; if (!this.props.repos) { this.props.getRepos(); - console.log("A"); } } @@ -49,7 +49,7 @@ class Github extends React.Component { star. Any projects that have a website will have a button that will bring you right to the site" background={space} - peak + extraClasses="peak" />
{this.renderRepos()} diff --git a/src/components/Home.js b/src/components/Home.js index 35755bc..4c3dfab 100644 --- a/src/components/Home.js +++ b/src/components/Home.js @@ -3,7 +3,7 @@ import Theater from './Theater'; import './css/Home.css'; const Home = (props) => { - + document.title = "Welcome to my Portfolio"; const title = "Welcome to my Portfolio"; const description =