diff --git a/src/TaxBaik.Web/Pages/Admin/Announcements/Index.cshtml b/src/TaxBaik.Web/Pages/Admin/Announcements/Index.cshtml index eb06d71..e667b0d 100644 --- a/src/TaxBaik.Web/Pages/Admin/Announcements/Index.cshtml +++ b/src/TaxBaik.Web/Pages/Admin/Announcements/Index.cshtml @@ -6,16 +6,10 @@ @await Html.PartialAsync("_AdminPageHeader", new TaxBaik.Web.Models.AdminPageHeaderModel("Content", "공지사항 관리", "공지 목록을 서버 렌더링으로 표시합니다.", "/admin/announcements/create", "공지 작성")) @if (Model.Items.Count == 0) { -
-
- - - - - - +
+
+ @await Html.PartialAsync("_EmptyState", "공지사항이 없습니다.")
-

공지사항이 없습니다.

} else diff --git a/src/TaxBaik.Web/Pages/Admin/Faqs/Index.cshtml b/src/TaxBaik.Web/Pages/Admin/Faqs/Index.cshtml index 27d5146..238af10 100644 --- a/src/TaxBaik.Web/Pages/Admin/Faqs/Index.cshtml +++ b/src/TaxBaik.Web/Pages/Admin/Faqs/Index.cshtml @@ -6,16 +6,10 @@ @await Html.PartialAsync("_AdminPageHeader", new TaxBaik.Web.Models.AdminPageHeaderModel("Support", "FAQ 관리", "질문과 답변을 관리합니다.", "/admin/faqs/create", "FAQ 작성")) @if (Model.Items.Count == 0) { -
-
- - - - - - +
+
+ @await Html.PartialAsync("_EmptyState", "FAQ가 없습니다.")
-

FAQ가 없습니다.

} else diff --git a/src/TaxBaik.Web/Pages/Admin/Inquiries/Index.cshtml b/src/TaxBaik.Web/Pages/Admin/Inquiries/Index.cshtml index da0cc56..f83f508 100644 --- a/src/TaxBaik.Web/Pages/Admin/Inquiries/Index.cshtml +++ b/src/TaxBaik.Web/Pages/Admin/Inquiries/Index.cshtml @@ -19,16 +19,10 @@ @if (Model.Items.Count == 0) { -
-
- - - - - - +
+
+ @await Html.PartialAsync("_EmptyState", "문의 목록이 없습니다.")
-

문의 목록이 없습니다.

} else diff --git a/src/TaxBaik.Web/Pages/Shared/_EmptyState.cshtml b/src/TaxBaik.Web/Pages/Shared/_EmptyState.cshtml index 9052fb9..7a02fd0 100644 --- a/src/TaxBaik.Web/Pages/Shared/_EmptyState.cshtml +++ b/src/TaxBaik.Web/Pages/Shared/_EmptyState.cshtml @@ -2,7 +2,7 @@ @{ var emptyMessage = string.IsNullOrWhiteSpace(Model) ? "데이터가 없습니다." : Model; } -
+
diff --git a/src/TaxBaik.Web/wwwroot/css/admin.css b/src/TaxBaik.Web/wwwroot/css/admin.css index a6f4095..8b00d07 100644 --- a/src/TaxBaik.Web/wwwroot/css/admin.css +++ b/src/TaxBaik.Web/wwwroot/css/admin.css @@ -447,6 +447,14 @@ html, body { background: #fff; } +.admin-empty-state { + padding-block: 1.5rem; +} + +.admin-empty-state .empty-img { + margin-bottom: 0.75rem; +} + .blog-editor-shell .editor-toolbar .btn { border-radius: var(--radius-full); }