import * as React from "react"; import Link from "next/link"; import { Card } from "./Layout"; import { ArrowRight } from "lucide-react"; import { BlogThumbnailSVG } from "./blog/BlogThumbnailSVG"; interface Post { title: string; description: string; date: string; slug: string; tags?: string[]; thumbnail?: string; } interface MediumCardProps { post: Post; } export const MediumCard: React.FC = ({ post }) => { const { title, description, date, slug, tags } = post; const formattedDate = new Date(date).toLocaleDateString("de-DE", { month: "long", year: "numeric", }); return (
{/* Premium Large Thumbnail Section */}
{post.thumbnail ? ( {title} ) : ( )} {/* Subtle inset shadow over the image */}
{/* Content Section */}
{tags?.slice(0, 3).map((tag) => ( #{tag} ))}

{title}

{description}

Read Article
); };