diff --git a/src/app/speedtest-rpc/opengraph-image.tsx b/src/app/speedtest-rpc/opengraph-image.tsx index 0caed4dd..0edceb81 100644 --- a/src/app/speedtest-rpc/opengraph-image.tsx +++ b/src/app/speedtest-rpc/opengraph-image.tsx @@ -10,7 +10,6 @@ export const contentType = "image/png"; // deploy). const GAUGE_START = -210; const GAUGE_SWEEP = 240; -const STOPS = [1, 5, 10, 25, 50, 100, 250, 500, 1000]; function polar(cx: number, cy: number, r: number, deg: number): [number, number] { const rad = (deg * Math.PI) / 180; @@ -76,7 +75,9 @@ export default function OG() { fontFamily: "Georgia, serif", }} > - {/* Dial */} + {/* Dial: svg for the arcs/needle, HTML overlay for the readout + (satori does not support svg nodes). */} +
))} - {STOPS.map((stop) => { - const [x, y] = polar(210, 210, 122, msToAngle(stop)); - return ( - - {stop} - - ); - })} - - {READING} - - - ms - +
+
{READING}
+
ms
+
+
{/* Copy */}