diff --git a/pages/404.tsx b/pages/404.tsx new file mode 100644 index 000000000..e332b7b85 --- /dev/null +++ b/pages/404.tsx @@ -0,0 +1,25 @@ +import Image from 'next/image'; +import IMG_NOTFOUND from '@/public/img-notfound.svg'; + +export default function NotFound() { + return ( + <> +
+
+ {'찾을 +
+

{'찾을 수 없는 페이지입니다.'}

+

{'요청하신 페이지가 사라졌거나,'}

+

{'잘못된 경로를 이용하셨어요. :)'}

+
+
+
+ + ); +} diff --git a/pages/addboards.tsx b/pages/addboards.tsx new file mode 100644 index 000000000..db6a15b33 --- /dev/null +++ b/pages/addboards.tsx @@ -0,0 +1,34 @@ +import { useState } from 'react'; +export interface IBoardValues { + title: string; + content: string; + imgFile: string | null; +} + +export default function AddBoard() { + const [values, setValues] = useState({ + title: '', + content: '', + imgFile: null, + }); + + function onChangeValues(key: keyof IBoardValues, value: string) { + setValues(prevValues => ({ ...prevValues, [key]: value })); + } + + return ( +
+
+
+

게시글 쓰기

+ +
+ + + + + +
+
+ ); +} diff --git a/pages/addboards/[id].tsx b/pages/addboards/[id].tsx new file mode 100644 index 000000000..e69de29bb diff --git a/pages/api/apis.tsx b/pages/api/apis.tsx new file mode 100644 index 000000000..251898bed --- /dev/null +++ b/pages/api/apis.tsx @@ -0,0 +1 @@ +// 일단 파일만 만들어 둠.. 9미션 및 앞으로 들어갈 api 정리 모듈로 쓸 파일 입니다.