diff --git a/app/blog/page.tsx b/app/blog/page.tsx index f1f5a47..6eb7580 100644 --- a/app/blog/page.tsx +++ b/app/blog/page.tsx @@ -111,8 +111,8 @@ export default async function BlogPage({ searchParams }: BlogPageProps) { همه @@ -122,8 +122,8 @@ export default async function BlogPage({ searchParams }: BlogPageProps) { key={cat.id} href={`/blog${buildQuery({ search, category: String(cat.id), page: 1 })}`} className={`text-sm rounded-full px-4 py-2 transition-colors ${categoryId === cat.id - ? "bg-primary text-primary-foreground shadow-sm" - : "bg-muted/80 hover:bg-muted text-muted-foreground hover:text-foreground" + ? "bg-primary text-primary-foreground shadow-sm" + : "bg-muted/80 hover:bg-muted text-muted-foreground hover:text-foreground" }`} > {cat.name} diff --git a/components/blog-card.tsx b/components/blog-card.tsx new file mode 100644 index 0000000..3fe8bcb --- /dev/null +++ b/components/blog-card.tsx @@ -0,0 +1,73 @@ +import Link from "next/link"; +import Image from "next/image"; +import { Calendar, Clock, ArrowLeft } from "lucide-react"; +import { Card, CardContent, CardFooter, CardHeader } from "@/components/ui/card"; + +interface BlogCardProps { + slug: string; + title: string; + excerpt: string; + date: string; + readTime: string; + category: string; + image: string; +} + +export function BlogCard({ + slug, + title, + excerpt, + date, + readTime, + category, + image, +}: BlogCardProps) { + return ( + + + {/* Image with 3:2 aspect ratio */} +
+ {title} + {/* Category Badge */} +
+ + {category} + +
+
+ + +

+ {title} +

+
+ + +

+ {excerpt} +

+
+ + +
+ + {date} +
+
+ + {readTime} دقیقه +
+
+
+ + ); +} + + + diff --git a/components/header.tsx b/components/header.tsx index 2f24514..8b50d8e 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -14,6 +14,7 @@ const menuItems = [ { name: 'راه حل‌ها', href: '/solutions' }, { name: 'بلاگ', href: '/blog' }, { name: 'قیمت‌گذاری', href: '/pricing' }, + { name: 'وبلاگ', href: '/blog' }, ] function isLinkActive(pathname: string, href: string): boolean { diff --git a/components/logo.tsx b/components/logo.tsx index 30487fa..5eac289 100644 --- a/components/logo.tsx +++ b/components/logo.tsx @@ -26,7 +26,7 @@ export const LogoIcon = ({ }) => { return ( Logo + + diff --git a/public/assets/feepLogo.png b/public/assets/feepLogo.png new file mode 100644 index 0000000..ca2a254 Binary files /dev/null and b/public/assets/feepLogo.png differ diff --git a/public/assets/main-pic/main-pic.jpg b/public/assets/main-pic/main-pic.jpg new file mode 100644 index 0000000..7304b11 Binary files /dev/null and b/public/assets/main-pic/main-pic.jpg differ