diff --git a/src/components/Card/CardRow.scss b/src/components/Card/CardRow.scss index bfac8e9..a09c4c2 100644 --- a/src/components/Card/CardRow.scss +++ b/src/components/Card/CardRow.scss @@ -4,8 +4,8 @@ .card-row { display: flex; flex-flow: column nowrap; - margin: 1rem; - width: 80vw; + margin: 1rem 0; + width: 55vw; .card-row-top-bar { display: flex; diff --git a/src/components/Gameboard/Gameboard.scss b/src/components/Gameboard/Gameboard.scss index fec468d..973215d 100644 --- a/src/components/Gameboard/Gameboard.scss +++ b/src/components/Gameboard/Gameboard.scss @@ -1,11 +1,29 @@ -.gameboard-rows { +.gameboard { display: flex; - flex-flow: column nowrap; + flex-flow: row nowrap; align-items: center; + justify-content: center; background-color: rgb(57, 57, 65); - width: 90vw; - padding: 1rem 1rem 4rem; + width: 100%; + + section { + display: flex; + flex-flow: column nowrap; + align-items: center; + justify-content: flex-start; + margin: 1rem; + } + + .gameboard-left { + min-width: 50vw; + padding: 1rem; + } + + .gameboard-right { + min-width: 35vw; + padding: 1rem; + } .round-marker { font-size: 1.5rem; diff --git a/src/components/Gameboard/Gameboard.tsx b/src/components/Gameboard/Gameboard.tsx index 297516b..2cdb8c9 100644 --- a/src/components/Gameboard/Gameboard.tsx +++ b/src/components/Gameboard/Gameboard.tsx @@ -86,15 +86,19 @@ export default function Gameboard({ state, setState }: StateProps) { ); } else { setView( -
Name: {player.name} {player.starter && "(round starter)"}
{/* Dynamic data from state */}Score: {dynamic && dynamic.points}
-{dynamic?.turnActive ? "It's your turn!" : "..."}
{/* Player actions */} -{dynamic?.name}'s Resources
-Chips: