chore(docs): misc

This commit is contained in:
Bereket Engida
2025-09-19 15:33:13 -07:00
committed by Alex Yang
parent ccc7c48dee
commit c456b6a2c5
12 changed files with 439 additions and 94 deletions

View File

@@ -9,7 +9,9 @@ import { DiscordLogoIcon } from "@radix-ui/react-icons";
import Image from "next/image";
export async function BlogPage() {
const posts = blogs.getPages();
const posts = blogs.getPages().sort((a, b) => {
return new Date(b.data.date).getTime() - new Date(a.data.date).getTime();
});
return (
<div className="md:grid md:grid-cols-2 items-start">
<div className="bg-gradient-to-tr hidden md:block overflow-hidden px-12 py-24 md:py-0 -mt-[100px] md:h-dvh relative md:sticky top-0 from-transparent dark:via-stone-950/5 via-stone-100/30 to-stone-200/20 dark:to-transparent/10">
@@ -75,8 +77,8 @@ export async function BlogPage() {
<Image
src={post.data.image}
alt={post.data.title}
width={402}
height={252}
width={1206}
height={756}
className="rounded-md w-full bg-muted transition-colors"
/>
)}