From b497e133bd25fd844ade7fe1c3656de9a18bc26b Mon Sep 17 00:00:00 2001 From: yiekheng Date: Sat, 2 May 2026 21:02:58 +0800 Subject: [PATCH] feat(web): add PWA icons via Next.js ImageResponse (frontend-design) --- web/app/apple-icon.tsx | 49 ++++++++++++++++++++++++++++++++++++++++++ web/app/icon.tsx | 49 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 web/app/apple-icon.tsx create mode 100644 web/app/icon.tsx diff --git a/web/app/apple-icon.tsx b/web/app/apple-icon.tsx new file mode 100644 index 0000000..e90b987 --- /dev/null +++ b/web/app/apple-icon.tsx @@ -0,0 +1,49 @@ +import { ImageResponse } from "next/og"; + +export const size = { width: 180, height: 180 }; +export const contentType = "image/png"; + +export default function AppleIcon() { + return new ImageResponse( + ( +
+ + CM + +
+
+ ), + size, + ); +} diff --git a/web/app/icon.tsx b/web/app/icon.tsx new file mode 100644 index 0000000..6f15855 --- /dev/null +++ b/web/app/icon.tsx @@ -0,0 +1,49 @@ +import { ImageResponse } from "next/og"; + +export const size = { width: 512, height: 512 }; +export const contentType = "image/png"; + +export default function Icon() { + return new ImageResponse( + ( +
+ + CM + +
+
+ ), + size, + ); +}