Skip to content

Commit

Permalink
wip organizers graphql query
Browse files Browse the repository at this point in the history
  • Loading branch information
halfghaninne committed Nov 2, 2019
1 parent 30e65ca commit 3eef3a1
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 38 deletions.
27 changes: 27 additions & 0 deletions content/organizers/*organizer-template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "",
"headshot": "",
"pronouns": "",
"city": "",
"bio": "",
"role": [],
"links": [
{
"type": "twitter",
"url": ""
},
{
"type": "linkedin",
"url": ""
},
{
"type": "github",
"url": ""
},
{
"type": "website",
"url": ""
}
]
}

27 changes: 27 additions & 0 deletions content/organizers/alex-millatmal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "Alex Millatmal",
"headshot": "/images/alex-millatmal.jpg",
"pronouns": "she/her",
"city": "New York City",
"bio": "",
"role": ["Website Contributor", "Conference Organizer"],
"links": [
{
"type": "twitter",
"url": "halfghaninne"
},
{
"type": "linkedin",
"url": "alexandrajmh"
},
{
"type": "github",
"url": "halfghaninne"
},
{
"type": "website",
"url": "https://alexandramillatmal.com"
}
]
}

76 changes: 38 additions & 38 deletions src/components/organizers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,47 @@ import Organizer from '../organizer'
import styles from './organizers.module.css'

const Organizers = ({data}) => {
// console.log('organizer data is', data.allOrganizersJson.nodes);
const singleOrganizer = {
"name": "Alex Millatmal",
"pronouns": "she/her",
"role": "Web Application Developer",
"city": "New York City",
"company": "Newsela",
"headshot": "/images/alex-millatmal.jpg",
"links": [
{
"type": "twitter",
"url": "halfghaninNE"
},
{
"type": "linkedin",
"url": "alexandrajmh"
},
{
"type": "github",
"url": "halfghaninNE"
},
// {
// "type": "website",
// "url": "https://alexandramillatmal.com/"
// }
],
"layout": "speaker",
"bio": "Alex is a programmer with a passion for work that has real-world impact. At Newsela, she writes software that helps students read and teachers teach. When she's not thinking about refactoring her Ruby or good object-oriented front-end patterns, Alex spends a lot of time thinking about secular space/discourse, ethics in communicating “othered” experiences, how many cats are too many cats, and if she’ll ever write a novel.",
"years": ["2019"],
"talks": [
{
"year": "2019",
"type": "curriculum",
"title": "Speak Day Curriculum"
}
]
}
console.log('data is ', data);
// const singleOrganizer = {
// "name": "Alex Millatmal",
// "pronouns": "she/her",
// "role": "Web Application Developer",
// "city": "New York City",
// "company": "Newsela",
// "headshot": "/images/alex-millatmal.jpg",
// "links": [
// {
// "type": "twitter",
// "url": "halfghaninNE"
// },
// {
// "type": "linkedin",
// "url": "alexandrajmh"
// },
// {
// "type": "github",
// "url": "halfghaninNE"
// },
// // {
// // "type": "website",
// // "url": "https://alexandramillatmal.com/"
// // }
// ],
// "layout": "speaker",
// "bio": "Alex is a programmer with a passion for work that has real-world impact. At Newsela, she writes software that helps students read and teachers teach. When she's not thinking about refactoring her Ruby or good object-oriented front-end patterns, Alex spends a lot of time thinking about secular space/discourse, ethics in communicating “othered” experiences, how many cats are too many cats, and if she’ll ever write a novel.",
// "years": ["2019"],
// "talks": [
// {
// "year": "2019",
// "type": "curriculum",
// "title": "Speak Day Curriculum"
// }
// ]
// }
const boardMembers = []
const chapterLeaders = []
const conferenceOrganizers = []
const websiteContributors = [singleOrganizer, singleOrganizer, singleOrganizer, singleOrganizer, singleOrganizer]
const websiteContributors = []

return (
<section id="about" className={styles.aboutUs}>
Expand Down
8 changes: 8 additions & 0 deletions static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,14 @@ collections:
name: 'pronouns'
widget: 'string'
required: false
- label: 'City'
name: 'city'
widget: 'string'
required: false
- label: 'Bio'
name: 'bio'
widget: 'text'
required: false
- label: 'Role'
name: 'role'
widget: 'select'
Expand Down

0 comments on commit 3eef3a1

Please sign in to comment.