From 7e06dec5c0c0e1d10ebcef97fc2551471a4bb306 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Fri, 1 May 2026 09:32:39 +0800 Subject: [PATCH] feat: add UpdateCard component for updates list --- components/updates/update-card.tsx | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 components/updates/update-card.tsx diff --git a/components/updates/update-card.tsx b/components/updates/update-card.tsx new file mode 100644 index 0000000..6619cc0 --- /dev/null +++ b/components/updates/update-card.tsx @@ -0,0 +1,27 @@ +import Link from "next/link" +import type { UpdateMeta } from "@/lib/updates" + +export function UpdateCard({ update }: { update: UpdateMeta }) { + const formattedDate = new Date(update.date).toLocaleDateString("en-US", { + year: "numeric", + month: "long", + day: "numeric", + }) + + return ( + +
+
+ + v{update.version} + + +
+

+ {update.title} +

+

{update.summary}

+
+ + ) +}