Skip to content

Commit e257efc

Browse files
dimaMachinamandiwise
authored andcommitted
fix videos for conf 2024 (graphql#1819)
1 parent 1a5a820 commit e257efc

File tree

116 files changed

+101
-100
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+101
-100
lines changed

public/images/next-image-export-optimizer-hashes.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"/8_53229629805_o.290e35be.jpg": "NfsXTg4KKkt1csv79IiZ3FyU3-CW1WTkp4883NgZam4=",
2626
"/9.4a558c85.jpg": "-iUSFWjVs4vunEea7FxDeNMOOvUs4VOEpScXJAwi0DA=",
2727
"/annual-report-1.5ebe2b34.png": "HmbFFbaUL79rvnCKQ-2oRSLETM2FFh5v5dZxwWquuVM=",
28+
"/audience.f60c1c99.jpg": "pqx3E31xAO87mNEBlZKqCTX+LRiPlOuQThWQZf08A4A=",
2829
"/banner.10d4d66b.jpg": "9UJqBQ9RQu2sxDdJ5uaQr3crx2ZXrlOKMAmY82R8ZBA=",
2930
"/business_layer.68bf746f.png": "DwCtOs-q1Y-DgBxEj6NqyVaOAiq5zCB8xPF-rZ5Qe1U=",
3031
"/coursera.968d6897.png": "FmQxkHPToU9hZQFvKVSRa6+-5xppLy6lJJhqCEIiCzk=",
@@ -133,19 +134,24 @@
133134
"/graphqlconf-202395_53229430163_o.83d6ce30.jpg": "wGPGuLNhdPy1AKSdem7dB2U3hCnLNt0m7A697OKpMLA=",
134135
"/graphqlconf-202396_53229628185_o.e02e8158.jpg": "CwcPIFPl3qMN77xrq3PNo3IDu2xdE5t-XAmqMN7vvrA=",
135136
"/graphqlconf-2023graphqlconf-2023_53228255062_o.29b776c3.jpg": "iXr9Z8xwKZhM1pUZPRRTFEHbvwYlw81k6ZIqW5zh3x4=",
137+
"/hero1.2c973c2e.jpg": "jY1RePeWthuOOa5c59Yl4TQD4J731poNxeaqzKDFmfg=",
138+
"/hero2.fa425ea9.jpg": "siZR-Q3HPEB5l2gU0DAbheWVVUOCsrOuOv-Ch0xCR7M=",
136139
"/idit.feda6f62.jpg": "9oybNQ8aiuV++33v8KDL8ZgIL0H2T5UF3EjnhsksM5g=",
137140
"/intuit.04140a09.png": "m84fUDz2YQxlNNMmbthcNfYr3bWhp23zEPxvP5ruo9Q=",
138141
"/layers-2x.9859cd12.png": "3D8k4Go-oWvQTcmIDFOwHTfm1eagZIqjwar3vFcoZY8=",
139142
"/layers.ef6db872.png": "fbR0XaZWR0olI2fUKeOWruBZ6HxRDSEYGXCzktrW4XA=",
143+
"/lee.dfa51298.png": "rG86vKMradTmaq1FH-F2-zwDzRkcw-qXK18Slp34VPs=",
140144
"/leebyron.4adb0a93.jpg": "poBi-hIdozz-Mn2PIKun7ZpX9q200f7m-5SkUt1XU-0=",
141145
"/marcandre.b8692933.jpg": "mUbreFySTVojHKZTl0VKcMQ9gHdSVCL47mSBnUYITBI=",
142146
"/marker-icon.d577052a.png": "L15ETF3vWj9pjeLgXar+ibZOYNJYXoQal5lJmpTWTbA=",
143147
"/pathological-query.2de43465.png": "Xoi58Mnu6FqfvNp4+gXgt-IyMDdMpdbqPUyNzlH5YJQ=",
144148
"/pinterest.36b58187.png": "TlwGD0W-rRqoDgDND5x+cQrzz09xU+dmW6oP8+qSBug=",
145149
"/playground-transition-banner.2458871d.png": "ffm4o7utOWkmwaWC2KVVHPOz9zsaD6fG2P269pHT8uQ=",
146150
"/rest-api-people.c2b56e20.png": "KDbPJA1rAhVT43LeGLckdesx+bISV+6g0q9fJQNl5Tg=",
147-
"/sf-city-view.d5d36dff.jpeg": "a-QVXW74jpiDFhmUOc9hZY10pGvmpSLSdM+u0EcuRac=",
148151
"/shopify.2cb330ea.png": "LRiC9+uEG-gHl-XYi4qrSXMAlpFglZLNZj1kBGF-Cag=",
152+
"/speaker.674c5b86.jpg": "ISlnB9At3nuMk70rfRuMAu+k9aEhUNSwp7XgFMx5Bls=",
153+
"/unconf.651492c3.jpg": "mlpvU8glWqqsRn2n3-pgwRI+Jnk3sT7VQjsCL01e30c=",
149154
"/uri.387cb001.jpg": "kSx4huEjQidwIg6bF8UEWLiPACDl0nQ0aqxA2R2LIe0=",
150-
"/whiteboard.60eac8e3.jpg": "NodBqUaO+IanhuPaP9o5jCIe+gSrwyZ9TZ3QUdlWbBg="
155+
"/whiteboard.60eac8e3.jpg": "NodBqUaO+IanhuPaP9o5jCIe+gSrwyZ9TZ3QUdlWbBg=",
156+
"/workshop.e02e3501.jpg": "D9ON1z6-vKcjxv50gOH+5XS9HTEWUpc4UgIPW5OXHxE="
151157
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/app/conf/2024/schedule/[id]/page.tsx

Lines changed: 93 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const Tag = ({
6868
<span
6969
className={clsx(
7070
"border border-solid border-[#333333] font-semibold text-sm px-3 py-1 h-max rounded-full whitespace-nowrap",
71-
featured ? "bg-[#F8779D] border-[#F8779D] border-2 text-white" : "",
71+
featured && "bg-[#F8779D] border-[#F8779D] border-2 text-white",
7272
)}
7373
>
7474
{text}
@@ -100,111 +100,106 @@ export default function SessionPage({ params }: SessionProps) {
100100
videos.map(e => e.title),
101101
).bestMatch
102102

103+
const videoId = videos.find(e => e.title === recordingTitle.target)?.id
104+
105+
if (!videoId) {
106+
throw new Error(`Video "${recordingTitle.target}" not found`)
107+
}
108+
103109
return (
104110
<div className="bg-[#f4f6f8]">
105111
<div className="container">
106112
<div className="py-10">
107113
<section className="text-[#333333] min-h-[80vh] flex-col mx-auto px-2 xs:px-0 lg:justify-between justify-center md:container">
108-
<div className="flex flex-col lg:px-0">
109-
<BackLink year="2024" kind="schedule" />
110-
111-
{recordingTitle.rating > 0.5 && (
112-
<iframe
113-
className="aspect-video max-w-[1000px] mx-auto size-full rounded-md"
114-
src={`https://youtube.com/embed/${
115-
videos.find(e => e.title === recordingTitle.target)?.id
116-
}`}
117-
title={recordingTitle.target}
118-
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
119-
allowFullScreen
120-
/>
121-
)}
122-
123-
<div className="mt-10 flex flex-col self-center prose lg:prose-lg sm:space-y-4">
124-
<div className="space-y-5">
125-
<div className="flex gap-3 flex-wrap">
126-
<Tag text={eventType} featured />
127-
<Tag text={event.audience} />
128-
<Tag text={event.event_subtype} />
129-
</div>
130-
<h1 className="mt-0 text-2xl lg:text-3xl font-medium">
131-
{eventTitle}
132-
</h1>
133-
<span className="text-[#333333]">
134-
{format(
135-
parseISO(event.event_start),
136-
"EEEE, MMMM d / hh:mmaaaa 'PDT'",
137-
)}{" "}
138-
- {format(parseISO(event.event_end), "hh:mmaaaa 'PDT'")}
139-
</span>
140-
</div>
141-
<div className="flex flex-wrap lg:flex-row flex-col gap-5 mt-8">
142-
{event.speakers!.map(speaker => (
143-
<div
144-
className={`flex items-center gap-3 w-full ${event?.speakers?.length || 0 > 1 ? "max-w-[320px]" : ""}`}
145-
key={speaker.username}
146-
>
147-
<Avatar
148-
className="lg:size-[120px] size-[100px] rounded-full"
149-
avatar={speaker.avatar}
150-
name={speaker.name}
151-
/>
152-
153-
<div className="flex flex-col lg:gap-1 gap-1.5">
154-
<a
155-
href={`/conf/2024/speakers/${speaker.username}`}
156-
className="text-xl mt-0 font-bold text-[#333333] underline"
157-
>
158-
{speaker.name}
159-
</a>
160-
161-
<span className="font-normal">
162-
<span className="font-semibold">
163-
{speaker.company}
164-
</span>
165-
{speaker.company && ", "}
166-
{speaker.position}
167-
</span>
168-
{speaker.socialurls?.length ? (
169-
<div className="mt-0 text-[#333333]">
170-
<div className="flex space-x-2">
171-
{speaker.socialurls.map(social => (
172-
<a
173-
key={social.url}
174-
href={social.url}
175-
target="_blank"
176-
rel="noreferrer"
177-
className="flex items-center text-black"
178-
>
179-
<SocialMediaIcon
180-
service={
181-
social.service.toLowerCase() as SocialMediaIconServiceType
182-
}
183-
/>
184-
</a>
185-
))}
186-
</div>
187-
</div>
188-
) : null}
189-
</div>
190-
</div>
191-
))}
114+
<BackLink year="2024" kind="schedule" />
115+
<iframe
116+
className="aspect-video w-full max-w-4xl mx-auto rounded-md mt-6"
117+
src={`https://youtube.com/embed/${videoId}`}
118+
title={recordingTitle.target}
119+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
120+
allowFullScreen
121+
/>
122+
123+
<div className="mt-10 flex flex-col self-center prose lg:prose-lg sm:space-y-4 mx-auto">
124+
<div className="space-y-5">
125+
<div className="flex gap-3 flex-wrap">
126+
<Tag text={eventType} featured />
127+
<Tag text={event.audience} />
128+
<Tag text={event.event_subtype} />
192129
</div>
193-
<p>{event.description}</p>
194-
195-
<div className="py-8">
196-
{event.files?.map(({ path }) => (
197-
<div key={path}>
198-
<a href={path} target="_blank" rel="noreferrer">
199-
View Full PDF{" "}
200-
<span className="font-sans font-light text-2xl">
201-
202-
</span>
130+
<h1 className="mt-0 text-2xl lg:text-3xl font-medium">
131+
{eventTitle}
132+
</h1>
133+
<span className="text-[#333333]">
134+
{format(
135+
parseISO(event.event_start),
136+
"EEEE, MMMM d / hh:mmaaaa 'PDT'",
137+
)}{" "}
138+
- {format(parseISO(event.event_end), "hh:mmaaaa 'PDT'")}
139+
</span>
140+
</div>
141+
<div className="flex flex-wrap lg:flex-row flex-col gap-5 mt-8">
142+
{event.speakers!.map(speaker => (
143+
<div
144+
className={`flex items-center gap-3 w-full ${event?.speakers?.length || 0 > 1 ? "max-w-[320px]" : ""}`}
145+
key={speaker.username}
146+
>
147+
<Avatar
148+
className="lg:size-[120px] size-[100px] rounded-full"
149+
avatar={speaker.avatar}
150+
name={speaker.name}
151+
/>
152+
153+
<div className="flex flex-col lg:gap-1 gap-1.5">
154+
<a
155+
href={`/conf/2024/speakers/${speaker.username}`}
156+
className="text-xl mt-0 font-bold text-[#333333] underline"
157+
>
158+
{speaker.name}
203159
</a>
204-
<iframe src={path} className="aspect-video size-full" />
160+
161+
<span className="font-normal">
162+
<span className="font-semibold">{speaker.company}</span>
163+
{speaker.company && ", "}
164+
{speaker.position}
165+
</span>
166+
{speaker.socialurls?.length ? (
167+
<div className="mt-0 text-[#333333]">
168+
<div className="flex space-x-2">
169+
{speaker.socialurls.map(social => (
170+
<a
171+
key={social.url}
172+
href={social.url}
173+
target="_blank"
174+
rel="noreferrer"
175+
className="flex items-center text-black"
176+
>
177+
<SocialMediaIcon
178+
service={
179+
social.service.toLowerCase() as SocialMediaIconServiceType
180+
}
181+
/>
182+
</a>
183+
))}
184+
</div>
185+
</div>
186+
) : null}
205187
</div>
206-
))}
207-
</div>
188+
</div>
189+
))}
190+
</div>
191+
<p>{event.description}</p>
192+
193+
<div className="py-8">
194+
{event.files?.map(({ path }) => (
195+
<div key={path}>
196+
<a href={path} target="_blank" rel="noreferrer">
197+
View Full PDF{" "}
198+
<span className="font-sans font-light text-2xl"></span>
199+
</a>
200+
<iframe src={path} className="aspect-video size-full" />
201+
</div>
202+
))}
208203
</div>
209204
</div>
210205
</section>

0 commit comments

Comments
 (0)