Skip to content

Commit f309c8a

Browse files
committed
adds organizers page
1 parent 249927b commit f309c8a

File tree

4 files changed

+134
-18
lines changed

4 files changed

+134
-18
lines changed

src/components/organizers/index.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,6 @@ const Organizers = ({data}) => {
1212

1313
return (
1414
<section id="about" className={styles.aboutUs}>
15-
<div className={styles.background}>
16-
<div className={styles.row}>
17-
<div className={styles.info}>
18-
<h1 className="title">About Us</h1>
19-
<h2 className="subtitle">
20-
Meet the hard-working organizers behind Write/Speak/Code.
21-
</h2>
22-
<p>
23-
Contact us at [email protected] to learn how you can join our organizing team.
24-
</p>
25-
</div>
26-
</div>
2715
<div className={styles.wrap}>
2816
<section>
2917
<h3 className={styles.heading}>Board Members</h3>
@@ -58,7 +46,6 @@ const Organizers = ({data}) => {
5846
</div>
5947
</section>
6048
</div>
61-
</div>
6249
</section>
6350
)
6451
};

src/components/organizers/organizers.module.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
.aboutUs {
2-
color: var(--white);
3-
}
4-
5-
.background {
6-
background-color: var(--navy);
2+
color: var(--navy);
73
}
84

95
.row {

src/pages/organizers/index.js

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
import React from 'react'
2+
// import { Link, graphql } from 'gatsby'
3+
import Img from 'gatsby-image'
4+
import Header from '../../components/header'
5+
import Organizers from '../../components/Organizers'
6+
import Footer from '../../components/footer'
7+
import { SkipNavLink, SkipNavContent } from '@reach/skip-nav'
8+
9+
10+
// import HomeLayout from '../../layouts/home'
11+
// import SEO from '../components/seo'
12+
13+
import styles from './index.module.css'
14+
15+
const IndexPage = ({ data }) => (
16+
<>
17+
<SkipNavLink />
18+
<Header />
19+
<SkipNavContent>
20+
<section
21+
id="about-us"
22+
className={[styles.photoSection, styles.oye].join(' ')}
23+
>
24+
<div className={styles.row}>
25+
<Img
26+
alt="A smiling speaker talks on stage at the 2018 conference with a microphone."
27+
fluid={data.organizers.childImageSharp.fluid}
28+
imgStyle={{ objectFit: 'contain', objectPosition: 'center center' }}
29+
className={styles.image}
30+
/>
31+
<div className={styles.content}>
32+
{' '}
33+
<h1 className="title">About Us</h1>
34+
<h2 className="subtitle">
35+
Meet the hard-working board, chapter leaders, and conference organizers behind Write/Speak/Code.
36+
</h2>
37+
<p>
38+
Email us at [email protected] to learn about different ways to get involved in our community.
39+
</p>
40+
{/* <a
41+
target="_blank"
42+
rel="noopener noreferrer"
43+
href="https://www.meetup.com/pro/writespeakcode/"
44+
className="link"
45+
>
46+
Find events on Meetup
47+
</a> */}
48+
</div>
49+
</div>
50+
</section>
51+
<Organizers/>
52+
</SkipNavContent>
53+
<Footer />
54+
</>
55+
)
56+
57+
export default IndexPage
58+
59+
export const pageQuery = graphql`
60+
query {
61+
organizers: file(relativePath: { eq: "photos/WSC-NY-577.jpg" }) {
62+
childImageSharp {
63+
fluid(maxWidth: 3600) {
64+
...GatsbyImageSharpFluid_tracedSVG
65+
}
66+
}
67+
}
68+
}
69+
`

src/pages/organizers/index.module.css

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#about-us {
2+
background-color: var(--mint);
3+
}
4+
5+
.section {
6+
padding: 3em 0;
7+
.content {
8+
padding: 0 2em;
9+
}
10+
@media screen and (min-width: 50em) {
11+
.content {
12+
padding: 2em;
13+
}
14+
}
15+
@media screen and (min-width: 80em) {
16+
max-width: var(--container);
17+
margin: 0 auto;
18+
}
19+
}
20+
21+
.photoSection {
22+
.row {
23+
display: flex;
24+
flex-direction: column;
25+
padding: 3em 1em;
26+
.content {
27+
padding: 0 2em;
28+
}
29+
.image {
30+
margin: 2em;
31+
}
32+
}
33+
@media screen and (min-width: 50em) {
34+
.row {
35+
flex-direction: row;
36+
justify-content: space-around;
37+
.content {
38+
align-self: center;
39+
width: 50%;
40+
max-width: 30em;
41+
padding: 2em;
42+
}
43+
.image {
44+
width: 50%;
45+
max-height: none;
46+
margin-left: 2em;
47+
}
48+
}
49+
&:nth-of-type(2n) {
50+
.row {
51+
flex-direction: row-reverse;
52+
.image {
53+
margin-right: 2em;
54+
}
55+
}
56+
}
57+
}
58+
@media screen and (min-width: 80em) {
59+
.row {
60+
max-width: var(--container);
61+
margin: 0 auto;
62+
}
63+
}
64+
}

0 commit comments

Comments
 (0)