diff --git a/client/cryps.css b/client/cryps.css index b3b6956c..e56769fd 100644 --- a/client/cryps.css +++ b/client/cryps.css @@ -38,6 +38,10 @@ h2 { } +figure { + margin: 0; +} + /* main container */ .cryps { padding: 0 2em; @@ -397,6 +401,28 @@ header { justify-content: left; } +.info-stats { + display: flex; + flex-flow: row wrap; + justify-content: space-around; +} + +.info-stats .speed { + flex: 1 0 100%; +} + +.info-stats figure { + flex: 0 0 30%; + border: 0; + margin: 1em 0; + text-align: center; +} + +.info-stats .stat-icon { + height: 2.5em; +} + + /* CRYP BOX */ .cryp-box { flex: 1 1 100%; @@ -573,7 +599,7 @@ header { .cryps { font-size: 0.75em; - padding: 0 1em; + padding: 0 0.5em; } /*fucken beats me why needed */ @@ -606,6 +632,10 @@ header { flex: unset; } + .instance-info { + flex: 1; + } + .cryp-box { margin: 0.5em; } diff --git a/client/src/components/info.component.jsx b/client/src/components/info.component.jsx index 7bacdcdb..4f81f449 100644 --- a/client/src/components/info.component.jsx +++ b/client/src/components/info.component.jsx @@ -1,6 +1,6 @@ const preact = require('preact'); const { ITEMS: { SKILLS, SPECS, COLOURS } } = require('./constants'); -const { COLOUR_ICONS } = require('../utils'); +const { COLOUR_ICONS, STATS } = require('../utils'); function Info(args) { const { @@ -83,20 +83,16 @@ function Info(args) { } if (type === 'cryp') { - const stats = [ - { stat: 'hp', disp: 'Hp', colour: '#1FF01F' }, - { stat: 'red_shield', disp: 'Red Shield', colour: '#a52a2a' }, - { stat: 'blue_shield', disp: 'Blue Shield', colour: '#3498db' }, - { stat: 'red_damage', disp: 'Red Damage', colour: '#a52a2a' }, - { stat: 'blue_damage', disp: 'Blue Damage', colour: '#3498db' }, - { stat: 'green_damage', disp: 'Green Damage', colour: '#1FF01F' }, - { stat: 'speed', disp: 'Speed', colour: '#FFD123' }, - ].map((s, i) => ( -