Skip to content

Open-source status page, incident response and uptime monitoring

chore: add more robot-mono

Maximilian Kaske027d511d6512
diff --git a/apps/web/src/app/api/og/route.tsx b/apps/web/src/app/api/og/route.tsx
index 065c42e83..759e122b2 100644
--- a/apps/web/src/app/api/og/route.tsx
+++ b/apps/web/src/app/api/og/route.tsx
@@ -10,9 +10,15 @@ const FOOTER = "openstatus.dev";
const CATEGORY = "product";
export async function GET(req: Request) {
- const fontMono = await fetch(
+ const fontMonoRegular = await fetch(
new URL("../../../public/fonts/RobotoMono-Regular.ttf", import.meta.url),
).then((res) => res.arrayBuffer());
+ const fontMonoMedium = await fetch(
+ new URL("../../../public/fonts/RobotoMono-Medium.ttf", import.meta.url),
+ ).then((res) => res.arrayBuffer());
+ const fontMonoBold = await fetch(
+ new URL("../../../public/fonts/RobotoMono-Bold.ttf", import.meta.url),
+ ).then((res) => res.arrayBuffer());
const { searchParams } = new URL(req.url);
@@ -38,7 +44,7 @@ export async function GET(req: Request) {
<div tw="flex flex-col justify-end flex-1 mb-8">
<p tw="text-xl text-left">[{category.toLowerCase()}]</p>
<h1
- tw="text-6xl text-black text-left"
+ tw="text-6xl text-black text-left font-medium"
style={{ lineClamp: 2, display: "block" }}
>
{title}
@@ -58,10 +64,22 @@ export async function GET(req: Request) {
fonts: [
{
name: "Font Mono",
- data: fontMono,
+ data: fontMonoRegular,
style: "normal",
weight: 400,
},
+ {
+ name: "Font Mono",
+ data: fontMonoMedium,
+ style: "normal",
+ weight: 500,
+ },
+ {
+ name: "Font Mono",
+ data: fontMonoBold,
+ style: "normal",
+ weight: 700,
+ },
],
},
);
diff --git a/apps/web/src/public/fonts/RobotoMono-Bold.ttf b/apps/web/src/public/fonts/RobotoMono-Bold.ttf
new file mode 100644
index 000000000..c6a81a570
Binary files /dev/null and b/apps/web/src/public/fonts/RobotoMono-Bold.ttf differ
diff --git a/apps/web/src/public/fonts/RobotoMono-Medium.ttf b/apps/web/src/public/fonts/RobotoMono-Medium.ttf
new file mode 100644
index 000000000..0bcdc740c
Binary files /dev/null and b/apps/web/src/public/fonts/RobotoMono-Medium.ttf differ