2021-08-22 03:44:44 +05:30
|
|
|
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,
|
2023-06-21 16:52:09 +05:30
|
|
|
Center,
|
2021-08-22 03:44:44 +05:30
|
|
|
} from "@chakra-ui/react";
|
|
|
|
|
import { ExternalLinkIcon } from "@chakra-ui/icons";
|
|
|
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
2022-01-22 05:35:21 +05:30
|
|
|
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
2023-06-21 16:52:09 +05:30
|
|
|
import { faTwitter, faDiscord } from "@fortawesome/free-brands-svg-icons";
|
2021-08-22 03:44:44 +05:30
|
|
|
|
2022-01-22 05:35:21 +05:30
|
|
|
const Social = ({ icon, link }: { icon: IconProp; link: string }) => {
|
2021-08-22 03:44:44 +05:30
|
|
|
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>
|
2022-03-09 15:26:13 +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>
|
2022-09-24 16:17:22 +05:30
|
|
|
{process.env.REACT_APP_GITCOIN_GRANTS_ACTIVE === "true" ? (
|
|
|
|
|
<>
|
|
|
|
|
<Text>Support it on</Text>
|
|
|
|
|
<Link
|
2023-04-29 00:28:13 +05:30
|
|
|
href={process.env.REACT_APP_GITCOIN_GRANTS_LINK}
|
2022-09-24 16:17:22 +05:30
|
|
|
isExternal
|
|
|
|
|
>
|
|
|
|
|
<HStack fontWeight="bold" textDecor="underline">
|
|
|
|
|
<Text>Gitcoin Grants</Text>
|
|
|
|
|
<ExternalLinkIcon />
|
|
|
|
|
</HStack>
|
|
|
|
|
</Link>
|
|
|
|
|
</>
|
|
|
|
|
) : (
|
|
|
|
|
<>
|
|
|
|
|
<Text>Support at</Text>
|
|
|
|
|
<Link
|
|
|
|
|
href="https://etherscan.io/address/apoorv.eth"
|
|
|
|
|
isExternal
|
|
|
|
|
>
|
|
|
|
|
<HStack fontWeight="bold" textDecor="underline">
|
|
|
|
|
<Text>apoorv.eth</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>
|
2023-06-21 16:52:09 +05:30
|
|
|
<Center pt="1">
|
|
|
|
|
<Link
|
|
|
|
|
href={"https://discord.gg/4VTnuVzfmm"}
|
|
|
|
|
color="twitter.200"
|
|
|
|
|
isExternal
|
|
|
|
|
>
|
|
|
|
|
<FontAwesomeIcon icon={faDiscord} size="2x" />
|
|
|
|
|
</Link>
|
|
|
|
|
</Center>
|
2021-08-22 03:44:44 +05:30
|
|
|
</VStack>
|
|
|
|
|
<Spacer flex="1" />
|
|
|
|
|
</Flex>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Footer;
|