From f65c7e26079caa2d438d53d481f440393d42b74d Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 11 Nov 2019 23:06:48 +0000 Subject: [PATCH 1/5] feat: add a CoC Reporting page --- src/components/Thanks.js | 19 +--------- src/components/footer/elements.js | 6 +++ src/components/footer/index.js | 31 ++++++++++++++++ src/components/layout/index.js | 2 + src/pages/_main.js | 9 +---- src/pages/code-of-conduct.js | 28 +++++++++----- src/pages/flags.js | 2 - src/pages/report.js | 62 +++++++++++++++++++++++++++++++ 8 files changed, 122 insertions(+), 37 deletions(-) create mode 100644 src/components/footer/elements.js create mode 100644 src/components/footer/index.js create mode 100644 src/pages/report.js 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..306328a9 --- /dev/null +++ b/src/components/footer/elements.js @@ -0,0 +1,6 @@ +import styled from 'styled-components' + +export const FooterWrap = styled.div` + position:sticky; + 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/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} +