diff --git a/src/components/Game/GameChat/index.tsx b/src/components/Game/GameChat/index.tsx index 391e9a12..06f631a7 100644 --- a/src/components/Game/GameChat/index.tsx +++ b/src/components/Game/GameChat/index.tsx @@ -67,7 +67,7 @@ const GameChat = ({ gameId }) => { }; return ( - + {messages.map((message, index) => ( diff --git a/src/index.css b/src/index.css index 4308791d..abf74181 100644 --- a/src/index.css +++ b/src/index.css @@ -1,4 +1,5 @@ #root { max-width: 1200px; margin: 0 auto; + /* background-color: #ecedee; */ } diff --git a/src/pages/Game/index.tsx b/src/pages/Game/index.tsx index 7621119b..32d2f71d 100644 --- a/src/pages/Game/index.tsx +++ b/src/pages/Game/index.tsx @@ -1,7 +1,27 @@ import GameChat from "../../components/Game/GameChat"; -import { Container } from "@chakra-ui/react"; +import { + Button, + Card, + Center, + Container, + Flex, + Grid, + GridItem, + Spacer, + Text, +} from "@chakra-ui/react"; import useFireFetch from "../../hooks/useFireFetch"; +const ProfileCard = ({ userId }) => { + return ( + +
+ {userId} +
+
+ ); +}; + const Game = () => { const queryString = window.location.search; const searchParams = new URLSearchParams(queryString); @@ -12,10 +32,46 @@ const Game = () => { const gameData = fireFetch.useGetSome("game", "id", gameId as string); console.log(gameData.data); + if (gameData.data.length === 0) { + return

Loading...

; + } + return ( - - - + <> + + + + + + +
+ 주제는 “동물” 입니다. 당신이 라이어입니다. +
{" "} +
+
+ + + + + + + + + + + + + + +
+ ); };