diff --git a/client/cryps.css b/client/cryps.css index 61a69df2..983c7265 100644 --- a/client/cryps.css +++ b/client/cryps.css @@ -4,7 +4,6 @@ html, body, .cryps { width: 100%; - height: 100%; margin: 0; background-color: #000000; @@ -14,15 +13,14 @@ html, body, .cryps { user-select: none; /* this is the sweet nectar to keep it full page*/ - max-height: 100%; - overflow: hidden; + height: 99%; + max-height: 99%; } html { box-sizing: border-box; margin: 0; padding: 0; - height: 100%; } *, *:before, *:after { @@ -35,7 +33,6 @@ html { padding: 0 2em; display: flex; flex-flow: column; - position: fixed; } main { @@ -48,7 +45,6 @@ main { align-content: flex-start; justify-content: flex-start; align-items: flex-start; - } button, input { @@ -86,6 +82,10 @@ button.left:hover, button.left:focus { box-shadow: inset 0.5em 0 0 0 whitesmoke; } +button.hidden { + opacity: 0; +} + /* LOGIN */ @@ -96,7 +96,15 @@ button.left:hover, button.left:focus { flex-flow: column; } +.cryps input { + border-color: #444; + background-color: #333; + border-radius: 0; +} +.cryps input:focus { + border-color: whitesmoke; +} /* MENU @@ -158,6 +166,35 @@ header { text-align: center; display: flex; + justify-content: center; +} + +.spawn-btn .menu-cryp { + border: 1px solid #333; + color: #333; + display: flex; + flex-flow: row wrap; + align-content: center; +} + +.spawn-btn .menu-cryp h2 { + font-size: 3em; + flex: 1; +} + +.spawn-btn input { + flex: 1 1 100%; + margin: 1em; +} + +.spawn-btn button { + flex: 1; + margin: 0.5em 2em; + border-color: #333 +} + +.spawn-btn input[disabled], .spawn-btn button[disabled] { + opacity: 0 } .menu-cryp { @@ -187,12 +224,12 @@ header { .menu-instance-btn { box-sizing: border-box; - flex: 1 0 100%; + flex: 1 1 100%; font-size: 150%; /*min-width: 20%;*/ border-width: 2px; padding: 0.5em; - margin: 0.5em; + margin-right: 0.5em; } /* diff --git a/client/src/components/cryp.list.component.jsx b/client/src/components/cryp.list.component.jsx index dce35b9d..fb15834c 100644 --- a/client/src/components/cryp.list.component.jsx +++ b/client/src/components/cryp.list.component.jsx @@ -1,4 +1,6 @@ const preact = require('preact'); +const { Component } = require('preact'); +const range = require('lodash/range'); const { stringSort } = require('./../utils'); const molecule = require('./molecule'); @@ -11,8 +13,50 @@ const COLOURS = [ '#3498db', ]; -function CrypList({ cryps, selectedCryps, setSelectedCryps }) { - if (!cryps) return