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}
+
>
diff --git a/src/pages/_main.js b/src/pages/_main.js
index 51704542..8600222b 100644
--- a/src/pages/_main.js
+++ b/src/pages/_main.js
@@ -10,7 +10,7 @@ import Panel from '../components/Panel'
import Heading from '../components/Heading'
const Main = ({ city, attendees }) => {
- const { site, organizers, mainOrganizer, thanks, speakers, sponsors, info } = city
+ const { site, thanks, speakers, sponsors, info } = city
return (
@@ -54,12 +54,7 @@ const Main = ({ city, attendees }) => {
- o.main)}
- />
+
)
diff --git a/src/pages/code-of-conduct.js b/src/pages/code-of-conduct.js
index 060d9a0a..71cd18b0 100644
--- a/src/pages/code-of-conduct.js
+++ b/src/pages/code-of-conduct.js
@@ -3,13 +3,7 @@ import SEO from '../components/seo'
import Layout from '../containers/layout'
import Panel from '../components/Panel'
-const CodeOfConduct = ({ location }) => {
- const organizer = (location.state || {}).organizer || {
- name: 'Sara Vieira',
- phoneNumber: '+351 91 7296 830',
- email: 'hey@iamsaravieira.com',
- twitterHandle: '@NikkitaFTW'
- }
+const CodeOfConduct = () => {
return (
{
from all participants to help ensuring a safe environment for everybody.
- Need Help? Contact {organizer.name} {organizer.phoneNumber}
+ {' '}
+
+ Report an Issue
+ .
The Quick Version
@@ -74,8 +75,15 @@ const CodeOfConduct = ({ location }) => {
please notify a QueerJS organizer as soon as possible.
- If you can’t find the organizer, reach out to {organizer.name} at {organizer.email} /{' '}
- {organizer.phoneNumber} / {organizer.twitterHandle}
+ If you can’t find the organizer, please
+ {' '}
+
+ Report an Issue
+ .
Conference staff will be happy to help participants and assist those experiencing
diff --git a/src/pages/flags.js b/src/pages/flags.js
index 02a193af..abcc650e 100644
--- a/src/pages/flags.js
+++ b/src/pages/flags.js
@@ -58,7 +58,6 @@ const OrganizersPage = ({ location }) => {
{
reason: 'icons'
}
]}
- site={site}
/>
)
diff --git a/src/pages/report.js b/src/pages/report.js
new file mode 100644
index 00000000..419f263d
--- /dev/null
+++ b/src/pages/report.js
@@ -0,0 +1,62 @@
+import React from 'react'
+import SEO from '../components/seo'
+import Layout from '../containers/layout'
+import Panel from '../components/Panel'
+
+const Report = () => {
+ const contactInfo = {
+ email: 'coc@queerjs.com',
+ twitterHandle: '@QueerJS'
+ }
+
+ return (
+
+
+
+
Welcome to QueerJS
+
+
+
+ We want QueerJS to be a safe and inclusive environment. That’s why we ask our attendees to follow our
+
+ Code of Conduct
+ !
+ .
+
+
+ In the unfortunate case that you see someone violating the code of conduct, here are some ways you can report it to us:
+
+
+
- Send a DM to {contactInfo.twitterHandle}
+
- Let a
+ {' '}
+
+ Core Team
+
+ {' '}
+ organizer know, either in person or via Twitter.
Conference staff will be happy to help participants and assist those experiencing
diff --git a/src/pages/report.js b/src/pages/report.js
index 419f263d..b4f11b21 100644
--- a/src/pages/report.js
+++ b/src/pages/report.js
@@ -2,6 +2,7 @@ import React from 'react'
import SEO from '../components/seo'
import Layout from '../containers/layout'
import Panel from '../components/Panel'
+import { Link } from 'gatsby'
const Report = () => {
const contactInfo = {
@@ -24,32 +25,26 @@ const Report = () => {
`}
>
- We want QueerJS to be a safe and inclusive environment. That’s why we ask our attendees to follow our
-
- Code of Conduct
- !
- .
+ We want QueerJS to be a safe and inclusive environment. That’s why we ask our
+ attendees to follow our{' '}
+
+ Code of Conduct
+
+ ! .
- In the unfortunate case that you see someone violating the code of conduct, here are some ways you can report it to us:
+ In the unfortunate case that you see someone violating the code of conduct, here are
+ some ways you can report it to us:
-
- Send a DM to {contactInfo.twitterHandle}
-
- Let a
- {' '}
-
- Core Team
-
- {' '}
- organizer know, either in person or via Twitter.
+
- Send a DM to {contactInfo.twitterHandle}
+
+ - Let a{' '}
+
+ Core Team
+ {' '}
+ organizer know, either in person or via Twitter.
+
- Send an email to {contactInfo.email}
From d8e8a6fd1456d95f711fa2af964f76094cc7196a Mon Sep 17 00:00:00 2001
From: Sara
Date: Tue, 12 Nov 2019 00:36:35 +0100
Subject: [PATCH 3/5] space out
---
src/pages/code-of-conduct.js | 6 +++++-
src/pages/report.js | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/pages/code-of-conduct.js b/src/pages/code-of-conduct.js
index b5c9d56d..463c3ee2 100644
--- a/src/pages/code-of-conduct.js
+++ b/src/pages/code-of-conduct.js
@@ -11,7 +11,11 @@ const CodeOfConduct = () => {
title="QueerJS - Code Of Conduct"
description="A meetup for everyone where Queer Speakers take the stage"
/>
-
+
Welcome to QueerJS
{
Code of Conduct
- ! .
+ !
In the unfortunate case that you see someone violating the code of conduct, here are
From a0ad818d1a70c731aa26d49c2ee63df460a0f8a9 Mon Sep 17 00:00:00 2001
From: Sara
Date: Tue, 12 Nov 2019 00:39:26 +0100
Subject: [PATCH 4/5] change a to Link
---
src/pages/code-of-conduct.js | 4 ++--
src/pages/report.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/pages/code-of-conduct.js b/src/pages/code-of-conduct.js
index 463c3ee2..499a0ac2 100644
--- a/src/pages/code-of-conduct.js
+++ b/src/pages/code-of-conduct.js
@@ -78,9 +78,9 @@ const CodeOfConduct = () => {