1
1
import React , { FC } from "react"
2
- import { PageProps } from "gatsby"
2
+ import { HeadProps , PageProps } from "gatsby"
3
3
import FooterConf from "../components/Conf/Footer"
4
4
import HeaderConf from "../components/Conf/Header"
5
5
import LayoutConf from "../components/Conf/Layout"
@@ -56,7 +56,7 @@ export const EventComponent: FC<{
56
56
} > = ( { event, speakers, hideBackButton } ) => {
57
57
return (
58
58
< div className = { `bg-white ${ ! hideBackButton ? "py-10" : "" } ` } >
59
- < section className = "text-[#333333] min-h-[80vh] flex-col mx-auto max-sm: px-4 px-0 lg:justify-between justify-center max-w-[1100px] " >
59
+ < section className = "text-[#333333] min-h-[80vh] flex-col mx-auto px-6 lg: px-0 lg:justify-between justify-center override-prose-w-with-85ch " >
60
60
< div className = "flex flex-col lg:px-0" >
61
61
{ ! hideBackButton && (
62
62
< a
@@ -77,7 +77,7 @@ export const EventComponent: FC<{
77
77
) }
78
78
< div className = "mt-10 flex flex-col" >
79
79
< div className = "flex gap-3.5 mb-1.5" >
80
- < span className = "text-[#f6009b] text-lg flex items-center" >
80
+ < span className = "text-[#f6009b] font-medium flex items-center" >
81
81
< svg
82
82
className = "mr-1.5 mb-0.5"
83
83
width = { 20 }
@@ -94,7 +94,7 @@ export const EventComponent: FC<{
94
94
95
95
{ format ( parseISO ( event . event_start ) , "EEEE, MMM d" ) }
96
96
</ span >
97
- < span className = "text-[#f6009b] text-lg flex items-center" >
97
+ < span className = "text-[#f6009b] font-medium flex items-center" >
98
98
< svg
99
99
className = "mr-1.5 mb-0.5"
100
100
width = { 20 }
@@ -112,7 +112,7 @@ export const EventComponent: FC<{
112
112
{ format ( parseISO ( event . event_start ) , "hh:mmaaaa 'PDT'" ) }
113
113
</ span >
114
114
</ div >
115
- < h1 className = "mt-0 lg: text-4xl text-3xl lg:leading-[50px] leading-[45px] font-medium mb-5" >
115
+ < h1 className = "mt-0 text-2xl lg:text-3xl font-medium mb-5" >
116
116
{ /* Event name without speaker's name and company */ }
117
117
{ event . name }
118
118
</ h1 >
@@ -121,9 +121,7 @@ export const EventComponent: FC<{
121
121
< Tag text = { event . audience } />
122
122
< Tag text = { event . event_subtype } />
123
123
</ div >
124
- < p className = "mt-7 text-xl leading-9 lg:pr-20" >
125
- { event . description }
126
- </ p >
124
+ < p className = "mt-7 lg:pr-20" > { event . description } </ p >
127
125
128
126
< div className = "flex lg:flex-row flex-col gap-4" >
129
127
{ speakers ?. map ( speaker => (
@@ -137,14 +135,12 @@ export const EventComponent: FC<{
137
135
< div className = "flex flex-col lg:gap-1 gap-1.5" >
138
136
< a
139
137
href = { `/conf/speakers/${ speaker . username } ` }
140
- className = "lg:text-2xl text-xl mt-0 font-bold text-[#333333] underline"
138
+ className = "text-xl mt-0 font-bold text-[#333333] underline"
141
139
>
142
140
{ speaker . name }
143
141
</ a >
144
142
145
- < span className = "lg:text-base text-sm" >
146
- { renderPositionAndCompany ( speaker ) }
147
- </ span >
143
+ < span > { renderPositionAndCompany ( speaker ) } </ span >
148
144
{ ! ! speaker . socialurls ?. length && (
149
145
< div className = "mt-0 text-[#333333]" >
150
146
< div className = "flex gap-5 lg:gap-2.5" >
@@ -191,8 +187,28 @@ const EventTemplate: FC<
191
187
192
188
export default EventTemplate
193
189
194
- export function Head ( ) {
195
- return < SeoConf title = "GraphQLConf 2023 Speaker" />
190
+ export function Head ( {
191
+ pageContext,
192
+ location,
193
+ } : HeadProps < { } , { event : ScheduleSession ; speakers : SchedSpeaker [ ] } > ) {
194
+ const { event } = pageContext
195
+
196
+ return (
197
+ < >
198
+ < SeoConf
199
+ title = { `${ event . name } | GraphQLConf 2023` }
200
+ description = { event . description }
201
+ />
202
+ < meta
203
+ name = "keywords"
204
+ content = { `GraphQL, GraphQLConf, GraphQLConf 2023, ${ event . event_type } , ${ event . audience } , ${ event . event_subtype } ${ event . event_start } ` }
205
+ />
206
+ < meta
207
+ property = "og:url"
208
+ content = { `https://graphql.org${ location . pathname } ` }
209
+ />
210
+ </ >
211
+ )
196
212
}
197
213
198
214
function renderPositionAndCompany ( speaker : SchedSpeaker ) {
0 commit comments