Files
import { ArrowRightIcon } from "lucide-react"
import { Button } from "@/components/ui/button"
import { ArticleItem } from "@/components/article-item"
export function Blog02() {
return (
<div className="max-w-screen overflow-x-clip">
<div className="container mx-auto px-4">
<div className="border-x border-line py-8">
<h2 className="screen-line-top screen-line-bottom ml-4 font-heading text-3xl font-medium tracking-tight">
Blog
</h2>
<p className="p-4 text-base text-balance text-muted-foreground">
A collection of articles on development, design, ideas, and tech
news.
</p>
<div className="screen-line-top relative py-4">
<div className="pointer-events-none absolute inset-0 -z-1 grid grid-cols-1 gap-4 max-sm:hidden sm:grid-cols-2 md:grid-cols-3">
<div className="border-r border-line" />
<div className="border-l border-line md:border-x" />
<div className="border-l border-line max-md:hidden" />
</div>
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3">
{articles.map((article) => (
<ArticleItem
key={article.id}
url="#"
title={article.title}
coverUrl={article.coverUrl}
createdAt={article.createdAt}
/>
))}
</div>
</div>
<div className="screen-line-top screen-line-bottom flex justify-center py-2">
<Button
className="gap-2 pr-2.5 pl-3"
nativeButton={false}
render={<a href="#" />}
>
View All
<ArrowRightIcon />
</Button>
</div>
</div>
</div>
</div>
)
}
type Article = {
id: string
title: string
coverUrl: string
createdAt: string
}
const articles: Article[] = [
{
id: "1",
title: "How we document a component library without a design team",
coverUrl: "/brand/placeholder.png",
createdAt: "2025-09-13",
},
{
id: "2",
title: "Choosing between CSS variables and utility classes",
coverUrl: "/brand/placeholder.png",
createdAt: "2025-04-21",
},
{
id: "3",
title: "Testing interactive components without a browser",
coverUrl: "/brand/placeholder.png",
createdAt: "2025-02-20",
},
{
id: "4",
title: "A checklist for reviewing pull requests",
coverUrl: "/brand/placeholder.png",
createdAt: "2024-10-31",
},
{
id: "5",
title: "Typography scales for dashboards and landing pages",
coverUrl: "/brand/placeholder.png",
createdAt: "2024-10-31",
},
{
id: "6",
title: "What makes a block reusable",
coverUrl: "/brand/placeholder.png",
createdAt: "2024-10-29",
},
]A blog section with a lined grid layout
@yourname/blog-02