File size: 34,962 Bytes
0cec5eb |
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 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 |
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Configuración - QuantumTrading Nexus</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.iife.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
* {
font-family: 'Inter', sans-serif;
}
.dark {
background: #0a0a0a;
}
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.glass-effect {
background: rgba(17, 25, 40, 0.75);
backdrop-filter: blur(16px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.125);
}
.cyber-grid {
background-image:
linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
background-size: 50px 50px;
}
.pulse-animation {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.hover-scale {
transition: transform 0.3s ease;
}
.hover-scale:hover {
transform: scale(1.05);
}
.text-gradient {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.toggle-switch {
position: relative;
width: 48px;
height: 24px;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #374151;
transition: .4s;
border-radius: 24px;
}
.toggle-slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .toggle-slider {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
input:checked + .toggle-slider:before {
transform: translateX(24px);
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 4px;
}
</style>
</head>
<body class="bg-gray-950 text-gray-100 min-h-screen cyber-grid">
<!-- Navigation Header -->
<nav class="glass-effect fixed top-0 w-full z-50 px-6 py-4">
<div class="max-w-7xl mx-auto flex justify-between items-center">
<div class="flex items-center space-x-4">
<div class="w-10 h-10 gradient-bg rounded-lg flex items-center justify-center">
<i data-feather="trending-up" class="w-6 h-6 text-white"></i>
</div>
<h1 class="text-2xl font-bold text-gradient">QuantumTrading Nexus</h1>
</div>
<div class="hidden md:flex items-center space-x-6">
<a href="index.html" class="text-gray-300 hover:text-white transition-colors">Dashboard</a>
<a href="signals.html" class="text-gray-300 hover:text-white transition-colors">Señales</a>
<a href="strategies.html" class="text-gray-300 hover:text-white transition-colors">Estrategias</a>
<a href="analytics.html" class="text-gray-300 hover:text-white transition-colors">Análisis</a>
<a href="settings.html" class="text-white">Configuración</a>
</div>
<div class="flex items-center space-x-4">
<button class="relative p-2 glass-effect rounded-lg hover-scale">
<i data-feather="bell" class="w-5 h-5"></i>
<span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full pulse-animation"></span>
</button>
<button class="p-2 glass-effect rounded-lg hover-scale">
<i data-feather="settings" class="w-5 h-5"></i>
</button>
<div class="w-10 h-10 rounded-full bg-gradient-to-r from-purple-500 to-pink-500"></div>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="pt-20 px-6 pb-10">
<div class="max-w-7xl mx-auto">
<!-- Page Header -->
<div class="mb-6">
<h1 class="text-3xl font-bold mb-2">Configuración del Sistema</h1>
<p class="text-gray-400">Gestiona las preferencias y parámetros del sistema</p>
</div>
<!-- Settings Navigation -->
<div class="flex flex-wrap gap-2 mb-6">
<button class="px-4 py-2 gradient-bg rounded-lg text-sm" onclick="showSection('general')">General</button>
<button class="px-4 py-2 glass-effect rounded-lg text-sm hover-scale" onclick="showSection('trading')">Trading</button>
<button class="px-4 py-2 glass-effect rounded-lg text-sm hover-scale" onclick="showSection('notifications')">Notificaciones</button>
<button class="px-4 py-2 glass-effect rounded-lg text-sm hover-scale" onclick="showSection('security')">Seguridad</button>
<button class="px-4 py-2 glass-effect rounded-lg text-sm hover-scale" onclick="showSection('api')">API</button>
<button class="px-4 py-2 glass-effect rounded-lg text-sm hover-scale" onclick="showSection('advanced')">Avanzado</button>
</div>
<!-- General Settings -->
<section id="general" class="space-y-6">
<div class="glass-effect rounded-xl p-6">
<h2 class="text-xl font-semibold mb-6">Configuración General</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Idioma</label>
<select class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
<option>Español</option>
<option>English</option>
<option>Português</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Zona Horaria</label>
<select class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
<option>GMT-5 (New York)</option>
<option>GMT+0 (London)</option>
<option>GMT+1 (Berlin)</option>
<option>GMT+8 (Singapore)</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Moneda Base</label>
<select class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
<option>USD</option>
<option>EUR</option>
<option>GBP</option>
<option>JPY</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Formato de Fecha</label>
<select class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
<option>DD/MM/YYYY</option>
<option>MM/DD/YYYY</option>
<option>YYYY-MM-DD</option>
</select>
</div>
</div>
<div class="mt-6 space-y-4">
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Modo Oscuro</h3>
<p class="text-sm text-gray-400">Activar tema oscuro por defecto</p>
</div>
<label class="toggle-switch">
<input type="checkbox" checked>
<span class="toggle-slider"></span>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Animaciones</h3>
<p class="text-sm text-gray-400">Habilitar animaciones de la interfaz</p>
</div>
<label class="toggle-switch">
<input type="checkbox" checked>
<span class="toggle-slider"></span>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Sonidos</h3>
<p class="text-sm text-gray-400">Reproducir sonidos de notificación</p>
</div>
<label class="toggle-switch">
<input type="checkbox">
<span class="toggle-slider"></span>
</label>
</div>
</div>
</div>
</section>
<!-- Trading Settings -->
<section id="trading" class="space-y-6 hidden">
<div class="glass-effect rounded-xl p-6">
<h2 class="text-xl font-semibold mb-6">Configuración de Trading</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Tamaño de Posición por Defecto</label>
<input type="number" value="1000" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Stop Loss por Defecto (%)</label>
<input type="number" value="2" step="0.1" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Take Profit por Defecto (%)</label>
<input type="number" value="4" step="0.1" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Máximo de Trades Simultáneos</label>
<input type="number" value="5" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
</div>
<div class="mt-6 space-y-4">
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Trading Automático</h3>
<p class="text-sm text-gray-400">Ejecutar trades automáticamente</p>
</div>
<label class="toggle-switch">
<input type="checkbox" checked>
<span class="toggle-slider"></span>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Confirmación antes de Trade</h3>
<p class="text-sm text-gray-400">Requerir confirmación manual</p>
</div>
<label class="toggle-switch">
<input type="checkbox">
<span class="toggle-slider"></span>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Gestión de Riesgo Avanzada</h3>
<p class="text-sm text-gray-400">Aplicar reglas de riesgo estrictas</p>
</div>
<label class="toggle-switch">
<input type="checkbox" checked>
<span class="toggle-slider"></span>
</label>
</div>
</div>
</div>
<div class="glass-effect rounded-xl p-6">
<h2 class="text-xl font-semibold mb-6">Conexión con MetaTrader 5</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Servidor</label>
<input type="text" placeholder="MT5 Server" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Número de Cuenta</label>
<input type="text" placeholder="12345678" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Contraseña</label>
<input type="password" placeholder="••••••••" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
<div class="flex items-end">
<button class="px-4 py-2 gradient-bg rounded-lg hover-scale">Conectar</button>
</div>
</div>
<div class="mt-4 p-3 bg-green-500/10 rounded-lg flex items-center space-x-2">
<i data-feather="check-circle" class="w-5 h-5 text-green-400"></i>
<span class="text-green-400 text-sm">Conectado a MT5 Demo Account</span>
</div>
</div>
</section>
<!-- Notification Settings -->
<section id="notifications" class="space-y-6 hidden">
<div class="glass-effect rounded-xl p-6">
<h2 class="text-xl font-semibold mb-6">Configuración de Notificaciones</h2>
<div class="space-y-4">
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Notificaciones Push</h3>
<p class="text-sm text-gray-400">Recibir notificaciones en el navegador</p>
</div>
<label class="toggle-switch">
<input type="checkbox" checked>
<span class="toggle-slider"></span>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Notificaciones por Email</h3>
<p class="text-sm text-gray-400">Enviar alertas al correo electrónico</p>
</div>
<label class="toggle-switch">
<input type="checkbox" checked>
<span class="toggle-slider"></span>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Telegram Bot</h3>
<p class="text-sm text-gray-400">Recibir notificaciones en Telegram</p>
</div>
<label class="toggle-switch">
<input type="checkbox">
<span class="toggle-slider"></span>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">SMS</h3>
<p class="text-sm text-gray-400">Alertas críticas por SMS</p>
</div>
<label class="toggle-switch">
<input type="checkbox">
<span class="toggle-slider"></span>
</label>
</div>
</div>
<div class="mt-6">
<h3 class="font-medium mb-4">Tipos de Notificaciones</h3>
<div class="space-y-3">
<label class="flex items-center space-x-3">
<input type="checkbox" checked class="rounded">
<span>Nuevas señales de trading</span>
</label>
<label class="flex items-center space-x-3">
<input type="checkbox" checked class="rounded">
<span>Trades ejecutados</span>
</label>
<label class="flex items-center space-x-3">
<input type="checkbox" checked class="rounded">
<span>Alertas de riesgo</span>
</label>
<label class="flex items-center space-x-3">
<input type="checkbox" class="rounded">
<span>Resumen diario</span>
</label>
<label class="flex items-center space-x-3">
<input type="checkbox" checked class="rounded">
<span>Alertas del sistema</span>
</label>
</div>
</div>
</div>
</section>
<!-- Security Settings -->
<section id="security" class="space-y-6 hidden">
<div class="glass-effect rounded-xl p-6">
<h2 class="text-xl font-semibold mb-6">Configuración de Seguridad</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Contraseña Actual</label>
<input type="password" placeholder="••••••••" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Nueva Contraseña</label>
<input type="password" placeholder="••••••••" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Confirmar Contraseña</label>
<input type="password" placeholder="••••••••" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
<div>
<label class="block text-sm font-medium text-gray-400 mb-2">Email de Recuperación</label>
<input type="email" placeholder="user@example.com" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
</div>
<div class="mt-6 space-y-4">
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Autenticación de Dos Factores</h3>
<p class="text-sm text-gray-400">Añadir capa extra de seguridad</p>
</div>
<label class="toggle-switch">
<input type="checkbox">
<span class="toggle-slider"></span>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Login Biométrico</h3>
<p class="text-sm text-gray-400">Usar huella o Face ID</p>
</div>
<label class="toggle-switch">
<input type="checkbox">
<span class="toggle-slider"></span>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Sesiones Activas</h3>
<p class="text-sm text-gray-400">3 dispositivos conectados</p>
</div>
<button class="px-3 py-1 text-sm glass-effect rounded-lg hover-scale">Gestionar</button>
</div>
</div>
</div>
</section>
<!-- API Settings -->
<section id="api" class="space-y-6 hidden">
<div class="glass-effect rounded-xl p-6">
<h2 class="text-xl font-semibold mb-6">Configuración API</h2>
<div class="space-y-4">
<div>
<h3 class="font-medium mb-3">Claves API</h3>
<div class="space-y-3">
<div class="glass-effect rounded-lg p-4">
<div class="flex items-center justify-between">
<div>
<p class="font-medium">API Key Principal</p>
<p class="text-sm text-gray-400">Creada: 15/01/2024</p>
</div>
<div class="flex space-x-2">
<button class="p-2 glass-effect rounded-lg hover-scale">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="p-2 glass-effect rounded-lg hover-scale">
<i data-feather="copy" class="w-4 h-4"></i>
</button>
<button class="p-2 glass-effect rounded-lg hover-scale">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
<button class="w-full px-4 py-2 gradient-bg rounded-lg hover-scale flex items-center justify-center space-x-2">
<i data-feather="plus" class="w-4 h-4"></i>
<span>Generar Nueva API Key</span>
</button>
</div>
</div>
<div>
<h3 class="font-medium mb-3">Permisos de API</h3>
<div class="space-y-3">
<label class="flex items-center space-x-3">
<input type="checkbox" checked class="rounded">
<span>Leer datos de mercado</span>
</label>
<label class="flex items-center space-x-3">
<input type="checkbox" checked class="rounded">
<span>Crear señales</span>
</label>
<label class="flex items-center space-x-3">
<input type="checkbox" checked class="rounded">
<span>Ejecutar trades</span>
</label>
<label class="flex items-center space-x-3">
<input type="checkbox" class="rounded">
<span>Acceso a datos históricos</span>
</label>
</div>
</div>
<div>
<h3 class="font-medium mb-3">Límites de Tasa</h3>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<label class="block text-sm text-gray-400 mb-2">Requests por minuto</label>
<input type="number" value="100" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
<div>
<label class="block text-sm text-gray-400 mb-2">Requests por hora</label>
<input type="number" value="5000" class="w-full glass-effect rounded-lg px-4 py-2 bg-transparent outline-none">
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Advanced Settings -->
<section id="advanced" class="space-y-6 hidden">
<div class="glass-effect rounded-xl p-6">
<h2 class="text-xl font-semibold mb-6">Configuración Avanzada</h2>
<div class="space-y-4">
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Modo Debug</h3>
<p class="text-sm text-gray-400">Activar logs detallados del sistema</p>
</div>
<label class="toggle-switch">
<input type="checkbox">
<span class="toggle-slider"></span>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Cache de Datos</h3>
<p class="text-sm text-gray-400">Almacenar datos localmente</p>
</div>
<label class="toggle-switch">
<input type="checkbox" checked>
<span class="toggle-slider"></span>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<h3 class="font-medium">Optimización de ML</h3>
<p class="text-sm text-gray-400">Usar GPU para procesamiento</p>
</div>
<label class="toggle-switch">
<input type="checkbox" checked>
<span class="toggle-slider"></span>
</label>
</div>
<div>
<h3 class="font-medium mb-3">Limpieza de Datos</h3>
<div class="space-y-3">
<button class="w-full px-4 py-2 glass-effect rounded-lg hover-scale text-left">
<div class="flex items-center justify-between">
<span>Limpiar cache de indicadores</span>
<span class="text-sm text-gray-400">245 MB</span>
</div>
</button>
<button class="w-full px-4 py-2 glass-effect rounded-lg hover-scale text-left">
<div class="flex items-center justify-between">
<span>Limpiar logs antiguos</span>
<span class="text-sm text-gray-400">1.2 GB</span>
</div>
</button>
<button class="w-full px-4 py-2 glass-effect rounded-lg hover-scale text-left">
<div class="flex items-center justify-between">
<span>Resetear configuración</span>
<i data-feather="alert-triangle" class="w-4 h-4 text-orange-400"></i>
</div>
</button>
</div>
</div>
</div>
</div>
</section>
<!-- Save Button -->
<div class="flex justify-end mt-6">
<button class="px-6 py-3 gradient-bg rounded-lg hover-scale flex items-center space-x-2">
<i data-feather="save" class="w-5 h-5"></i>
<span>Guardar Cambios</span>
</button>
</div>
</div>
</main>
<script>
// Initialize Feather Icons
feather.replace();
// Section switching
function showSection(sectionId) {
// Hide all sections
document.querySelectorAll('section').forEach(section => {
section.classList.add('hidden');
});
// Show selected section
document.getElementById(sectionId).classList.remove('hidden');
// Update button styles
document.querySelectorAll('button[onclick^="showSection"]').forEach(btn => {
btn.classList.remove('gradient-bg');
btn.classList.add('glass-effect');
});
// Highlight active button
event.target.classList.remove('glass-effect');
event.target.classList.add('gradient-bg');
// Add animation
anime({
targets: '#' + sectionId,
translateY: [20, 0],
opacity: [0, 1],
duration: 500,
easing: 'easeOutQuad'
});
}
// Add animations on load
anime({
targets: '.glass-effect',
translateY: [20, 0],
opacity: [0, 1],
delay: anime.stagger(100),
duration: 600,
easing: 'easeOutQuad'
});
</script>
</body>
</html>
|