From a574ddfda9d7ce7c5266d1f99acf351546f8857e Mon Sep 17 00:00:00 2001
From: rohan09-raj <rajrohan1914@gmail.com>
Date: Tue, 19 Jul 2022 13:47:16 +0530
Subject: Added routes, enrollment, update component

---
 src/components/Card/Card.jsx | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

(limited to 'src/components/Card/Card.jsx')

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>
   )
 }
 
-- 
cgit 

