mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
chore(docs): misc
This commit is contained in:
committed by
Alex Yang
parent
ccc7c48dee
commit
c456b6a2c5
@@ -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"
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user