diff --git a/src/app/api/certificates/[id]/route.tsx b/src/app/api/certificates/[id]/route.tsx new file mode 100644 index 0000000..3ff7089 --- /dev/null +++ b/src/app/api/certificates/[id]/route.tsx @@ -0,0 +1,245 @@ +import { ImageResponse } from "next/server"; + +export const runtime = "edge"; + +export async function GET(request: Request) { + return new ImageResponse( + ( +
+
+ + + + + + +
+
+ IIC | IEDC | GPTC Perinthalmanna +
+
+ CERTIFICATE +
+
+ OF PARTICIPATION +
+
+ THIS CERTIFICATE IS PRESENTED TO +
+
+ Amjed Ali K +
+
+ 2 Days Workshop on Design Thinking +
+
+ 12 +
+
+ Sept +
+
+ 2023 +
+
+ This is to certify that, to the best of my knowledge, the + participant named above attended and actively participated in the + 2 Days Workshop on Design Thinking organized by IEDC, GPC + Perinthalmanna on 1 and 2 November 2023 at GPC Perinthalmanna. The + participant has shown a commitment to learning and has + successfully completed the requirements of this workshop. +
+
+ Sanjay V +
+
+ Lecturer In Electrical Engineering, GPTC Perinthalmanna +
+
+
+
+ ), + { + width: 1178, + height: 768, + fonts: [ + { + name: "Montserrat", + data: await fetch( + new URL("../../../assets/Montserrat-Bold.ttf", import.meta.url) + ).then((res) => res.arrayBuffer()), + style: "normal", + weight: 600, + }, + { + name: "Montserrat", + data: await fetch( + new URL("../../../assets/Montserrat-Medium.ttf", import.meta.url) + ).then((res) => res.arrayBuffer()), + style: "normal", + weight: 400, + }, + { + name: "Montserrat", + data: await fetch( + new URL("../../../assets/Montserrat-Light.ttf", import.meta.url) + ).then((res) => res.arrayBuffer()), + style: "normal", + weight: 200, + }, + ], + } + ); +} diff --git a/src/app/assets/Montserrat-Bold.ttf b/src/app/assets/Montserrat-Bold.ttf new file mode 100644 index 0000000..0927b81 Binary files /dev/null and b/src/app/assets/Montserrat-Bold.ttf differ diff --git a/src/app/assets/Montserrat-Light.ttf b/src/app/assets/Montserrat-Light.ttf new file mode 100644 index 0000000..fd787a8 Binary files /dev/null and b/src/app/assets/Montserrat-Light.ttf differ diff --git a/src/app/assets/Montserrat-Medium.ttf b/src/app/assets/Montserrat-Medium.ttf new file mode 100644 index 0000000..4012225 Binary files /dev/null and b/src/app/assets/Montserrat-Medium.ttf differ