Fix download button & improvements

This commit is contained in:
pheralb
2022-03-04 13:34:58 +00:00
parent ac2a81563b
commit b67dcc0be9
9 changed files with 80 additions and 59 deletions
+23 -20
View File
@@ -6,37 +6,40 @@ import {
Input,
InputLeftElement,
InputGroup,
Button,
Flex,
HStack,
Text,
Image,
Icon,
} from "@chakra-ui/react";
import { IoCloudDownloadOutline, IoLink, IoSearch } from "react-icons/io5";
import { IoSearch } from "react-icons/io5";
import { BiLinkExternal } from "react-icons/bi";
import { Algolia } from "components/svg";
import Tap from "animations/tap";
const AutocompleteItem = ({ id, title, href, url }) => {
return (
<>
<Link href={`/svg/${id}`} passHref>
<Box
id={id}
w="100%"
borderWidth="1px"
borderRadius="6px"
mt="3"
cursor="pointer"
>
<HStack py={6} px={6} spacing={2}>
<Image src={href} alt={title} boxSize="20px" mr="2" />
<Text fontSize="18px" fontWeight="light">
{title}
</Text>
<Icon as={IoLink} />
</HStack>
</Box>
</Link>
<Tap>
<Link href={`/svg/${id}`} passHref>
<Box
id={id}
w="100%"
borderWidth="1px"
borderRadius="6px"
mt="3"
cursor="pointer"
>
<HStack py={6} px={6} spacing={2}>
<Image src={href} alt={title} boxSize="20px" mr="2" />
<Text fontSize="18px" fontWeight="light">
{title}
</Text>
<Icon as={BiLinkExternal} />
</HStack>
</Box>
</Link>
</Tap>
</>
);
};