summaryrefslogtreecommitdiff
path: root/client/src/components/Card/Card.jsx
blob: 94609553d1a3e40443d6f186557ece605175bbc1 (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="" />
      <h2 className={styles.card__title}>{title}</h2>
    </div>
  )
}

export default Card