Skip to content

Commit

Permalink
Footer Fix
Browse files Browse the repository at this point in the history
- fix mobile styles
- move Footer to own dir
  • Loading branch information
heyjul3s committed Jan 13, 2021
1 parent 191b16c commit 35ebfe6
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 81 deletions.
81 changes: 0 additions & 81 deletions docs/components/Global/Footer.tsx

This file was deleted.

41 changes: 41 additions & 0 deletions docs/components/Global/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import React from 'react';
import { FlexRow, FlexCol } from 'artifak';
import { Container } from '../Container';
import {
FooterBrandText,
FooterBrandTagline,
FooterCopyright,
StyledFooter
} from './styles';

export function Footer() {
const currentYear = new Date().getFullYear();

return (
<Container pr={`1em`} pl={`1em`}>
<StyledFooter>
<FlexRow justifyContent="center">
<FlexCol columnSize={[12, 6]} pl={0}>
<FooterBrandText>
artifak
<FooterBrandTagline>
a React UI primitives library
</FooterBrandTagline>
</FooterBrandText>
</FlexCol>

<FlexCol
columnSize={[12, 6]}
display="flex"
justifyContent={['center', 'flex-end']}
p={['0.5em 0 0', 0]}
>
<FooterCopyright>
created by Julian Low 2020 - {currentYear}
</FooterCopyright>
</FlexCol>
</FlexRow>
</StyledFooter>
</Container>
);
}
1 change: 1 addition & 0 deletions docs/components/Global/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Footer } from './Footer';
49 changes: 49 additions & 0 deletions docs/components/Global/Footer/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import styled, { css } from 'styled-components';

export const FooterBrandText = styled.p`
${({ theme }) => css`
font-size: 1.1rem;
font-family: ${theme.fontFamily.poppins};
color: ${theme.colors.primary};
margin: 0;
@media (hover: none) {
text-align: center;
}
`}
`;

export const FooterBrandTagline = styled.span`
${({ theme }) => css`
font-size: 0.9rem;
font-family: ${theme.fontFamily.biryani};
padding-left: 0.25em;
color: ${theme.colors.grey};
margin: 0;
`}
`;

export const FooterCopyright = styled.p`
${({ theme }) => css`
font-size: 0.9rem;
font-family: ${theme.fontFamily.biryani};
color: ${theme.colors.grey};
margin: 0;
@media (hover: none) {
text-align: center;
}
`}
`;

export const StyledFooter = styled.footer`
${({ theme }) => css`
padding: 2em 0;
border-top: 1px solid ${theme.colors.primary};
font-family: ${theme.fontFamily.heading};
@media (hover: none) {
padding: 2em 0 90px;
}
`}
`;

0 comments on commit 35ebfe6

Please sign in to comment.