summaryrefslogtreecommitdiff
path: root/client/src/components/Card
diff options
context:
space:
mode:
authorrohan09-raj <[email protected]>2022-08-25 16:22:34 +0530
committerrohan09-raj <[email protected]>2022-08-25 16:22:34 +0530
commitdac079cd6c5693ee3a75611fe20b691ad30ed7ea (patch)
tree2dc9fda5b1405a3a779a4ccf1f6b6fc8b7d2f5d5 /client/src/components/Card
parent35176b53a88ef17a1035851aa5ce0a23d7e744f6 (diff)
font changes
Diffstat (limited to 'client/src/components/Card')
-rw-r--r--client/src/components/Card/Card.jsx4
-rw-r--r--client/src/components/Card/Card.module.css7
2 files changed, 6 insertions, 5 deletions
diff --git a/client/src/components/Card/Card.jsx b/client/src/components/Card/Card.jsx
index 9460955..89b89b3 100644
--- a/client/src/components/Card/Card.jsx
+++ b/client/src/components/Card/Card.jsx
@@ -3,8 +3,8 @@ import styles from './Card.module.css'
const Card = ({ title, image, onClick }) => {
return (
- <div onClick={ onClick } className={styles.card}>
- <img className={styles.card__image} src={image} alt="" />
+ <div onClick={onClick} className={styles.card}>
+ <img className={styles.card__image} src={image} alt="" height="300px" />
<h2 className={styles.card__title}>{title}</h2>
</div>
)
diff --git a/client/src/components/Card/Card.module.css b/client/src/components/Card/Card.module.css
index e351fd5..54dd471 100644
--- a/client/src/components/Card/Card.module.css
+++ b/client/src/components/Card/Card.module.css
@@ -1,8 +1,8 @@
@import '../../styles/GlobalVariables.css';
.card {
- height: 300px;
- width: 300px;
+ height: 500px;
+ width: 500px;
display: flex;
flex-direction: column;
justify-content: center;
@@ -13,7 +13,8 @@
transition: 0.2s all;
cursor: pointer;
color: var(--color-black);
- text-decoration-line: none;
+ font-size: 2.25rem;
+ text-decoration: none;
}
.card:active {