@@ -25,9 +25,6 @@ const titleElement = ({ children }) =>
25
25
const waveLogoElement = React . createElement ( "img" , {
26
26
src : waveLogoBase64 ,
27
27
style : {
28
- position : "absolute" ,
29
- top : 20 ,
30
- right : 20 ,
31
28
width : 300 ,
32
29
} ,
33
30
} ) ;
@@ -39,20 +36,18 @@ const headerElement = (header: string, svg: ReactNode) =>
39
36
style : {
40
37
display : "flex" ,
41
38
alignItems : "center" ,
42
- position : "absolute" ,
43
- top : 20 ,
44
- left : 40 ,
39
+ marginTop : "50px" ,
45
40
} ,
46
41
} ,
47
42
svg ,
48
43
React . createElement (
49
44
"label" ,
50
45
{
51
46
style : {
52
- fontSize : 50 ,
47
+ fontSize : 30 ,
53
48
fontWeight : 600 ,
54
49
letterSpacing : 1 ,
55
- color : "#e3e3e3 " ,
50
+ color : "#58c142 " ,
56
51
} ,
57
52
} ,
58
53
header
@@ -64,24 +59,25 @@ const rootDivStyle: React.CSSProperties = {
64
59
flexDirection : "column" ,
65
60
height : "100%" ,
66
61
width : "100%" ,
67
- padding : "10px 40px " ,
62
+ padding : "50px 50px " ,
68
63
justifyContent : "center" ,
69
64
fontFamily : "Roboto" ,
70
65
fontSize : 32 ,
71
66
fontWeight : 400 ,
72
67
backgroundColor : "#1b1b1d" ,
73
68
color : "#e3e3e3" ,
74
69
borderBottom : "2rem solid #58c142" ,
70
+ zIndex : "2 !important" ,
75
71
} ;
76
72
77
73
export const docOgRenderer : ImageRenderer < DocsPageData > = async ( data , context ) => {
78
74
const element = React . createElement (
79
75
"div" ,
80
76
{ style : rootDivStyle } ,
81
- React . createElement ( titleElement , null , data . metadata . title ) ,
82
- React . createElement ( "div" , null , data . metadata . description . replace ( "—" , "-" ) ) ,
83
77
waveLogoElement ,
84
- headerElement ( context . siteConfig . title , null )
78
+ headerElement ( "Documentation" , null ) ,
79
+ React . createElement ( titleElement , null , data . metadata . title ) ,
80
+ React . createElement ( "div" , null , data . metadata . description . replace ( "—" , "-" ) )
85
81
) ;
86
82
87
83
return [ element , await imageGeneratorOptions ( ) ] ;
0 commit comments