Files
import { ArrowRightIcon } from "lucide-react"
import { Button } from "@/components/ui/button"
import { ArticleItem } from "@/components/article-item"
export function Blog01() {
return (
<div className="container mx-auto flex flex-col gap-8 px-4 py-8">
<h2 className="ml-4 font-heading text-4xl font-medium tracking-tight md:text-5xl">
Blog
</h2>
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
{articles.map((article) => (
<a key={article.id} className="block h-full" href="#">
<ArticleItem
title={article.title}
coverUrl={article.coverUrl}
createdAt={article.createdAt}
/>
</a>
))}
</div>
<div className="flex justify-center">
<Button
className="gap-2 pr-2.5 pl-3"
nativeButton={false}
render={<a href="#" />}
>
View All
<ArrowRightIcon />
</Button>
</div>
</div>
)
}
type Article = {
id: string
title: string
coverUrl: string
createdAt: string
}
const articles: Article[] = [
{
id: "1",
title: "A practical guide to design tokens in a component library",
coverUrl: "/brand/placeholder.png",
createdAt: "2025-09-13",
},
{
id: "2",
title: "Building accessible forms with React server actions",
coverUrl: "/brand/placeholder.png",
createdAt: "2025-04-21",
},
{
id: "3",
title: "Lessons from shipping dark mode across forty screens",
coverUrl: "/brand/placeholder.png",
createdAt: "2025-02-20",
},
{
id: "4",
title: "Structuring a Next.js app that stays easy to change",
coverUrl: "/brand/placeholder.png",
createdAt: "2024-10-31",
},
{
id: "5",
title: "Notes on motion design for interface components",
coverUrl: "/brand/placeholder.png",
createdAt: "2024-10-31",
},
{
id: "6",
title: "A blog post about design systems",
coverUrl: "/brand/placeholder.png",
createdAt: "2024-10-29",
},
]A blog section with a grid layout
@yourname/blog-01