File size: 20,426 Bytes
837480d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Mi Cuenta - FlashLoan</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        body {
            font-family: 'Inter', sans-serif;
        }
        .payment-card {
            transition: all 0.3s ease;
        }
        .payment-card:hover {
            transform: translateY(-3px);
        }
        .status-pending {
            color: #f59e0b;
        }
        .status-paid {
            color: #10b981;
        }
        .status-late {
            color: #ef4444;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Header -->
    <header class="bg-white bg-opacity-90 shadow-sm">
        <div class="container mx-auto px-4 py-4 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <div class="bg-amber-500 p-2 rounded-lg">
                    <i data-feather="zap" class="text-white"></i>
                </div>
                <h1 class="text-2xl font-bold text-gray-800">Flash<span class="text-amber-500">Loan</span></h1>
            </div>
            <nav class="hidden md:flex space-x-8">
                <a href="index.html" class="text-gray-600 hover:text-amber-500 font-medium">Inicio</a>
                <a href="como_funciona.html" class="text-gray-600 hover:text-amber-500 font-medium">Cómo funciona</a>
                <a href="beneficios.html" class="text-gray-600 hover:text-amber-500 font-medium">Beneficios</a>
                <a href="#" class="text-gray-600 hover:text-amber-500 font-medium">FAQ</a>
                <a href="solicitar.html" class="text-gray-600 hover:text-amber-500 font-medium">Solicitar Préstamo</a>
            </nav>
            <div class="flex items-center space-x-4">
                <div class="hidden md:block relative group">
                    <button class="px-4 py-2 text-gray-600 hover:text-amber-500 font-medium flex items-center">
                        <i data-feather="user" class="mr-2"></i> Juan Pérez
                        <i data-feather="chevron-down" class="ml-1"></i>
                    </button>
                    <div class="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 hidden group-hover:block">
                        <a href="mi_cuenta.html" class="block px-4 py-2 text-gray-700 hover:bg-amber-50">Mi cuenta</a>
                        <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-amber-50">Configuración</a>
                        <a href="index.html" class="block px-4 py-2 text-gray-700 hover:bg-amber-50">Cerrar sesión</a>
                    </div>
                </div>
                <a href="solicitar.html" class="bg-amber-500 hover:bg-amber-600 text-white px-6 py-2 rounded-lg font-medium transition duration-300 shadow-md">
                    Solicitar préstamo
                </a>
                <button class="md:hidden">
                    <i data-feather="menu"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- Dashboard -->
    <div class="container mx-auto px-4 py-8">
        <div class="flex flex-col md:flex-row gap-8">
            <!-- Sidebar -->
            <div class="w-full md:w-64 bg-white rounded-lg shadow-sm p-6 h-fit">
                <div class="flex items-center mb-8">
                    <img src="http://static.photos/people/200x200/401" class="w-12 h-12 rounded-full mr-4">
                    <div>
                        <h3 class="font-bold text-gray-800">Juan Pérez</h3>
                        <p class="text-sm text-gray-500">Cliente desde 2023</p>
                    </div>
                </div>
                <nav class="space-y-2">
                    <a href="mi_cuenta.html" class="block px-4 py-2 bg-amber-50 text-amber-600 rounded-lg font-medium">
                        <i data-feather="home" class="inline mr-2 w-4 h-4"></i> Resumen
                    </a>
                    <a href="#" class="block px-4 py-2 text-gray-600 hover:bg-amber-50 hover:text-amber-600 rounded-lg">
                        <i data-feather="dollar-sign" class="inline mr-2 w-4 h-4"></i> Mis préstamos
                    </a>
                    <a href="#" class="block px-4 py-2 text-gray-600 hover:bg-amber-50 hover:text-amber-600 rounded-lg">
                        <i data-feather="credit-card" class="inline mr-2 w-4 h-4"></i> Métodos de pago
                    </a>
                    <a href="#" class="block px-4 py-2 text-gray-600 hover:bg-amber-50 hover:text-amber-600 rounded-lg">
                        <i data-feather="settings" class="inline mr-2 w-4 h-4"></i> Configuración
                    </a>
                    <a href="index.html" class="block px-4 py-2 text-gray-600 hover:bg-amber-50 hover:text-amber-600 rounded-lg">
                        <i data-feather="log-out" class="inline mr-2 w-4 h-4"></i> Cerrar sesión
                    </a>
                </nav>
            </div>

            <!-- Main Content -->
            <div class="flex-1">
                <!-- Welcome Card -->
                <div class="bg-gradient-to-r from-amber-500 to-amber-600 rounded-lg p-6 text-white mb-8">
                    <div class="flex flex-col md:flex-row justify-between items-start md:items-center">
                        <div>
                            <h2 class="text-2xl font-bold mb-2">¡Bienvenido de nuevo, Juan!</h2>
                            <p class="mb-4">Revisa tus préstamos activos y próximos pagos.</p>
                            <a href="solicitar.html" class="inline-block bg-white text-amber-600 hover:bg-gray-100 px-6 py-2 rounded-lg font-medium transition duration-300">
                                Solicitar nuevo préstamo
                            </a>
                        </div>
                        <div class="mt-4 md:mt-0">
                            <div class="bg-white bg-opacity-20 rounded-lg p-4 text-center">
                                <p class="text-sm mb-1">Puntuación crediticia</p>
                                <div class="text-2xl font-bold">720</div>
                                <div class="flex justify-center mt-1">
                                    <i data-feather="trending-up" class="text-green-300 w-4 h-4"></i>
                                    <span class="text-xs ml-1">+10 desde el mes pasado</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Active Loans -->
                <div class="bg-white rounded-lg shadow-sm p-6 mb-8">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-xl font-bold text-gray-800">Préstamos activos</h3>
                        <a href="#" class="text-amber-500 hover:text-amber-600 text-sm font-medium">Ver todos</a>
                    </div>
                    <div class="overflow-x-auto">
                        <table class="w-full">
                            <thead>
                                <tr class="text-left text-gray-500 border-b">
                                    <th class="pb-3">Préstamo</th>
                                    <th class="pb-3">Monto</th>
                                    <th class="pb-3">Tasa</th>
                                    <th class="pb-3">Plazo</th>
                                    <th class="pb-3">Estado</th>
                                    <th class="pb-3"></th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="border-b hover:bg-gray-50">
                                    <td class="py-4">#FL-2023-001</td>
                                    <td class="py-4 font-medium">$5.000.000</td>
                                    <td class="py-4">1.2% mensual</td>
                                    <td class="py-4">12 meses</td>
                                    <td class="py-4">
                                        <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded">Activo</span>
                                    </td>
                                    <td class="py-4 text-right">
                                        <a href="#" class="text-amber-500 hover:text-amber-600 font-medium text-sm">Ver detalles</a>
                                    </td>
                                </tr>
                                <tr class="border-b hover:bg-gray-50">
                                    <td class="py-4">#FL-2023-002</td>
                                    <td class="py-4 font-medium">$3.500.000</td>
                                    <td class="py-4">1.5% mensual</td>
                                    <td class="py-4">6 meses</td>
                                    <td class="py-4">
                                        <span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">Pagado</span>
                                    </td>
                                    <td class="py-4 text-right">
                                        <a href="#" class="text-amber-500 hover:text-amber-600 font-medium text-sm">Ver detalles</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                <!-- Payments -->
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
                    <!-- Next Payment -->
                    <div class="bg-white rounded-lg shadow-sm p-6">
                        <h3 class="text-xl font-bold text-gray-800 mb-6">Próximo pago</h3>
                        <div class="bg-amber-50 rounded-lg p-4 mb-6">
                            <div class="flex justify-between items-center">
                                <div>
                                    <p class="text-sm text-gray-600">Cuota #3/12</p>
                                    <p class="text-xl font-bold">$450.000</p>
                                </div>
                                <div class="text-right">
                                    <p class="text-sm text-gray-600">Vence el</p>
                                    <p class="font-medium">15 Enero 2024</p>
                                </div>
                            </div>
                        </div>
                        <div class="flex justify-between mb-3">
                            <span class="text-gray-600">Monto del préstamo:</span>
                            <span class="font-medium">$5.000.000</span>
                        </div>
                        <div class="flex justify-between mb-3">
                            <span class="text-gray-600">Saldo pendiente:</span>
                            <span class="font-medium">$4.100.000</span>
                        </div>
                        <div class="flex justify-between mb-6">
                            <span class="text-gray-600">Total pagado:</span>
                            <span class="font-medium">$900.000</span>
                        </div>
                        <button class="w-full bg-amber-500 hover:bg-amber-600 text-white py-3 rounded-lg font-medium transition duration-300 shadow-md">
                            Pagar ahora
                        </button>
                    </div>

                    <!-- Payment History -->
                    <div class="bg-white rounded-lg shadow-sm p-6">
                        <div class="flex justify-between items-center mb-6">
                            <h3 class="text-xl font-bold text-gray-800">Historial de pagos</h3>
                            <a href="#" class="text-amber-500 hover:text-amber-600 text-sm font-medium">Ver todos</a>
                        </div>
                        <div class="space-y-4">
                            <div class="border-b pb-4">
                                <div class="flex justify-between mb-2">
                                    <span class="font-medium">Cuota #2/12</span>
                                    <span class="font-bold">$450.000</span>
                                </div>
                                <div class="flex justify-between text-sm text-gray-600">
                                    <span>Pagado el 15/12/2023</span>
                                    <span class="text-green-500">Pagado</span>
                                </div>
                            </div>
                            <div class="border-b pb-4">
                                <div class="flex justify-between mb-2">
                                    <span class="font-medium">Cuota #1/12</span>
                                    <span class="font-bold">$450.000</span>
                                </div>
                                <div class="flex justify-between text-sm text-gray-600">
                                    <span>Pagado el 15/11/2023</span>
                                    <span class="text-green-500">Pagado</span>
                                </div>
                            </div>
                            <div class="border-b pb-4">
                                <div class="flex justify-between mb-2">
                                    <span class="font-medium">Comisión de apertura</span>
                                    <span class="font-bold">$0</span>
                                </div>
                                <div class="flex justify-between text-sm text-gray-600">
                                    <span>Pagado el 15/10/2023</span>
                                    <span class="text-green-500">Pagado</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Payment Chart -->
                <div class="bg-white rounded-lg shadow-sm p-6">
                    <h3 class="text-xl font-bold text-gray-800 mb-6">Resumen de pagos</h3>
                    <div style="height: 300px;">
                        <canvas id="paymentChart"></canvas>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white py-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <div class="flex items-center space-x-2 mb-4">
                        <div class="bg-amber-500 p-2 rounded-lg">
                            <i data-feather="zap" class="text-white"></i>
                        </div>
                        <h3 class="text-xl font-bold">Flash<span class="text-amber-500">Loan</span></h3>
                    </div>
                    <p class="text-gray-400 mb-4">La forma más rápida y sencilla de obtener dinero cuando lo necesites.</p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white">
                            <i data-feather="facebook"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white">
                            <i data-feather="twitter"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white">
                            <i data-feather="instagram"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white">
                            <i data-feather="linkedin"></i>
                        </a>
                    </div>
                </div>
                <div>
                    <h4 class="text-lg font-bold mb-4">Enlaces útiles</h4>
                    <ul class="space-y-2">
                        <li><a href="index.html" class="text-gray-400 hover:text-white">Inicio</a></li>
                        <li><a href="como_funciona.html" class="text-gray-400 hover:text-white">Cómo funciona</a></li>
                        <li><a href="beneficios.html" class="text-gray-400 hover:text-white">Beneficios</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">FAQ</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Contacto</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="text-lg font-bold mb-4">Legal</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white">Términos y condiciones</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Política de privacidad</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Información legal</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Defensa del consumidor</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="text-lg font-bold mb-4">Contacto</h4>
                    <ul class="space-y-2">
                        <li class="flex items-center">
                            <i data-feather="mail" class="text-gray-400 mr-2"></i>
                            <span class="text-gray-400">hola@flashloan.cl</span>
                        </li>
                        <li class="flex items-center">
                            <i data-feather="phone" class="text-gray-400 mr-2"></i>
                            <span class="text-gray-400">+56 9 1234 5678</span>
                        </li>
                        <li class="flex items-center">
                            <i data-feather="map-pin" class="text-gray-400 mr-2"></i>
                            <span class="text-gray-400">Av. Providencia 1234, Santiago</span>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-12 pt-8 text-center text-gray-400">
                <p>© 2023 FlashLoan. Todos los derechos reservados.</p>
            </div>
        </div>
    </footer>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            feather.replace();
            
            // Initialize payment chart
            const ctx = document.getElementById('paymentChart').getContext('2d');
            const paymentChart = new Chart(ctx, {
                type: 'bar',
                data: {
                    labels: ['Oct', 'Nov', 'Dic', 'Ene', 'Feb', 'Mar'],
                    datasets: [{
                        label: 'Pagos realizados',
                        data: [500000, 450000, 450000, 0, 0, 0],
                        backgroundColor: '#f59e0b',
                        borderColor: '#d97706',
                        borderWidth: 1
                    }]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    scales: {
                        y: {
                            beginAtZero: true,
                            ticks: {
                                callback: function(value) {
                                    return '$' + value.toLocaleString();
                                }
                            }
                        }
                    },
                    plugins: {
                        tooltip: {
                            callbacks: {
                                label: function(context) {
                                    return '$' + context.raw.toLocaleString();
                                }
                            }
                        }
                    }
                }
            });
        });
    </script>
</body>
</html>