You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4 KiB

import React from "react"
import { Box, Icon, Text, Stack, Link, chakra } from "@chakra-ui/react"
import { IoLogoTwitter, IoLogoLinkedin } from "react-icons/io"
import { MdEmail } from "react-icons/md"
import { DiGithubBadge } from "react-icons/di"
type FooterLinkProps = {
icon?: React.ElementType
href?: string
label?: string
}
const FooterLink: React.FC<FooterLinkProps> = ({ icon, href, label }) => (
<Link display="inline-block" href={href} aria-label={label} isExternal>
<Icon as={icon} fontSize="xl" color="gray.400" />
</Link>
)
const links = [
{
icon: DiGithubBadge,
label: "GitHub",
href: "https://github.com/imdotdev/imdev",
},
{
icon: MdEmail,
label: "Email",
href: "mailto:cto@188.com",
},
]
export const Footer = () => (
<Box as="footer" mt={12} textAlign="center">
<Text fontSize="sm" display="flex" alignItems="center" justifyContent="center">
<span>Proudly made in </span>
<chakra.span fontSize="24px" ml="2">🇨🇳</chakra.span>
<chakra.span ml="2">by codecc.com</chakra.span>
</Text>
<Stack mt={4} direction="row" spacing="12px" justify="center">
{links.map((link) => (
<FooterLink key={link.href} {...link} />
))}
</Stack>
</Box>
)
export default Footer