-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdecision.html
237 lines (231 loc) · 8.29 KB
/
decision.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sistem Monitoring IntelliGreenhouse</title>
<link rel="stylesheet" href="style.css" />
<script src="https://cdn.tailwindcss.com"></script>
<script defer src="node_modules/alpinejs/dist/cdn.min.js"></script>
</head>
<body>
<div id="app">
<div class="min-h-screen bg-[#fdfdfd] flex flex-col diagram">
<div
class="flex h-20 items-center justify-between bg-white shadow-sm lg:px-10 px-5 sticky top-0 left-0 right-0 z-[500]"
>
<div>
<span class="font-semibold text-lg">
<span class="text-green-500">Intelli</span>Greenhouse
</span>
</div>
<div class="flex items-center justify-end space-x-4">
<div
class="relative"
x-data="{
open: false,
toggle() {
this.open = !this.open
}
}"
>
<button
class="border p-2 rounded border-gray-200 shadow"
x-on:click="toggle"
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="w-5 h-5"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M3.75 6.75h16.5M3.75 12h16.5M12 17.25h8.25"
/>
</svg>
</button>
<div
class="absolute bottom-0 right-0 pt-2 transform translate-y-full w-[200px]"
x-bind:class="open ? '' : 'hidden'"
>
<ul class="bg-white shadow rounded">
<li>
<a
href="/"
class="px-4 py-2 block w-full transition hover:bg-gray-100"
>Skema Diagram</a
>
</li>
<li>
<a
href="/decision.html"
class="px-4 py-2 block w-full transition hover:bg-gray-100"
>Decision Status</a
>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="lg:px-[200px] p-5">
<div class="mb-5 bg-white rounded p-5 shadow">
<div class="mb-3">
<label for="">Suhu Rata-rata</label>
<input
type="text"
class="w-full transition rounded p-2 5 border border-gray-200 outline-none focus:ring-2 focus:ring-indigo-200 focus:border-indigo-500"
/>
</div>
<div class="mb-3">
<label for="">Kelembaban Rata-rata</label>
<input
type="text"
class="w-full transition rounded p-2 5 border border-gray-200 outline-none focus:ring-2 focus:ring-indigo-200 focus:border-indigo-500"
/>
</div>
</div>
<div class="grid grid-cols-3 gap-5">
<div class="bg-white rounded shadow p-4">
<table class="border w-full border-gray-200 border-collapse">
<tr>
<td class="p-3 border border-gray-200" colspan="2">
Kipas 1
</td>
</tr>
<tr>
<td class="p-3 border border-gray-200">Decision</td>
<td class="p-3 border border-gray-200 text-center">
<span
class="bg-green-500 rounded-full px-3 p-1 text-xs text-white"
>On</span
>
</td>
</tr>
</table>
</div>
<div class="bg-white rounded shadow p-4">
<table class="border w-full border-gray-200 border-collapse">
<tr>
<td class="p-3 border border-gray-200" colspan="2">
Kipas 2
</td>
</tr>
<tr>
<td class="p-3 border border-gray-200">Decision</td>
<td class="p-3 border border-gray-200 text-center">
<span
class="bg-green-500 rounded-full px-3 p-1 text-xs text-white"
>On</span
>
</td>
</tr>
</table>
</div>
<div class="bg-white rounded shadow p-4">
<table class="border w-full border-gray-200 border-collapse">
<tr>
<td class="p-3 border border-gray-200" colspan="2">
Kipas 3
</td>
</tr>
<tr>
<td class="p-3 border border-gray-200">Decision</td>
<td class="p-3 border border-gray-200 text-center">
<span
class="bg-green-500 rounded-full px-3 p-1 text-xs text-white"
>On</span
>
</td>
</tr>
</table>
</div>
<div class="bg-white rounded shadow p-4">
<table class="border w-full border-gray-200 border-collapse">
<tr>
<td class="p-3 border border-gray-200" colspan="2">
Misting
</td>
</tr>
<tr>
<td class="p-3 border border-gray-200">Decision</td>
<td class="p-3 border border-gray-200 text-center">
<span
class="bg-red-500 rounded-full px-3 p-1 text-xs text-white"
>Off</span
>
</td>
</tr>
</table>
</div>
<div class="bg-white rounded shadow p-4">
<table class="border w-full border-gray-200 border-collapse">
<tr>
<td class="p-3 border border-gray-200" colspan="2">
Roller Motor
</td>
</tr>
<tr>
<td class="p-3 border border-gray-200">Decision</td>
<td class="p-3 border border-gray-200 text-center">
<span
class="bg-red-500 rounded-full px-3 p-1 text-xs text-white"
>Off</span
>
</td>
</tr>
</table>
</div>
<div class="bg-white rounded shadow p-4">
<table class="border w-full border-gray-200 border-collapse">
<tr>
<td class="p-3 border border-gray-200" colspan="2">
Cooling Pad
</td>
</tr>
<tr>
<td class="p-3 border border-gray-200">Decision</td>
<td class="p-3 border border-gray-200 text-center">
<span
class="bg-green-500 rounded-full px-3 p-1 text-xs text-white"
>On</span
>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div
x-data="{
init() {
setTimeout(() => {
this.isLoading = false;
}, 1000);
},
isLoading: true,
}"
>
<div
class="fixed top-0 left-0 right-0 z-[1000] bg-white bottom-0 flex items-center justify-center space-x-5"
x-bind:class="isLoading ? '' : 'hidden'"
>
<div
class="flex space-x-5 justify-center items-center animate animate-pulse"
>
<div class="bg-green-500 rounded-full p-3"></div>
<div class="bg-green-500 rounded-full p-3"></div>
<div class="bg-green-500 rounded-full p-5"></div>
<div class="bg-green-500 rounded-full p-3"></div>
<div class="bg-green-500 rounded-full p-3"></div>
</div>
</div>
</div>
</body>
</html>