Skip to content

Commit

Permalink
feat: add not found page
Browse files Browse the repository at this point in the history
  • Loading branch information
moolmin committed Oct 10, 2024
1 parent 949767d commit 02da336
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Binary file added public/images/not_found.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/app/not-found.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.container {
display: flex;
flex-direction: column;
align-items: center;
padding: 50px;
}
11 changes: 10 additions & 1 deletion src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
import Image from "next/image";
import styles from './not-found.module.css'
import notFound from '../../public/images/not_found.png'

export default function NotFound(){
return <h1>Not Found!</h1>;
return (
<div className={styles.container}>
<Image src={notFound} alt='not found img' width={400} height={270}/>
<h2>요청하신 페이지를 찾을 수 없습니다.</h2>
</div>
);
}

0 comments on commit 02da336

Please sign in to comment.