Skip to content

Commit 3168da2

Browse files
committed
Feat: 404 페이지 제작
1 parent 1d33b4d commit 3168da2

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

src/app/not-found.tsx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
'use client';
2+
3+
import { useRouter } from 'next/navigation';
4+
import LogoMain from '@/assets/svg/svg-logo-main.svg';
5+
import { Button } from '@/components/common/Button/Button';
6+
import { Header } from '@/components/common/Header';
7+
import { PageContainer } from '@/components/common/PageContainer';
8+
import { Sidebar } from '@/components/Sidebar';
9+
10+
export default function NotFound() {
11+
const router = useRouter();
12+
13+
return (
14+
<div className="flex">
15+
<Sidebar />
16+
<Header />
17+
<PageContainer header={true} className="flex-center">
18+
<div className="flex-center flex-col gap-15">
19+
<LogoMain className="w-90 animate-bounce" />
20+
<h1 className="text-3xl-bold text-custom-gray-300">
21+
페이지를 찾을 수 없어요.
22+
</h1>
23+
<p className="text-lg-medium text-custom-gray-100">
24+
뒤로 가거나 홈으로 이동해 보세요.
25+
</p>
26+
<div className="flex gap-8">
27+
<Button
28+
primary={true}
29+
size="small"
30+
onClick={() => router.push('/dashboard')}
31+
>
32+
홈으로 돌아가기
33+
</Button>
34+
<Button primary={false} size="small" onClick={() => router.back()}>
35+
이전 페이지
36+
</Button>
37+
</div>
38+
</div>
39+
</PageContainer>
40+
</div>
41+
);
42+
}

0 commit comments

Comments
 (0)