This commit is contained in:
2026-02-05 14:57:24 +03:30
7 changed files with 82 additions and 5 deletions
+4 -4
View File
@@ -111,8 +111,8 @@ export default async function BlogPage({ searchParams }: BlogPageProps) {
<Link
href="/blog"
className={`text-sm rounded-full px-4 py-2 transition-colors ${!categoryId
? "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"
}`}
>
همه
@@ -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}