summaryrefslogtreecommitdiff
path: root/client/src/components/Card/Card.jsx
diff options
context:
space:
mode:
authorrohan09-raj <[email protected]>2022-07-28 17:56:15 +0530
committerrohan09-raj <[email protected]>2022-07-28 17:56:15 +0530
commit49be4dfc3d478ad02876c9238c48c513edac1e7c (patch)
treeb79c0bd1c2cb1582df0d03e88e4d03d097e9f0a0 /client/src/components/Card/Card.jsx
parentffefbc1c2a382597c6d9f90977f8c907e26fbe2e (diff)
refactoring folder structure
Diffstat (limited to 'client/src/components/Card/Card.jsx')
-rw-r--r--client/src/components/Card/Card.jsx13
1 files changed, 13 insertions, 0 deletions
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 (
+ <div className={styles.card}>
+ <img className={styles.card__image} src={image} alt="" />
+ <h2 className={styles.card__title}>{title}</h2>
+ </div>
+ )
+}
+
+export default Card