This commit is contained in:
2017-11-03 00:24:47 +00:00
parent bd9ca29c34
commit f3508ce42b
15 changed files with 232 additions and 356 deletions

View File

@@ -7,51 +7,60 @@
<link rel="stylesheet" type="text/css" href="styles.css">
<script src="scripts.js"></script>
</head>
<body>
<body class="sui">
<div class="content">
<div id="prototypControls" class="spiro-control container">
<label>L</label>
<input type="range" class="laser slider" value="1" min="1" max="128">
<label>M1</label>
<input type="range" class="motor slider" value="1" min="1" max="128" data-motor-nr="1">
<label>M2</label>
<input type="range" class="motor slider" value="1" min="1" max="128" data-motor-nr="2">
<label>M3</label>
<input type="range" class="motor slider" value="1" min="1" max="128" data-motor-nr="3">
</div>
<div id="prototypControls">
<text class="sectionDesc">last uri:</text>
<div id="uriDiv"></div>
<text class="sectionDesc">last respone:</text>
<br>
<div id="response">
</div>
<br>
</div>
<form id="prototypControls" class="spiro-control container">
<span class="heading">Laser</span>
<ul>
<li class="form-row">
<label>L</label>
<input type="range" class="laser slider" value="1" min="1" max="128">
</li>
<li class="form-row">
<label>M1</label>
<input type="range" class="motor slider" value="1" min="1" max="128" data-motor-nr="1">
</li>
<li class="form-row">
<label>M2</label>
<input type="range" class="motor slider" value="1" min="1" max="128" data-motor-nr="2">
</li>
<li class="form-row">
<label>M3</label>
<input type="range" class="motor slider" value="1" min="1" max="128" data-motor-nr="3">
</li>
</ul>
</form>
<div class="settings container">
<span class="heading">Wifi Settings</span>
<span class="heading">WiFi Settings</span>
<div class="content"></class>
<form>
<ul class="flex-outer">
<li>
<label for="first-name">SSID</label>
<input type="text" id="first-name" placeholder="service station id">
<li class="form-row">
<label for="ap">AP Mode</label>
<span class="toggle"><input type="checkbox" name="ap"></span>
</li>
<li>
<label for="last-name">Password</label>
<input type="text" id="last-name" placeholder="station password">
<li class="form-row">
<label for="ssid">SSID</label>
<input type="text" name="ssid" placeholder="Default AP: LaserSpiro">
</li>
<li>
<p>Age</p>
<ul class="flex-inner">
<!-- list items here -->
</ul>
<li class="form-row">
<label for="password">Password</label>
<input type="password" name="password" placeholder="Default: th3r31sn0sp00n">
</li>
<li>
<li class="form-row">
<button type="submit">Submit</button>
</li>
</ul>
</form>
</div>
</div>
<div id="prototypControls" class="container">
<text class="sectionDesc">last uri:</text>
<div id="uriDiv"></div>
<text class="sectionDesc">last respone:</text>
<br>
<div id="response">
</div>
<br>
</div>
</body>
</html>

View File

@@ -1,53 +1,94 @@
body {
form .form-row {
display: flex;
justify-content: flex-end;
padding: .2em;
}
form .form-row > label {
padding: .5em 1em .5em 0;
flex: 1;
}
form .form-row > input {
flex: 2;
}
form .form-row > span {
flex: 2;
}
form .form-row > input,
form .form-row > button {
padding: .5em;
}
form .form-row input[type="checkbox"] {
margin-top: 12px;
}
@media screen and (min-width: 768px) {
form .form-row > input,
form .form-row > span {
flex: 3;
}
}
@media screen and (min-width: 992px) {
form .form-row > input,
form .form-row > span {
flex: 4;
}
}
@media screen and (min-width: 1200px) {
form .form-row > input,
form .form-row > span {
flex: 5;
}
}
.sui {
background: #000000;
color: #0eb8c0;
margin: 0;
padding: 0;
}
body ul {
.sui ul {
padding: 0;
}
body ul li {
margin: 0 0 16px 0;
.sui ul li {
margin: 0 0 0 0;
}
body p {
.sui p {
padding: 0;
margin: 0;
}
body .content {
.sui > .content {
padding: 32px;
}
body .content .heading {
.sui > .content .heading {
font-size: 1.2em;
margin-bottom: 16px;
display: block;
}
body .content .container {
.sui > .content .container {
background: #333333;
padding: 16px;
border-radius: 4px;
border: solid 1px #555555;
margin-bottom: 8px;
}
body .content input {
height: 24px;
.sui > .content input[type="text"] {
height: 16px;
}
.settings .flex-outer li,
.settings .flex-inner {
display: flex;
flex-wrap: wrap;
align-items: center;
.sui > .content input[type="checkbox"] {
transform: scale(2);
}
.settings .flex-outer > li > label,
.settings .flex-outer li p {
flex: 1 0;
.sui > .content .form-row > button {
background: #097479;
color: white;
border: 0;
}
.settings .flex-outer > li > label + *,
.settings .flex-inner {
flex: 1 0;
}
.spiro-control label {
width: 10%;
display: inline-block;
}
.spiro-control input[type="range"] {
width: 80%;
display: inline-block;
/*
.spiro-control {
label {
width: 10%;
display: inline-block;
}
input[type="range"] {
width: 80%;
display: inline-block;
}
}
*/

View File

@@ -1,5 +1,5 @@
{
"apMode": 0,
"SSID": "myAP",
"Password": "myAP_password"
"SSID": "LaserSpiro",
"Password": "th3r31sn0sp00n"
}