svgl/components/card/index.js

34 lines
777 B
JavaScript
Raw Normal View History

2022-01-16 22:27:55 +00:00
import React from "react";
import Link from "next/link";
2022-01-21 22:30:32 +00:00
import { Box, Text, Icon, Image, Center } from "@chakra-ui/react";
2022-03-04 13:34:58 +00:00
import Tap from "animations/tap";
2022-01-16 22:27:55 +00:00
2022-01-21 22:30:32 +00:00
const Index = ({ title, url, href }) => {
2022-01-16 22:27:55 +00:00
return (
2022-03-04 13:34:58 +00:00
<Tap>
<Link href={url} passHref>
<Box
_hover={{
shadow: "md",
transform: "translateY(-4px)",
transition: "all .3s",
}}
p={4}
cursor="pointer"
borderRadius="10px"
mb="3"
>
<Center>
<Image src={href} alt={title} boxSize="60px" />
</Center>
<Text mt="2" fontWeight="light" textAlign={"center"}>
{title}
</Text>
</Box>
</Link>
</Tap>
2022-01-16 22:27:55 +00:00
);
};
export default Index;