Skip to content

Commit 0700930

Browse files
authored
conf: schedule page updates (graphql#1488)
1 parent 1f9307c commit 0700930

File tree

6 files changed

+31
-31
lines changed

6 files changed

+31
-31
lines changed

gatsby-node.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ export const createPages: GatsbyNode["createPages"] = async ({
114114
actions,
115115
graphql,
116116
}) => {
117-
const { createPage } = actions
117+
const { createPage, createRedirect } = actions
118+
119+
createRedirect({
120+
fromPath: "/conf/program",
121+
toPath: "/conf/schedule",
122+
})
118123

119124
const result = await graphql(`
120125
query allMarkdownRemark {

src/components/Conf/Header/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface LinkItem {
99

1010
const links: LinkItem[] = [
1111
{ text: "Attend", href: "/conf/#attend" },
12-
{ text: "Program", href: "/conf/program/" },
12+
{ text: "Schedule", href: "/conf/schedule/" },
1313
{ text: "Sponsor", href: "/conf/sponsor/" },
1414
{ text: "Partner", href: "/conf/partner/" },
1515
{ text: "FAQ", href: "/conf/faq/" },

src/components/Conf/Speakers/index.tsx

+4-13
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ const speakers: Speaker[] = [
4646
]
4747

4848
const SpeakersConf = () => {
49-
const today = new Date()
50-
const expiredDate = new Date("2023-06-10")
51-
const isExpired = expiredDate > today
52-
5349
return (
5450
// Invisible padding so anchor links align to the header menu
5551
<div id="speakers" className="-mt-16 pt-16">
@@ -87,21 +83,16 @@ const SpeakersConf = () => {
8783
</div>
8884
))}
8985
</div>
86+
<div className="flex justify-center items-center flex-wrap py-6">
87+
<ButtonConf href="/conf/schedule/">See all speakers</ButtonConf>
88+
</div>
9089
<div className="flex flex-col text-center mx-auto max-w-prose text-white px-4">
9190
<p>
9291
GraphQLConf brings together the creators of some of the most
9392
important technologies behind GraphQL. These speakers will share
9493
their experience, insights and knowledge as they discuss the
95-
challenges facing the growing GraphQL ecosystem. If you have
96-
something worth sharing, submit an application to speak!
94+
challenges facing the growing GraphQL ecosystem.
9795
</p>
98-
{isExpired && (
99-
<div className="my-8">
100-
<ButtonConf className="mx-auto" href="/conf/speak/">
101-
Submit to Speak
102-
</ButtonConf>
103-
</div>
104-
)}
10596
</div>
10697
</div>
10798
</div>

src/content/blog/2023-07-06-youtube-updated.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ byline: Jory Burson
77
permalink: /blog/2023-07-06-youtube-updated
88
---
99

10-
Have you been missing out on recent GraphQL Working Group meetings? Want to catch up on the latest conversations about Incremental Delivery, GraphQL over HTTP, and Input Unions?
11-
Thanks to [Benjie Gillam](https://github.com/benjie), now you can!
10+
Have you been missing out on recent GraphQL Working Group meetings? Want to catch up on the latest conversations about Incremental Delivery, GraphQL over HTTP, and Input Unions?
11+
Thanks to [Benjie Gillam](https://github.com/benjie), now you can!
1212

1313
Benjie has done the onerous job of updating the GraphQL Foundation’s YouTube playlists with all the latest recordings of GraphQL Working Group meetings, which are now available for you to view here: [https://www.youtube.com/@GraphQLFoundation/playlists](https://www.youtube.com/@GraphQLFoundation/playlists)
1414

src/pages/conf/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ export default () => {
3939
<div className="flex justify-start gap-4 flex-row flex-wrap">
4040
<ButtonConf href="/conf/sponsor/">Join as a Sponsor</ButtonConf>
4141
<ButtonConf href="/conf/partner/">Join as a Partner</ButtonConf>
42-
<ButtonConf href="/conf/program/">View the Schedule</ButtonConf>
42+
<ButtonConf href="/conf/schedule/">
43+
View the Schedule
44+
</ButtonConf>
4345
</div>
4446
</div>
4547
</div>

src/pages/conf/program.tsx renamed to src/pages/conf/schedule.tsx

+15-13
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from "react"
22
import FooterConf from "../../components/Conf/Footer"
33
import HeaderConf from "../../components/Conf/Header"
44
import LayoutConf from "../../components/Conf/Layout"
5-
import { ReactComponent as TheGuild } from "../../../static/img/conf/Sponsors/TheGuild.svg"
65
import SeoConf from "../../components/Conf/Seo"
76
import { Script } from "gatsby"
87

@@ -13,25 +12,28 @@ export default () => {
1312

1413
<div className="bg-white">
1514
<div className="prose lg:prose-lg mx-auto py-10 max-sm:px-4 override-prose-w-with-85ch">
16-
<h1>GraphQLConf 2023 Program</h1>
15+
<h1>GraphQLConf 2023 Schedule</h1>
1716
<section className="px-0 my-8">
1817
<h4>September 19-21, 2023 I San Francisco Bay Area, CA</h4>
1918
<p>
20-
We are excited to announce our speakers for GraphQLConf 2023.
21-
Please check back for more details about the program.
19+
Please note: All session times are in Pacific Daylight Time (UTC
20+
-7). To view the schedule in your <b>preferred&nbsp;timezone</b>,
21+
please select from the drop-down menu to the right, above “Filter
22+
by Date.”
23+
</p>
24+
<p>
25+
<b>IMPORTANT NOTE:</b> Timing of sessions and room locations are{" "}
26+
<b>subject to change</b>.
2227
</p>
2328
<div className="[&>div]:-ml-[15px]">
24-
<a
25-
id="sched-embed"
26-
href="//graphqlconf23.sched.com/directory/speakers"
27-
>
29+
<a id="sched-embed" href="//graphqlconf23.sched.com/">
2830
View the graphqlconf23 schedule &amp; directory.
2931
</a>
32+
<Script
33+
type="text/javascript"
34+
src="//graphqlconf23.sched.com/js/embed.js"
35+
></Script>
3036
</div>
31-
<Script
32-
type="text/javascript"
33-
src="//graphqlconf23.sched.com/js/embed.js"
34-
></Script>
3537
{/*
3638
<h2>Workshop Day</h2>
3739
<p>
@@ -57,5 +59,5 @@ export default () => {
5759
}
5860

5961
export function Head() {
60-
return <SeoConf title="GraphQLConf 2023 Program" />
62+
return <SeoConf title="GraphQLConf 2023 Schedule" />
6163
}

0 commit comments

Comments
 (0)