Common Components
Blog Card
Card component for displaying blog post previews
Installation
// Copy the BlogCard component fromsrc/components/common/BlogCard.tsx// Install dependenciesnpm install lucide-react
Usage
import { BlogCard } from '@/components/common/BlogCard'const post = {slug: 'getting-started',title: 'Getting Started with Next.js',excerpt: 'Learn how to build modern web applications...',category: 'Tutorial',date: 'May 15, 2024',emoji: '๐'}export default function BlogList() {return <BlogCard {...post} />}
Examples
Grid Layout
Multiple blog cards in a responsive grid
๐
Tutorial
Getting Started with Next.js 14
Learn how to build modern web applications with Next.js 14, featuring App Router, Server Components, and more.
15/05/2024
๐จ
Tutorial
Building a Design System
Learn how to build modern web applications with Next.js 14, featuring App Router, Server Components, and more.
15/05/2024
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
slug* | string | - | URL slug for the blog post |
title* | string | - | Blog post title |
excerpt* | string | - | Short preview text |
category* | string | - | Post category |
date* | string | - | Publication date |
emoji* | string | - | Emoji icon for the post |
Features
- โClickable card with hover effects
- โEmoji thumbnail area
- โCategory badge
- โDate display with icon
- โText truncation (2-line title, 3-line excerpt)
- โSmooth transitions