-
Notifications
You must be signed in to change notification settings - Fork 3
Feat/135/not found 디자인 수정 #167
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 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
207266a
✨ Feat: Not Found 추가
yulrang f484044
💄 Design: 디자인 개선
yulrang c329fa2
Merge branch 'develop' into Feat/135/NotFound
yulrang cb40587
💄 Design: not-found 디자인 수정
yulrang 249c3ae
💄 Design: favicon 추가
yulrang 48b530e
🚨 Fix: 임포트 정리
yulrang 3ea7466
🐛 Fix : 오류처리 추가
yulrang 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
Binary file not shown.
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,79 +1,66 @@ | ||
| 'use client'; | ||
|
|
||
| import Link from 'next/link'; | ||
| import { useMediaQuery } from '@mantine/hooks'; | ||
| import { theme } from '../styles/theme'; | ||
| import { useRouter } from 'next/navigation'; | ||
| import Button from '../components/common/input/button'; | ||
|
|
||
| export default function NotFound() { | ||
| const isMobile = useMediaQuery(`(max-width: ${theme.breakpoints.md})`); | ||
| const router = useRouter(); | ||
|
|
||
| return ( | ||
| <div className="h-screen md:flex md:items-center md:justify-center"> | ||
| <div className="flex h-full flex-col items-center justify-center gap-10 md:relative md:h-auto"> | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| xmlnsXlink="http://www.w3.org/1999/xlink" | ||
| width="500" | ||
| height="300" | ||
| className="w-full" | ||
| viewBox="0 0 500 300" | ||
| <div className="fixed inset-0 flex w-screen items-center justify-center"> | ||
| <p className="fixed left-1/2 -translate-x-1/2 text-404-back text-blue-50" aria-hidden="true"> | ||
| 404 | ||
| </p> | ||
| <div className="relative z-10 flex flex-col items-center"> | ||
| <h1 className="text-404 font-semibold text-blue-500">404</h1> | ||
| <p className="text-2xl font-semibold text-gray-900"> | ||
| "죄송합니다. 페이지를 찾을 수 없습니다. 😢" | ||
| </p> | ||
| <Button | ||
| onClick={() => router.back()} | ||
| className="btn-filled mt-20 flex h-11 items-center rounded-xl px-16 text-base font-semibold" | ||
| > | ||
| <defs> | ||
| <path | ||
| id="wave" | ||
| d="m-115,50q38-30 75,0t75,0 75,0 75,0 | ||
| 75,0 75,0 75,0 75,0 75,0 75,0 75,0 75,0 75,0 75,0 75,0 75,0 75,0 75,0 75,0 75,0 75,0 75,0 | ||
| v20 h-1540 v-20" | ||
| className="translate-y-[110px]" | ||
| /> | ||
| <clipPath id="wave-clip-front"> | ||
| <use className="animate-wave" href="#wave" /> | ||
| <rect x="0" y="0" width="100%" height="180" /> | ||
| </clipPath> | ||
| <clipPath id="wave-clip-middle"> | ||
| <use className="animate-wave" href="#wave" /> | ||
| <rect x="0" y="180" width="100%" height="150" /> | ||
| </clipPath> | ||
| <linearGradient id="grad-front" x1="0%" y1="0" x2="100%" y2="100%"> | ||
| <stop offset="0%" stopColor="#60A5FA" stopOpacity="1" /> | ||
| <stop offset="100%" stopColor="#3388FF" stopOpacity="1" /> | ||
| </linearGradient> | ||
| <text | ||
| id="clipped-wave" | ||
| x={isMobile ? '50' : '0'} | ||
| y="260" | ||
| fontFamily="Helvetica" | ||
| fontWeight="bold" | ||
| fontSize={isMobile ? '15rem' : '18.75rem'} | ||
| > | ||
| 404 | ||
| </text> | ||
| </defs> | ||
| 뒤로 가기 | ||
| </Button> | ||
| </div> | ||
| <svg | ||
| className="absolute bottom-0 left-0 h-[20vh] w-screen" | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| xmlnsXlink="http://www.w3.org/1999/xlink" | ||
| viewBox="0 24 150 28" | ||
| preserveAspectRatio="none" | ||
| shape-rendering="auto" | ||
| > | ||
| <defs> | ||
| <path | ||
| id="gentle-wave" | ||
| d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" | ||
| /> | ||
| </defs> | ||
| <g className="parallax"> | ||
| <use | ||
| href="#clipped-wave" | ||
| clipPath="url(#wave-clip-middle)" | ||
| fill="url(#grad-front)" | ||
| fillOpacity="0.88" | ||
| className="animate-duration-[7s] animate-delay-[2000ms] animate-wave" | ||
| xlinkHref="#gentle-wave" | ||
| x="60" | ||
| y="0" | ||
| fill="#93C5FD" | ||
| /> | ||
| <use | ||
| href="#clipped-wave" | ||
| clipPath="url(#wave-clip-front)" | ||
| fill="url(#grad-front)" | ||
| fillOpacity="0.77" | ||
| className="animate-duration-[14s] animate-delay-[4000ms] animate-wave" | ||
| xlinkHref="#gentle-wave" | ||
| x="48" | ||
| y="3" | ||
| fill="#BFDBFE" | ||
| /> | ||
| </svg> | ||
| <div className="flex w-full flex-col items-center gap-9 pb-10 md:absolute md:-bottom-10 md:translate-y-full"> | ||
| <p className="text-2xl font-semibold text-gray-900"> | ||
| "페이지를 찾을 수 없습니다. 😢" | ||
| </p> | ||
| <Link | ||
| href="/" | ||
| className="btn-filled flex h-11 items-center rounded-xl px-16 text-base font-semibold" | ||
| > | ||
| 홈으로 가기 | ||
| </Link> | ||
| </div> | ||
| </div> | ||
| <use | ||
| className="animate-duration-[20s] animate-delay-[6000ms] animate-wave" | ||
| xlinkHref="#gentle-wave" | ||
| x="0" | ||
| y="5" | ||
| fill="#DBEAFE" | ||
| /> | ||
| </g> | ||
| </svg> | ||
| </div> | ||
| ); | ||
| } | ||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
에러 처리 개선 제안
현재 구현은 잘 되어있지만, 뒤로가기 동작 시 발생할 수 있는 예외 상황(예: 히스토리가 없는 경우)에 대한 처리가 필요할 수 있습니다.
📝 Committable suggestion