Skip to content

Commit

Permalink
onboarding form option added
Browse files Browse the repository at this point in the history
  • Loading branch information
Us-sync committed Feb 28, 2024
1 parent 902b8b1 commit 9bc12cc
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 35 deletions.
45 changes: 23 additions & 22 deletions .firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,26 @@ logo.svg,1702805755363,106fd0e0e25e62773089d32eafec6046eb8f0d1a196e632a72cdfd228
profile.png,1707892322036,3db19429a79553f09c0adebdb3d58cbb8699e45584f31fc73c55198c67ce3acf
signin.svg,1686127288433,f60118db2a3203e28dc8285cf5d2dafbc799618ee6b2a4d0d3a63f36ba584c8e
vite.svg,1680593882164,59ec4b6085a0cb1bf712a5e48dd5f35b08e34830d49c2026c18241be04e05d5a
index.html,1709113948447,90c02b2a50db4c3312d3618dd2a6198782a7d08c4f5428646741bf84c123f2ad
assets/AdminDashboard-e2aa2ac7.js,1709113948438,e7fd5f5c1ecd0a1b513df9ee22abad6331d3b7bc09f6b5b01b4322714718722a
assets/ajax-loader-e7b44c86.gif,1709113948437,e9699a225e244ba8bb48532313e5c56a76fe08358c6dd684fb3234f2f63e7961
assets/index-75f14255.css,1709113948438,72e8b81ac8df8c5ea5c364b701e1152c45c40c356a55c2a1d549905f26fdbeae
assets/index.esm-61580003.js,1709113948439,6684f868f02cca842a73ab7425baa8ef15066bfbe79bf1f63822c9259f2b1fb3
assets/HomePage-b24adaeb.css,1709113948438,ef5e568be5243837bb0cdcb121aa8102d6691ba2cc28944221e7ec5694ca2791
assets/MyProfile-a6b97ac6.js,1709113948439,7941fb389dbdeb7ef3dc0639fef527803653c51456c5cc230ce509f94b69946e
assets/OnBoardingForm-32aaed15.css,1709113948438,4a7a1a73bc11949362cef64afe47bcf5b2af7e5005656bdeb606ed6e95c0fcb2
assets/OnBoardingForm-58b46601.js,1709113948439,a301a7164b3b7682f0a52ec0bbb7cd97eb35380acea988e8eaac24c754b5535d
assets/ProfileList-1e34a258.css,1709113948438,94d6f076540233e531ecca64bde431e73adb69f92a320e89633a9d9618618365
assets/SignIn-5bc87c6f.js,1709113948439,9f43a02427ba50235b609398d1bc3712735d91a8cbdc9ea6a0c7d908eefcc824
assets/SignIn-6cbff121.css,1709113948438,909f6d5e701cf3178e792fc058922ee2b77e8c457d869a47e0c7195a533e4191
assets/ProfileList-ca55f60f.js,1709113948439,2663f0cc167491206bb71bd85fb2f62810e31b80a5fd571b57f0492133bffcda
assets/SignUp-24293b50.js,1709113948439,76858cd99b9b893d459de607dd406c48f1bb0bd79cddb1164506f57c50c65423
assets/SignUp-2fffacea.css,1709113948438,069a282e6dad21397c728a994b3e55f7993bf3be2acf3142d4a97a04b340c071
assets/slick-12459f22.svg,1709113948438,d00477d40ed40fa1dd3bdee27d9286804121b15fea83bae7d5415d902b055de0
assets/UnauthorizedError-12747e48.js,1709113948438,4f6bdc388867efb5b26a9172ef5481e9279368d98ebb5eb3b224fbb17c9f30a7
assets/UnderReview-7265d46a.js,1709113948438,98841c25471b61149f867b1cf88e6f8b58a9ea2291e66cb2b943dc17d57ec5a9
assets/Test-0921506f.js,1709113948438,f837d43b4de8b2f80031442b9afc836744c1282c6d2fec21f5f4425dbca8e3b5
assets/Team-a17c9c48.js,1709113948439,1e30eaee58cbc4f09aca95d77c3c12939f29ad9c0c3f41b6dd01f6866145e054
assets/HomePage-cfea8cf7.js,1709113948439,bd0ed7a92f06b9b18de3d22d602118810c62035f39ba6759bfffd6a60661abfe
assets/index-9969789a.js,1709113948450,b90c1964ea7b5da53328bab6339ca30d362e53604dba12e3796abd086034ca73
index.html,1709116207240,8763df7ccfc46f007ab3f5f0b0bff843dffaabd6f59bc9a7b728d3351adaafc6
assets/AdminDashboard-f7827c79.js,1709116207197,6a8c15efce9f0d7425cac43428175bf2fffbcf46a3f0b561ca14d7c55a6533d1
assets/ajax-loader-e7b44c86.gif,1709116207149,e9699a225e244ba8bb48532313e5c56a76fe08358c6dd684fb3234f2f63e7961
assets/index.esm-38296b33.js,1709116207178,5a436e2cc8ca197ed25cbd5173d01c3bbdcdcd62bee45ffd9fa67020b7203ab8
assets/HomePage-b24adaeb.css,1709116207148,ef5e568be5243837bb0cdcb121aa8102d6691ba2cc28944221e7ec5694ca2791
assets/MyProfile-ad75a09c.js,1709116207199,c62c60d1d331c97afa245f14f4b19b6140dea5bcadd16b42c899eaae9668f6dc
assets/OnBoardingForm-293d4ffb.js,1709116207196,8633c680e93a059aa3c8ea1b98505c12e9fcbcb892880388c7fb62e907b2bfb7
assets/OnBoardingForm-32aaed15.css,1709116207149,4a7a1a73bc11949362cef64afe47bcf5b2af7e5005656bdeb606ed6e95c0fcb2
assets/profile-8c4220ae.js,1709116207177,f60e493c8d3532ced3574a014a8b42be01817cbdad6623db46979232b179823e
assets/index-75f14255.css,1709116207149,72e8b81ac8df8c5ea5c364b701e1152c45c40c356a55c2a1d549905f26fdbeae
assets/ProfileList-1e34a258.css,1709116207149,94d6f076540233e531ecca64bde431e73adb69f92a320e89633a9d9618618365
assets/SignIn-36f5cb00.js,1709116207196,1dda1ff4fbab300b692034e0bee801a9e1462f3ff4e8e3c60a52915df95b7f48
assets/ProfileList-feb1770a.js,1709116207197,a6228267689c1d72eb2858fe9f17b8eb9153a94cf098ab3f2bdefe286a6f9ffa
assets/SignIn-546af57c.css,1709116207149,4bb3288d1795822ccfa709d00c582eb82d54076ff675a8131eaef78ade317c7c
assets/SignUp-e3b75324.css,1709116207149,8be2958483ad350262da500ff6c58324b21a208bdb1e2b8026a1c40502dee505
assets/SignUp-6dfefe7b.js,1709116207178,fc6dc30ae77164a6fd2c51590bbbed7240234e1aa46f530371adc6f81d082edc
assets/Team-c9423a2a.js,1709116207196,54c9901aa4ab6fcced38cbdd15cd75ec9f7b50f2f21adfb354773add5dd75192
assets/slick-12459f22.svg,1709116207146,d00477d40ed40fa1dd3bdee27d9286804121b15fea83bae7d5415d902b055de0
assets/UnauthorizedError-6a4c0ac9.js,1709116207198,1aa21aadd640ae7f459bd04744aca288567ecdb59f023c724109081e9989d533
assets/Test-9e9b925c.js,1709116207194,326dc922bfd0537b159ce25575a5b15943fa1c2212d95707c54f5aac576d424f
assets/UnderReview-0dacea65.js,1709116207178,4296837b4c1200f682de441e5bbb6303b064fd5ab7e7601fdad4b2d52b59c700
assets/HomePage-9c0c68bb.js,1709116207240,2730d04c21be6fd9287efcc468c85832cafb4a0c83ca97c1449518681009f6d2
assets/index-d38320fe.js,1709116207295,8edc49b7d0e87bd93a4a1a599424ecefcf1653d4801a5049a87bcd965ac03ec2
41 changes: 28 additions & 13 deletions src/components/OnBoardingForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ref, uploadBytes, getDownloadURL } from "firebase/storage";
import { useNavigate } from "react-router-dom";
import "./OnBoardingForm.css";
import { toast } from "react-toastify";
import major from "../data/major.json";

