From 692892a0ada3f8940fa560de4823039aecb8981b Mon Sep 17 00:00:00 2001 From: Camerin Figueroa Date: Wed, 20 Oct 2021 22:08:56 -0400 Subject: [PATCH] Added Introduction page and moved to be the homepage --- src/components/App.js | 3 +-- src/components/Intro.js | 15 ++++++++++----- src/components/Navigation.js | 4 ---- src/components/css/Navigation.css | 2 +- src/components/css/Topic.css | 11 ++++++++++- src/components/subcomponents/Topic.js | 2 +- 6 files changed, 23 insertions(+), 14 deletions(-) diff --git a/src/components/App.js b/src/components/App.js index d82e8da..f45730a 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -13,10 +13,9 @@ const App = (props) => {
- + } /> -
diff --git a/src/components/Intro.js b/src/components/Intro.js index 786a2d6..8a37abb 100644 --- a/src/components/Intro.js +++ b/src/components/Intro.js @@ -108,7 +108,8 @@ class Intro extends React.Component { } else if (input === "down" && this.state.nextLoc >= this.topics.length) { // Set something to happen when you reach the end - + this.props.showNavigation(); + localStorage.setItem('intro', true); } }; @@ -120,10 +121,12 @@ class Intro extends React.Component { }); }, 100); - document.title = "Introduction"; // Set document title + document.title = "HomePage"; // Set document title // Hide the navigation - this.props.hideNavigation(); + if (!localStorage.getItem('intro')) { + this.props.hideNavigation(); + } } @@ -139,9 +142,11 @@ class Intro extends React.Component { , - Marist.edu + Field of Study: Computer Science + ... + College: Marist.edu , - + View a list of projects I've done right on this website. You can easily direct to github where you can see the project code itself. , diff --git a/src/components/Navigation.js b/src/components/Navigation.js index 7b49567..42b091a 100644 --- a/src/components/Navigation.js +++ b/src/components/Navigation.js @@ -22,10 +22,6 @@ const Navigation = (props) => { About - - View the Intro - -