diff --git a/components/blog/PostCard.tsx b/components/blog/PostCard.tsx new file mode 100644 index 0000000..86fc122 --- /dev/null +++ b/components/blog/PostCard.tsx @@ -0,0 +1,29 @@ +import Link from "next/link"; +import { motion } from "motion/react"; +import type { PostMeta } from "@/lib/posts"; + +interface PostCardProps extends PostMeta { + index?: number; +} + +export function PostCard({ slug, title, date, excerpt, index = 0 }: PostCardProps) { + return ( + + + +

+ {title} +

+ {excerpt && ( +

{excerpt}

+ )} + +
+ ); +}