Juanfco commited on
Commit
1d646f4
·
verified ·
1 Parent(s): dc1957e

quiero una aplicación que se vea futurista , que esté relacionada con medir la contaminacion, los aparatos electronicos reciclados, la calidad del aire y todos los parametros que puedas medir y tener acceso relacionados con el medio ambiente, que sea un token , que se puedan repartir tokens en recompensa. el Nombre de Mi empresa es Perú recicla

Browse files
Files changed (2) hide show
  1. README.md +8 -5
  2. index.html +484 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Ecotokenx Per Recicla
3
- emoji: 📈
4
- colorFrom: yellow
5
- colorTo: red
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: EcoTokenX Perú Recicla 🌱
3
+ colorFrom: gray
4
+ colorTo: pink
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
index.html CHANGED
@@ -1,19 +1,485 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="es">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>EcoTokenX Perú Recicla</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
12
+ <style>
13
+ @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Roboto:wght@300;400;500&display=swap');
14
+ body {
15
+ font-family: 'Roboto', sans-serif;
16
+ }
17
+ .futuristic-text {
18
+ font-family: 'Orbitron', sans-serif;
19
+ }
20
+ .glass-card {
21
+ background: rgba(255, 255, 255, 0.08);
22
+ backdrop-filter: blur(12px);
23
+ -webkit-backdrop-filter: blur(12px);
24
+ border: 1px solid rgba(255, 255, 255, 0.18);
25
+ }
26
+ .gradient-text {
27
+ background: linear-gradient(90deg, #00c9a7 0%, #5b21b6 100%);
28
+ -webkit-background-clip: text;
29
+ background-clip: text;
30
+ color: transparent;
31
+ }
32
+ .eco-pulse {
33
+ animation: pulse 2s infinite;
34
+ }
35
+ @keyframes pulse {
36
+ 0% { opacity: 0.6; }
37
+ 50% { opacity: 1; }
38
+ 100% { opacity: 0.6; }
39
+ }
40
+ </style>
41
+ </head>
42
+ <body class="bg-gray-900 text-white min-h-screen overflow-x-hidden">
43
+ <div id="vanta-bg" class="fixed inset-0 z-0"></div>
44
+
45
+ <!-- Header -->
46
+ <header class="relative z-10 py-6 px-4 sm:px-6 lg:px-8">
47
+ <div class="flex justify-between items-center">
48
+ <div class="flex items-center space-x-2">
49
+ <i data-feather="leaf" class="text-green-400"></i>
50
+ <h1 class="futuristic-text text-2xl font-bold gradient-text">EcoTokenX</h1>
51
+ </div>
52
+ <nav class="hidden md:flex space-x-8">
53
+ <a href="#dashboard" class="hover:text-green-400 transition">Dashboard</a>
54
+ <a href="#metrics" class="hover:text-green-400 transition">Métricas</a>
55
+ <a href="#rewards" class="hover:text-green-400 transition">Recompensas</a>
56
+ <a href="#about" class="hover:text-green-400 transition">Nosotros</a>
57
+ </nav>
58
+ <button class="md:hidden">
59
+ <i data-feather="menu"></i>
60
+ </button>
61
+ </div>
62
+ </header>
63
+
64
+ <!-- Hero Section -->
65
+ <section class="relative z-10 py-20 px-4 sm:px-6 lg:px-8 text-center">
66
+ <div class="max-w-4xl mx-auto">
67
+ <h2 class="futuristic-text text-4xl md:text-6xl font-bold mb-6">
68
+ <span class="gradient-text">Perú Recicla</span> con <span class="text-green-400">EcoTokenX</span>
69
+ </h2>
70
+ <p class="text-xl text-gray-300 mb-8">
71
+ Monitoreo ambiental inteligente y recompensas en tokens por acciones ecológicas
72
+ </p>
73
+ <div class="flex flex-col sm:flex-row justify-center gap-4">
74
+ <button class="bg-green-500 hover:bg-green-600 text-white font-bold py-3 px-6 rounded-lg transition transform hover:scale-105">
75
+ Conectar Wallet
76
+ </button>
77
+ <button class="bg-transparent border-2 border-green-500 text-green-500 hover:bg-green-500 hover:text-white font-bold py-3 px-6 rounded-lg transition transform hover:scale-105">
78
+ Explorar Datos
79
+ </button>
80
+ </div>
81
+ </div>
82
+ </section>
83
+
84
+ <!-- Dashboard Section -->
85
+ <section id="dashboard" class="relative z-10 py-16 px-4 sm:px-6 lg:px-8">
86
+ <div class="max-w-7xl mx-auto">
87
+ <h2 class="futuristic-text text-3xl font-bold mb-12 text-center gradient-text">Dashboard Ambiental</h2>
88
+
89
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
90
+ <!-- Air Quality Card -->
91
+ <div class="glass-card rounded-xl p-6 eco-pulse">
92
+ <div class="flex items-center mb-4">
93
+ <i data-feather="wind" class="text-blue-400 mr-3"></i>
94
+ <h3 class="futuristic-text text-xl font-semibold">Calidad del Aire</h3>
95
+ </div>
96
+ <div class="text-4xl font-bold mb-2 text-green-400">78</div>
97
+ <div class="text-sm text-gray-300">Índice AQI</div>
98
+ <div class="mt-4">
99
+ <div class="h-2 w-full bg-gray-700 rounded-full overflow-hidden">
100
+ <div class="h-full bg-blue-400 rounded-full" style="width: 78%"></div>
101
+ </div>
102
+ <div class="text-xs text-gray-400 mt-1">Moderado</div>
103
+ </div>
104
+ </div>
105
+
106
+ <!-- Recycling Card -->
107
+ <div class="glass-card rounded-xl p-6">
108
+ <div class="flex items-center mb-4">
109
+ <i data-feather="refresh-cw" class="text-yellow-400 mr-3"></i>
110
+ <h3 class="futuristic-text text-xl font-semibold">Electrónicos Reciclados</h3>
111
+ </div>
112
+ <div class="text-4xl font-bold mb-2 text-green-400">1,254</div>
113
+ <div class="text-sm text-gray-300">Kg este mes</div>
114
+ <div class="mt-4">
115
+ <div class="h-2 w-full bg-gray-700 rounded-full overflow-hidden">
116
+ <div class="h-full bg-yellow-400 rounded-full" style="width: 65%"></div>
117
+ </div>
118
+ <div class="text-xs text-gray-400 mt-1">+12% desde el mes pasado</div>
119
+ </div>
120
+ </div>
121
+
122
+ <!-- Tokens Card -->
123
+ <div class="glass-card rounded-xl p-6">
124
+ <div class="flex items-center mb-4">
125
+ <i data-feather="award" class="text-purple-400 mr-3"></i>
126
+ <h3 class="futuristic-text text-xl font-semibold">EcoTokens</h3>
127
+ </div>
128
+ <div class="text-4xl font-bold mb-2 text-green-400">3,450</div>
129
+ <div class="text-sm text-gray-300">Distribuidos hoy</div>
130
+ <div class="mt-4">
131
+ <div class="h-2 w-full bg-gray-700 rounded-full overflow-hidden">
132
+ <div class="h-full bg-purple-400 rounded-full" style="width: 45%"></div>
133
+ </div>
134
+ <div class="text-xs text-gray-400 mt-1">Objetivo: 7,500 tokens diarios</div>
135
+ </div>
136
+ </div>
137
+
138
+ <!-- Pollution Card -->
139
+ <div class="glass-card rounded-xl p-6">
140
+ <div class="flex items-center mb-4">
141
+ <i data-feather="alert-triangle" class="text-red-400 mr-3"></i>
142
+ <h3 class="futuristic-text text-xl font-semibold">Contaminación</h3>
143
+ </div>
144
+ <div class="text-4xl font-bold mb-2 text-green-400">32%</div>
145
+ <div class="text-sm text-gray-300">Reducción anual</div>
146
+ <div class="mt-4">
147
+ <div class="h-2 w-full bg-gray-700 rounded-full overflow-hidden">
148
+ <div class="h-full bg-green-400 rounded-full" style="width: 68%"></div>
149
+ </div>
150
+ <div class="text-xs text-gray-400 mt-1">Meta: 50% para 2025</div>
151
+ </div>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ </section>
156
+
157
+ <!-- Real-time Metrics -->
158
+ <section id="metrics" class="relative z-10 py-16 px-4 sm:px-6 lg:px-8 bg-gray-800 bg-opacity-50">
159
+ <div class="max-w-7xl mx-auto">
160
+ <h2 class="futuristic-text text-3xl font-bold mb-12 text-center gradient-text">Métricas en Tiempo Real</h2>
161
+
162
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
163
+ <div class="glass-card rounded-xl p-6">
164
+ <div class="flex justify-between items-center mb-6">
165
+ <h3 class="futuristic-text text-xl font-semibold">Contaminantes del Aire</h3>
166
+ <div class="flex space-x-2">
167
+ <button class="text-xs bg-gray-700 px-2 py-1 rounded">Lima</button>
168
+ <button class="text-xs bg-gray-700 px-2 py-1 rounded">Arequipa</button>
169
+ <button class="text-xs bg-green-500 px-2 py-1 rounded">Todo Perú</button>
170
+ </div>
171
+ </div>
172
+ <div class="h-64">
173
+ <canvas id="airPollutionChart"></canvas>
174
+ </div>
175
+ </div>
176
+
177
+ <div class="glass-card rounded-xl p-6">
178
+ <div class="flex justify-between items-center mb-6">
179
+ <h3 class="futuristic-text text-xl font-semibold">Reciclaje por Región</h3>
180
+ <div class="text-green-400 flex items-center">
181
+ <i data-feather="trending-up" class="mr-1"></i>
182
+ <span>+18% este trimestre</span>
183
+ </div>
184
+ </div>
185
+ <div class="h-64">
186
+ <canvas id="recyclingChart"></canvas>
187
+ </div>
188
+ </div>
189
+ </div>
190
+ </div>
191
+ </section>
192
+
193
+ <!-- Token Rewards -->
194
+ <section id="rewards" class="relative z-10 py-16 px-4 sm:px-6 lg:px-8">
195
+ <div class="max-w-7xl mx-auto">
196
+ <h2 class="futuristic-text text-3xl font-bold mb-12 text-center gradient-text">Sistema de Recompensas</h2>
197
+
198
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
199
+ <div class="glass-card rounded-xl p-6 transform transition hover:scale-105 hover:shadow-lg">
200
+ <div class="bg-green-900 bg-opacity-30 rounded-full w-16 h-16 flex items-center justify-center mb-4 mx-auto">
201
+ <i data-feather="box" class="text-green-400 w-8 h-8"></i>
202
+ </div>
203
+ <h3 class="futuristic-text text-xl font-semibold text-center mb-2">Reciclaje de Electrónicos</h3>
204
+ <p class="text-gray-300 text-center mb-4">10 EcoTokens por kg de dispositivos reciclados</p>
205
+ <button class="w-full bg-green-500 hover:bg-green-600 text-white py-2 px-4 rounded-lg transition">
206
+ Canjear
207
+ </button>
208
+ </div>
209
+
210
+ <div class="glass-card rounded-xl p-6 transform transition hover:scale-105 hover:shadow-lg">
211
+ <div class="bg-blue-900 bg-opacity-30 rounded-full w-16 h-16 flex items-center justify-center mb-4 mx-auto">
212
+ <i data-feather="cloud" class="text-blue-400 w-8 h-8"></i>
213
+ </div>
214
+ <h3 class="futuristic-text text-xl font-semibold text-center mb-2">Reporte de Calidad del Aire</h3>
215
+ <p class="text-gray-300 text-center mb-4">5 EcoTokens por reporte verificado</p>
216
+ <button class="w-full bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded-lg transition">
217
+ Reportar
218
+ </button>
219
+ </div>
220
+
221
+ <div class="glass-card rounded-xl p-6 transform transition hover:scale-105 hover:shadow-lg">
222
+ <div class="bg-purple-900 bg-opacity-30 rounded-full w-16 h-16 flex items-center justify-center mb-4 mx-auto">
223
+ <i data-feather="users" class="text-purple-400 w-8 h-8"></i>
224
+ </div>
225
+ <h3 class="futuristic-text text-xl font-semibold text-center mb-2">Referir Amigos</h3>
226
+ <p class="text-gray-300 text-center mb-4">50 EcoTokens por cada referencia activa</p>
227
+ <button class="w-full bg-purple-500 hover:bg-purple-600 text-white py-2 px-4 rounded-lg transition">
228
+ Compartir
229
+ </button>
230
+ </div>
231
+ </div>
232
+
233
+ <div class="glass-card rounded-xl p-6 mt-12">
234
+ <h3 class="futuristic-text text-xl font-semibold mb-4">Tu Balance de EcoTokens</h3>
235
+ <div class="flex items-center justify-between">
236
+ <div>
237
+ <div class="text-5xl font-bold text-green-400">2,850</div>
238
+ <div class="text-gray-300">≈ $28.50 USD</div>
239
+ </div>
240
+ <div class="flex space-x-4">
241
+ <button class="bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-6 rounded-lg transition">
242
+ Ganar Más
243
+ </button>
244
+ <button class="bg-transparent border-2 border-green-500 text-green-500 hover:bg-green-500 hover:text-white font-bold py-2 px-6 rounded-lg transition">
245
+ Canjear
246
+ </button>
247
+ </div>
248
+ </div>
249
+ </div>
250
+ </div>
251
+ </section>
252
+
253
+ <!-- About Section -->
254
+ <section id="about" class="relative z-10 py-16 px-4 sm:px-6 lg:px-8 bg-gray-800 bg-opacity-50">
255
+ <div class="max-w-7xl mx-auto">
256
+ <h2 class="futuristic-text text-3xl font-bold mb-12 text-center gradient-text">Sobre Perú Recicla</h2>
257
+
258
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
259
+ <div>
260
+ <h3 class="futuristic-text text-2xl font-semibold mb-6">Nuestra Misión</h3>
261
+ <p class="text-gray-300 mb-6">
262
+ En Perú Recicla, estamos comprometidos con la creación de un ecosistema sostenible mediante la innovación tecnológica y la participación comunitaria. Nuestra plataforma EcoTokenX combina el monitoreo ambiental con un sistema de recompensas en blockchain.
263
+ </p>
264
+ <p class="text-gray-300 mb-6">
265
+ Utilizando sensores IoT y datos abiertos, proporcionamos información en tiempo real sobre la calidad del aire, niveles de contaminación y tasas de reciclaje, incentivando acciones ecológicas a través de nuestro token nativo.
266
+ </p>
267
+ <div class="flex space-x-4">
268
+ <button class="bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-6 rounded-lg transition">
269
+ Unirse al Movimiento
270
+ </button>
271
+ <button class="bg-transparent border-2 border-green-500 text-green-500 hover:bg-green-500 hover:text-white font-bold py-2 px-6 rounded-lg transition">
272
+ Documentación
273
+ </button>
274
+ </div>
275
+ </div>
276
+
277
+ <div class="glass-card rounded-xl p-6">
278
+ <div class="aspect-w-16 aspect-h-9">
279
+ <img src="http://static.photos/technology/640x360/42" alt="Tecnología ambiental" class="rounded-lg w-full h-auto">
280
+ </div>
281
+ <div class="mt-6 flex justify-between items-center">
282
+ <div class="flex items-center space-x-2">
283
+ <i data-feather="map-pin" class="text-red-400"></i>
284
+ <span class="text-gray-300">Lima, Perú</span>
285
+ </div>
286
+ <div class="flex space-x-4">
287
+ <a href="#" class="text-gray-400 hover:text-green-400 transition"><i data-feather="twitter"></i></a>
288
+ <a href="#" class="text-gray-400 hover:text-green-400 transition"><i data-feather="facebook"></i></a>
289
+ <a href="#" class="text-gray-400 hover:text-green-400 transition"><i data-feather="linkedin"></i></a>
290
+ </div>
291
+ </div>
292
+ </div>
293
+ </div>
294
+ </div>
295
+ </section>
296
+
297
+ <!-- Footer -->
298
+ <footer class="relative z-10 py-12 px-4 sm:px-6 lg:px-8 bg-gray-900 bg-opacity-80">
299
+ <div class="max-w-7xl mx-auto">
300
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
301
+ <div>
302
+ <div class="flex items-center space-x-2 mb-4">
303
+ <i data-feather="leaf" class="text-green-400"></i>
304
+ <h3 class="futuristic-text text-xl font-bold gradient-text">EcoTokenX</h3>
305
+ </div>
306
+ <p class="text-gray-400 text-sm">
307
+ Plataforma de monitoreo ambiental y economía circular basada en blockchain.
308
+ </p>
309
+ </div>
310
+
311
+ <div>
312
+ <h4 class="futuristic-text text-lg font-semibold mb-4">Explorar</h4>
313
+ <ul class="space-y-2">
314
+ <li><a href="#" class="text-gray-400 hover:text-green-400 transition text-sm">Dashboard</a></li>
315
+ <li><a href="#" class="text-gray-400 hover:text-green-400 transition text-sm">Métricas</a></li>
316
+ <li><a href="#" class="text-gray-400 hover:text-green-400 transition text-sm">Recompensas</a></li>
317
+ <li><a href="#" class="text-gray-400 hover:text-green-400 transition text-sm">Documentación</a></li>
318
+ </ul>
319
+ </div>
320
+
321
+ <div>
322
+ <h4 class="futuristic-text text-lg font-semibold mb-4">Legal</h4>
323
+ <ul class="space-y-2">
324
+ <li><a href="#" class="text-gray-400 hover:text-green-400 transition text-sm">Términos</a></li>
325
+ <li><a href="#" class="text-gray-400 hover:text-green-400 transition text-sm">Privacidad</a></li>
326
+ <li><a href="#" class="text-gray-400 hover:text-green-400 transition text-sm">Cookies</a></li>
327
+ <li><a href="#" class="text-gray-400 hover:text-green-400 transition text-sm">Licencias</a></li>
328
+ </ul>
329
+ </div>
330
+
331
+ <div>
332
+ <h4 class="futuristic-text text-lg font-semibold mb-4">Suscríbete</h4>
333
+ <p class="text-gray-400 text-sm mb-4">
334
+ Recibe actualizaciones sobre nuevos sensores y oportunidades de ganar tokens.
335
+ </p>
336
+ <div class="flex">
337
+ <input type="email" placeholder="Tu email" class="bg-gray-800 text-white px-4 py-2 rounded-l-lg focus:outline-none focus:ring-2 focus:ring-green-500 w-full">
338
+ <button class="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-r-lg transition">
339
+ <i data-feather="send"></i>
340
+ </button>
341
+ </div>
342
+ </div>
343
+ </div>
344
+
345
+ <div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
346
+ <p class="text-gray-500 text-sm">
347
+ © 2023 Perú Recicla. Todos los derechos reservados.
348
+ </p>
349
+ <div class="flex space-x-6 mt-4 md:mt-0">
350
+ <a href="#" class="text-gray-500 hover:text-green-400 transition"><i data-feather="github"></i></a>
351
+ <a href="#" class="text-gray-500 hover:text-green-400 transition"><i data-feather="twitter"></i></a>
352
+ <a href="#" class="text-gray-500 hover:text-green-400 transition"><i data-feather="linkedin"></i></a>
353
+ <a href="#" class="text-gray-500 hover:text-green-400 transition"><i data-feather="youtube"></i></a>
354
+ </div>
355
+ </div>
356
+ </div>
357
+ </footer>
358
+
359
+ <!-- Scripts -->
360
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
361
+ <script>
362
+ // Initialize Vanta.js background
363
+ VANTA.NET({
364
+ el: "#vanta-bg",
365
+ mouseControls: true,
366
+ touchControls: true,
367
+ gyroControls: false,
368
+ minHeight: 200.00,
369
+ minWidth: 200.00,
370
+ scale: 1.00,
371
+ scaleMobile: 1.00,
372
+ color: 0x3aff8f,
373
+ backgroundColor: 0x111827,
374
+ points: 10.00,
375
+ maxDistance: 20.00,
376
+ spacing: 16.00
377
+ });
378
+
379
+ // Initialize charts
380
+ document.addEventListener('DOMContentLoaded', function() {
381
+ feather.replace();
382
+
383
+ // Air Pollution Chart
384
+ const airPollutionCtx = document.getElementById('airPollutionChart').getContext('2d');
385
+ const airPollutionChart = new Chart(airPollutionCtx, {
386
+ type: 'bar',
387
+ data: {
388
+ labels: ['PM2.5', 'PM10', 'NO2', 'SO2', 'CO', 'O3'],
389
+ datasets: [{
390
+ label: 'µg/m³',
391
+ data: [35, 50, 40, 20, 2, 60],
392
+ backgroundColor: [
393
+ 'rgba(75, 192, 192, 0.7)',
394
+ 'rgba(54, 162, 235, 0.7)',
395
+ 'rgba(255, 99, 132, 0.7)',
396
+ 'rgba(255, 206, 86, 0.7)',
397
+ 'rgba(153, 102, 255, 0.7)',
398
+ 'rgba(255, 159, 64, 0.7)'
399
+ ],
400
+ borderColor: [
401
+ 'rgba(75, 192, 192, 1)',
402
+ 'rgba(54, 162, 235, 1)',
403
+ 'rgba(255, 99, 132, 1)',
404
+ 'rgba(255, 206, 86, 1)',
405
+ 'rgba(153, 102, 255, 1)',
406
+ 'rgba(255, 159, 64, 1)'
407
+ ],
408
+ borderWidth: 1
409
+ }]
410
+ },
411
+ options: {
412
+ responsive: true,
413
+ maintainAspectRatio: false,
414
+ scales: {
415
+ y: {
416
+ beginAtZero: true,
417
+ grid: {
418
+ color: 'rgba(255, 255, 255, 0.1)'
419
+ },
420
+ ticks: {
421
+ color: 'rgba(255, 255, 255, 0.7)'
422
+ }
423
+ },
424
+ x: {
425
+ grid: {
426
+ color: 'rgba(255, 255, 255, 0.1)'
427
+ },
428
+ ticks: {
429
+ color: 'rgba(255, 255, 255, 0.7)'
430
+ }
431
+ }
432
+ },
433
+ plugins: {
434
+ legend: {
435
+ labels: {
436
+ color: 'rgba(255, 255, 255, 0.7)'
437
+ }
438
+ }
439
+ }
440
+ }
441
+ });
442
+
443
+ // Recycling Chart
444
+ const recyclingCtx = document.getElementById('recyclingChart').getContext('2d');
445
+ const recyclingChart = new Chart(recyclingCtx, {
446
+ type: 'doughnut',
447
+ data: {
448
+ labels: ['Lima', 'Arequipa', 'Cusco', 'Trujillo', 'Iquitos'],
449
+ datasets: [{
450
+ label: 'Kg Reciclados',
451
+ data: [450, 300, 250, 200, 150],
452
+ backgroundColor: [
453
+ 'rgba(74, 222, 128, 0.7)',
454
+ 'rgba(52, 211, 153, 0.7)',
455
+ 'rgba(34, 211, 238, 0.7)',
456
+ 'rgba(129, 140, 248, 0.7)',
457
+ 'rgba(244, 114, 182, 0.7)'
458
+ ],
459
+ borderColor: [
460
+ 'rgba(74, 222, 128, 1)',
461
+ 'rgba(52, 211, 153, 1)',
462
+ 'rgba(34, 211, 238, 1)',
463
+ 'rgba(129, 140, 248, 1)',
464
+ 'rgba(244, 114, 182, 1)'
465
+ ],
466
+ borderWidth: 1
467
+ }]
468
+ },
469
+ options: {
470
+ responsive: true,
471
+ maintainAspectRatio: false,
472
+ plugins: {
473
+ legend: {
474
+ position: 'right',
475
+ labels: {
476
+ color: 'rgba(255, 255, 255, 0.7)'
477
+ }
478
+ }
479
+ }
480
+ }
481
+ });
482
+ });
483
+ </script>
484
+ </body>
485
  </html>