import { ImageResponse } from "next/og";

export const alt = "sinss.lol — one page for everything you share";
export const size = { width: 1200, height: 630 };
export const contentType = "image/png";

export default function OpenGraphImage() {
  return new ImageResponse(
    (
      <div
        style={{
          width: "100%",
          height: "100%",
          display: "flex",
          flexDirection: "column",
          justifyContent: "space-between",
          padding: 56,
          background:
            "radial-gradient(circle at 82% 18%, rgba(245, 202, 202, .2), transparent 34%), linear-gradient(135deg, #070a0e 0%, #111923 100%)",
          color: "#ffffff",
          fontFamily: "Arial, sans-serif",
        }}
      >
        <div style={{ display: "flex", alignItems: "center", gap: 12, fontSize: 30, fontWeight: 800 }}>
          <div style={{ width: 13, height: 36, borderRadius: 8, background: "#f5caca" }} />
          sinss.lol
        </div>

        <div style={{ display: "flex", flexDirection: "column", gap: 32 }}>
          <div style={{ display: "flex", fontSize: 72, fontWeight: 800, lineHeight: 1.08, width: 950 }}>
            One page for everything you share.
          </div>
          <div style={{ display: "flex", alignItems: "center", gap: 14 }}>
            <div
              style={{
                display: "flex",
                alignItems: "center",
                width: 600,
                height: 76,
                borderRadius: 14,
                border: "1px solid rgba(172, 34, 34, .35)",
                background: "rgba(9,13,24,.9)",
                padding: "0 26px",
                color: "#451111",
                fontSize: 26,
              }}
            >
              sinss.lol/
            </div>
            <div
              style={{
                display: "flex",
                alignItems: "center",
                height: 76,
                borderRadius: 14,
                background: "#f5caca",
                color: "#071018",
                padding: "0 34px",
                fontSize: 26,
                fontWeight: 800,
              }}
            >
              Claim username
            </div>
          </div>
        </div>

        <div
          style={{
            display: "flex",
            justifyContent: "space-between",
            alignItems: "center",
            color: "#400d0d",
            fontSize: 22,
            borderTop: "1px solid rgba(172, 34, 34, .18)",
            paddingTop: 22,
          }}
        >
          <span>Free forever · No card required · Live in seconds</span>
          <span style={{ color: "#f5caca", fontWeight: 700 }}>sinss.lol</span>
        </div>
      </div>
    ),
    size,
  );
}
