File tree Expand file tree Collapse file tree 6 files changed +55
-7
lines changed Expand file tree Collapse file tree 6 files changed +55
-7
lines changed Original file line number Diff line number Diff line change
1
+ import { SimpleOpengraphImage } from "../components/og-images/simple-opengraph-image"
2
+ export {
3
+ generateStaticParams ,
4
+ contentType ,
5
+ size ,
6
+ } from "../components/og-images/simple-opengraph-image"
7
+
8
+ export default SimpleOpengraphImage . bind ( null , {
9
+ pageTitle : "Code of Conduct" ,
10
+ } )
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import { PinIcon } from "@/app/conf/_design-system/pixelarticons/pin-icon"
4
4
import { GraphQLLogo } from "../graphql-conf-logo-link"
5
5
import { colors , fonts , RIGHT_COLUMN_WIDTH_PX } from "./speaker-opengraph-image"
6
6
7
+ export const OG_IMAGE_HEADER_HEIGHT = 154
8
+
7
9
export function ConferenceOpengraphImageHeader ( {
8
10
year,
9
11
date,
@@ -33,7 +35,7 @@ export function ConferenceOpengraphImageHeader({
33
35
borderRight : `2px solid ${ colors . neu600 } ` ,
34
36
padding : "2.5rem" ,
35
37
paddingRight : "4rem" ,
36
- height : "154px" ,
38
+ height : OG_IMAGE_HEADER_HEIGHT ,
37
39
} }
38
40
>
39
41
< div style = { { display : "flex" , alignItems : "center" , gap : "1rem" } } >
Original file line number Diff line number Diff line change 1
1
import { colors , fonts } from "./speaker-opengraph-image"
2
- import { ConferenceOpengraphImageHeader } from "./conference-opengraph-image-header"
3
- import { normalizeProtocolRelativeUrl } from "./normalize-protocol-relative-url"
2
+ import {
3
+ ConferenceOpengraphImageHeader ,
4
+ OG_IMAGE_HEADER_HEIGHT ,
5
+ } from "./conference-opengraph-image-header"
4
6
5
7
import graphqlLogoStripes from "./graphql-logo-stripes.png"
6
8
@@ -19,11 +21,14 @@ export function GenericOpengraphImage({
19
21
pageTitle,
20
22
...rest
21
23
} : GenericOpengraphImageProps ) {
24
+ const basePath = process . env . VERCEL_URL || process . env . __NEXT_PRIVATE_ORIGIN
25
+ const height = 630
26
+
22
27
return (
23
28
< article
24
29
style = { {
25
30
display : "flex" ,
26
- height : "630px" ,
31
+ height,
27
32
width : "1200px" ,
28
33
flexDirection : "column" ,
29
34
overflow : "hidden" ,
@@ -45,7 +50,7 @@ export function GenericOpengraphImage({
45
50
display : "flex" ,
46
51
flex : 1 ,
47
52
flexDirection : "column" ,
48
- justifyContent : "end" ,
53
+ justifyContent : "flex- end" ,
49
54
padding : "2.5rem" ,
50
55
position : "relative" ,
51
56
} }
@@ -62,8 +67,9 @@ export function GenericOpengraphImage({
62
67
{ pageTitle }
63
68
</ h1 >
64
69
< img
65
- src = { graphqlLogoStripes . src }
66
- style = { { position : "absolute" , right : 0 , bottom : - 4 } }
70
+ src = { `${ basePath } ${ graphqlLogoStripes . src } ` }
71
+ style = { { position : "absolute" , right : 0 , bottom : - 5 } }
72
+ height = { height - OG_IMAGE_HEADER_HEIGHT }
67
73
/>
68
74
</ div >
69
75
</ article >
Original file line number Diff line number Diff line change
1
+ import { SimpleOpengraphImage } from "../components/og-images/simple-opengraph-image"
2
+ export {
3
+ generateStaticParams ,
4
+ contentType ,
5
+ size ,
6
+ } from "../components/og-images/simple-opengraph-image"
7
+
8
+ export default SimpleOpengraphImage . bind ( null , {
9
+ pageTitle : "Resources" ,
10
+ } )
Original file line number Diff line number Diff line change
1
+ import { SimpleOpengraphImage } from "../components/og-images/simple-opengraph-image"
2
+ export {
3
+ generateStaticParams ,
4
+ contentType ,
5
+ size ,
6
+ } from "../components/og-images/simple-opengraph-image"
7
+
8
+ export default SimpleOpengraphImage . bind ( null , {
9
+ pageTitle : "Schedule" ,
10
+ } )
Original file line number Diff line number Diff line change
1
+ import { SimpleOpengraphImage } from "../components/og-images/simple-opengraph-image"
2
+ export {
3
+ generateStaticParams ,
4
+ contentType ,
5
+ size ,
6
+ } from "../components/og-images/simple-opengraph-image"
7
+
8
+ export default SimpleOpengraphImage . bind ( null , {
9
+ pageTitle : "Speakers" ,
10
+ } )
You can’t perform that action at this time.
0 commit comments