From 5f9f9789aac7f76d393c695a161dbf4900ab60e5 Mon Sep 17 00:00:00 2001 From: caadiq Date: Thu, 22 Jan 2026 23:03:18 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B4=80=EB=A6=AC=EC=9E=90=20404=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pages/pc/admin/common/NotFound.jsx 생성 - AdminLayout 사용, 대시보드 이동 버튼 포함 - App.jsx에 /admin/* catch-all 라우트 추가 Co-Authored-By: Claude Opus 4.5 --- docs/frontend-improvement.md | 2 +- frontend-temp/src/App.jsx | 3 + .../src/pages/pc/admin/common/NotFound.jsx | 97 +++++++++++++++++++ 3 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 frontend-temp/src/pages/pc/admin/common/NotFound.jsx diff --git a/docs/frontend-improvement.md b/docs/frontend-improvement.md index 32aaec1..710c7ea 100644 --- a/docs/frontend-improvement.md +++ b/docs/frontend-improvement.md @@ -170,7 +170,7 @@ pages/pc/admin/schedules/ 5. [ ] AlbumForm.jsx 분리 ### Phase 3: 추가 개선 -1. [ ] 관리자 페이지용 에러 페이지 추가 (404, 500 등) +1. [x] 관리자 페이지용 에러 페이지 추가 (404) 2. [ ] 모든 페이지 동작 확인 3. [ ] 빌드 확인 diff --git a/frontend-temp/src/App.jsx b/frontend-temp/src/App.jsx index 98b9b9e..51bc0e1 100644 --- a/frontend-temp/src/App.jsx +++ b/frontend-temp/src/App.jsx @@ -38,6 +38,7 @@ import AdminYouTubeEditForm from '@/pages/pc/admin/schedules/edit/YouTubeEditFor import AdminScheduleCategory from '@/pages/pc/admin/schedules/ScheduleCategory'; import AdminScheduleDict from '@/pages/pc/admin/schedules/ScheduleDict'; import AdminScheduleBots from '@/pages/pc/admin/schedules/ScheduleBots'; +import AdminNotFound from '@/pages/pc/admin/common/NotFound'; // Mobile 페이지 import MobileHome from '@/pages/mobile/home/Home'; @@ -92,6 +93,8 @@ function App() { } /> } /> } /> + {/* 관리자 404 페이지 */} + } /> {/* 일반 페이지 (레이아웃 포함) */} +
+
+ {/* 404 숫자 */} + +

+ 404 +

+
+ + {/* 메시지 */} + +

+ 페이지를 찾을 수 없습니다 +

+

+ 요청하신 관리자 페이지가 존재하지 않거나 이동되었을 수 있습니다. +

+
+ + {/* 장식 요소 */} + + {[...Array(5)].map((_, i) => ( + + ))} + + + {/* 버튼들 */} + + + + + 대시보드로 가기 + + +
+
+ + ); +} + +export default AdminNotFound;