2021-06-24 10:48:39 +02:00
|
|
|
import React from 'react'
|
|
|
|
import Link from 'next/link'
|
2021-06-28 02:28:53 +02:00
|
|
|
import {Text, Flex, Button} from '@chakra-ui/react'
|
2021-06-24 10:48:39 +02:00
|
|
|
|
2021-06-28 02:28:53 +02:00
|
|
|
function Card({title, desc, link}) {
|
2021-06-24 10:48:39 +02:00
|
|
|
return (
|
|
|
|
<Link href={link}>
|
2021-06-28 02:28:53 +02:00
|
|
|
<Flex direction='column' background='gray.900' width={300} height={150} p='5' borderRadius='15px'>
|
|
|
|
<Text fontSize='2xl'>{title}</Text>
|
|
|
|
<Text fontSize='lg' style={{ marginBottom: '10px' }}>{desc}</Text>
|
|
|
|
<Button colorScheme='teal' variant='outline'>Learn More</Button>
|
|
|
|
</Flex>
|
2021-06-24 10:48:39 +02:00
|
|
|
</Link>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2021-06-28 02:28:53 +02:00
|
|
|
export default Card
|