-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d4b88c
commit ce87482
Showing
3 changed files
with
216 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,24 @@ | ||
// import { ImageResponse } from "next/og"; | ||
// import { metaData } from "app/config"; | ||
import { ImageResponse } from "next/og"; | ||
import { metaData } from "app/config"; | ||
|
||
|
||
export function GET(request: Request) { | ||
let url = new URL(request.url); | ||
let title = url.searchParams.get("title") || metaData.title; | ||
|
||
export function GET(){ | ||
return<> | ||
"Nothing is here !" | ||
</> | ||
return new ImageResponse( | ||
( | ||
<div tw="flex flex-col w-full h-full items-center justify-center bg-white"> | ||
<div tw="flex flex-col md:flex-row w-full py-12 px-4 md:items-center justify-between p-8"> | ||
<h2 tw="flex flex-col text-4xl font-bold tracking-tight text-left"> | ||
{title} | ||
</h2> | ||
</div> | ||
</div> | ||
), | ||
{ | ||
width: 1200, | ||
height: 630, | ||
} | ||
); | ||
} | ||
// export function GET(request: Request) { | ||
// let url = new URL(request.url); | ||
// let title = url.searchParams.get("title") || metaData.title; | ||
|
||
// return new ImageResponse( | ||
// ( | ||
// <div tw="flex flex-col w-full h-full items-center justify-center bg-white"> | ||
// <div tw="flex flex-col md:flex-row w-full py-12 px-4 md:items-center justify-between p-8"> | ||
// <h2 tw="flex flex-col text-4xl font-bold tracking-tight text-left"> | ||
// {title} | ||
// </h2> | ||
// </div> | ||
// </div> | ||
// ), | ||
// { | ||
// width: 1200, | ||
// height: 630, | ||
// } | ||
// ); | ||
// } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters