Files
impersonator/src/components/Footer.js

48 lines
1.2 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,
} 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>
<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;