50 lines
1.0 KiB
TypeScript
50 lines
1.0 KiB
TypeScript
import { ImageResponse } from "next/og";
|
|
|
|
export const runtime = "edge";
|
|
export const alt = "Evandro Fonseca Junior - Engenheiro de Software";
|
|
export const size = {
|
|
width: 1200,
|
|
height: 630,
|
|
};
|
|
export const contentType = "image/png";
|
|
|
|
export default async function Image() {
|
|
return new ImageResponse(
|
|
<div
|
|
style={{
|
|
background: "#030712",
|
|
width: "100%",
|
|
height: "100%",
|
|
display: "flex",
|
|
flexDirection: "column",
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
color: "white",
|
|
fontFamily: "system-ui",
|
|
}}
|
|
>
|
|
<div
|
|
style={{
|
|
fontSize: 64,
|
|
fontWeight: "bold",
|
|
marginBottom: 20,
|
|
textAlign: "center",
|
|
}}
|
|
>
|
|
Evandro Fonseca Junior
|
|
</div>
|
|
<div
|
|
style={{
|
|
fontSize: 32,
|
|
color: "#3b82f6",
|
|
marginTop: 10,
|
|
textAlign: "center",
|
|
}}
|
|
>
|
|
Engenheiro de Software
|
|
</div>
|
|
</div>,
|
|
{ ...size },
|
|
);
|
|
}
|