From 1107bbfcae2687ba19ece9e1c46f67edbad5efe7 Mon Sep 17 00:00:00 2001 From: sonaligarud Date: Mon, 14 Oct 2024 15:48:07 +0530 Subject: [PATCH] Task #228043 - learnathon - create contnet form UI changes --- .../src/pages/learnathon/lernCreatorForm.js | 452 +++++++++++------- packages/nulp_elite/src/styles/style.css | 7 + 2 files changed, 273 insertions(+), 186 deletions(-) diff --git a/packages/nulp_elite/src/pages/learnathon/lernCreatorForm.js b/packages/nulp_elite/src/pages/learnathon/lernCreatorForm.js index cca632c3..40f5e01d 100644 --- a/packages/nulp_elite/src/pages/learnathon/lernCreatorForm.js +++ b/packages/nulp_elite/src/pages/learnathon/lernCreatorForm.js @@ -21,6 +21,9 @@ import * as util from "../../services/utilService"; import { v4 as uuidv4 } from "uuid"; import { useNavigate, useLocation } from "react-router-dom"; import Container from "@mui/material/Container"; +import InputLabel from '@mui/material/InputLabel'; +import FormControl from '@mui/material/FormControl'; +import Alert from '@mui/material/Alert'; // const [globalSearchQuery, setGlobalSearchQuery] = useState(); // // location.state?.globalSearchQuery || undefined @@ -547,7 +550,7 @@ const LernCreatorForm = () => { "noopener,noreferrer" ) } - style={{ float: "right" }} + style={{ float: "right", padding: "7px 35px", borderRadius: '20px !important' }} > Need Help @@ -555,68 +558,89 @@ const LernCreatorForm = () => { - - - Participant Details - - + + + + Participant Details + + + - - - + + + + + User Name * + + + + - - - + + + + + Email * + + + + + - - + + + + Mobile
Number *
+
+ + +
- +
+ Submission Details - - -
- - - - - + + + + + Submission Icon + + { accept: "jpg,png", }} /> -
-
- - - - {categories.map((option) => ( - - {option} - - ))} - - {guidelineLink && ( - - View and Download Guidelines - - )} - - - + + Supported formats: MP4, PDF, HTML5, YouTube links + + + + + + + + + Category of Participation * + + + + {categories.map((option) => ( + + {option} + + ))} + + + + + {guidelineLink && ( + + View and Download Guidelines + + )} + + + + + + + + Name of Organisation * + + + + + - - + + + Name of Department/Group + + + + + - - - {themes.map((theme) => ( - - {theme} - - ))} - + + + Indicative Theme * + + + + {themes.map((theme) => ( + + {theme} + + ))} + + + - - + + + Title of Submission * + + + + + - - + + + Description * + + + + + - -
- - - - - - -
+ + + File Upload * + + + + + + Supported formats: MP4, PDF, HTML5, YouTube links +
-
- - + + } + label="Terms and conditions" /> - } - label="Terms and conditions" - /> -
+
+ + - @@ -798,7 +878,7 @@ const LernCreatorForm = () => { disabled={isNotDraft} className="viewAll" onClick={() => handleSubmit("review")} - sx={{ ml: 2,padding:'9px 35px' }} // Adds spacing between the buttons + sx={{ ml: 2, padding: '9px 35px' }} // Adds spacing between the buttons > Submit diff --git a/packages/nulp_elite/src/styles/style.css b/packages/nulp_elite/src/styles/style.css index 76e96417..e0212363 100644 --- a/packages/nulp_elite/src/styles/style.css +++ b/packages/nulp_elite/src/styles/style.css @@ -3756,3 +3756,10 @@ animation: blink-border 1s infinite alternate; border-color: #15353f; } } +.mandatory-symbol{ + color: #8C1823; +} +.center-align{ + display: flex; + justify-content: center; +}