new design

This commit is contained in:
2018-09-21 01:54:37 +02:00
parent 56514c297c
commit bc11832da1
10 changed files with 31 additions and 6 deletions

View File

@@ -61,7 +61,10 @@ export default class Form extends Component {
obj[item.name] = item.value;
return obj;
}, {});
$.post(this.config.endpoint, { fileName: this.config.filename, config: JSON.stringify(data) });
$.post(this.config.endpoint, { fileName: this.config.filename, config: JSON.stringify(data) })
.done((data) => {
alert("data saved");
});
};

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -5,7 +5,7 @@
<title>ESP Kit</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-32x32.png">
<link rel="icon" type="image/png" href="/favicon-32x32.png">
<link rel="stylesheet" type="text/css" href="styles.css">
<script src="script.js"></script>
</head>

View File

@@ -24,6 +24,11 @@
> .content {
padding: @default-padding;
@media screen and (min-width: 968px) {
margin-right: auto;
margin-left: auto;
width: 50%;
}
}
label {

View File

@@ -1,5 +1,4 @@
.ColorPicker {
flex: none !important;
background-color: transparent;
border: 0;
height: 42px;

View File

@@ -1,5 +1,6 @@
.sui {
select {
flex: 5;
padding: .5em;
color: @color-white;
background: none;

View File

@@ -85,3 +85,7 @@ input[type=range]:focus::-ms-fill-lower {
input[type=range]:focus::-ms-fill-upper {
background: #0eb4bb;
}
.form-row input[type="range"] {
margin-top: 12px;
}