29 lines
607 B
TypeScript
29 lines
607 B
TypeScript
import { ImageResponse } from 'next/og';
|
|
|
|
export const size = { width: 32, height: 32 };
|
|
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(135deg, #6f58ff, #ffd2a8)',
|
|
borderRadius: 8,
|
|
color: 'white',
|
|
fontSize: 14,
|
|
fontWeight: 700
|
|
}}
|
|
>
|
|
ID
|
|
</div>
|
|
),
|
|
size
|
|
);
|
|
}
|