Spaces:
Running
Running
Desarrolle e implemente completamente una interfaz de usuario y experiencia UX/UI de vanguardia implementando el c贸digo en diferentes paginas independientes interconectadas, para la aplicaci贸n detallada en los siguientes diagramas, cumpliendo con los siguientes requisitos t茅cnicos y de dise帽o:
08ce598
verified
| <html lang="en" class="dark"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Dashboard - QuantumTrade Matrix</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> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <style> | |
| .glass-morphism { | |
| background: rgba(15, 23, 42, 0.7); | |
| backdrop-filter: blur(10px); | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .trading-card { | |
| background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%); | |
| border: 1px solid rgba(59, 130, 246, 0.3); | |
| transition: all 0.3s ease; | |
| } | |
| .trading-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3); | |
| } | |
| .quantum-button { | |
| background: linear-gradient(45deg, #3b82f6, #8b5cf6); | |
| transition: all 0.3s ease; | |
| } | |
| .quantum-button:hover { | |
| transform: translateY(-1px); | |
| box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4); | |
| } | |
| .signal-buy { | |
| background: #10b981; | |
| box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); | |
| } | |
| .signal-sell { | |
| background: #ef4444; | |
| box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); | |
| } | |
| .signal-hold { | |
| background: #f59e0b; | |
| box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); | |
| } | |
| .price-ticker { | |
| font-family: 'Courier New', monospace; | |
| font-weight: bold; | |
| font-size: 1.25rem; | |
| background: linear-gradient(135deg, #3b82f6, #8b5cf6); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| } | |
| .pulse { | |
| animation: pulse 2s infinite; | |
| } | |
| .chart-container { | |
| position: relative; | |
| height: 300px; | |
| } | |
| .floating-element { | |
| animation: float 6s ease-in-out infinite; | |
| } | |
| @keyframes float { | |
| 0%, 100% { transform: translateY(0px); } | |
| 50% { transform: translateY(-10px); } | |
| } | |
| .sidebar-item { | |
| transition: all 0.3s ease; | |
| border-left: 3px solid transparent; | |
| } | |
| .sidebar-item:hover { | |
| background: rgba(59, 130, 246, 0.1); | |
| border-left-color: #3b82f6; | |
| } | |
| .sidebar-item.active { | |
| background: rgba(59, 130, 246, 0.2); | |
| border-left-color: #3b82f6; | |
| } | |
| .metric-card { | |
| background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%); | |
| border: 1px solid rgba(59, 130, 246, 0.2); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-900 text-white"> | |
| <!-- Navigation --> | |
| <nav class="fixed top-0 w-full z-50 glass-morphism"> | |
| <div class="container mx-auto px-6 py-4"> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center"> | |
| <i data-feather="trending-up" class="w-6 h-6"></i> | |
| </div> | |
| <h1 class="text-2xl font-bold bg-gradient-to-r from-blue-400 to-purple-400 bg-clip-text text-transparent"> | |
| QuantumTrade Matrix | |
| </h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="hidden md:flex items-center space-x-2"> | |
| <div class="w-3 h-3 bg-green-500 rounded-full pulse"></div> | |
| <span class="text-sm">System Online</span> | |
| </div> | |
| <div class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center"> | |
| <i data-feather="user" class="w-5 h-5"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Main Layout --> | |
| <div class="flex pt-20"> | |
| <!-- Sidebar --> | |
| <aside class="fixed left-0 top-20 w-64 h-full bg-gray-900 bg-opacity-80 border-r border-gray-800 p-6 overflow-y-auto"> | |
| <nav class="space-y-2"> | |
| <a href="dashboard.html" class="sidebar-item active flex items-center space-x-3 p-3 rounded-lg"> | |
| <i data-feather="home" class="w-5 h-5"></i> | |
| <span>Dashboard</span> | |
| </a> | |
| <a href="signals.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg"> | |
| <i data-feather="radio" class="w-5 h-5"></i> | |
| <span>Signals</span> | |
| </a> | |
| <a href="strategies.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg"> | |
| <i data-feather="target" class="w-5 h-5"></i> | |
| <span>Strategies</span> | |
| </a> | |
| <a href="portfolio.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg"> | |
| <i data-feather="briefcase" class="w-5 h-5"></i> | |
| <span>Portfolio</span> | |
| </a> | |
| <a href="settings.html" class="sidebar-item flex items-center space-x-3 p-3 rounded-lg"> | |
| <i data-feather="settings" class="w-5 h-5"></i> | |
| <span>Settings</span> | |
| </a> | |
| </nav> | |
| <div class="mt-8 p-4 glass-morphism rounded-lg"> | |
| <h4 class="font-semibold mb-2">Quick Stats</h4> | |
| <div class="space-y-2 text-sm"> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-400">Active Signals</span> | |
| <span class="text-green-400">12</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-400">Win Rate</span> | |
| <span class="text-blue-400">78.5%</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-400">P&L Today</span> | |
| <span class="text-green-400">+$1,245</span> | |
| </div> | |
| </div> | |
| </div> | |
| </aside> | |
| <!-- Main Content --> | |
| <main class="ml-64 flex-1 p-6"> | |
| <!-- Top Metrics --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"> | |
| <div class="metric-card rounded-xl p-6"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <span class="text-gray-400">Total Balance</span> | |
| <i data-feather="dollar-sign" class="w-5 h-5 text-blue-400"></i> | |
| </div> | |
| <div class="text-3xl font-bold">$45,678</div> | |
| <div class="text-green-400 text-sm mt-2">+2.34% this week</div> | |
| </div> | |
| <div class="metric-card rounded-xl p-6"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <span class="text-gray-400">Active Positions</span> | |
| <i data-feather="activity" class="w-5 h-5 text-green-400"></i> | |
| </div> | |
| <div class="text-3xl font-bold">8</div> | |
| <div class="text-gray-400 text-sm mt-2">2 pending orders</div> | |
| </div> | |
| <div class="metric-card rounded-xl p-6"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <span class="text-gray-400">Today's P&L</span> | |
| <i data-feather="trending-up" class="w-5 h-5 text-purple-400"></i> | |
| </div> | |
| <div class="text-3xl font-bold text-green-400">+$1,245</div> | |
| <div class="text-green-400 text-sm mt-2">+2.8% today</div> | |
| </div> | |
| <div class="metric-card rounded-xl p-6"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <span class="text-gray-400">Win Rate</span> | |
| <i data-feather="target" class="w-5 h-5 text-yellow-400"></i> | |
| </div> | |
| <div class="text-3xl font-bold">78.5%</div> | |
| <div class="text-gray-400 text-sm mt-2">Last 30 days</div> | |
| </div> | |
| </div> | |
| <!-- Charts Section --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8"> | |
| <div class="trading-card rounded-xl p-6"> | |
| <h3 class="text-xl font-bold mb-4">Portfolio Performance</h3> | |
| <div class="chart-container"> | |
| <canvas id="portfolioChart"></canvas> | |
| </div> | |
| </div> | |
| <div class="trading-card rounded-xl p-6"> | |
| <h3 class="text-xl font-bold mb-4">Signal Accuracy</h3> | |
| <div class="chart-container"> | |
| <canvas id="accuracyChart"></canvas> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Active Signals --> | |
| <div class="trading-card rounded-xl p-6 mb-8"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <h3 class="text-xl font-bold">Active Signals</h3> | |
| <button class="quantum-button px-4 py-2 rounded-lg text-sm"> | |
| View All | |
| </button> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="w-full"> | |
| <thead> | |
| <tr class="border-b border-gray-700"> | |
| <th class="text-left py-3 px-4">Symbol</th> | |
| <th class="text-left py-3 px-4">Type</th> | |
| <th class="text-left py-3 px-4">Entry</th> | |
| <th class="text-left py-3 px-4">Current</th> | |
| <th class="text-left py-3 px-4">P&L</th> | |
| <th class="text-left py-3 px-4">Confidence</th> | |
| <th class="text-left py-3 px-4">Time</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr class="border-b border-gray-800 hover:bg-gray-800"> | |
| <td class="py-3 px-4"> | |
| <div class="flex items-center"> | |
| <span class="signal-indicator signal-buy"></span> | |
| EUR/USD | |
| </div> | |
| </td> | |
| <td class="py-3 px-4"> | |
| <span class="text-green-400">BUY</span> | |
| </td> | |
| <td class="py-3 px-4">1.0845</td> | |
| <td class="py-3 px-4 price-ticker">1.0856</td> | |
| <td class="py-3 px-4 text-green-400">+11 pips</td> | |
| <td class="py-3 px-4"> | |
| <div class="flex items-center"> | |
| <div class="w-16 bg-gray-700 rounded-full h-2 mr-2"> | |
| <div class="bg-green-500 h-2 rounded-full" style="width: 85%"></div> | |
| </div> | |
| <span class="text-sm">85%</span> | |
| </div> | |
| </td> | |
| <td class="py-3 px-4 text-gray-400">2 min ago</td> | |
| </tr> | |
| <tr class="border-b border-gray-800 hover:bg-gray-800"> | |
| <td class="py-3 px-4"> | |
| <div class="flex items-center"> | |
| <span class="signal-indicator signal-sell"></span> | |
| GBP/USD | |
| </div> | |
| </td> | |
| <td class="py-3 px-4"> | |
| <span class="text-red-400">SELL</span> | |
| </td> | |
| <td class="py-3 px-4">1.2755</td> | |
| <td class="py-3 px-4 price-ticker">1.2743</td> | |
| <td class="py-3 px-4 text-green-400">+12 pips</td> | |
| <td class="py-3 px-4"> | |
| <div class="flex items-center"> | |
| <div class="w-16 bg-gray-700 rounded-full h-2 mr-2"> | |
| <div class="bg-green-500 h-2 rounded-full" style="width: 78%"></div> | |
| </div> | |
| <span class="text-sm">78%</span> | |
| </div> | |
| </td> | |
| <td class="py-3 px-4 text-gray-400">5 min ago</td> | |
| </tr> | |
| <tr class="border-b border-gray-800 hover:bg-gray-800"> | |
| <td class="py-3 px-4"> | |
| <div class="flex items-center"> | |
| <span class="signal-indicator signal-hold"></span> | |
| USD/JPY | |
| </div> | |
| </td> | |
| <td class="py-3 px-4"> | |
| <span class="text-yellow-400">HOLD</span> | |
| </td> | |
| <td class="py-3 px-4">149.80</td> | |
| <td class="py-3 px-4 price-ticker">149.82</td> | |
| <td class="py-3 px-4 text-yellow-400">+2 pips</td> | |
| <td class="py-3 px-4"> | |
| <div class="flex items-center"> | |
| <div class="w-16 bg-gray-700 rounded-full h-2 mr-2"> | |
| <div class="bg-yellow-500 h-2 rounded-full" style="width: 65%"></div> | |
| </div> | |
| <span class="text-sm">65%</span> | |
| </div> | |
| </td> | |
| <td class="py-3 px-4 text-gray-400">8 min ago</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| <!-- Recent Activity --> | |
| <div class="trading-card rounded-xl p-6"> | |
| <h3 class="text-xl font-bold mb-6">Recent Activity</h3> | |
| <div class="space-y-4"> | |
| <div class="flex items-center justify-between p-4 bg-gray-800 bg-opacity-50 rounded-lg"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-10 h-10 bg-green-500 bg-opacity-20 rounded-full flex items-center justify-center"> | |
| <i data-feather="trending-up" class="w-5 h-5 text-green-400"></i> | |
| </div> | |
| <div> | |
| <p class="font-semibold">Signal Executed</p> | |
| <p class="text-sm text-gray-400">EUR/USD BUY at 1.0845</p> | |
| </div> | |
| </div> | |
| <span class="text-sm text-gray-400">2 min ago</span> | |
| </div> | |
| <div class="flex items-center justify-between p-4 bg-gray-800 bg-opacity-50 rounded-lg"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-10 h-10 bg-blue-500 bg-opacity-20 rounded-full flex items-center justify-center"> | |
| <i data-feather="cpu" class="w-5 h-5 text-blue-400"></i> | |
| </div> | |
| <div> | |
| <p class="font-semibold">ML Model Updated</p> | |
| <p class="text-sm text-gray-400">EUR/USD accuracy improved to 85%</p> | |
| </div> | |
| </div> | |
| <span class="text-sm text-gray-400">15 min ago</span> | |
| </div> | |
| <div class="flex items-center justify-between p-4 bg-gray-800 bg-opacity-50 rounded-lg"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-10 h-10 bg-purple-500 bg-opacity-20 rounded-full flex items-center justify-center"> | |
| <i data-feather="target" class="w-5 h-5 text-purple-400"></i> | |
| </div> | |
| <div> | |
| <p class="font-semibold">Strategy Optimized</p> | |
| <p class="text-sm text-gray-400">Scalping strategy parameters adjusted</p> | |
| </div> | |
| </div> | |
| <span class="text-sm text-gray-400">1 hour ago</span> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| <script> | |
| // Initialize charts | |
| const portfolioCtx = document.getElementById('portfolioChart').getContext('2d'); | |
| const portfolioChart = new Chart(portfolioCtx, { | |
| type: 'line', | |
| data: { | |
| labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], | |
| datasets: [{ | |
| label: 'Portfolio Value', | |
| data: [40000, 42000, 41000, 43500, 44000, 45678], | |
| borderColor: '#3b82f6', | |
| backgroundColor: 'rgba(59, 130, 246, 0.1)', | |
| tension: 0.4, | |
| fill: true | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| x: { | |
| grid: { | |
| color: 'rgba(255, 255, 255, 0.1)' | |
| }, | |
| ticks: { | |
| color: '#9ca3af' | |
| } | |
| }, | |
| y: { | |
| grid: { | |
| color: 'rgba(255, 255, 255, 0.1)' | |
| }, | |
| ticks: { | |
| color: '#9ca3af' | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| const accuracyCtx = document.getElementById('accuracyChart').getContext('2d'); | |
| const accuracyChart = new Chart(accuracyCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Win', 'Loss', 'Break Even'], | |
| datasets: [{ | |
| data: [78.5, 15.2, 6.3], | |
| backgroundColor: ['#10b981', '#ef4444', '#f59e0b'], | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| position: 'bottom', | |
| labels: { | |
| color: '#9ca3af', | |
| padding: 20 | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Simulate real-time updates | |
| function updateDashboard() { | |
| // Update prices | |
| const priceElements = document.querySelectorAll('.price-ticker'); | |
| priceElements.forEach(element => { | |
| const currentPrice = parseFloat(element.textContent); | |
| const change = (Math.random() - 0.5) * 0.001; | |
| const newPrice = currentPrice + change; | |
| element.textContent = newPrice.toFixed(4); | |
| }); | |
| // Update P&L | |
| const plElements = document.querySelectorAll('td.text-green-400, td.text-red-400, td.text-yellow-400'); | |
| plElements.forEach(element => { | |
| if (element.textContent.includes('pips')) { | |
| const currentPips = parseInt(element.textContent); | |
| const change = Math.floor((Math.random() - 0.5) * 3); | |
| const newPips = currentPips + change; | |
| element.textContent = `${newPips >= 0 ? '+' : ''}${newPips} pips`; | |
| element.className = newPips >= 0 ? 'py-3 px-4 text-green-400' : 'py-3 px-4 text-red-400'; | |
| } | |
| }); | |
| } | |
| setInterval(updateDashboard, 3000); | |
| // Add hover animations | |
| document.querySelectorAll('.trading-card').forEach(card => { | |
| card.addEventListener('mouseenter', function() { | |
| anime({ | |
| targets: this, | |
| translateY: -5, | |
| duration: 300, | |
| easing: 'easeOutQuad' | |
| }); | |
| }); | |
| card.addEventListener('mouseleave', function() { | |
| anime({ | |
| targets: this, | |
| translateY: 0, | |
| duration: 300, | |
| easing: 'easeOutQuad' | |
| }); | |
| }); | |
| }); | |
| // Initialize Feather icons | |
| feather.replace(); | |
| // Animate elements on load | |
| anime({ | |
| targets: '.metric-card', | |
| opacity: [0, 1], | |
| translateY: [20, 0], | |
| delay: anime.stagger(100), | |
| duration: 800, | |
| easing: 'easeOutQuad' | |
| }); | |
| </script> | |
| </body> | |
| </html> | |