@taylorwhite/copacetic-frontity-theme
Version:
A frontity theme made with Chakra UI
59 lines (51 loc) • 1.3 kB
JavaScript
import { Box, PseudoBox, SimpleGrid } from "@chakra-ui/core";
import React from "react";
import { SocialMenu } from "./header/social-menu";
import { connect } from "frontity";
const FooterSection = props => (
<Box
as="footer"
pos="relative"
bg="primary.900"
py={{ base: "32px", lg: "40px" }}
{...props}
/>
);
const FooterSectionGroup = props => (
<SimpleGrid
columns={{ base: 1, md: 3 }}
maxWidth="1150px"
mx="auto"
width="90%"
{...props}
/>
);
const FooterSectionItem = props => (
<PseudoBox padding="24px" color="white" textAlign="center" {...props} />
);
const Footer = ({ state }) => (
<FooterSection alignSelf="flex-end">
<FooterSectionGroup>
<FooterSectionItem
fontWeight="bold"
fontFamily="heading"
>
© {new Date().getFullYear()} TaylorChaseWhite
</FooterSectionItem>
<FooterSectionItem borderColor="accent.400">
<SocialMenu
ml="0"
justifyContent="center"
menu={state.theme.socialLinks}
/>
</FooterSectionItem>
<FooterSectionItem
fontWeight="bold"
fontFamily="heading"
>
made with frontity
</FooterSectionItem>
</FooterSectionGroup>
</FooterSection>
);
export default connect(Footer);