summaryrefslogtreecommitdiff
path: root/client/src/components/Card/Card.jsx
blob: d0210f88778c0ce4f17e8a258996b209ea3ac5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import React from 'react'
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="" height="250px" />
      <h2 className={styles.card__title}>{title}</h2>
    </div>
  )
}

export default Card