From bac8f5a35b5bb1c8c9338ef33d6eef14a6821bf3 Mon Sep 17 00:00:00 2001 From: Camerin Figueroa Date: Tue, 19 Oct 2021 21:16:44 -0400 Subject: [PATCH] Added buttons to intro --- src/components/Intro.js | 10 +++++++++- src/components/css/Intro.css | 18 ++++++++++++++++++ src/components/subcomponents/Topic.js | 4 ++-- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/src/components/Intro.js b/src/components/Intro.js index 5d37ac4..786a2d6 100644 --- a/src/components/Intro.js +++ b/src/components/Intro.js @@ -3,6 +3,7 @@ import { connect } from 'react-redux'; import './css/Intro.css'; import {hideNavigation, showNavigation} from '../actions'; import Topic from './subcomponents/Topic'; +import { ChevronDoubleUp, ChevronDoubleDown } from 'react-bootstrap-icons'; class Intro extends React.Component { constructor() { @@ -127,6 +128,7 @@ class Intro extends React.Component { } // Topics to display in intro + // DISCLAIMER: Please add content to the topic or bugs may occur... topics = [
@@ -140,17 +142,22 @@ class Intro extends React.Component { 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. , - + Explore Cam's Projects ]; render() { + // TODO: Fix bug where scrolling too fast will allow one to exit expected topic range + // Render page return (
+
{this.handleInput('up')}}>
@@ -160,6 +167,7 @@ class Intro extends React.Component { +
{this.handleInput('down')}}>
); } diff --git a/src/components/css/Intro.css b/src/components/css/Intro.css index 5da2849..11d1c56 100644 --- a/src/components/css/Intro.css +++ b/src/components/css/Intro.css @@ -4,6 +4,7 @@ width:100vw; height:100vh; display:flex; + flex-direction: column; } .intro.start { @@ -72,4 +73,21 @@ .intro .children a { color: #C4C4C4 +} + +.intro .navbutton { + z-index: 12; + font-size: 48px; + width: 100%; + top:0; + left: 50%; + background-color: rgba(45, 45, 45, 0.40); + display:flex; + align-items: center; + justify-content: center; + +} + +.intro .navbutton.bottom { + margin-top: auto; } \ No newline at end of file diff --git a/src/components/subcomponents/Topic.js b/src/components/subcomponents/Topic.js index d40355a..39e8f2f 100644 --- a/src/components/subcomponents/Topic.js +++ b/src/components/subcomponents/Topic.js @@ -16,12 +16,12 @@ const Card = (props) => { className="topic" style={{backgroundImage: props.background ? `url(${props.background})`:''}} > - +
{props.title}
{props.children}
-
+
); };