diff --git a/components/ChatView/Header.tsx b/components/ChatView/Header.tsx index a1d1606..0c30cb2 100644 --- a/components/ChatView/Header.tsx +++ b/components/ChatView/Header.tsx @@ -24,16 +24,16 @@ const Header = () => { - - - Home + + + About GitHub diff --git a/components/ChatView/index.tsx b/components/ChatView/index.tsx index 79e4932..72aafd3 100644 --- a/components/ChatView/index.tsx +++ b/components/ChatView/index.tsx @@ -70,10 +70,7 @@ const ChatView = () => { }; return ( -
+
{messageList.length === 0 ? <> : messageList.map((message) => )} diff --git a/pages/about.tsx b/pages/about.tsx new file mode 100644 index 0000000..4e04899 --- /dev/null +++ b/pages/about.tsx @@ -0,0 +1,34 @@ +import { NextPage } from "next"; +import Head from "next/head"; +import Link from "next/link"; +import React from "react"; +import Icon from "../components/Icon"; + +const HomePage: NextPage = () => { + return ( + <> + + SQL Chat + + + + +
+
+

SQL Chat

+
+ + + Chat → + +
+
+
+ + ); +}; + +export default HomePage; diff --git a/pages/chat.tsx b/pages/chat.tsx deleted file mode 100644 index 8e7f8a9..0000000 --- a/pages/chat.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import { NextPage } from "next"; -import Head from "next/head"; -import React from "react"; -import ChatView from "../components/ChatView"; - -const ChatPage: NextPage = () => { - return ( -
- - SQL Chat - - - - -
-
- -
-
-
- ); -}; - -export default ChatPage; diff --git a/pages/index.tsx b/pages/index.tsx index 4e04899..8a3b151 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,34 +1,22 @@ import { NextPage } from "next"; import Head from "next/head"; -import Link from "next/link"; import React from "react"; -import Icon from "../components/Icon"; +import ChatView from "../components/ChatView"; -const HomePage: NextPage = () => { +const ChatPage: NextPage = () => { return ( - <> +
SQL Chat -
-
-

SQL Chat

-
- - - Chat → - -
-
+
+
- +
); }; -export default HomePage; +export default ChatPage;