add opengraph image + embed

This commit is contained in:
horsefacts
2024-11-27 10:41:18 -05:00
committed by lucas-neynar
parent 0e2e706c48
commit f957312437
3 changed files with 68 additions and 10 deletions

View File

@@ -0,0 +1,22 @@
import { ImageResponse } from "next/og";
export const alt = "Farcaster Frames V2 Demo";
export const size = {
width: 800,
height: 800,
};
export const contentType = "image/png";
export default async function Image() {
return new ImageResponse(
(
<div tw="h-full w-full flex flex-col justify-center items-center relative">
<h1 tw="text-6xl">Frames v2 Demo</h1>
</div>
),
{
...size,
}
);
}