-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
124 lines (113 loc) · 2.73 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aquarium Arcadium</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<link rel="stylesheet" href="./assets/css/master.css">
<style>
html, body {
margin: 0;
height: 100%;
}
canvas {
width: 100%;
height: 100%;
display: block;
position: fixed;
top: 0;
left: 0;
z-index: -9999;
}
.view {
background: none;
flex-direction: row-reverse;
}
#panel {
position: relative;
right: -680px;
vertical-align: middle;
width: 800px;
margin-top: auto;
margin-bottom: auto;
border-radius: 1rem 0 0 1rem;
transition: right 1s ease-out;
flex-direction: row;
}
#panel:hover {
right: 0;
}
#info-list {
display: grid;
grid-template-columns: 120px 3fr;
grid-template-rows: 120px 120px 120px;
grid-auto-flow: row;
align-items: center;
position: relative;
width: 100%;
}
.item-icon {
text-align: center;
font-size: 2.6rem;
}
.item-content {
font-size: 2em;
}
#button-panel {
display: flex;
flex-direction: column;
justify-content: space-around;
}
#button-panel button {
margin: 10px;
height: 4rem;
}
</style>
</head>
<body>
<div class="view">
<div id="panel" class="card light">
<div id="info-list">
<div class="item-icon">
<i class="fas fa-thermometer-half"></i>
--
</div>
<div class="item-content">
In the aquarium
</div>
<div class="item-icon">
<i class="fas fa-power-off"></i>
</div>
<div class="item-content">
The air pump is off
</div>
<div class="item-icon">
<i class="fas fa-lightbulb"></i>
</div>
<div class="item-content">
The light in the aquarium is off
</div>
</div>
<div id="button-panel">
<button id="feed-button" name="button">Feed the fish</button>
<button id="pump-button" name="button">Toggle pump</button>
<button id="light-button" name="button">Toggle light</button>
</div>
</div>
<div id="error-modal" class="modal">
<div class="header">
Failed to Connect
</div>
<div class="body">
There was an error while trying to connect with the aquarium
systems. This could been caused by the servers being down,
a bad internet connection or an error with the systems
installed in the aquarium. It's recommended to check the
physical integrity of the aquarium.
</div>
</div>
</div>
</body>
<script src="./assets/js/master.js"></script>
</html>