Skip to content

Commit

Permalink
redoo again
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanIStereotekk committed Nov 9, 2024
1 parent 4d4b88c commit ce87482
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 28 deletions.
46 changes: 20 additions & 26 deletions app/og/route.tsx
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,
// }
// );
// }
197 changes: 195 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@types/react": "18.3.4",
"@types/react-dom": "18.3.0",
"@vercel/analytics": "^1.3.1",
"@vercel/og": "^0.6.3",
"@vercel/speed-insights": "^1.0.12",
"feed": "^4.2.2",
"geist": "1.3.1",
Expand Down

0 comments on commit ce87482

Please sign in to comment.