2021-06-24 10:48:39 +02:00
|
|
|
import { makeStyles } from '@material-ui/core'
|
|
|
|
import React from 'react'
|
|
|
|
import Link from 'next/link'
|
|
|
|
|
|
|
|
const useStyles = makeStyles({
|
|
|
|
homeCard: {
|
2021-06-25 02:07:36 +02:00
|
|
|
width: '300px',
|
2021-06-24 10:48:39 +02:00
|
|
|
height: '150px',
|
|
|
|
background: '#1f1b24',
|
|
|
|
margin: '10px',
|
|
|
|
padding: '20px',
|
|
|
|
borderRadius: '15px',
|
|
|
|
|
|
|
|
'&:hover': {
|
|
|
|
background: '#2c2633',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
marginTop: '3px',
|
|
|
|
},
|
|
|
|
desc: {}
|
|
|
|
})
|
|
|
|
|
|
|
|
function HomeCard({title, desc, link=''}) {
|
|
|
|
|
|
|
|
const classes = useStyles()
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Link href={link}>
|
|
|
|
<div className={classes.homeCard}>
|
|
|
|
<h1 className={classes.title}>{title}</h1>
|
|
|
|
<p className={classes.desc}>{desc}</p>
|
|
|
|
</div>
|
|
|
|
</Link>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default HomeCard
|