mock implementaion

This commit is contained in:
djmil 2023-10-31 09:59:14 +01:00
parent 3d9dbd2683
commit 93867c7d79
4 changed files with 29 additions and 1 deletions

View File

@ -18,4 +18,9 @@
.game .right-side { .game .right-side {
float: left; float: left;
width: 55%; width: 55%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
} }

View File

@ -4,7 +4,8 @@ import GameView from './Game/GameView'
import GameSelector from './Game/GameSelector' import GameSelector from './Game/GameSelector'
import GameAction from './Game/GameAction' import GameAction from './Game/GameAction'
import GameBoard from './Game/GameBoard' import GameBoard from './Game/GameBoard'
import NewGame from './Game/NewGame'; import NewGame from './Game/NewGame'
import GameMessage from './Game/GameMessage'
export default function Game() { export default function Game() {
@ -17,6 +18,7 @@ export default function Game() {
</div> </div>
<div className='right-side'> <div className='right-side'>
<GameAction /> <GameAction />
<GameMessage />
<GameBoard /> <GameBoard />
</div> </div>
</div> </div>

View File

@ -0,0 +1,6 @@
.game-message {
border-radius: 3px;
border-color: lightgray;
background-color:violet;
width: 70%;
}

View File

@ -0,0 +1,15 @@
import './GameMessage.css'
import React from 'react'
import { AppContext } from '../../context/app'
export default function GameMessage() {
const [ctx] = React.useContext(AppContext)
return (
<div className='game-message'>
TBD: Game Message
</div>
)
}