.
All checks were successful
Deploy blog-frontend / build-and-deploy (push) Successful in 2m10s

This commit is contained in:
wypark
2026-06-06 23:59:25 +09:00
parent 091f97968b
commit eb2e713b24
18 changed files with 538 additions and 144 deletions

View File

@@ -1,5 +1,5 @@
import Link from 'next/link';
import { ChevronRight, Eye } from 'lucide-react';
import { ChevronRight, Eye, FileText } from 'lucide-react';
import { clsx } from 'clsx';
import StatusBadge from '@/components/ui/StatusBadge';
import { Post } from '@/types';
@@ -11,7 +11,7 @@ interface PostListItemProps {
const isNoticePost = (post: Post) => {
const categoryName = post.categoryName || '';
return categoryName === '공지' || categoryName === '怨듭?' || categoryName.toLowerCase() === 'notice';
return categoryName === '공지' || categoryName.toLowerCase() === 'notice';
};
const formatDate = (value: string) => {
@@ -37,6 +37,9 @@ export default function PostListItem({ post, showViews = false }: PostListItemPr
)}
>
<div className="flex min-w-0 flex-1 items-center gap-3">
<span className="hidden h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-[var(--card-border)] bg-[var(--card-bg-strong)] text-[var(--color-accent)] shadow-[var(--shadow-control)] sm:flex">
<FileText size={17} />
</span>
<StatusBadge tone={isNotice ? 'danger' : 'neutral'} className="hidden shrink-0 sm:inline-flex">
{post.categoryName || '미분류'}
</StatusBadge>