diff --git a/src/components/Thanks.js b/src/components/Thanks.js index 3b239a8f..7974f6d7 100644 --- a/src/components/Thanks.js +++ b/src/components/Thanks.js @@ -1,5 +1,4 @@ import React from 'react' -import { Link } from 'gatsby' import styled from 'styled-components' const Thanks = styled.ul` @@ -13,7 +12,7 @@ const Thanks = styled.ul` } ` -export default ({ thanks, mainOrganizer, site }) => { +export default ({ thanks }) => { return ( <> @@ -25,22 +24,6 @@ export default ({ thanks, mainOrganizer, site }) => { ))} - We have a{' '} - - Code of Conduct - - . -
- - What's with all the flags? - -
- Follow QueerJS on{' '} - - Twitter - -
-
) } diff --git a/src/components/footer/elements.js b/src/components/footer/elements.js new file mode 100644 index 00000000..b655e75b --- /dev/null +++ b/src/components/footer/elements.js @@ -0,0 +1,5 @@ +import styled from 'styled-components' + +export const FooterWrap = styled.div` + bottom: 0; +` diff --git a/src/components/footer/index.js b/src/components/footer/index.js new file mode 100644 index 00000000..a7aaa216 --- /dev/null +++ b/src/components/footer/index.js @@ -0,0 +1,31 @@ +import React from 'react' +import { Link } from 'gatsby' +import { FooterWrap } from './elements' + +const Footer = () => { + const site = { + title: 'QueerJS', + description: 'A meetup for everyone where Queer Speakers take the stage' + } + + return ( + + We have a{' '} + Code of Conduct + . +
+ + What's with all the flags? + +
+ Follow QueerJS on{' '} + + Twitter + +
+
+
+ ) +} + +export default Footer diff --git a/src/components/header/elements.js b/src/components/header/elements.js index 173c5e29..29df7948 100644 --- a/src/components/header/elements.js +++ b/src/components/header/elements.js @@ -4,7 +4,6 @@ import { Link } from 'gatsby' import styled, { css } from 'styled-components' export const Nav = styled.nav` - margin: auto; padding: 3em 0 1.5em; @media screen and (max-width: 38em) { padding: 0.5em 0 0; diff --git a/src/components/layout/elements.js b/src/components/layout/elements.js index 44770989..0f163c27 100644 --- a/src/components/layout/elements.js +++ b/src/components/layout/elements.js @@ -70,6 +70,9 @@ export const Wrapper = styled.main` width: 80%; max-width: 56em; margin: auto; + display: grid; + grid-template-rows: auto 1fr 100px; + height: 100%; ` export const SubWrapper = styled.div`` diff --git a/src/components/layout/index.js b/src/components/layout/index.js index 8a6eb2f0..d60c1c14 100644 --- a/src/components/layout/index.js +++ b/src/components/layout/index.js @@ -2,6 +2,7 @@ import React from 'react' import Header from '../header' import { ThemeProvider } from 'styled-components' import { theme, Global, Wrapper, SubWrapper, SideRainbow } from './elements' +import Footer from '../../components/footer' const Layout = ({ children, siteTitle }) => ( @@ -11,6 +12,7 @@ const Layout = ({ children, siteTitle }) => (
{children} +