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/components/Card/Card.jsx | 13 +++++++++++ client/src/components/Card/Card.module.css | 26 ++++++++++++++++++++++ client/src/components/Card/CardScanner.jsx | 16 +++++++++++++ client/src/components/Card/CardScanner.module.css | 26 ++++++++++++++++++++++ client/src/components/Header/Header.jsx | 13 +++++++++++ client/src/components/Header/Header.module.css | 20 +++++++++++++++++ client/src/components/Input/Input.jsx | 22 ++++++++++++++++++ client/src/components/Input/Input.module.css | 19 ++++++++++++++++ client/src/components/LabelCard/LabelCard.jsx | 23 +++++++++++++++++++ .../src/components/LabelCard/LabelCard.module.css | 19 ++++++++++++++++ client/src/components/RadioSelect/RadioSelect.jsx | 0 .../components/RadioSelect/RadioSelect.module.css | 0 .../src/components/SubmitButton/SubmitButton.jsx | 18 +++++++++++++++ .../SubmitButton/SubmitButton.module.css | 20 +++++++++++++++++ 14 files changed, 235 insertions(+) create mode 100644 client/src/components/Card/Card.jsx create mode 100644 client/src/components/Card/Card.module.css create mode 100644 client/src/components/Card/CardScanner.jsx create mode 100644 client/src/components/Card/CardScanner.module.css create mode 100644 client/src/components/Header/Header.jsx create mode 100644 client/src/components/Header/Header.module.css create mode 100644 client/src/components/Input/Input.jsx create mode 100644 client/src/components/Input/Input.module.css create mode 100644 client/src/components/LabelCard/LabelCard.jsx create mode 100644 client/src/components/LabelCard/LabelCard.module.css create mode 100644 client/src/components/RadioSelect/RadioSelect.jsx create mode 100644 client/src/components/RadioSelect/RadioSelect.module.css create mode 100644 client/src/components/SubmitButton/SubmitButton.jsx create mode 100644 client/src/components/SubmitButton/SubmitButton.module.css (limited to 'client/src/components') diff --git a/client/src/components/Card/Card.jsx b/client/src/components/Card/Card.jsx new file mode 100644 index 0000000..3d66067 --- /dev/null +++ b/client/src/components/Card/Card.jsx @@ -0,0 +1,13 @@ +import React from 'react' +import styles from './Card.module.css' + +const Card = ({ title, image }) => { + return ( +
+ +

{title}

+
+ ) +} + +export default Card diff --git a/client/src/components/Card/Card.module.css b/client/src/components/Card/Card.module.css new file mode 100644 index 0000000..e351fd5 --- /dev/null +++ b/client/src/components/Card/Card.module.css @@ -0,0 +1,26 @@ +@import '../../styles/GlobalVariables.css'; + +.card { + height: 300px; + width: 300px; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + border: 3px solid var(--color-black); + border-radius: 10px; + margin: 30px; + transition: 0.2s all; + cursor: pointer; + color: var(--color-black); + text-decoration-line: none; +} + +.card:active { + transform: scale(0.98); + box-shadow: 3px 2px 22px 1px var(--color-shadow); +} + +.card__title { + margin: 15px 0px; +} diff --git a/client/src/components/Card/CardScanner.jsx b/client/src/components/Card/CardScanner.jsx new file mode 100644 index 0000000..29caf39 --- /dev/null +++ b/client/src/components/Card/CardScanner.jsx @@ -0,0 +1,16 @@ +import React from 'react' +import styles from './CardScanner.module.css' +import SubmitButton from '../SubmitButton/SubmitButton' + +const CardScanner = ({ title, image }) => { + return ( + <> +
+ +
+ + + ) +} + +export default CardScanner diff --git a/client/src/components/Card/CardScanner.module.css b/client/src/components/Card/CardScanner.module.css new file mode 100644 index 0000000..af237e2 --- /dev/null +++ b/client/src/components/Card/CardScanner.module.css @@ -0,0 +1,26 @@ +@import '../../styles/GlobalVariables.css'; + +.card { + height: 300px; + width: 600px; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + border: 3px solid var(--color-black); + border-radius: 10px; + margin: 30px; + transition: 0.2s all; + cursor: pointer; + color: var(--color-black); + text-decoration-line: none; +} + +.card:active { + transform: scale(0.98); + box-shadow: 3px 2px 22px 1px var(--color-shadow); +} + +.card__title { + margin: 15px 0px; +} \ No newline at end of file diff --git a/client/src/components/Header/Header.jsx b/client/src/components/Header/Header.jsx new file mode 100644 index 0000000..d90aafe --- /dev/null +++ b/client/src/components/Header/Header.jsx @@ -0,0 +1,13 @@ +import React from 'react' +import styles from './Header.module.css' + +const Header = ({ subheading }) => { + return ( +
+

AADHAAR

+

{subheading}

+
+ ) +} + +export default Header diff --git a/client/src/components/Header/Header.module.css b/client/src/components/Header/Header.module.css new file mode 100644 index 0000000..8e6084f --- /dev/null +++ b/client/src/components/Header/Header.module.css @@ -0,0 +1,20 @@ +@import '../../styles/GlobalVariables.css'; + +.header { + font-family: 'Fredoka One', cursive; + display: flex; + flex-direction: column; + align-items: center; + margin: 20px; + padding: 20px; +} + +.header__heading { + font-size: var(--font-large); + font-weight: 400; +} + +.header__subheading { + font-size: var(--font-medium); + font-weight: 400; +} diff --git a/client/src/components/Input/Input.jsx b/client/src/components/Input/Input.jsx new file mode 100644 index 0000000..ee79f3b --- /dev/null +++ b/client/src/components/Input/Input.jsx @@ -0,0 +1,22 @@ +import React from 'react' +import styles from './Input.module.css' + +const Input = ({ label, id, value, type, name }) => { + return ( +
+
+ + +
+
+ ) +} + +export default Input diff --git a/client/src/components/Input/Input.module.css b/client/src/components/Input/Input.module.css new file mode 100644 index 0000000..cafb5f1 --- /dev/null +++ b/client/src/components/Input/Input.module.css @@ -0,0 +1,19 @@ +.input { + display: flex; + justify-content: center; + font-family: 'Barlow'; + font-size: var(--font-medium-s); +} + +.input__container { + display: flex; + flex-direction: column; +} + +.input__field { + width: 300px; + margin: 10px 0px; + padding: 20px 10px; + border: 3px solid; + border-radius: 10px; +} diff --git a/client/src/components/LabelCard/LabelCard.jsx b/client/src/components/LabelCard/LabelCard.jsx new file mode 100644 index 0000000..be02f01 --- /dev/null +++ b/client/src/components/LabelCard/LabelCard.jsx @@ -0,0 +1,23 @@ +import React from 'react' +import styles from './LabelCard.module.css' + +const LabelCard = ({ id, name, value, title, image }) => { + return ( +
+ + +
+ ) +} + +export default LabelCard diff --git a/client/src/components/LabelCard/LabelCard.module.css b/client/src/components/LabelCard/LabelCard.module.css new file mode 100644 index 0000000..8511596 --- /dev/null +++ b/client/src/components/LabelCard/LabelCard.module.css @@ -0,0 +1,19 @@ +.labelcard { + text-align: center; +} + +.card { + display: flex; + flex-direction: column; + align-items: center; + margin: 5px; +} + +.card__image { + border: 3px solid var(--color-black); + border-radius: 10px; +} + +.card__title { + margin: 5px 0px; +} diff --git a/client/src/components/RadioSelect/RadioSelect.jsx b/client/src/components/RadioSelect/RadioSelect.jsx new file mode 100644 index 0000000..e69de29 diff --git a/client/src/components/RadioSelect/RadioSelect.module.css b/client/src/components/RadioSelect/RadioSelect.module.css new file mode 100644 index 0000000..e69de29 diff --git a/client/src/components/SubmitButton/SubmitButton.jsx b/client/src/components/SubmitButton/SubmitButton.jsx new file mode 100644 index 0000000..567d923 --- /dev/null +++ b/client/src/components/SubmitButton/SubmitButton.jsx @@ -0,0 +1,18 @@ +import React from 'react' +import styles from './SubmitButton.module.css' + +const SubmitButton = ({ onClick }) => { + return ( + <> + + + ) +} + +export default SubmitButton diff --git a/client/src/components/SubmitButton/SubmitButton.module.css b/client/src/components/SubmitButton/SubmitButton.module.css new file mode 100644 index 0000000..bb1b015 --- /dev/null +++ b/client/src/components/SubmitButton/SubmitButton.module.css @@ -0,0 +1,20 @@ +.submit { + position: absolute; + bottom: 100px; + right: 150px; + background: transparent; + border: none; + border-radius: 50%; + transition: 0.2s all; + cursor: pointer; +} + +.submit:active { + transform: scale(0.98); + box-shadow: 3px 2px 22px 1px var(--color-shadow); +} + +.submit__image { + height: 75px; + width: 75px; +} -- cgit