Skip to content

Commit

Permalink
stub out new nyc event at Reaktor (#125)
Browse files Browse the repository at this point in the history
* stub out new nyc event at Reaktor

* add Reaktor address

* add Reaktor as sponsor

* don't mutate existing new-york.yaml :feelsgood:

* Update new-york-2024.yaml

* add githubLink

* speakers: -> organizers: 😎

* no mc:

* no talk:

* back to speakers: 🗣️

* fix organizers, idk what that was

* add humanHref to handle github or twitter links (tho twitter is always null?)

---------

Co-authored-by: Sara Vieira <[email protected]>
  • Loading branch information
edwardsharp and SaraVieira committed Feb 16, 2024
1 parent dc438b3 commit 369e113
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 7 deletions.
9 changes: 9 additions & 0 deletions data/icons/ny/reaktor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions data/new-york-2024.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
info:
city: New York
link: new-york-2024
date: 04/25/2024
hour: '18:00'
icon: icons/ny/ny.svg
iconHover: icons/ny/ny-hover.svg
hostIcon: icons/ny/reaktor.svg
hostName: Reaktor
rsvpsClosed: false
food: true
maxCapacity: 50
site:
city: New York
location: Reaktor 30 W 21st St, New York, NY 10010 (14th Floor)
googleMapsLink: https://maps.app.goo.gl/twih2oPd5upJ2ezF8
calendarLink: https://www.google.com/calendar/render?action=TEMPLATE&text=QueerJS&details=Hosted+at+Reaktor+NYC+office.+When+you+get+here%2C+tell+front+desk+staff+that+you+are+going+to+Reaktor+office+on+14th+floor%29.&location=30+W+21st+St%2C+New+York%2C+NY+10010&dates=20240425T220000Z%2F20240426T020000Z
cfp: true
sponsors:
- name: Reaktor
link: https://reaktor.com
media: https://i.imgur.com/bmJTxU4.jpg
organizers:
- name: 3dwardsharp
mc: true
githubLink: edwardsharp
talk: 'Reaktor && functional programming (but mostly here to help)'
- name: Daniel Ehrenberg
mc: true
githubLink: littledan
twitterLink: littledan
13 changes: 11 additions & 2 deletions src/components/Organizers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,23 @@ import {

const size = 100

const humanHref = (human) => {
if (human.githubLink) {
return `https://github.com/${human.githubLink}`
}
if (human.twitterLink || human.twitterHandle) {
return `https://twitter.com/${human.twitterLink || human.twitterHandle}`
}
}

const Organizers = ({ organizers }) => {
return (
<OrganizersGrid size={size}>
{organizers.map((human) => (
<ListItem key={human.twitterHandle}>
<ListItem key={human.name}>
<UnstyledLink
as="a"
href={`https://twitter.com/${human.twitterHandle}`}
href={humanHref(human)}
target="_blank"
rel="noopener noreferrer"
title={human.name}
Expand Down
11 changes: 7 additions & 4 deletions src/pages/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import Heading from '../components/Heading'
import Announcement from '../components/Announcement'

const Main = ({ city, attendees }) => {
const { site, thanks, speakers, sponsors, info, mainOrganizer, announcement } = city
const { site, thanks, speakers, sponsors, info, mainOrganizer, announcement, organizers } = city
const hasHeading = !site.fullDescription
? {
heading: 'What?'
}
: {}

const cityOrganizers = mainOrganizer || organizers
return (
<Layout>
<SEO
Expand Down Expand Up @@ -70,9 +72,10 @@ const Main = ({ city, attendees }) => {
<Sponsors sponsors={sponsors} />
</Panel>
)}
{mainOrganizer && mainOrganizer.length > 0 ? (
<Panel heading={mainOrganizer.length > 1 ? 'Organizers' : 'Organizer'}>
<Organizers organizers={mainOrganizer} />

{cityOrganizers?.length ? (
<Panel heading={cityOrganizers?.length > 1 ? 'Organizers' : 'Organizer'}>
<Organizers organizers={cityOrganizers} />
</Panel>
) : null}
</section>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/city.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const City = ({ data = {} }) => {
export default City

export const query = graphql`
query($slug: String!) {
query ($slug: String!) {
allAirtable(filter: { data: { city: { eq: $slug } } }) {
edges {
node {
Expand Down

0 comments on commit 369e113

Please sign in to comment.