tabs init
This commit is contained in:
parent
1531a8b2f8
commit
f43b9f6cc3
@ -11,6 +11,10 @@
|
|||||||
* constructs jiggle when clicked
|
* constructs jiggle when clicked
|
||||||
* background colour changes depending on time of day
|
* background colour changes depending on time of day
|
||||||
|
|
||||||
|
* other
|
||||||
|
* skill pane bigger
|
||||||
|
* add colours and speed -> Skill > <B></B>B
|
||||||
|
|
||||||
* bot game grind
|
* bot game grind
|
||||||
|
|
||||||
* change score to enum
|
* change score to enum
|
||||||
|
|||||||
@ -6,7 +6,6 @@ MNML_PATH=$(realpath "$DIR/../")
|
|||||||
VERSION=$(<"$MNML_PATH/VERSION")
|
VERSION=$(<"$MNML_PATH/VERSION")
|
||||||
|
|
||||||
SERVER_BIN_DIR="/usr/local/mnml/bin"
|
SERVER_BIN_DIR="/usr/local/mnml/bin"
|
||||||
|
|
||||||
CLIENT_DIST_DIR="/var/lib/mnml/client"
|
CLIENT_DIST_DIR="/var/lib/mnml/client"
|
||||||
CLIENT_PUBLIC_DIR="/var/lib/mnml/public/current"
|
CLIENT_PUBLIC_DIR="/var/lib/mnml/public/current"
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
.instance {
|
.instance {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 2fr minmax(min-content, 1fr);
|
grid-template-columns: 1fr minmax(min-content, 1fr);
|
||||||
grid-template-rows: min-content 1fr;
|
grid-template-rows: min-content 1fr;
|
||||||
|
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
|
|||||||
@ -4,11 +4,12 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
||||||
grid-template-rows: minmax(min-content, 2fr) 1fr;
|
grid-template-rows: minmax(min-content, 2fr) min-content 1fr;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"top"
|
"top"
|
||||||
|
"tabs"
|
||||||
"bottom";
|
"bottom";
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
@ -63,7 +64,6 @@
|
|||||||
.inventory {
|
.inventory {
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
grid-area: bottom;
|
grid-area: bottom;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
|
|
||||||
@ -87,4 +87,18 @@
|
|||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.options {
|
||||||
|
grid-area: tabs;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row;
|
||||||
|
button {
|
||||||
|
border-top: 0;
|
||||||
|
border: 1px solid #222;
|
||||||
|
&:not(:last-child) {
|
||||||
|
border-right: 0;
|
||||||
|
}
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -88,8 +88,8 @@ dl {
|
|||||||
grid-template-rows: min-content 1fr min-content;
|
grid-template-rows: min-content 1fr min-content;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"hd hd ctrl"
|
"hd hd ctrl"
|
||||||
"nav main ctrl"
|
"main main ctrl"
|
||||||
"nav main ctrl";
|
"main main ctrl";
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
@ -198,12 +198,6 @@ button[disabled] {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
.welcome {
|
.welcome {
|
||||||
.highlight {
|
|
||||||
color: black;
|
|
||||||
background: @white;
|
|
||||||
border: 1px solid @white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login {
|
.login {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -213,11 +207,6 @@ button[disabled] {
|
|||||||
|
|
||||||
.options {
|
.options {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
display: flex;
|
|
||||||
flex-flow: row;
|
|
||||||
button {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
@ -262,4 +251,32 @@ figure.gray {
|
|||||||
|
|
||||||
.mobile-title {
|
.mobile-title {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.options {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row;
|
||||||
|
|
||||||
|
button {
|
||||||
|
&.highlight {
|
||||||
|
color: @white;
|
||||||
|
box-shadow: inset 0px 5px 0px 0px @white;
|
||||||
|
border: 0;
|
||||||
|
&:first-child {
|
||||||
|
border-left: 1px solid #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-right: 1px solid #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
border: 1px solid #444;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|||||||
@ -31,6 +31,8 @@ function InfoComponent(args) {
|
|||||||
return (
|
return (
|
||||||
<div class="info-skill">
|
<div class="info-skill">
|
||||||
<h2>{fullInfo.item}</h2>
|
<h2>{fullInfo.item}</h2>
|
||||||
|
<h3>Skill > BB</h3>
|
||||||
|
<h3>tri 3</h3>
|
||||||
<div> {infoDescription} </div>
|
<div> {infoDescription} </div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -111,6 +111,25 @@ function Play(args) {
|
|||||||
<div class="team top">
|
<div class="team top">
|
||||||
{constructPanels}
|
{constructPanels}
|
||||||
</div>
|
</div>
|
||||||
|
<h1>mnml.gg</h1>
|
||||||
|
<div class="options">
|
||||||
|
<button
|
||||||
|
class={`login-btn highlight`}>
|
||||||
|
Play
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class={`login-btn`}>
|
||||||
|
News
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class={`login-btn`}>
|
||||||
|
Store
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class={`login-btn`}>
|
||||||
|
⚙ Account
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
<Inventory />
|
<Inventory />
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -203,7 +203,7 @@ function Vbox(args) {
|
|||||||
<button
|
<button
|
||||||
class={classes}
|
class={classes}
|
||||||
onMouseOver={e => vboxHover(e, v)}
|
onMouseOver={e => vboxHover(e, v)}
|
||||||
onClick={onClick}
|
onMouseDown={onClick}
|
||||||
onDblClick={onDblClick} >
|
onDblClick={onDblClick} >
|
||||||
{shapes[v]()}
|
{shapes[v]()}
|
||||||
</button>
|
</button>
|
||||||
@ -213,7 +213,7 @@ function Vbox(args) {
|
|||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
class={classes}
|
class={classes}
|
||||||
onClick={onClick}
|
onMouseDown={onClick}
|
||||||
onDblClick={onDblClick}
|
onDblClick={onDblClick}
|
||||||
onMouseOver={e => vboxHover(e, v)}>
|
onMouseOver={e => vboxHover(e, v)}>
|
||||||
{v}
|
{v}
|
||||||
@ -225,7 +225,7 @@ function Vbox(args) {
|
|||||||
function vboxElement() {
|
function vboxElement() {
|
||||||
return (
|
return (
|
||||||
<div class='vbox-vbox'
|
<div class='vbox-vbox'
|
||||||
onClick={() => setReclaiming(false)}
|
onMouseDown={() => setReclaiming(false)}
|
||||||
onMouseOver={e => hoverInfo(e, 'vbox')}>
|
onMouseOver={e => hoverInfo(e, 'vbox')}>
|
||||||
<div class="vbox-hdr">
|
<div class="vbox-hdr">
|
||||||
<h3 onTouchStart={e => e.target.scrollIntoView(true)}>VBOX</h3>
|
<h3 onTouchStart={e => e.target.scrollIntoView(true)}>VBOX</h3>
|
||||||
@ -241,7 +241,7 @@ function Vbox(args) {
|
|||||||
<button
|
<button
|
||||||
class='vbox-btn'
|
class='vbox-btn'
|
||||||
onMouseOver={e => hoverInfo(e, 'refill')}
|
onMouseOver={e => hoverInfo(e, 'refill')}
|
||||||
onClick={() => sendVboxDiscard()}>
|
onMouseDown={() => sendVboxDiscard()}>
|
||||||
refill - 2b
|
refill - 2b
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@ -270,7 +270,7 @@ function Vbox(args) {
|
|||||||
// key={i}
|
// key={i}
|
||||||
// class={`${highlighted ? 'highlight' : ''}`}
|
// class={`${highlighted ? 'highlight' : ''}`}
|
||||||
// onMouseOver={(e) => vboxHover(e, value)}
|
// onMouseOver={(e) => vboxHover(e, value)}
|
||||||
// onClick={e => boundClick(e, i, highlighted) }>
|
// onMouseDown={e => boundClick(e, i, highlighted) }>
|
||||||
// {convertItem(value)}
|
// {convertItem(value)}
|
||||||
// </td>
|
// </td>
|
||||||
// );
|
// );
|
||||||
@ -311,7 +311,7 @@ function Vbox(args) {
|
|||||||
<button
|
<button
|
||||||
class={classes}
|
class={classes}
|
||||||
onMouseOver={e => vboxHover(e, v)}
|
onMouseOver={e => vboxHover(e, v)}
|
||||||
onClick={onClick}>
|
onMouseDown={onClick}>
|
||||||
{shapes[v]()}
|
{shapes[v]()}
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
@ -320,7 +320,7 @@ function Vbox(args) {
|
|||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
class={classes}
|
class={classes}
|
||||||
onClick={onClick}
|
onMouseDown={onClick}
|
||||||
onMouseOver={e => vboxHover(e, v)}>
|
onMouseOver={e => vboxHover(e, v)}>
|
||||||
{v}
|
{v}
|
||||||
</button>
|
</button>
|
||||||
@ -347,7 +347,7 @@ function Vbox(args) {
|
|||||||
class='vbox-btn'
|
class='vbox-btn'
|
||||||
disabled={combiner.length !== 3}
|
disabled={combiner.length !== 3}
|
||||||
onMouseOver={e => hoverInfo(e, 'refine')}
|
onMouseOver={e => hoverInfo(e, 'refine')}
|
||||||
onClick={() => sendVboxCombine()}>
|
onMouseDown={() => sendVboxCombine()}>
|
||||||
{text}
|
{text}
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
@ -364,7 +364,7 @@ function Vbox(args) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={inventoryClass}
|
<div class={inventoryClass}
|
||||||
onClick={inventoryClick}
|
onMouseDown={inventoryClick}
|
||||||
style={vboxSelecting || itemUnequip.length ? { cursor: 'pointer' } : null}
|
style={vboxSelecting || itemUnequip.length ? { cursor: 'pointer' } : null}
|
||||||
onMouseOver={e => hoverInfo(e, 'inventory')}>
|
onMouseOver={e => hoverInfo(e, 'inventory')}>
|
||||||
<div class="vbox-hdr">
|
<div class="vbox-hdr">
|
||||||
@ -372,7 +372,7 @@ function Vbox(args) {
|
|||||||
<button
|
<button
|
||||||
class='vbox-btn reclaim'
|
class='vbox-btn reclaim'
|
||||||
onMouseOver={e => hoverInfo(e, 'reclaim')}
|
onMouseOver={e => hoverInfo(e, 'reclaim')}
|
||||||
onClick={reclaimClick}>
|
onMouseDown={reclaimClick}>
|
||||||
reclaim
|
reclaim
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -101,7 +101,7 @@
|
|||||||
## urls will be written to each interval.
|
## urls will be written to each interval.
|
||||||
# urls = ["unix:///var/run/influxdb.sock"]
|
# urls = ["unix:///var/run/influxdb.sock"]
|
||||||
# urls = ["udp://127.0.0.1:8089"]
|
# urls = ["udp://127.0.0.1:8089"]
|
||||||
urls = ["http://mnml-prod-elk:8086"]
|
urls = ["http://mnml-prod-mn:8086"]
|
||||||
|
|
||||||
## The target database for metrics; will be created as needed.
|
## The target database for metrics; will be created as needed.
|
||||||
## For UDP url endpoint database needs to be configured on server side.
|
## For UDP url endpoint database needs to be configured on server side.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user