import Link from "next/link"; import { getBlogPosts } from "../lib/payload"; export async function Blog() { const posts = await getBlogPosts(3); if (posts.length === 0) return null; const featured = { ...posts[0], href: `/blog/${posts[0].slug}` }; const secondary = posts .slice(1, 3) .map((post) => ({ ...post, href: `/blog/${post.slug}` })); return (
{/* Section header */}

Neue Impulse

Gedanken, Methoden & Impulse

{/* Posts grid */}
{/* Featured post — thumbnail flush left, card clips with overflow-hidden */}
{featured.category} {featured.readTime} Min

{featured.title}

{featured.excerpt}

→ Zum Beitrag
{/* Secondary posts — thumbnail with own rounded-xl, card py-2 only */}
{secondary.map((post) => (
{/* Thumbnail: own border-radius so it sits neatly inside the padded card */}
{post.category} {post.readTime} Min

{post.title}

{post.excerpt}

→ Zum Beitrag
))}
); }