From 36be0484078f627ceecd23297d15a2c4331d1f1e Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Fri, 22 Mar 2024 19:30:38 -0500 Subject: [PATCH] more --- src/Components/Home/HomePage.js | 27 ++++++++++++++++++++++++- src/Components/SignupPage/SignupPage.js | 2 +- src/styles/homepage.scss | 8 ++++---- src/styles/navbar.scss | 1 + 4 files changed, 32 insertions(+), 6 deletions(-) diff --git a/src/Components/Home/HomePage.js b/src/Components/Home/HomePage.js index 2843a6f..b9fa37d 100644 --- a/src/Components/Home/HomePage.js +++ b/src/Components/Home/HomePage.js @@ -1,14 +1,17 @@ -import { useEffect } from "react"; +import { useEffect, useState } from "react"; import { collection, setDoc, doc } from "firebase/firestore"; import { db } from "../../firebase"; import Button from "../../pageElements/Button"; import { v4 as uuidv4 } from "uuid"; import arrow from "../../Assets/Images/Arrow.png"; import { useNavigate } from "react-router-dom"; +import ConfirmModal from "../Modals/ConfirmModal"; import "../../styles/homepage.scss"; const HomePage = () => { const navigate = useNavigate(); + const [showPromoModal, setShowPromoModal] = useState(false); + const issueText = ""; const handleNavigate = () => { navigate("/signup"); @@ -18,6 +21,15 @@ const HomePage = () => { navigate("/login"); }; + const handleConfirmPromoCode = () => { + // + }; + + const handleCancelModal = () => { + setShowPromoModal(!showPromoModal); + navigate("/signup"); + }; + const handleDemo = () => { const supReq = null; navigate("/requestpage/supReq"); @@ -282,6 +294,19 @@ const HomePage = () => { + {showPromoModal ? ( + + ) : ( + <> + )} ); diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index ee077bc..c2e51f5 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from "react"; +import React, { useState } from "react"; import Col from "react-bootstrap/Col"; import Form from "react-bootstrap/Form"; import Row from "react-bootstrap/Row"; diff --git a/src/styles/homepage.scss b/src/styles/homepage.scss index 450f95c..393e919 100644 --- a/src/styles/homepage.scss +++ b/src/styles/homepage.scss @@ -131,8 +131,8 @@ section.section-1 { font-family: Roboto; color: #fff; padding: 20px 0px 10px 0px; - font-size: 20px; - font-weight: 100; + font-size: 19px; + font-weight: 300; max-width: 370px; line-height: 29px; text-align: justify; @@ -163,10 +163,10 @@ h1.heading-2 { p.text-block-1 { color: #fff; font-family: Roboto; - font-size: 25px; + font-size: 26px; font-style: normal; font-weight: 300; - line-height: 1.6; + line-height: 1.5; width: 525px; margin-top: 24px; } diff --git a/src/styles/navbar.scss b/src/styles/navbar.scss index c86920b..12972e9 100644 --- a/src/styles/navbar.scss +++ b/src/styles/navbar.scss @@ -57,6 +57,7 @@ flex-direction: row; width: 167px; margin-top: -2px; + cursor: pointer; } .novo-logo {