This commit is contained in:
ntr 2019-04-02 15:24:33 +11:00
parent 7e70d2122d
commit 26136e23f5
2 changed files with 24 additions and 14 deletions

View File

@ -373,7 +373,19 @@ header {
.game { .game {
display: flex; display: flex;
height: 100%; flex-flow: row wrap;
}
.game-back-btn {
flex: 0 0 25%;
}
.team-player, .team-opponent {
flex: 0 0 37.5%;
}
.logs {
flex: 25%;
} }
.game-cryp-ctr { .game-cryp-ctr {

View File

@ -125,7 +125,7 @@ function GamePanel(props) {
const cryps = team.cryps.map(c => Cryp(c)); const cryps = team.cryps.map(c => Cryp(c));
return ( return (
<div className="five columns cryp-list"> <div className="team-player cryp-list">
{cryps} {cryps}
</div> </div>
); );
@ -173,29 +173,27 @@ function GamePanel(props) {
const logs = game.log.map((l, i) => (<div key={i}>{l}</div>)).reverse(); const logs = game.log.map((l, i) => (<div key={i}>{l}</div>)).reverse();
return ( return (
<section> <main>
<div className="row"> <div className="game">
<div className="three columns"> <div className="instance-hdr">
<button <button
className="instance-btn instance-ui-btn left" className="game-back-btn instance-btn instance-ui-btn left"
onClick={quit}> onClick={quit}>
Back Back
</button> </button>
<div className="spacer">
<div>&nbsp;</div>
</div>
</div> </div>
<div className="six columns">
<div>&nbsp;</div>
</div>
</div>
<div className="row game">
{PlayerTeam(playerTeam, setActiveSkill)} {PlayerTeam(playerTeam, setActiveSkill)}
<div className="three columns"> <div className="team-opponent">
{otherTeams.map(OpponentTeam)} {otherTeams.map(OpponentTeam)}
</div> </div>
<div className="four columns"> <div className="logs">
{logs} {logs}
</div> </div>
</div> </div>
</section> </main>
); );
} }