diff --git a/html-client/cryps.css b/html-client/cryps.css index 64cdc5da..a78b63aa 100644 --- a/html-client/cryps.css +++ b/html-client/cryps.css @@ -6,7 +6,7 @@ body { font-family: 'Jura'; color: whitesmoke; font-size: 16pt; - padding: 1em; + padding: 1em 2em; } button, input { @@ -64,7 +64,7 @@ button:hover { .ping-svg { background-color: black; height: 1em; - margin-right: 1em; + margin-left: 1em; } .ping-path { @@ -174,4 +174,33 @@ button:hover { .spacer { min-width: 100%; -} \ No newline at end of file +} + +/* CRYP BOX */ +.cryp-box { + display: flex; + padding: 0; +} + +.cryp-box figure { + width: 50%; + margin: 0 0 2em 0; + border: 1px solid whitesmoke; +} + +.cryp-box .skills { + width: 50%; +} + +.cryp-skill-btn:first-child { + margin: 0 0 0 -1px; +} + +.cryp-skill-btn { + font-size: 150%; + border-width: 1px; + width: 100%; + height: 25%; + padding: 0; + margin: -1px 0 0 -1px; +} diff --git a/html-client/package.json b/html-client/package.json index b8201134..e7aaf6de 100755 --- a/html-client/package.json +++ b/html-client/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "start": "parcel index.html --port 40080", + "start": "parcel index.html --port 40080 --no-hmr --no-source-maps", "build": "rm -rf dist && parcel build index.html", "lint": "eslint --fix --ext .jsx src/", "test": "echo \"Error: no test specified\" && exit 1" diff --git a/html-client/src/components/instance.component.jsx b/html-client/src/components/instance.component.jsx index 6dd18808..d50073d4 100644 --- a/html-client/src/components/instance.component.jsx +++ b/html-client/src/components/instance.component.jsx @@ -2,6 +2,23 @@ const preact = require('preact'); // const key = require('keymaster'); const VboxContainer = require('./vbox.container'); +const molecule = require('./molecule'); + +function Cryp(cryp) { + const skills = cryp.skills.map((s, i) => ( + + )); + return ( +