mirror of
https://github.com/altstackHQ/altstack-data.git
synced 2026-04-18 13:53:16 +02:00
61 lines
1.7 KiB
TypeScript
61 lines
1.7 KiB
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={{
|
|
fontSize: 24,
|
|
background: 'linear-gradient(to bottom right, #EF4444, #F97316)',
|
|
width: '100%',
|
|
height: '100%',
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
color: 'white',
|
|
borderRadius: '50%', // Round!
|
|
}}
|
|
>
|
|
<svg
|
|
width="20"
|
|
height="20"
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
d="M12 2L2 7L12 12L22 7L12 2Z"
|
|
fill="white"
|
|
fillOpacity="0.9"
|
|
/>
|
|
<path
|
|
d="M2 17L12 22L22 17"
|
|
stroke="white"
|
|
strokeWidth="2"
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
/>
|
|
<path
|
|
d="M2 12L12 17L22 12"
|
|
stroke="white"
|
|
strokeWidth="2"
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
/>
|
|
</svg>
|
|
</div>
|
|
),
|
|
{
|
|
...size,
|
|
}
|
|
);
|
|
}
|