diff --git a/src/components/ui/insight-card.tsx b/src/components/ui/insight-card.tsx new file mode 100644 index 0000000..38aedec --- /dev/null +++ b/src/components/ui/insight-card.tsx @@ -0,0 +1,82 @@ +'use client'; + +import { Calendar, Clock, ArrowRight } from 'lucide-react'; +import { Badge } from '@/components/ui/badge'; + +export interface InsightCardProps { + title: string; + excerpt: string; + category: string; + readTime: string; + publishedAt: string; + imageUrl?: string; + href: string; + featured?: boolean; +} + +export function InsightCard({ + title, + excerpt, + category, + readTime, + publishedAt, + imageUrl, + href, + featured = false, +}: InsightCardProps) { + return ( +
+ {imageUrl && ( +
+ {title} +
+
+ )} + +
+
+ + {category} + +
+ + {readTime} +
+
+ +

+ {title} +

+ +

+ {excerpt} +

+ +
+
+ + {publishedAt} +
+ + + 阅读更多 + + +
+
+
+ ); +}