-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkenya-power-data.html
More file actions
295 lines (274 loc) · 15.9 KB
/
Copy pathkenya-power-data.html
File metadata and controls
295 lines (274 loc) · 15.9 KB
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kenya MF Power Data - GH+ Labs</title>
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Material Icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!-- Global CSS -->
<link href="public/global.css" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: white;
min-width: 200px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
border-radius: 8px;
border: 1px solid #e5e7eb;
right: 0;
top: 100%;
margin-top: 4px;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: flex;
align-items: center;
gap: 8px;
transition: background-color 0.2s;
}
.dropdown-content a:hover {
background-color: #f3f4f6;
}
.dropdown:hover .dropdown-content {
display: block;
}
</style>
</head>
<body class="bg-gray-50 min-h-screen">
<!-- Header will be inserted here -->
<div id="header"></div>
<!-- Main Content -->
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Breadcrumb Banner -->
<div class="bg-blue-600 text-white py-4 px-6 rounded-lg mb-8">
<div class="flex items-center justify-between">
<div class="flex items-center text-sm">
<span class="material-icons text-lg mr-1">home</span>
<span>/ Datasets / Kenya_data</span>
</div>
</div>
</div>
<!-- Main Content Area -->
<div class="grid grid-cols-1 lg:grid-cols-4 gap-8">
<!-- Left Sidebar -->
<div class="lg:col-span-1">
<div class="bg-white rounded-lg shadow-sm p-6 space-y-6">
<!-- Country -->
<div class="flex items-start space-x-3">
<span class="material-icons text-blue-600 text-2xl">public</span>
<div>
<h3 class="font-semibold text-gray-900">Country Covered</h3>
<p class="text-gray-600 text-sm">Kenya</p>
</div>
</div>
<!-- Publisher -->
<div class="flex items-start space-x-3">
<span class="material-icons text-blue-600 text-2xl">business</span>
<div>
<h3 class="font-semibold text-gray-900">Publisher</h3>
<p class="text-gray-600 text-sm">nline.io</p>
</div>
</div>
<!-- Contact -->
<div class="flex items-start space-x-3">
<span class="material-icons text-blue-600 text-2xl">email</span>
<div>
<h3 class="font-semibold text-gray-900">Contact</h3>
<p class="text-gray-600 text-sm">info@nline.io</p>
</div>
</div>
<!-- Share -->
<div class="flex items-start space-x-3">
<span class="material-icons text-blue-600 text-2xl">share</span>
<div>
<h3 class="font-semibold text-gray-900">Share</h3>
<div class="flex space-x-2 mt-2">
<a href="#" class="text-gray-600 hover:text-gray-900">
<svg class="w-5 h-5" viewBox="0 0 24 24" fill="currentColor">
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/>
</svg>
</a>
<a href="#" class="text-gray-600 hover:text-gray-900">
<svg class="w-5 h-5" viewBox="0 0 24 24" fill="currentColor">
<path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
</svg>
</a>
<a href="#" class="text-gray-600 hover:text-gray-900">
<svg class="w-5 h-5" viewBox="0 0 24 24" fill="currentColor">
<path d="M22 21.968H17.859V15.4807C17.859 13.934 17.8311 11.9422 15.7049 11.9422C13.5481 11.9422 13.2178 13.6273 13.2178 15.3671V21.9675H9.07683V8.63045H13.0522V10.4534H13.1058C13.5036 9.77309 14.0786 9.2134 14.7695 8.83408C15.4602 8.45467 16.241 8.2698 17.0285 8.29915C21.2258 8.29915 22 11.0603 22 14.6519V21.968ZM4.40396 6.80704C3.92859 6.80714 3.46386 6.66627 3.06855 6.40223C2.67323 6.1382 2.3651 5.76285 2.18311 5.32368C2.00112 4.8845 1.95344 4.40122 2.04611 3.93494C2.13879 3.46868 2.36765 3.04036 2.70376 2.70417C3.03986 2.36797 3.46811 2.13901 3.93435 2.04622C4.40057 1.95344 4.88385 2.001 5.32305 2.18291C5.76226 2.36481 6.13765 2.67287 6.40176 3.06814C6.66588 3.46341 6.80685 3.92813 6.80685 4.40352C6.80685 5.04088 6.55371 5.65214 6.10309 6.10287C5.65249 6.55361 5.0413 6.8069 4.40396 6.80704ZM6.47446 21.9675H2.32917V8.63045H6.47499L6.47446 21.9675Z"/>
</svg>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- Main Content Panel -->
<div class="lg:col-span-3">
<div class="bg-white rounded-lg shadow-sm p-8">
<h2 class="text-3xl font-bold text-gray-900 mb-6">Kenya MF Power Data</h2>
<!-- Search and Order -->
<div class="flex flex-col sm:flex-row gap-4 mb-6">
<div class="flex-1">
<input type="text" placeholder="Search datasets..."
class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
<div class="sm:w-48">
<select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option>Order by: Year</option>
<option>Order by: Size</option>
<option>Order by: Name</option>
</select>
</div>
</div>
<!-- Dataset Count -->
<div class="mb-6">
<p class="text-gray-600 font-medium">90 datasets found</p>
</div>
<!-- Dataset List -->
<div class="space-y-4 mb-8">
<!-- Kenya January 2017 -->
<div class="flex items-center justify-between p-4 border border-gray-200 rounded-lg hover:bg-gray-50">
<div class="flex items-center space-x-4">
<span class="material-icons text-green-600 text-2xl">description</span>
<div>
<h3 class="font-medium text-gray-900">Kenya January 2017</h3>
</div>
</div>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center text-sm font-medium">
<span class="material-icons text-sm mr-1">download</span>
Download
</button>
</div>
<!-- Kenya February 2017 -->
<div class="flex items-center justify-between p-4 border border-gray-200 rounded-lg hover:bg-gray-50">
<div class="flex items-center space-x-4">
<span class="material-icons text-green-600 text-2xl">description</span>
<div>
<h3 class="font-medium text-gray-900">Kenya February 2017</h3>
</div>
</div>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center text-sm font-medium">
<span class="material-icons text-sm mr-1">download</span>
Download
</button>
</div>
<!-- Kenya March 2017 -->
<div class="flex items-center justify-between p-4 border border-gray-200 rounded-lg hover:bg-gray-50">
<div class="flex items-center space-x-4">
<span class="material-icons text-green-600 text-2xl">description</span>
<div>
<h3 class="font-medium text-gray-900">Kenya March 2017</h3>
</div>
</div>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center text-sm font-medium">
<span class="material-icons text-sm mr-1">download</span>
Download
</button>
</div>
<!-- Kenya April 2017 -->
<div class="flex items-center justify-between p-4 border border-gray-200 rounded-lg hover:bg-gray-50">
<div class="flex items-center space-x-4">
<span class="material-icons text-green-600 text-2xl">description</span>
<div>
<h3 class="font-medium text-gray-900">Kenya April 2017</h3>
</div>
</div>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center text-sm font-medium">
<span class="material-icons text-sm mr-1">download</span>
Download
</button>
</div>
<!-- Kenya May 2017 -->
<div class="flex items-center justify-between p-4 border border-gray-200 rounded-lg hover:bg-gray-50">
<div class="flex items-center space-x-4">
<span class="material-icons text-green-600 text-2xl">description</span>
<div>
<h3 class="font-medium text-gray-900">Kenya May 2017</h3>
</div>
</div>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center text-sm font-medium">
<span class="material-icons text-sm mr-1">download</span>
Download
</button>
</div>
<!-- Kenya June 2017 -->
<div class="flex items-center justify-between p-4 border border-gray-200 rounded-lg hover:bg-gray-50">
<div class="flex items-center space-x-4">
<span class="material-icons text-green-600 text-2xl">description</span>
<div>
<h3 class="font-medium text-gray-900">Kenya June 2017</h3>
</div>
</div>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center text-sm font-medium">
<span class="material-icons text-sm mr-1">download</span>
Download
</button>
</div>
</div>
<!-- Pagination -->
<div class="flex justify-center items-center space-x-2 mb-8">
<button class="px-3 py-2 text-gray-500 hover:text-gray-700">Previous</button>
<button class="px-3 py-2 bg-blue-600 text-white rounded">1</button>
<button class="px-3 py-2 text-gray-500 hover:text-gray-700">2</button>
<button class="px-3 py-2 text-gray-500 hover:text-gray-700">3</button>
<span class="px-3 py-2 text-gray-500">...</span>
<button class="px-3 py-2 text-gray-500 hover:text-gray-700">10</button>
<button class="px-3 py-2 text-gray-500 hover:text-gray-700">Next</button>
</div>
<!-- Supporting Documentation -->
<div>
<h3 class="text-xl font-semibold text-gray-900 mb-4">Supporting Documentation</h3>
<ul class="space-y-2">
<li class="flex items-center space-x-2">
<span class="material-icons text-gray-400 text-sm">description</span>
<span class="text-gray-700">reporting_fridges_per_month.csv</span>
</li>
<li class="flex items-center space-x-2">
<span class="material-icons text-gray-400 text-sm">description</span>
<span class="text-gray-700">upload_statistics_per_month.csv</span>
</li>
<li class="flex items-center space-x-2">
<span class="material-icons text-gray-400 text-sm">description</span>
<span class="text-gray-700">location_info.csv</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</main>
<!-- Footer will be inserted here -->
<div id="footer"></div>
<!-- Load Components -->
<script type="module">
import { createHeader } from './components/header.js';
import { createFooter } from './components/footer.js';
// Insert header with current page indicator
document.getElementById('header').innerHTML = createHeader('data');
// Insert footer
document.getElementById('footer').innerHTML = createFooter();
</script>
<script>
function showMoreInfo(datasetName) {
alert(`More information about ${datasetName} will be available soon.`);
}
</script>
</body>
</html>