Skip to content

Commit

Permalink
feat : 404페이지 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
banhogu committed Jun 21, 2024
1 parent 83dad9f commit 2b4078c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Binary file added public/404img.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions src/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import MainContainer from '@/components/shared/MainContainer';
import Image from 'next/image';
import { useRouter } from 'next/router';
import React from 'react';

const NotFoundPage = () => {
const router = useRouter();
return (
<MainContainer>
<Image
src="/404img.gif"
width={500}
height={500}
alt="404"
className="mt-[160px]"
/>
<div className="flex items-center justify-center text-3xl font-extrabold">
페이지가 존재하지 않습니다.
</div>
<div
onClick={() => router.replace('/')}
className="cursor-pointer mt-16 mx-auto rounded-lg w-[360px] h-12 bg-space-purple text-white text-xl font-semibold flex items-center justify-center">
홈으로
</div>
</MainContainer>
);
};

export default NotFoundPage;

0 comments on commit 2b4078c

Please sign in to comment.