summaryrefslogtreecommitdiff
path: root/src/pages/Enrollment/FormOne
diff options
context:
space:
mode:
authorrohan09-raj <[email protected]>2022-07-19 23:00:40 +0530
committerrohan09-raj <[email protected]>2022-07-19 23:00:40 +0530
commit7e69bd83d62859a80a9baf44beb005a7980525cf (patch)
tree6cb42f09a584ef478eeb3a78a6f402375068d527 /src/pages/Enrollment/FormOne
parenta574ddfda9d7ce7c5266d1f99acf351546f8857e (diff)
Submit button add and radio select addd
Diffstat (limited to 'src/pages/Enrollment/FormOne')
-rw-r--r--src/pages/Enrollment/FormOne/FormOne.jsx49
-rw-r--r--src/pages/Enrollment/FormOne/FormOne.module.css33
2 files changed, 82 insertions, 0 deletions
diff --git a/src/pages/Enrollment/FormOne/FormOne.jsx b/src/pages/Enrollment/FormOne/FormOne.jsx
new file mode 100644
index 0000000..7233581
--- /dev/null
+++ b/src/pages/Enrollment/FormOne/FormOne.jsx
@@ -0,0 +1,49 @@
+import React from 'react'
+import styles from './FormOne.module.css'
+
+const FormOne = () => {
+ return (
+ <div className={styles.formone}>
+ <div className={styles.formone__radio}>
+ <span className={styles.formone__resident}>
+ <input
+ type="radio"
+ id="indian"
+ name="resident"
+ value="Indian Resident"
+ required
+ />
+ <label htmlFor="indian">Indian Resident</label>
+ </span>
+ <span className={styles.formone__resident}>
+ <input
+ type="radio"
+ id="indian"
+ name="resident"
+ value="Indian Resident"
+ required
+ />
+ <label htmlFor="indian">Non-Residential Indian</label>
+ </span>
+ </div>
+
+ <div className={styles.formone__fullname}>
+ <label htmlFor="fullName">Full Name</label>
+ <input
+ type="text"
+ id="fullName"
+ name="fullName"
+ value="Full Name"
+ required
+ />
+ </div>
+
+ <div className={styles.formone__dob}>
+ <label htmlFor="dob">Date of Birth</label>
+ <input type="date" id="dob" name="dob" value="Date of Birth" required />
+ </div>
+ </div>
+ )
+}
+
+export default FormOne
diff --git a/src/pages/Enrollment/FormOne/FormOne.module.css b/src/pages/Enrollment/FormOne/FormOne.module.css
new file mode 100644
index 0000000..6fbe371
--- /dev/null
+++ b/src/pages/Enrollment/FormOne/FormOne.module.css
@@ -0,0 +1,33 @@
+.formone {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ font-family: 'Barlow';
+ font-size: var(--font-medium-s);
+}
+
+.formone__radio {
+ display: flex;
+ align-items: center;
+}
+
+.formone__resident {
+ display: flex;
+ align-items: center;
+ margin: 15px;
+}
+
+.formone__resident input[type='radio'] {
+ width: 1.5rem;
+ height: 1.5rem;
+}
+
+.formone__fullname {
+ display: flex;
+ flex-direction: column;
+}
+
+#fullName {
+ margin: 10px;
+ padding: 20px 10px;
+}