diff --git a/html-client/cryps.css b/html-client/cryps.css index ad8ae80c..3ee0091f 100755 --- a/html-client/cryps.css +++ b/html-client/cryps.css @@ -6,7 +6,7 @@ body { font-family: 'Jura'; color: whitesmoke; font-size: 16pt; - padding: 1em 2em; + padding: 0 2em; /*overflow: hidden;*/ user-select: none; } @@ -18,6 +18,7 @@ button, input { border-width: 2px; border-color: whitesmoke; border-radius: 0; + letter-spacing: 0.25em; } /*colour necesary to bash skellington*/ @@ -31,7 +32,7 @@ button:hover { MENU */ .header { - margin-bottom: 1.5em; + margin-bottom: 1em; } .menu-cryps { @@ -73,6 +74,7 @@ button:hover { .header-username { display: inline; + letter-spacing: 0.25em; } .header-status { @@ -133,6 +135,8 @@ button:hover { box-shadow: 0 0 0px black; } 100% { + background: whitesmoke; + color: black; box-shadow: 0 0 -30px black; } } @@ -201,6 +205,11 @@ button:hover { min-width: 100%; } +.cryp-list { + display: flex; + flex-flow: column; +} + /* CRYP BOX */ .cryp-box { display: flex; @@ -210,7 +219,7 @@ button:hover { this controls the size of the box as it fills the whole container */ - margin: 0 1em 1em 0; + margin: 0 0 1em 0; border: 1px solid whitesmoke; } @@ -270,3 +279,10 @@ button:hover { border-top-width: 0; } + +/* GAME */ + +.cryp-skill-btn.active { + animation: whiteblackglow 1s ease 0s 1 normal forwards; + animation-iteration-count: 1; +} \ No newline at end of file diff --git a/html-client/src/components/game.component.jsx b/html-client/src/components/game.component.jsx index 85ebbf57..97979a65 100644 --- a/html-client/src/components/game.component.jsx +++ b/html-client/src/components/game.component.jsx @@ -25,12 +25,27 @@ function GamePanel(props) { const playerTeam = game.teams.find(t => t.id === account.id); function Cryp(cryp) { - const skills = range(0, 4).map((i) => { + const skills = range(0, 4).map(i => { const s = cryp.skills[i] ? cryp.skills[i].skill : ( ); - return ; + const highlight = activeSkill + ? activeSkill.crypId === cryp.id && activeSkill.skill === s + : false; + + if (activeSkill) { + console.log(cryp.id, s, highlight); + } + + return ( + + ); }); const stats = [ @@ -45,7 +60,11 @@ function GamePanel(props) { )); return ( -