mirror of
https://github.com/arthur-pbty/moon.git
synced 2026-06-03 15:07:31 +02:00
31 lines
570 B
TypeScript
31 lines
570 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',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
background: 'radial-gradient(circle at top, #2b2f77 0%, #0a0a1a 70%)',
|
|
fontSize: 360,
|
|
}}
|
|
>
|
|
🌕
|
|
</div>
|
|
),
|
|
{
|
|
...size,
|
|
}
|
|
);
|
|
}
|