-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (75 loc) · 1.61 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Simple Nodebot Interface</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/**
* Quick and dirty reset
*/
* {
margin: 0;
padding: 0;
border: 0;
}
/**
* Set box-sizing
*/
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
/**
* Set up page background colour and typography
*/
body {
background: #22cece;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 1rem; /* 16px */
line-height: 1.5;
}
/**
*
* Page Wrapper Element
*
* Set to flexbox and make sure all items are aligned to the center.
*
*/
.page-wrap {
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
/**
* Set styles for the button.
*/
.led-toggle {
background: #33aaee;
color: #0066aa;
border: 2px solid currentColor;
border-radius: 8px;
padding: 20px;
font-weight: 600;
font-size: 1.5em; /* 24px */
width: 280px;
}
</style>
</head>
<body>
<div class="page-wrap">
<!-- LED Toggle button for controlling the LED on the Server-Side -->
<button class="led-toggle" id="led-toggle">Turn Off LED</button>
</div>
<!-- The bundled JavaScript compiled with Webpack -->
<script src="/static/bundle.js"></script>
</body>
</html>