diff --git a/docs/migration.md b/docs/migration.md index 4dd36de..b03c13a 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -324,8 +324,8 @@ function App() { - [x] mobile/Birthday.jsx ### 페이지 - Common (pages/common/) -- [ ] pc/NotFound.jsx -- [ ] mobile/NotFound.jsx +- [x] pc/NotFound.jsx +- [x] mobile/NotFound.jsx ### 페이지 - Admin (pages/admin/) - PC 전용 - [ ] Login.jsx @@ -436,7 +436,6 @@ import 'swiper/css'; ### 미완료 작업 #### 공개 영역 -- [ ] NotFound 페이지 (pc/mobile) - [ ] useToast 훅 #### 관리자 영역 (별도 요청 시 진행) diff --git a/frontend-temp/src/App.jsx b/frontend-temp/src/App.jsx index 5ce2828..2ddc65c 100644 --- a/frontend-temp/src/App.jsx +++ b/frontend-temp/src/App.jsx @@ -32,6 +32,7 @@ import { PCAlbumGallery, MobileAlbumGallery, } from '@/pages/album'; +import { PCNotFound, MobileNotFound } from '@/pages/common'; /** * PC 환경에서 body에 클래스 추가하는 래퍼 @@ -75,8 +76,8 @@ function App() { } /> } /> } /> - {/* 추가 페이지 */} - {/* } /> */} + {/* 404 페이지 */} + } /> } @@ -146,7 +147,8 @@ function App() { } /> - {/* 추가 페이지 */} + {/* 404 페이지 */} + } /> diff --git a/frontend-temp/src/pages/common/index.js b/frontend-temp/src/pages/common/index.js new file mode 100644 index 0000000..01b4fe6 --- /dev/null +++ b/frontend-temp/src/pages/common/index.js @@ -0,0 +1,5 @@ +// PC +export { default as PCNotFound } from './pc/NotFound'; + +// Mobile +export { default as MobileNotFound } from './mobile/NotFound'; diff --git a/frontend-temp/src/pages/common/mobile/NotFound.jsx b/frontend-temp/src/pages/common/mobile/NotFound.jsx new file mode 100644 index 0000000..ac7b3b3 --- /dev/null +++ b/frontend-temp/src/pages/common/mobile/NotFound.jsx @@ -0,0 +1,93 @@ +import { motion } from 'framer-motion'; +import { Link } from 'react-router-dom'; +import { Home, ArrowLeft } from 'lucide-react'; + +/** + * Mobile 404 페이지 + */ +function MobileNotFound() { + return ( +
+
+ {/* 404 숫자 */} + +

+ 404 +

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

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

+

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

+
+ + {/* 장식 요소 */} + + {[...Array(5)].map((_, i) => ( + + ))} + + + {/* 버튼들 */} + + + + 홈으로 가기 + + + +
+
+ ); +} + +export default MobileNotFound; diff --git a/frontend-temp/src/pages/common/pc/NotFound.jsx b/frontend-temp/src/pages/common/pc/NotFound.jsx new file mode 100644 index 0000000..9497efc --- /dev/null +++ b/frontend-temp/src/pages/common/pc/NotFound.jsx @@ -0,0 +1,93 @@ +import { motion } from 'framer-motion'; +import { Link } from 'react-router-dom'; +import { Home, ArrowLeft } from 'lucide-react'; + +/** + * PC 404 페이지 + */ +function NotFound() { + return ( +
+
+ {/* 404 숫자 */} + +

+ 404 +

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

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

+

+ 요청하신 페이지가 존재하지 않거나 이동되었을 수 있습니다. +
+ 주소를 다시 확인해 주세요. +

+
+ + {/* 장식 요소 */} + + {[...Array(5)].map((_, i) => ( + + ))} + + + {/* 버튼들 */} + + + + + 홈으로 가기 + + +
+
+ ); +} + +export default NotFound;