isntance wip
This commit is contained in:
parent
5c6498b1f7
commit
a7092c6bd3
@ -1,6 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
GLOBAL
|
GLOBAL
|
||||||
*/
|
*/
|
||||||
|
|
||||||
html, body, .cryps {
|
html, body, .cryps {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -25,10 +26,6 @@ html {
|
|||||||
box-sizing: inherit;
|
box-sizing: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-size: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* main container */
|
/* main container */
|
||||||
.cryps {
|
.cryps {
|
||||||
@ -184,7 +181,37 @@ header {
|
|||||||
INSTANCE
|
INSTANCE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.green-btn:hover {
|
|
||||||
|
.instance {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.instance-hdr {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row;
|
||||||
|
|
||||||
|
flex: 1 0 100%
|
||||||
|
}
|
||||||
|
|
||||||
|
.instance-info {
|
||||||
|
flex: 1 0 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.instance .spacer {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-btn {
|
||||||
|
flex: 1 0 33%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ready-btn {
|
||||||
|
flex: 1 0 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.ready-btn:hover {
|
||||||
transition-property: all;
|
transition-property: all;
|
||||||
transition-duration: 2s;
|
transition-duration: 2s;
|
||||||
transition-timing-function: ease;
|
transition-timing-function: ease;
|
||||||
@ -195,24 +222,35 @@ header {
|
|||||||
|
|
||||||
.instance-ui-btn {
|
.instance-ui-btn {
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
min-width: 100%;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vbox {
|
||||||
|
flex: 1 0 25%;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
align-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
.vbox-hdr {
|
.vbox-hdr {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
|
||||||
|
flex: 1 0 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vbox-hdr div {
|
.vbox-hdr div:first-child {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vbox-hdr h3 {
|
.vbox-hdr .bits {
|
||||||
margin: 0;
|
font-size: 2em;
|
||||||
|
line-height: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vbox-btn {
|
.vbox-btn {
|
||||||
|
flex: 1 0 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0 0.5em;
|
padding: 0 0.5em;
|
||||||
background-color: whitesmoke;
|
background-color: whitesmoke;
|
||||||
@ -238,7 +276,7 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.spacer {
|
.spacer {
|
||||||
min-width: 100%;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cryp-list {
|
.cryp-list {
|
||||||
@ -246,11 +284,20 @@ header {
|
|||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.instance-cryp-list {
|
||||||
|
padding-left: 2em;
|
||||||
|
flex: 0 0 25%;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
}
|
||||||
|
|
||||||
/* CRYP BOX */
|
/* CRYP BOX */
|
||||||
.cryp-box {
|
.cryp-box {
|
||||||
|
flex: 0 1 auto;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
justify-content: center;
|
|
||||||
/*
|
/*
|
||||||
this controls the size of the box
|
this controls the size of the box
|
||||||
as it fills the whole container
|
as it fills the whole container
|
||||||
@ -311,6 +358,7 @@ header {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
border-bottom-width: 0px;
|
border-bottom-width: 0px;
|
||||||
border-left-width: 1px;
|
border-left-width: 1px;
|
||||||
|
border-right-width: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cryp-skill-btn:first-child {
|
.cryp-skill-btn:first-child {
|
||||||
|
|||||||
@ -24,17 +24,13 @@ function renderBody(props) {
|
|||||||
const { game, instance } = props;
|
const { game, instance } = props;
|
||||||
if (game) {
|
if (game) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<GameContainer />
|
||||||
<GameContainer />
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (instance) {
|
if (instance) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<InstanceContainer />
|
||||||
<InstanceContainer />
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,6 @@ function renderHeader() {
|
|||||||
cryps.gg
|
cryps.gg
|
||||||
</h1>
|
</h1>
|
||||||
<LoginContainer />
|
<LoginContainer />
|
||||||
<ParticleContainer />
|
|
||||||
</header>
|
</header>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,7 +19,7 @@ function Info(args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="six columns">
|
<div className="instance-info">
|
||||||
<div> {JSON.stringify(info)} </div>
|
<div> {JSON.stringify(info)} </div>
|
||||||
<div> {JSON.stringify(desc)} </div>
|
<div> {JSON.stringify(desc)} </div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -81,32 +81,26 @@ function InstanceComponent(args) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="instance" >
|
<section className="instance" >
|
||||||
<div className="row">
|
<div className="instance-hdr">
|
||||||
<div className="three columns">
|
<button
|
||||||
<button
|
className="instance-btn instance-ui-btn menu-btn left"
|
||||||
className="instance-btn instance-ui-btn left"
|
onClick={quit}>
|
||||||
onClick={quit}>
|
Menu
|
||||||
Menu
|
</button>
|
||||||
</button>
|
<div className="spacer">
|
||||||
</div>
|
|
||||||
<div className="three columns">
|
|
||||||
<div> </div>
|
<div> </div>
|
||||||
</div>
|
</div>
|
||||||
<div className="six columns">
|
<button
|
||||||
<button
|
className="instance-btn instance-ui-btn ready-btn"
|
||||||
className="instance-btn instance-ui-btn green-btn"
|
onClick={() => sendInstanceReady()}>
|
||||||
onClick={() => sendInstanceReady()}>
|
Ready
|
||||||
Ready
|
</button>
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="row">
|
<VboxContainer />
|
||||||
<VboxContainer />
|
<div className="instance-cryp-list">
|
||||||
<div className="three columns instance-cryp-list">
|
{cryps}
|
||||||
{cryps}
|
|
||||||
</div>
|
|
||||||
<InfoContainer />
|
|
||||||
</div>
|
</div>
|
||||||
|
<InfoContainer />
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -121,10 +121,10 @@ function Vbox(args) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="three columns">
|
<div className="vbox">
|
||||||
<div className="vbox-hdr">
|
<div className="vbox-hdr">
|
||||||
<div>VBOX</div>
|
<div>VBOX</div>
|
||||||
<h3>{vbox.bits}b</h3>
|
<div className="bits" >{vbox.bits}b</div>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
className="instance-btn instance-ui-btn vbox-btn"
|
className="instance-btn instance-ui-btn vbox-btn"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user