-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
186 lines (156 loc) · 6.17 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
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
<!DOCTYPE html>
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes">
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
<link rel="stylesheet" href="style.css?1">
<link rel="shortcut icon" type="image/png" href="/public/logo_black.png"/>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<nav>
<a href="/" class="nav-wrapper waves-effect waves-light">
<img class="logo" src="public/logo.svg" />
<img class="text" src="public/texto.svg" />
</a>
<div class="nav-content">
<ul class="tabs tabs-transparent">
<li class="tab"><a class="waves-effect waves-light" href="#historical">Historical</a></li>
<li class="tab"><a class="waves-effect waves-light" href="#planning">Planning</a></li>
<li class="tab"><a class="waves-effect waves-light" href="#statistics">Statistics</a></li>
<li class="tab"><a class="waves-effect waves-light" href="#settings">Settings</a></li>
</ul>
</div>
</nav>
<section id="historical" class="history row">
<div class="col s9">
<h2 class="header">
Historical
<div class="switch">
<label>
24h
<input type="checkbox">
<span class="lever"></span>
7 days
</label>
</div>
</h2>
<canvas id="history"></canvas>
<div class="connected row"></div>
</div>
<div class="upcoming col s3">
<h2 class="header">Upcoming tasks</h2>
<div class="pending items row"></div>
<h2 class="header">Recommendations</h2>
<div class="row">
<div class="card horizontal">
<div class="card-content">
<p>
Prepare your next holiday by setting the laundry on Thursday.
</p>
</div>
</div>
<div class="card horizontal">
<div class="card-content">
<p>
Save energy by opening the curtains and letting the natural light in on the afternoons.
</p>
</div>
</div>
</div>
</div>
</section>
<section id="planning" class="plan row">
<h2 class="header">
Weekly plan
<a class="btn ask waves-effect right">Ask Amper</a>
<a class="btn waves-effect right">Add to Calendar</a>
</h2>
<div class="week">
<div class="day drop sunday"></div>
<div class="day drop monday"></div>
<div class="day drop tuesday"></div>
<div class="day drop wednesday"></div>
<div class="day drop thursday"></div>
<div class="day drop friday"></div>
<div class="day drop saturday"></div>
</div>
<div class="estimation"></div>
</section>
<section id="statistics" class="statistics row">
<img src="public/dashboard.png" />
<!-- <div class="col s4 m4">
<div class="content">
<p>Top 6 appliances used this month:</p>
<div class="container">
<div class="row">
<div class="col s4 m4"><img src="public/Washing machine.png"/></div>
<div class="col s4 m4"><img src="public/Sandwich maker.png"/></div>
<div class="col s4 m4"><img src="public/Vacuum cleaner.png"/></div>
<div class="col s4 m4"><img src="public/Washing machine.png"/></div>
<div class="col s4 m4"><img src="public/Sandwich maker.png"/></div>
<div class="col s4 m4"><img src="public/Vacuum cleaner.png"/></div>
</div>
</div>
</div>
</div>
<div class="col s4 m4">
<div class="content">
Maximum power
<div class="diff up">169kW</div>
Battery efficiency
<div class="diff down">1.7%</div>
</div>
</div>
<div class="col s4 m4">
<div class="content">CCC</div>
</div> -->
</section>
<section id="settings" class="col s12">
<div class="row">
<div class="col card-panel s12 m12 l8 offset-s0 offset-m0 offset-l2">
<div class="row">
<form method="POST" class="settings col s12">
<h3 class="header">Settings</h2>
<div class="row">
<input type="hidden" name="latitude">
<input type="hidden" name="longitude">
<input type="hidden" name="place_id">
<div class="input-field col s12 m12">
<input id="place" placeholder="Enter your full address"
onFocus="geolocate()" type="text" name="address"></input>
<label for="latitude">Address of the installation</label>
</div>
</div>
<div class="row">
<div class="input-field col s12 m6">
<input placeholder="" id="angle" type="number" value="90" name="solar_panel_angle">
<label for="angle">Panel inclination (degrees)</label>
</div>
<div class="input-field col s12 m6">
<input id="m2" value="0.13" type="number" name="square_meters">
<label for="m2">Square meters</label>
</div>
</div>
<button class="btn waves-effect waves-light left" type="submit" name="action">Save
<i class="material-icons right">send</i>
</button>
</form>
</div>
</div>
</div>
</section>
<!--Import jQuery before materialize.js-->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/js/materialize.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.bundle.min.js"></script>
<script src="https://unpkg.com/dragula@3/dist/dragula.min.js"></script>
<script src="https://unpkg.com/chance@1/chance.js"></script>
<script src="javascript.js?1"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDu1wU82h6aC1d21I3VP6_nLELLP6gGcZY&libraries=places&callback=initAutocomplete" async defer></script>
</body>
</html>