puzzle-trainer/app/icon.tsx
2026-05-23 01:05:21 +00:00

34 lines
800 B
TypeScript

import { ImageResponse } from "next/og";
export const size = { width: 512, height: 512 };
export const contentType = "image/png";
export default function Icon() {
return new ImageResponse(
(
<div
style={{
width: "100%",
height: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
background: "linear-gradient(145deg, #111827 0%, #1e3a5f 100%)",
borderRadius: "20%",
}}
>
<div
style={{
display: "flex",
flexDirection: "column",
alignItems: "center",
gap: 6,
}}
>
<span style={{ fontSize: 240, lineHeight: 1 }}>🧩</span>
</div>
</div>
),
{ ...size }
);
}