-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (71 loc) · 1.81 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
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<title>Arduino Controller via Web Browser & Smart Phone</title>
<script src="/socket.io/socket.io.js"></script>
<script src="//davidshimjs.github.com/qrcodejs/qrcode.min.js"></script>
<style>
body {
height: 100VH;
width: 100vw;
display: block;
color: white;
font-family: Verdana, sans-serif;
font-size: 3em;
text-align: center;
padding-top: 5em;
overflow: hidden;
position: relative;
}
#main {
background: linear-gradient( to top, #BBD2C5 0%, #536976 40%, #292E49 90%);
-webkit-transition: transform .9s linear;
-moz-transition: transform .9s linear;
-o-transition: transform .9s linear;
transition: transform .9s linear;
background-repeat: no-repeat;
height: 200vh;
width: 100%;
position: absolute;
z-index: -1;
top: 0;
}
#qr {
margin-top: 2em;
z-index: 9999;
}
#qr img {
z-index: 9999;
margin: 0 auto;
background-color: white;
padding: 10px;
}
#arduino:before {
content: "LDR";
}
#phone {
z-index: -1;
display: block;
width: 50%;
height: 50%;
position: absolute;
top: 4em;
left: calc(25% - 10px);
background: radial-gradient(closest-side, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0) 100%);
-webkit-transition: transform .9s linear;
-moz-transition: transform .9s linear;
-o-transition: transform .9s linear;
transition: transform .9s linear;
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div id="main"> </div>
Hello World!
<div id="arduino"> </div>
<div id="phone"> </div>
<script src="public/script.js">
</script>
</body>
</html>