From 1dfe159f4d94bbcafc5a361fcdc5f82b44761db4 Mon Sep 17 00:00:00 2001 From: Keshav-Aneja Date: Sun, 4 Feb 2024 04:01:53 +0530 Subject: [PATCH] feat: upload reg. proof --- src/components/Hero.js | 52 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/src/components/Hero.js b/src/components/Hero.js index f94d5ab..d761935 100644 --- a/src/components/Hero.js +++ b/src/components/Hero.js @@ -1,5 +1,5 @@ import Image from 'next/image'; -import React from 'react'; +import React, { useState } from 'react'; import L_Piece from '../../public/assets/piece_l.svg'; import R_Piece from '../../public/assets/piece_r.svg'; import M_Piece from '../../public/assets/piece_m.svg'; @@ -78,11 +78,59 @@ const Hero = ({ loggedIn }) => { ); } }; + const [openUploadModal, setOpenUploadModal] = useState(false); + const [proofSubmit, setProofSubmit] = useState(false); return (
+ {!proofSubmit && ( +
+ Due to Re-enrollments, we would appreciate if you can share your proof or registration + +
+ )} + {openUploadModal && ( + <> +
+

+ Upload a screenshot of your VTOP page, showing you have enrolled in CSI{' '} +

+
+ { + setOpenUploadModal(false); + setProofSubmit(true); + }} + /> + +
+
+
setOpenUploadModal(false)} + >
+ + )}
{
-
+