mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-20 22:21:27 -05:00
footer
This commit is contained in:
parent
122df1bd9c
commit
cf531ddda4
|
|
@ -1,5 +1,10 @@
|
|||
import React from "react"
|
||||
import { Box, useColorMode, useTheme as useChakraTheme } from "@chakra-ui/core"
|
||||
import {
|
||||
Box,
|
||||
useColorMode,
|
||||
useTheme as useChakraTheme,
|
||||
Flex,
|
||||
} from "@chakra-ui/core"
|
||||
|
||||
import { MenuBar } from "./MenuBar"
|
||||
import SideNav from "./SideNav"
|
||||
|
|
@ -9,6 +14,7 @@ import { ThemeColor } from "../../types"
|
|||
import { MyThemeProvider } from "../../themeContext"
|
||||
import { Theme } from "../../types"
|
||||
import { Helmet } from "react-helmet-async"
|
||||
import Footer from "./Footer"
|
||||
|
||||
const App: React.FC = () => {
|
||||
const chakraTheme = useChakraTheme()
|
||||
|
|
@ -58,11 +64,15 @@ const App: React.FC = () => {
|
|||
bg={theme[colorMode].bgColor}
|
||||
minH="100vh"
|
||||
fontFamily="'Montserrat', sans-serif"
|
||||
pb="20px"
|
||||
>
|
||||
<SideNav />
|
||||
<MenuBar />
|
||||
<Box maxWidth="1100px" pt={8} px={8} ml="auto" mr="auto">
|
||||
<Routes />
|
||||
<Box minH="calc(100vh - 210px)">
|
||||
<Routes />
|
||||
</Box>
|
||||
<Footer />
|
||||
</Box>
|
||||
</Box>
|
||||
</MyThemeProvider>
|
||||
|
|
|
|||
88
frontend-react/src/components/root/Footer.tsx
Normal file
88
frontend-react/src/components/root/Footer.tsx
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
import React, { useContext } from "react"
|
||||
import { Box, Flex, Heading, IconButton, Link } from "@chakra-ui/core"
|
||||
import MyThemeContext from "../../themeContext"
|
||||
import {
|
||||
FaTwitter,
|
||||
FaGithub,
|
||||
FaYoutube,
|
||||
FaDiscord,
|
||||
FaTwitch,
|
||||
} from "react-icons/fa"
|
||||
|
||||
const ICON_SIZE = "lg"
|
||||
|
||||
const Footer: React.FC = () => {
|
||||
const {
|
||||
themeColorWithShade,
|
||||
colorMode,
|
||||
darkerBgColor,
|
||||
themeColor,
|
||||
} = useContext(MyThemeContext)
|
||||
const buttonColor =
|
||||
colorMode === "light" ? `${themeColor}.200` : `${themeColor}.500`
|
||||
return (
|
||||
<Box mt="2em">
|
||||
<Link href="https://discord.gg/J6NqUvt" mx="1em">
|
||||
<IconButton
|
||||
isRound
|
||||
variant="ghost"
|
||||
//bg={buttonColor}
|
||||
icon={FaDiscord}
|
||||
aria-label="Link to Discord"
|
||||
size={ICON_SIZE}
|
||||
/>
|
||||
</Link>
|
||||
<Link href="https://twitter.com/sendouc" mx="1em">
|
||||
<IconButton
|
||||
isRound
|
||||
variant="ghost"
|
||||
//bg={buttonColor}
|
||||
icon={FaTwitter}
|
||||
aria-label="Link to Twitter"
|
||||
size={ICON_SIZE}
|
||||
/>
|
||||
</Link>
|
||||
<Link href="https://www.twitch.tv/sendou" mx="1em">
|
||||
<IconButton
|
||||
isRound
|
||||
variant="ghost"
|
||||
//bg={buttonColor}
|
||||
icon={FaTwitch}
|
||||
aria-label="Link to Twitch"
|
||||
size={ICON_SIZE}
|
||||
/>
|
||||
</Link>
|
||||
<Link href="https://github.com/Sendouc/sendou-ink" mx="1em">
|
||||
<IconButton
|
||||
isRound
|
||||
variant="ghost"
|
||||
//bg={buttonColor}
|
||||
icon={FaGithub}
|
||||
aria-label="Link to Github"
|
||||
size={ICON_SIZE}
|
||||
/>
|
||||
</Link>
|
||||
<Flex
|
||||
bg={themeColorWithShade}
|
||||
p="25px"
|
||||
flexShrink={0}
|
||||
borderRadius="5px"
|
||||
alignItems="center"
|
||||
fontWeight="bold"
|
||||
letterSpacing="1px"
|
||||
>
|
||||
<Link mx="2em" color={colorMode === "light" ? "#fffffe" : "#0d0d0d"}>
|
||||
About
|
||||
</Link>
|
||||
<Link mx="2em" color={colorMode === "light" ? "#fffffe" : "#0d0d0d"}>
|
||||
Thanks to
|
||||
</Link>
|
||||
<Link mx="2em" color={colorMode === "light" ? "#fffffe" : "#0d0d0d"}>
|
||||
External links
|
||||
</Link>
|
||||
</Flex>
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
|
||||
export default Footer
|
||||
Loading…
Reference in New Issue
Block a user