diff --git a/components/BBiBBiHead.tsx b/components/BBiBBiHead.tsx new file mode 100644 index 0000000..f5b50e1 --- /dev/null +++ b/components/BBiBBiHead.tsx @@ -0,0 +1,18 @@ +import Head from "next/head"; + +export default function BBiBBiHead({title, description}: {title: string, description: string}) { + return ( + <> + + {title} + + + + + + + + + + ); +} diff --git a/pages/404.tsx b/pages/404.tsx index e813b64..112b183 100644 --- a/pages/404.tsx +++ b/pages/404.tsx @@ -2,14 +2,11 @@ import Image from "next/image"; import verySad from '../public/very_sad.svg' import './globals.css' import * as React from "react"; -import Head from "next/head"; +import BBiBBiHead from "@/components/BBiBBiHead"; export default function NotFound() { return
- - 삐삐 - 찾을 수 없음 - - + {"logo"}
페이지를 찾을 수 없어요 diff --git a/pages/[pageId].tsx b/pages/[pageId].tsx index f4c2d66..3c8c8b4 100644 --- a/pages/[pageId].tsx +++ b/pages/[pageId].tsx @@ -6,6 +6,7 @@ import {NotionAPI} from "notion-client"; import NotionPage from "@/components/NotionPage"; import {GetStaticPropsContext} from "next"; import Head from "next/head"; +import BBiBBiHead from "@/components/BBiBBiHead"; const rootNotionPageId = 'Bibbi-c3dd457b32564f369c1a08c42c0ab00e'; @@ -36,10 +37,7 @@ export async function getStaticPaths() { export default function Page({ recordMap }: { recordMap: ExtendedRecordMap }) { return <> - - 삐삐 - 소개 페이지 - - + } diff --git a/pages/index.tsx b/pages/index.tsx index 18f17fa..9d6a5e1 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -2,16 +2,12 @@ import 'react-notion-x/src/styles.css'; import { ExtendedRecordMap } from "notion-types"; import {NotionAPI} from "notion-client"; import NotionPage from "@/components/NotionPage"; -import {Metadata} from "next"; -import Head from "next/head"; +import BBiBBiHead from "@/components/BBiBBiHead"; export default function MainPage({ recordMap }: { recordMap: ExtendedRecordMap }) { if(!recordMap) return <> return <> - - 삐삐 - 소개 페이지 - - + }