import { ImageResponse } from "next/og"

export const size = {
  width: 1200,
  height: 630,
}

export const contentType = "image/png"

export default function Image() {
  return new ImageResponse(
    (
      <div
        style={{
          width: "100%",
          height: "100%",
          background: "#0a0f1e",
          display: "flex",
          flexDirection: "column",
          justifyContent: "center",
          padding: "80px",
          fontFamily: "Georgia, serif",
          boxSizing: "border-box",
        }}
      >
        <div
          style={{
            color: "#3b7dd8",
            fontSize: 20,
            letterSpacing: "0.2em",
            marginBottom: 40,
          }}
        >
          PARALLAX
        </div>
        <div
          style={{
            color: "white",
            display: "flex",
            flexDirection: "column",
            fontSize: 64,
            fontWeight: 400,
            lineHeight: 1.1,
            marginBottom: 20,
          }}
        >
          <span>Geopolitics,</span>
          <span>without the noise.</span>
        </div>
        <div style={{ color: "#94a3b8", fontSize: 28 }}>
          In-depth reports on global politics, economics, and power.
        </div>
      </div>
    ),
    size,
  )
}
