redirecter for ao3 that adds opengraph metadata
1import { ImageResponse } from "next/og" 2import General from "@/icons/locked.js" 3 4export default async function OGImageLocked ({ theme }) { 5 return new ImageResponse( 6 ( 7 <div 8 style={{ 9 display: "flex", 10 flexDirection: "column", 11 justifyContent: "center", 12 alignItems: "center", 13 color: theme.color, 14 backgroundColor: theme.background, 15 fontFamily: baseFont, 16 fontSize: 24, 17 padding: 20, 18 width: "100%", 19 height: "100%", 20 }} 21 > 22 <Locked bg={theme.background} fg={theme.color} width={480} height={480} /> 23 </div> 24 ), 25 opts 26 ) 27}