const OnBoardingForm = () => {
const navigate = useNavigate();
Expand Down Expand Up @@ -170,15 +171,23 @@ const OnBoardingForm = () => {
>
Major<span style={{ color: "red" }}>*</span>
</label>
<input
type="text"
<select
id="major"
name="major"
value={formData.major}
onChange={handleChange}
className="form-control form-control-onboard"
required
/>
>
<option value="" disabled>
Select a major
</option>
{major.programs.map((program, index) => (
<option key={index} value={program}>
{program}
</option>
))}
</select>
</div>
<div className="mb-3">
<label
Expand All @@ -202,17 +211,23 @@ const OnBoardingForm = () => {
htmlFor="linkedin"
className="form-label form-label-onboard text-left"
>
LinkedIn Profile<span style={{ color: "red" }}>*</span>
LinkedIn Username<span style={{ color: "red" }}>*</span>
</label>
<input
type="text"
id="linkedin"
name="linkedin"
value={formData.linkedin}
onChange={handleChange}
className="form-control form-control-onboard"
required
/>
<div className="input-group">
<span className="input-group-text">
https://linkedin.com/in/
</span>
<input
type="text"
id="linkedin"
name="linkedin"
value={formData.linkedin}
onChange={handleChange}
className="form-control form-control-onboard"
placeholder="Enter your LinkedIn username"
required
/>
</div>
</div>
<div className="mb-3">
<label
Expand Down
79 changes: 79 additions & 0 deletions src/data/major.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@

{
"programs": [
"BA",
"BA-Hons-Economics",
"BA-Hons-English",
"BA-Hons-Political-Science",
"BA-Hons-Psychology",
"BBA",
"BBA-LLB",
"BCom-Hons",
"BCA",
"BDesign",
"BEd",
"BLaw",
"BOptometry",
"BPharmacy",
"BPhysiotherapy",
"BSc-Forensic-Science",
"BSc-Hons-Agriculture",
"BSc-Hons-Biochemistry",
"BSc-Hons-Biotechnology",
"BSc-Hons-Environmental-Science",
"BSc-Hons-Industrial-Chemistry",
"BSc-Hons-Life-Sciences",
"BSc-MLT",
"BSc-Nursing-Basic",
"BSc-Nursing-Post-Basic",
"BSc-Physics-Mathematics-Elective-Subjects",
"BSc-Radiological-Imaging-Technology",
"BSc-Zoology-Botany-Chemistry",
"BTech-Agricultural-Engineering",
"BTech-Biomedical-Engineering",
"BTech-Biotechnology",
"BTech-Civil-Engineering",
"BTech-CSE",
"BTech-Electrical-Engineering",
"BTech-Electronics-Communication-Engineering",
"BTech-Food-Technology",
"BTech-Mechanical-Engineering",
"MA-English",
"MArch",
"MBA",
"MBA-Agri-Business",
"MCom",
"MCA",
"MEd",
"MLaw-International-Law",
"MPharmacy-Pharmaceutical-Chemistry",
"MPharmacy-Pharmaceutics",
"MPharmacy-Pharmacology",
"MPhysiotherapy",
"MSc-Agriculture",
"MSc-Biochemistry",
"MSc-Biotechnology",
"MSc-Chemistry",
"MSc-Environmental-Science",
"MSc-Mathematics",
"MSc-Medical-Anatomy",
"MSc-Medical-Biochemistry",
"MSc-Medical-Microbiology",
"MSc-Medical-Physiology",
"MSc-Microbiology",
"MSc-Physics",
"MTech-Bioinformatics",
"MTech-Biotechnology",
"MTech-Civil-Engineering",
"MTech-CSE",
"MTech-Electrical-Engineering",
"MTech-Electronics-Communication-Engineering",
"MTech-Food-Technology",
"MTech-Mechanical-Engineering",
"MTech-Robotics",
"PhD-Programs",
"PharmD",
"PharmD-Post-Baccalaureate"
]
}

0 comments on commit 9bc12cc

Please sign in to comment.