init commit,
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import React from 'https://esm.sh/react@18.2.0?deno-std=0.177.0'
|
||||
import { ImageResponse } from 'https://deno.land/x/og_edge@0.0.4/mod.ts'
|
||||
|
||||
export function handler(req: Request) {
|
||||
return new ImageResponse(
|
||||
(
|
||||
<div
|
||||
style={{
|
||||
fontSize: 100,
|
||||
color: 'black',
|
||||
background: 'white',
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
padding: '50px 200px',
|
||||
textAlign: 'center',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
display: 'flex',
|
||||
}}
|
||||
>
|
||||
NICE! 🔥
|
||||
</div>
|
||||
),
|
||||
{
|
||||
width: 1200,
|
||||
height: 630,
|
||||
// Supported options: 'twemoji', 'blobmoji', 'noto', 'openmoji', 'fluent', 'fluentFlat'
|
||||
// Default to 'twemoji'
|
||||
emoji: 'twemoji',
|
||||
}
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user