diff options
author | Blaster4385 <[email protected]> | 2022-07-22 08:48:41 +0530 |
---|---|---|
committer | Blaster4385 <[email protected]> | 2022-07-22 08:48:41 +0530 |
commit | 3fd257b4fce2da8ffe56b1100e0f73448d89453b (patch) | |
tree | b3c95edffe3b658f5fc5a6ab49ad5a29c3434169 /src/components/Card | |
parent | 0fb6667da5c0c97b5a0a44ea35705c51dacf0311 (diff) |
Add photograph and document scanner pages
Diffstat (limited to 'src/components/Card')
-rw-r--r-- | src/components/Card/CardScanner.jsx | 16 | ||||
-rw-r--r-- | src/components/Card/CardScanner.module.css | 26 |
2 files changed, 42 insertions, 0 deletions
diff --git a/src/components/Card/CardScanner.jsx b/src/components/Card/CardScanner.jsx new file mode 100644 index 0000000..29caf39 --- /dev/null +++ b/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 ( + <> + <div className={styles.card}> + <img className={styles.card__image} src={image} alt="" /> + </div> + <SubmitButton /> + </> + ) +} + +export default CardScanner diff --git a/src/components/Card/CardScanner.module.css b/src/components/Card/CardScanner.module.css new file mode 100644 index 0000000..af237e2 --- /dev/null +++ b/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 |