()
| 10 | export const contentType = "image/png" |
| 11 | |
| 12 | export default async function Image() { |
| 13 | const fontData = await readFile( |
| 14 | join(process.cwd(), "assets/Inter-SemiBold.ttf") |
| 15 | ) |
| 16 | |
| 17 | const logoData = await readFile( |
| 18 | join(process.cwd(), "public/opencode_cafe_email.png") |
| 19 | ) |
| 20 | const logoBase64 = `data:image/png;base64,${logoData.toString("base64")}` |
| 21 | |
| 22 | return new ImageResponse( |
| 23 | ( |
| 24 | <div |
| 25 | style={{ |
| 26 | fontSize: 32, |
| 27 | background: "#1a1412", |
| 28 | width: "100%", |
| 29 | height: "100%", |
| 30 | display: "flex", |
| 31 | flexDirection: "column", |
| 32 | alignItems: "flex-start", |
| 33 | justifyContent: "center", |
| 34 | padding: "80px", |
| 35 | fontFamily: "Inter", |
| 36 | }} |
| 37 | > |
| 38 | {/* Logo - opencode.cafe */} |
| 39 | <div |
| 40 | style={{ |
| 41 | display: "flex", |
| 42 | flexDirection: "column", |
| 43 | alignItems: "flex-start", |
| 44 | marginBottom: "40px", |
| 45 | }} |
| 46 | > |
| 47 | {/* eslint-disable-next-line @next/next/no-img-element */} |
| 48 | <img |
| 49 | src={logoBase64} |
| 50 | width="300" |
| 51 | height="35" |
| 52 | alt="opencode.cafe" |
| 53 | style={{ objectFit: "contain" }} |
| 54 | /> |
| 55 | <div |
| 56 | style={{ |
| 57 | fontSize: "14px", |
| 58 | color: "#6b5d55", |
| 59 | marginTop: "8px", |
| 60 | }} |
| 61 | > |
| 62 | not affiliated with OpenCode |
| 63 | </div> |
| 64 | </div> |
| 65 | |
| 66 | {/* Title */} |
| 67 | <div |
| 68 | style={{ |
| 69 | fontSize: "64px", |
nothing calls this directly
no outgoing calls
no test coverage detected