From fa5052d85ed57cbb126af1707a22b2ca232fc3ba Mon Sep 17 00:00:00 2001 From: Parikshit Deshmukh Date: Thu, 11 Jun 2026 13:22:37 +0530 Subject: [PATCH 1/3] docs: redesign blog index page - Render blog posts as cards with rounded borders and hover states - Show the author name on each card alongside the date - Page background is white in light mode and #171717 in dark mode - Add the shared site Footer to the blog index Co-Authored-By: Claude Fable 5 --- docs/app/blog/page.tsx | 58 +++++++++++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/docs/app/blog/page.tsx b/docs/app/blog/page.tsx index e3661d00e..f0e9cc4ef 100644 --- a/docs/app/blog/page.tsx +++ b/docs/app/blog/page.tsx @@ -1,5 +1,14 @@ import { blog } from "@/lib/source"; import Link from "next/link"; +import { Footer } from "../(home)/sections/Footer/Footer"; + +function formatDate(date: string | Date) { + return new Date(date).toLocaleDateString("en-US", { + year: "numeric", + month: "short", + day: "numeric", + }); +} export default function BlogIndex() { const posts = blog.getPages().sort((a, b) => { @@ -7,27 +16,36 @@ export default function BlogIndex() { }); return ( -
-

Blog

-
- {posts.map((post) => ( - -
-

+
+
+

+ Blog +

+
+ {posts.map((post) => ( + +

{post.data.title}

- -
-

{post.data.description}

- - ))} -
-

+

+ {post.data.description} +

+
+ + {post.data.author} + + + +
+ + ))} + + +