@@ -18,34 +18,32 @@ export async function GET(req: Request): Promise<Response> {
1818 searchParams . get ( 'title' ) ?. slice ( 0 , 75 ) || 'Nextra Documentation'
1919
2020 return new ImageResponse (
21- (
22- < div
23- tw = "text-white px-20 py-[70px] bg-[#030303] h-full w-full flex justify-between flex-col"
21+ < div
22+ tw = "text-white px-20 py-[70px] bg-[#030303] h-full w-full flex justify-between flex-col"
23+ style = { {
24+ backgroundImage :
25+ 'radial-gradient(circle at 25px 25px, #333 2%, transparent 0%), radial-gradient(circle at 75px 75px, #333 2%, transparent 0%)' ,
26+ backgroundSize : '100px 100px' ,
27+ backgroundPosition : '-30px -10px'
28+ } }
29+ >
30+ < NextraLogo height = "40" />
31+ < h1
32+ tw = "text-transparent text-[82px] m-0 mb-10 tracking-tighter leading-[1.1]"
2433 style = { {
25- backgroundImage :
26- 'radial-gradient(circle at 25px 25px, #333 2%, transparent 0%), radial-gradient(circle at 75px 75px, #333 2%, transparent 0%)' ,
27- backgroundSize : '100px 100px' ,
28- backgroundPosition : '-30px -10px'
34+ textShadow : '0 2px 30px #000' ,
35+ backgroundImage : 'linear-gradient(90deg, #fff 40%, #aaa)' ,
36+ backgroundClip : 'text' ,
37+ // To preserve new line
38+ whiteSpace : 'pre'
2939 } }
3040 >
31- < NextraLogo height = "40" />
32- < h1
33- tw = "text-transparent text-[82px] m-0 mb-10 tracking-tighter leading-[1.1]"
34- style = { {
35- textShadow : '0 2px 30px #000' ,
36- backgroundImage : 'linear-gradient(90deg, #fff 40%, #aaa)' ,
37- backgroundClip : 'text' ,
38- // To preserve new line
39- whiteSpace : 'pre'
40- } }
41- >
42- { title }
43- </ h1 >
44- < p tw = "m-0 text-3xl tracking-tight" >
45- Create beautiful websites with Next.js & MDX .
46- </ p >
47- </ div >
48- ) ,
41+ { title }
42+ </ h1 >
43+ < p tw = "m-0 text-3xl tracking-tight" >
44+ Create beautiful websites with Next.js & MDX .
45+ </ p >
46+ </ div > ,
4947 {
5048 width : 1200 ,
5149 height : 630 ,
0 commit comments