Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3
wevm/hono-og
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Fork of@vercel/og to be compatible withHono's JSX pragma.
import{Hono}from"hono"import{ImageResponse}from"hono-og"constapp=newHono()app.get("/",()=>{returnnewImageResponse(<divstyle={{backgroundColor:"black",backgroundSize:"150px 150px",height:"100%",width:"100%",display:"flex",textAlign:"center",alignItems:"center",justifyContent:"center",flexDirection:"column",flexWrap:"nowrap",}}><divstyle={{fontSize:60,fontStyle:"normal",letterSpacing:"-0.025em",color:"white",marginTop:30,padding:"0 120px",lineHeight:1.4,whiteSpace:"pre-wrap",}}> hello hono</div></div>,)})exportdefaultapp
About
Fork of @vercel/og to support Hono JSX.
Resources
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.