Finished?!

This commit is contained in:
Daniel Ledda
2020-11-14 14:46:44 +01:00
parent 7b03628f57
commit 7b7b066d1d
14 changed files with 11697 additions and 105 deletions

View File

@@ -3,11 +3,11 @@
<head>
<meta charset="UTF-8">
<title>Ledda's Room Climate</title>
<link href="/climate/static/styles.css" rel="stylesheet" />
<script src="/climate/static/main.js"></script>
<link href="{{.}}/static/styles.css" rel="stylesheet" />
<script src="{{.}}/static/main.js"></script>
</head>
<body>
<div class="chart-container" style="position: relative; height:40vh; width:80vw; margin: auto">
<body id="root">
<div class="chart-container center">
<canvas id="myChart"></canvas>
</div>
</body>

4
webapp/dist/main.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,15 +1,36 @@
html, body {
margin: 0;
height: 100%;
}
.overlay {
background-color: rgba(255, 255, 255, 0.5);
transition: opacity, 1s;
opacity: 100%;
}
.center {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: white;
opacity: 50%;
display: table-cell;
text-align: center;
display: flex;
margin: auto;
align-items: center;
justify-content: space-around;
}
.center > * {
align-content: center;
}
.hidden {
display: none;
opacity: 0%;
}
.chart-container {
padding: 10vw;
width: calc(100% - 20vw);
height: calc(100% - 20vw);
}