Files
impersonator/src/components/Footer.js

69 lines
1.8 KiB
JavaScript
Raw Normal View History

2021-08-22 03:44:44 +05:30
import React from "react";
import {
useColorMode,
Flex,
VStack,
Heading,
Spacer,
Link,
Text,
2021-11-29 02:37:42 +05:30
Alert,
HStack,
Box,
2021-11-29 02:45:48 +05:30
Stack,
2021-08-22 03:44:44 +05:30
} from "@chakra-ui/react";
import { ExternalLinkIcon } from "@chakra-ui/icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
2021-11-29 00:25:25 +05:30
import { faTwitter } from "@fortawesome/free-brands-svg-icons";
2021-08-22 03:44:44 +05:30
const Social = ({ icon, link }) => {
return (
<Link href={link} isExternal>
<FontAwesomeIcon icon={icon} size="lg" />
</Link>
);
};
function Footer() {
const { colorMode } = useColorMode();
const underlineColor = { light: "gray.500", dark: "gray.400" };
return (
<Flex py="4" borderTop="2px" borderTopColor={underlineColor[colorMode]}>
<Spacer flex="1" />
<VStack>
2021-11-29 02:37:42 +05:30
<Alert status="info" variant="solid" rounded="lg">
2021-11-29 02:45:48 +05:30
<Stack direction={{ base: "column", md: "row" }}>
<Box>Found the project helpful?</Box>
<HStack>
<Text>Support it on</Text>
<Link
href="https://gitcoin.co/grants/3613/impersonator"
isExternal
>
<HStack fontWeight="bold" textDecor="underline">
<Text>Gitcoin Grants</Text>
<ExternalLinkIcon />
</HStack>
</Link>
2021-11-29 02:37:42 +05:30
</HStack>
2021-11-29 02:45:48 +05:30
</Stack>
2021-11-29 02:37:42 +05:30
</Alert>
2021-08-22 03:44:44 +05:30
<Heading size="md">
Built by:{" "}
2021-11-29 00:25:25 +05:30
<Social icon={faTwitter} link="https://twitter.com/apoorvlathey" />
<Link href="https://twitter.com/apoorvlathey" isExternal>
2021-08-22 03:44:44 +05:30
<Text decoration="underline" display="inline">
2021-11-29 00:25:25 +05:30
@apoorvlathey
2021-08-22 03:44:44 +05:30
</Text>{" "}
<ExternalLinkIcon />
</Link>
</Heading>
</VStack>
<Spacer flex="1" />
</Flex>
);
}
export default Footer;