This commit is contained in:
ntr 2019-03-29 12:32:18 +11:00
parent 7b31b2529f
commit 1b01fa5bea
4 changed files with 51 additions and 19 deletions

View File

@ -7,6 +7,8 @@ body {
color: whitesmoke; color: whitesmoke;
font-size: 16pt; font-size: 16pt;
padding: 1em 2em; padding: 1em 2em;
overflow: hidden;
user-select: none;
} }
button, input { button, input {
@ -29,7 +31,7 @@ button:hover {
MENU MENU
*/ */
.header { .header {
margin-bottom: 2em; margin-bottom: 1.5em;
} }
.home-cryp { .home-cryp {
@ -142,12 +144,24 @@ button:hover {
padding: 0; padding: 0;
} }
.vbox-hdr {
display: flex;
align-items: flex-end;
}
.vbox-hdr div {
flex-grow: 1;
}
.vbox-hdr h3 {
margin: 0;
}
.vbox-btn { .vbox-btn {
margin: 0; margin: 0;
padding: 0.5em; padding: 0.5em;
background-color: whitesmoke; background-color: whitesmoke;
color: black; color: black;
user-select: none;
} }
.vbox-btn:hover { .vbox-btn:hover {
@ -179,12 +193,14 @@ button:hover {
/* CRYP BOX */ /* CRYP BOX */
.cryp-box { .cryp-box {
display: flex; display: flex;
flex-wrap: wrap;
padding: 0; padding: 0;
margin: 0 0 2em 0;
} }
.cryp-box figure { .cryp-box figure {
width: 50%; margin: 0;
margin: 0 0 2em 0; flex-grow: 1;
border: 1px solid whitesmoke; border: 1px solid whitesmoke;
} }
@ -197,10 +213,15 @@ button:hover {
} }
.cryp-skill-btn { .cryp-skill-btn {
font-size: 150%; font-size: 125%;
border-width: 1px; border-width: 1px;
width: 100%; width: 100%;
height: 25%; height: 25%;
padding: 0; padding: 0;
margin: -1px 0 0 -1px; margin: -1px 0 0 -1px;
} }
.cryp-box .stats {
width: 100%;
}

View File

@ -6,16 +6,32 @@ const molecule = require('./molecule');
function Cryp(cryp) { function Cryp(cryp) {
const skills = cryp.skills.map((s, i) => ( const skills = cryp.skills.map((s, i) => (
<button className="cryp-skill-btn" >{s.skill}</button> <button key={i} className="cryp-skill-btn" >{s.skill}</button>
)); ));
const stats = [
'hp',
'green_damage',
'red_shield',
'red_damage',
'blue_damage',
'blue_shield',
'speed',
].map((s, i) => (
<span key={i} >{cryp[s].stat} {cryp[s].value}</span>
));
return ( return (
<div className="cryp-box"> <div className="cryp-box">
<figure className="cryp-img"> <figure className="img">
{molecule} {molecule}
</figure> </figure>
<div className="skills"> <div className="skills">
{skills} {skills}
</div> </div>
<div className="stats">
{stats}
</div>
</div> </div>
); );
} }
@ -43,7 +59,7 @@ function InstanceComponent(args) {
</button> </button>
</div> </div>
<div className="six columns"> <div className="six columns">
<h4>next game against: mmmmmashy</h4> <div>&nbsp;</div>
</div> </div>
<div className="three columns"> <div className="three columns">
<button <button

View File

@ -71,7 +71,10 @@ function Vbox(args) {
return ( return (
<div className="three columns"> <div className="three columns">
<h3>VBOX <span className="u-pull-right">{vbox.bits}b</span></h3> <div className="vbox-hdr">
<div>VBOX</div>
<h3>{vbox.bits}b</h3>
</div>
<button <button
className="instance-btn instance-ui-btn vbox-btn" className="instance-btn instance-ui-btn vbox-btn"
onClick={() => sendVboxDiscard()}> onClick={() => sendVboxDiscard()}>

View File

@ -26,21 +26,13 @@ consolidate buffs debuffs and disables
make strike *really* hit first / resolve at same time? make strike *really* hit first / resolve at same time?
## SOON ## SOON
* Descriptions
* Stats - How they work
* Items - What they give
* Skills - What they do
* Specs - Bonuses
* Balance Buff / Debuff durations
* Balance Spec / Skill multipliers
* vbox drops chances * vbox drops chances
* 50% spec, 25% colour etc * 50% spec, 25% colour etc
* confirm cryp without skill ready * confirm cryp without skill ready
* draw big warning !
* iconography * iconography
* aoe skills
* combo skills * combo skills
* skills * skills