summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorrohan09-raj <[email protected]>2022-07-19 13:47:16 +0530
committerrohan09-raj <[email protected]>2022-07-19 13:47:16 +0530
commita574ddfda9d7ce7c5266d1f99acf351546f8857e (patch)
tree7a79ed2c7da14f976ac6994f802c791832fec77c /src/components
parent391e1cfee65e66bc9ceeea71c8015effc02e2bbf (diff)
Added routes, enrollment, update component
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Card/Card.jsx11
-rw-r--r--src/components/Card/Card.module.css26
-rw-r--r--src/components/Header/Header.jsx4
-rw-r--r--src/components/Header/Header.module.css14
4 files changed, 47 insertions, 8 deletions
diff --git a/src/components/Card/Card.jsx b/src/components/Card/Card.jsx
index 93e8102..3d66067 100644
--- a/src/components/Card/Card.jsx
+++ b/src/components/Card/Card.jsx
@@ -1,11 +1,12 @@
import React from 'react'
+import styles from './Card.module.css'
-const Card = (title, image) => {
+const Card = ({ title, image }) => {
return (
- <>
- <img src={image} alt="" />
- <h2>{title}</h2>
- </>
+ <div className={styles.card}>
+ <img className={styles.card__image} src={image} alt="" />
+ <h2 className={styles.card__title}>{title}</h2>
+ </div>
)
}
diff --git a/src/components/Card/Card.module.css b/src/components/Card/Card.module.css
index e69de29..ff09072 100644
--- a/src/components/Card/Card.module.css
+++ b/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 rgba(0, 0, 0, 0.24);
+}
+
+.card__title {
+ margin: 15px 0px;
+}
diff --git a/src/components/Header/Header.jsx b/src/components/Header/Header.jsx
index 0cbe47f..d90aafe 100644
--- a/src/components/Header/Header.jsx
+++ b/src/components/Header/Header.jsx
@@ -4,8 +4,8 @@ import styles from './Header.module.css'
const Header = ({ subheading }) => {
return (
<header className={styles.header}>
- <h1>AADHAAR</h1>
- <h3>{subheading}</h3>
+ <h1 className={styles.header__heading}>AADHAAR</h1>
+ <h3 className={styles.header__subheading}>{subheading}</h3>
</header>
)
}
diff --git a/src/components/Header/Header.module.css b/src/components/Header/Header.module.css
index b30d5b7..8e6084f 100644
--- a/src/components/Header/Header.module.css
+++ b/src/components/Header/Header.module.css
@@ -1,8 +1,20 @@
+@import '../../styles/GlobalVariables.css';
+
.header {
- font-family: "Fredoka One", cursive;
+ 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;
+}