more
This commit is contained in:
@@ -1,14 +1,17 @@
|
|||||||
import { useEffect } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { collection, setDoc, doc } from "firebase/firestore";
|
import { collection, setDoc, doc } from "firebase/firestore";
|
||||||
import { db } from "../../firebase";
|
import { db } from "../../firebase";
|
||||||
import Button from "../../pageElements/Button";
|
import Button from "../../pageElements/Button";
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
import arrow from "../../Assets/Images/Arrow.png";
|
import arrow from "../../Assets/Images/Arrow.png";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
|
import ConfirmModal from "../Modals/ConfirmModal";
|
||||||
import "../../styles/homepage.scss";
|
import "../../styles/homepage.scss";
|
||||||
|
|
||||||
const HomePage = () => {
|
const HomePage = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
const [showPromoModal, setShowPromoModal] = useState(false);
|
||||||
|
const issueText = "";
|
||||||
|
|
||||||
const handleNavigate = () => {
|
const handleNavigate = () => {
|
||||||
navigate("/signup");
|
navigate("/signup");
|
||||||
@@ -18,6 +21,15 @@ const HomePage = () => {
|
|||||||
navigate("/login");
|
navigate("/login");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleConfirmPromoCode = () => {
|
||||||
|
//
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleCancelModal = () => {
|
||||||
|
setShowPromoModal(!showPromoModal);
|
||||||
|
navigate("/signup");
|
||||||
|
};
|
||||||
|
|
||||||
const handleDemo = () => {
|
const handleDemo = () => {
|
||||||
const supReq = null;
|
const supReq = null;
|
||||||
navigate("/requestpage/supReq");
|
navigate("/requestpage/supReq");
|
||||||
@@ -282,6 +294,19 @@ const HomePage = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
{showPromoModal ? (
|
||||||
|
<ConfirmModal
|
||||||
|
titleText="Enter Promo Code"
|
||||||
|
onCancel={handleCancelModal}
|
||||||
|
buttonLabelText="Enter Code"
|
||||||
|
isPromoModal={true}
|
||||||
|
issueText={issueText ? issueText : null}
|
||||||
|
onConfirm={handleConfirmPromoCode}
|
||||||
|
cancelButtonText="I don't have a code"
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<></>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useState, useEffect } from "react";
|
import React, { useState } from "react";
|
||||||
import Col from "react-bootstrap/Col";
|
import Col from "react-bootstrap/Col";
|
||||||
import Form from "react-bootstrap/Form";
|
import Form from "react-bootstrap/Form";
|
||||||
import Row from "react-bootstrap/Row";
|
import Row from "react-bootstrap/Row";
|
||||||
|
|||||||
@@ -131,8 +131,8 @@ section.section-1 {
|
|||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding: 20px 0px 10px 0px;
|
padding: 20px 0px 10px 0px;
|
||||||
font-size: 20px;
|
font-size: 19px;
|
||||||
font-weight: 100;
|
font-weight: 300;
|
||||||
max-width: 370px;
|
max-width: 370px;
|
||||||
line-height: 29px;
|
line-height: 29px;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
@@ -163,10 +163,10 @@ h1.heading-2 {
|
|||||||
p.text-block-1 {
|
p.text-block-1 {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
font-size: 25px;
|
font-size: 26px;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
line-height: 1.6;
|
line-height: 1.5;
|
||||||
width: 525px;
|
width: 525px;
|
||||||
margin-top: 24px;
|
margin-top: 24px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,6 +57,7 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
width: 167px;
|
width: 167px;
|
||||||
margin-top: -2px;
|
margin-top: -2px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.novo-logo {
|
.novo-logo {
|
||||||
|
|||||||
Reference in New Issue
Block a user