-
Notifications
You must be signed in to change notification settings - Fork 0
feat: notFoundPage UI 구현 #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
29c1fdc
feat:notFoundPage UI 구현
yooseolhee 8429ea3
style: notFoundPage 버튼, 이모지 스타일 변경
yooseolhee acf3ad1
chore: notFoundPage coderabbit 반영 수정
yooseolhee 35b1c30
chore: 오류페이지 리뷰 반영 수정
yooseolhee d0ebde4
Merge branch 'develop' of https://github.com/Eatsfine/FE into feat/no…
yooseolhee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,61 @@ | ||
| const NotFound = () => { | ||
| return <div className="p-4">존재하지 않는 페이지입니다.</div>; | ||
| import React from 'react'; | ||
| import { useNavigate } from 'react-router-dom'; | ||
| import { Search, Home, ArrowLeft } from 'lucide-react'; | ||
|
|
||
| const NotFound: React.FC = () => { | ||
| const navigate = useNavigate(); | ||
|
|
||
| const handleGoBack = () => { | ||
| if (window.history.length > 1) { | ||
| window.history.back(); | ||
| } else { | ||
| navigate('/', {replace: true}); | ||
| } | ||
| }; | ||
|
|
||
| return ( | ||
| <div className="min-h-screen bg-gray-50 flex items-center justify-center px-6"> | ||
| <div className="max-w-md w-full text-center"> | ||
| {/* 아이콘 섹션 */} | ||
| <div className="relative mb-8"> | ||
| <div className="absolute inset-0 flex items-center justify-center animate-pulse"> | ||
| <div className="w-32 h-32 bg-blue-100 rounded-full"></div> | ||
| </div> | ||
| <div className="relative flex justify-center"> | ||
| <Search size={60} className="text-blue-600" /> | ||
| </div> | ||
| </div> | ||
|
|
||
| {/* 텍스트 섹션 */} | ||
| <h1 className="text-7xl font-bold text-blue-600 mb-4">404</h1> | ||
| <h2 className="text-2xl font-semibold text-gray-900 mb-3"> | ||
| 페이지를 찾을 수 없습니다 | ||
| </h2> | ||
| <p className="text-gray-500 mb-10 leading-relaxed"> | ||
| 요청하신 페이지가 삭제되었거나 주소가 올바르지 않습니다.<br /> | ||
| 입력하신 URL을 다시 한번 확인해 주세요. | ||
| </p> | ||
|
|
||
| {/* 버튼 섹션 */} | ||
| <div className="flex flex-col sm:flex-row gap-4 justify-center"> | ||
| <button | ||
| onClick={handleGoBack} | ||
| className="cursor-pointer flex items-center justify-center gap-2 px-6 py-3 border border-gray-300 rounded-xl bg-white text-gray-700 font-medium hover:bg-gray-50 transition-all active:scale-95" | ||
| > | ||
| <ArrowLeft size={18} /> | ||
| 이전으로 | ||
| </button> | ||
| <button | ||
| onClick={() => navigate('/', {replace: true})} | ||
| className="cursor-pointer flex items-center justify-center gap-2 px-6 py-3 rounded-xl bg-blue-600 text-white font-medium hover:bg-blue-700 transition-all shadow-lg shadow-blue-100 active:scale-95" | ||
| > | ||
| <Home size={18} /> | ||
| 홈으로 이동 | ||
| </button> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; | ||
| export default NotFound; | ||
|
|
||
| export default NotFound; | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.