opengraph-image.tsx 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import { ImageResponse } from "next/og";
  2. export const runtime = "edge";
  3. export const alt = "Eric Wu - Full Stack Developer & Data Scientist";
  4. export const size = { width: 1200, height: 630 };
  5. export const contentType = "image/png";
  6. export default function Image() {
  7. return new ImageResponse(
  8. (
  9. <div
  10. style={{
  11. background: "linear-gradient(135deg, #0b0f11 0%, #1a1f25 100%)",
  12. width: "100%",
  13. height: "100%",
  14. display: "flex",
  15. flexDirection: "column",
  16. alignItems: "center",
  17. justifyContent: "center",
  18. fontFamily: "sans-serif",
  19. }}
  20. >
  21. <div
  22. style={{
  23. display: "flex",
  24. flexDirection: "column",
  25. alignItems: "center",
  26. gap: "20px",
  27. }}
  28. >
  29. <h1
  30. style={{
  31. fontSize: 72,
  32. fontWeight: 700,
  33. color: "#ffffff",
  34. margin: 0,
  35. letterSpacing: "-0.02em",
  36. }}
  37. >
  38. Eric Wu
  39. </h1>
  40. <p
  41. style={{
  42. fontSize: 32,
  43. color: "#8cc9fe",
  44. margin: 0,
  45. letterSpacing: "0.05em",
  46. }}
  47. >
  48. Full Stack Developer & Data Scientist
  49. </p>
  50. <p
  51. style={{
  52. fontSize: 24,
  53. color: "#888888",
  54. margin: 0,
  55. marginTop: "8px",
  56. }}
  57. >
  58. ericwu.me
  59. </p>
  60. </div>
  61. </div>
  62. ),
  63. { ...size },
  64. );
  65. }