From 49be4dfc3d478ad02876c9238c48c513edac1e7c Mon Sep 17 00:00:00 2001 From: rohan09-raj Date: Thu, 28 Jul 2022 17:56:15 +0530 Subject: refactoring folder structure --- client/src/pages/Enrollment/Address/Address.jsx | 47 ++++++++++++++ .../pages/Enrollment/Address/Address.module.css | 8 +++ .../Enrollment/DocumentScanner/DocumentScanner.jsx | 56 +++++++++++++++++ .../DocumentScanner/DocumentScanner.module.css | 5 ++ client/src/pages/Enrollment/Enrollment.jsx | 16 +++++ client/src/pages/Enrollment/Enrollment.module.css | 0 client/src/pages/Enrollment/FormOne/FormOne.jsx | 72 ++++++++++++++++++++++ .../pages/Enrollment/FormOne/FormOne.module.css | 46 ++++++++++++++ client/src/pages/Enrollment/FormTwo/FormTwo.jsx | 17 +++++ .../pages/Enrollment/FormTwo/FormTwo.module.css | 1 + .../pages/Enrollment/PhotoCapture/PhotoCapture.jsx | 52 ++++++++++++++++ .../PhotoCapture/PhotoCapture.module.css | 5 ++ 12 files changed, 325 insertions(+) create mode 100644 client/src/pages/Enrollment/Address/Address.jsx create mode 100644 client/src/pages/Enrollment/Address/Address.module.css create mode 100644 client/src/pages/Enrollment/DocumentScanner/DocumentScanner.jsx create mode 100644 client/src/pages/Enrollment/DocumentScanner/DocumentScanner.module.css create mode 100644 client/src/pages/Enrollment/Enrollment.jsx create mode 100644 client/src/pages/Enrollment/Enrollment.module.css create mode 100644 client/src/pages/Enrollment/FormOne/FormOne.jsx create mode 100644 client/src/pages/Enrollment/FormOne/FormOne.module.css create mode 100644 client/src/pages/Enrollment/FormTwo/FormTwo.jsx create mode 100644 client/src/pages/Enrollment/FormTwo/FormTwo.module.css create mode 100644 client/src/pages/Enrollment/PhotoCapture/PhotoCapture.jsx create mode 100644 client/src/pages/Enrollment/PhotoCapture/PhotoCapture.module.css (limited to 'client/src/pages/Enrollment') diff --git a/client/src/pages/Enrollment/Address/Address.jsx b/client/src/pages/Enrollment/Address/Address.jsx new file mode 100644 index 0000000..6a32bcf --- /dev/null +++ b/client/src/pages/Enrollment/Address/Address.jsx @@ -0,0 +1,47 @@ +import React from 'react' +import Header from '../../../components/Header/Header' +import Input from '../../../components/Input/Input' +import SubmitButton from '../../../components/SubmitButton/SubmitButton' + +import styles from './Address.module.css' + +const Address = () => { + return ( + <> +
+
+
+ + + + +
+
+ + + + +
+
+ + + + ) +} + +export default Address diff --git a/client/src/pages/Enrollment/Address/Address.module.css b/client/src/pages/Enrollment/Address/Address.module.css new file mode 100644 index 0000000..60958ba --- /dev/null +++ b/client/src/pages/Enrollment/Address/Address.module.css @@ -0,0 +1,8 @@ +.address { + display: flex; + justify-content: center; +} + +.address__container { + margin: 0px 20px; +} diff --git a/client/src/pages/Enrollment/DocumentScanner/DocumentScanner.jsx b/client/src/pages/Enrollment/DocumentScanner/DocumentScanner.jsx new file mode 100644 index 0000000..1ca2558 --- /dev/null +++ b/client/src/pages/Enrollment/DocumentScanner/DocumentScanner.jsx @@ -0,0 +1,56 @@ +import React from 'react' +import Header from '../../../components/Header/Header' +import CardScanner from '../../../components/Card/CardScanner' +import styles from './DocumentScanner.module.css' +import { Button, Grid, Typography } from '@mui/material' +import SubmitButton from '../../../components/SubmitButton/SubmitButton' + +const DocumentScanner = () => { + return ( + <> +
+
+ +
+ + + + + + + + +

+
+ + + Please place your document on the scanner. +
+ Close the lid. +
+ Wait for prompt to remove your document +
+
+
+ + + ) +} + +export default DocumentScanner diff --git a/client/src/pages/Enrollment/DocumentScanner/DocumentScanner.module.css b/client/src/pages/Enrollment/DocumentScanner/DocumentScanner.module.css new file mode 100644 index 0000000..ec59f61 --- /dev/null +++ b/client/src/pages/Enrollment/DocumentScanner/DocumentScanner.module.css @@ -0,0 +1,5 @@ +.card__container { + display: flex; + justify-content: center; + } + \ No newline at end of file diff --git a/client/src/pages/Enrollment/Enrollment.jsx b/client/src/pages/Enrollment/Enrollment.jsx new file mode 100644 index 0000000..b8bbc81 --- /dev/null +++ b/client/src/pages/Enrollment/Enrollment.jsx @@ -0,0 +1,16 @@ +import React from 'react' +import Header from '../../components/Header/Header' +import SubmitButton from '../../components/SubmitButton/SubmitButton' +import FormOne from './FormOne/FormOne' + +const Enrollment = () => { + return ( + <> +
+ + + + ) +} + +export default Enrollment diff --git a/client/src/pages/Enrollment/Enrollment.module.css b/client/src/pages/Enrollment/Enrollment.module.css new file mode 100644 index 0000000..e69de29 diff --git a/client/src/pages/Enrollment/FormOne/FormOne.jsx b/client/src/pages/Enrollment/FormOne/FormOne.jsx new file mode 100644 index 0000000..4ba274c --- /dev/null +++ b/client/src/pages/Enrollment/FormOne/FormOne.jsx @@ -0,0 +1,72 @@ +import React from 'react' +import Input from '../../../components/Input/Input' +import LabelCard from '../../../components/LabelCard/LabelCard' +import styles from './FormOne.module.css' + +const FormOne = () => { + return ( +
+
+ + + + + + + + +
+ + + +
+ + + +
+ +
+ + +
+
+ ) +} + +export default FormOne diff --git a/client/src/pages/Enrollment/FormOne/FormOne.module.css b/client/src/pages/Enrollment/FormOne/FormOne.module.css new file mode 100644 index 0000000..35d1e49 --- /dev/null +++ b/client/src/pages/Enrollment/FormOne/FormOne.module.css @@ -0,0 +1,46 @@ +.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__gender { + display: flex; +} + +.formone__dob { + display: flex; + flex-direction: column; +} + +.formone__dob input[type='date']::-webkit-calendar-picker-indicator { + width: 30px; + height: 30px; + margin: 0; +} + +.formone__dob_input { + width: 300px; + margin: 10px 0px; + padding: 11px 10px; + border: 3px solid; + border-radius: 10px; +} diff --git a/client/src/pages/Enrollment/FormTwo/FormTwo.jsx b/client/src/pages/Enrollment/FormTwo/FormTwo.jsx new file mode 100644 index 0000000..56bcd70 --- /dev/null +++ b/client/src/pages/Enrollment/FormTwo/FormTwo.jsx @@ -0,0 +1,17 @@ +import React from 'react' +import Input from '../../../components/Input/Input' +import Header from '../../../components/Header/Header' +import SubmitButton from '../../../components/SubmitButton/SubmitButton' + +const FormTwo = () => { + return ( +
+
+ + + +
+ ) +} + +export default FormTwo diff --git a/client/src/pages/Enrollment/FormTwo/FormTwo.module.css b/client/src/pages/Enrollment/FormTwo/FormTwo.module.css new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/client/src/pages/Enrollment/FormTwo/FormTwo.module.css @@ -0,0 +1 @@ + diff --git a/client/src/pages/Enrollment/PhotoCapture/PhotoCapture.jsx b/client/src/pages/Enrollment/PhotoCapture/PhotoCapture.jsx new file mode 100644 index 0000000..0b30848 --- /dev/null +++ b/client/src/pages/Enrollment/PhotoCapture/PhotoCapture.jsx @@ -0,0 +1,52 @@ +import React from 'react' +import Header from '../../../components/Header/Header' +import CardScanner from '../../../components/Card/CardScanner' +import styles from './PhotoCapture.module.css' +import { Button, Grid, Typography } from '@mui/material' + +const PhotoCapture = () => { + return ( + <> +
+
+ +
+ + + + + + + + +

+
+ + + Please look into the camera

+ Click Capture to Capture the photo

+ Click Reset the remove the captured photo +
+
+
+ + ) +} + +export default PhotoCapture diff --git a/client/src/pages/Enrollment/PhotoCapture/PhotoCapture.module.css b/client/src/pages/Enrollment/PhotoCapture/PhotoCapture.module.css new file mode 100644 index 0000000..ec59f61 --- /dev/null +++ b/client/src/pages/Enrollment/PhotoCapture/PhotoCapture.module.css @@ -0,0 +1,5 @@ +.card__container { + display: flex; + justify-content: center; + } + \ No newline at end of file -- cgit