# Blog 5

> Blog

A shadcn/ui block from the [@cnippet-blocks](https://blocks.cnippet.dev/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet-blocks/blog-5).

- Page, with a live preview: https://shadcn.exchange/r/cnippet-blocks/blog-5
- Screenshot: https://shadcn.exchange/shot/cnippet-blocks/blog-5/light.png
- Registry item: https://blocks.cnippet.dev/r/blog-5.json
- Categories: blog
- Listed: 2026-11-01, source last changed 2026-11-01

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/cnippet-blocks/blog-5.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `lucide-react`
- Registry items: `@cnippet/badge`

## Files

### `registry/default/sections/blog-5.tsx`

```tsx
import { ArrowUpRight } from "lucide-react";
import Image from "next/image";
import Link from "next/link";
import { Badge } from "@/components/ui/badge";

const posts = [
  {
    category: "Industry",
    date: "Nov 28, 2025",
    image:
      "https://res.cloudinary.com/dvwtcsh5v/image/upload/v1770399897/img_14001.jpg",
    summary:
      "How modern data centers are reducing their carbon footprint through innovative cooling systems and renewable energy integration.",
    title: "Sustainable Data Centers: A New Standard",
  },
  {
    category: "Innovation",
    date: "Nov 15, 2025",
    image:
      "https://res.cloudinary.com/dvwtcsh5v/image/upload/v1770400411/img_14002.jpg",
    summary:
      "Exploring how AI and machine learning are optimizing energy grid management and reducing waste across distribution networks.",
    title: "AI-Powered Energy Management Systems",
  },
  {
    category: "Sustainability",
    date: "Oct 30, 2025",
    image:
      "https://res.cloudinary.com/dvwtcsh5v/image/upload/v1770399896/img_14003.jpg",
    summary:
      "A comprehensive look at how businesses can transition to net-zero operations while maintaining profitability and growth.",
    title: "The Road to Net-Zero: A Business Guide",
  },
];

export default function Component() {
  return (
    <section className="relative overflow-hidden py-16 font-kanturmuy text-black dark:bg-white">
      <div className="mx-auto max-w-full px-5 md:px-10">
        <Badge className="mb-4 rounded-none bg-[#e1fcad] px-3 py-0.5 font-medium text-[#122023] text-black text-sm dark:bg-[#e1fcad]">
          Latest Posts
        </Badge>
        <h2 className="mb-14 font-medium text-4xl tracking-tight md:text-5xl">
          Latest Articles
        </h2>

        <div className="grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3">
          {posts.map((post) => (
            <article
              className="group cursor-pointer overflow-hidden"
              key={post.title}
            >
              <div className="h-56 overflow-hidden md:h-72">
                <Image
                  alt={post.title}
                  className="h-full w-full object-cover transition-all duration-700 ease-in-out group-hover:scale-105"
                  height={600}
                  src={post.image}
                  width={800}
                />
              </div>
              <div className="py-5">
                <div className="mb-3 flex items-center gap-3">
                  <span className="font-mono text-[#122023]/60 text-xs uppercase tracking-wider">
                    {post.date}
                  </span>
                  <span className="text-[#122023]/60">|</span>
                  <span className="font-mono text-[#122023]/60 text-xs uppercase tracking-wider">
                    {post.category}
                  </span>
                </div>
                <h3 className="mb-2 font-semibold text-2xl tracking-tight">
                  {post.title}
                </h3>
                <p className="text-sm leading-relaxed">{post.summary}</p>
                <Link
                  className="group/link mt-4 inline-flex items-center gap-1.5 font-mono text-[#122023] text-xs uppercase tracking-wider transition-colors"
                  href="#"
                >
                  Read More
                  <ArrowUpRight className="h-3.5 w-3.5 transition-transform duration-300 group-hover/link:translate-x-0.5 group-hover/link:-translate-y-0.5" />
                </Link>
              </div>
            </article>
          ))}
        </div>
      </div>
    </section>
  );
}
```
