svgl/components/card/index.js

30 lines
726 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-01-16 22:27:55 +00:00
import Hover from "animations/hover";
2022-01-21 22:30:32 +00:00
const Index = ({ title, url, href }) => {
2022-01-16 22:27:55 +00:00
return (
<Hover>
<Link href={url} passHref>
<Box
shadow="sm"
_hover={{ shadow: "md", border: "1px", borderColor: "#4bbfb7" }}
borderWidth="1px"
p={4}
cursor="pointer"
>
2022-01-21 22:30:32 +00:00
<Center>
<Image src={href} alt={title} boxSize="60px" />
</Center>
<Text mt="2" fontWeight="light" textAlign={"center"}>
2022-01-16 22:27:55 +00:00
{title}
</Text>
</Box>
</Link>
</Hover>
);
};
export default Index;