Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
function notfound() {
return <div>notfound</div>;
import NotFoundCont from '@/domains/not-found/components/NotFoundCont';

function NotFound() {
return (
<div className="page-layout max-w-1024 flex-center">
<NotFoundCont />
</div>
);
}
export default notfound;
export default NotFound;
34 changes: 34 additions & 0 deletions src/domains/not-found/components/NotFoundCont.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
'use client';

import Image from 'next/image';
import CrySsury from '@/shared/assets/ssury/ssury_cry.webp';
import Button from '@/shared/components/button/Button';
import { useRouter } from 'next/navigation';

function NotFoundCont() {
const router = useRouter();

return (
<div className="flex flex-col items-center gap-5">
<Image
src={CrySsury}
alt=""
aria-hidden
width={128}
height={128}
className="w-25 h-25 sm:w-32 sm:h-32"
/>
<h1 className="text-center">페이지를 찾을 수 없어요🥲</h1>
<Button
type="button"
color="default"
onClick={() => {
router.push('/');
}}
>
메인으로 이동
</Button>
</div>
);
}
export default NotFoundCont;
Binary file modified src/shared/assets/ssury/ssury_cry.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.