mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-21 22:53:35 -05:00
35 lines
937 B
TypeScript
35 lines
937 B
TypeScript
import { Box, Image, useColorModeValue } from "@chakra-ui/react";
|
|
import { useMyTheme } from "hooks/common";
|
|
import { useRouter } from "next/dist/client/router";
|
|
import FooterContent from "./FooterContent";
|
|
import FooterWaves from "./FooterWaves";
|
|
|
|
const Footer: React.FC = () => {
|
|
const species = useRouter().asPath.charCodeAt(1) % 2 === 0 ? "squid" : "octo";
|
|
const { themeColorHex: themeColor } = useMyTheme();
|
|
const footerImageSrc = useColorModeValue(
|
|
{ octo: "b8ing_light", squid: "boing_light" },
|
|
{ octo: "b8ing_dark", squid: "boing_dark" }
|
|
)[species];
|
|
|
|
return (
|
|
<Box as="footer" mt="auto">
|
|
<Image
|
|
src={`/layout/${footerImageSrc}.png`}
|
|
bg={themeColor}
|
|
w="80px"
|
|
ml="auto"
|
|
mr="35%"
|
|
mb="-5.1%"
|
|
mt="5rem"
|
|
userSelect="none"
|
|
loading="lazy"
|
|
/>
|
|
<FooterWaves />
|
|
<FooterContent />
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default Footer;
|