Spaces:
Running
Running
Download dashboard.html from geaz21/forexninjapips-tracker: direct link, hf CLI and curl.
- Browser
- Download file 19.3 kB
-
https://huggingface.co/spaces/geaz21/forexninjapips-tracker/resolve/main/dashboard.html
- Command line
-
hf download hf://spaces/geaz21/forexninjapips-tracker/dashboard.html
-
curl -L -o dashboard.html https://huggingface.co/spaces/geaz21/forexninjapips-tracker/resolve/main/dashboard.html
19.3 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Dashboard - PipTrack</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <style> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); | |
| } | |
| .sidebar { | |
| transition: all 0.3s; | |
| } | |
| .trade-card:hover { | |
| transform: translateY(-3px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2); | |
| } | |
| .screenshot-preview { | |
| background-image: url('http://static.photos/finance/640x360/42'); | |
| background-size: cover; | |
| background-position: center; | |
| } | |
| </style> | |
| </head> | |
| <body class="gradient-bg min-h-screen text-gray-100"> | |
| <div class="flex"> | |
| <!-- Sidebar --> | |
| <div class="sidebar w-64 bg-gray-900 min-h-screen border-r border-gray-800 fixed"> | |
| <div class="p-4 flex items-center justify-between border-b border-gray-800"> | |
| <div class="flex items-center"> | |
| <i data-feather="trending-up" class="text-yellow-400 mr-2" width="24" height="24"></i> | |
| <span class="text-xl font-bold">PipTrack</span> | |
| </div> | |
| <button id="sidebarToggle" class="md:hidden"> | |
| <i data-feather="chevron-left" width="20" height="20"></i> | |
| </button> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex items-center space-x-3 mb-8"> | |
| <div class="h-10 w-10 rounded-full bg-gray-700 flex items-center justify-center"> | |
| <i data-feather="user" width="18" height="18"></i> | |
| </div> | |
| <div> | |
| <div class="font-medium">John Trader</div> | |
| <div class="text-xs text-gray-400">Pro Member</div> | |
| </div> | |
| </div> | |
| <nav class="space-y-2"> | |
| <a href="#" class="flex items-center space-x-3 px-3 py-2 bg-gray-800 rounded-lg text-yellow-400"> | |
| <i data-feather="home" width="18" height="18"></i> | |
| <span>Dashboard</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-800 rounded-lg text-gray-300 hover:text-yellow-400 transition"> | |
| <i data-feather="plus-circle" width="18" height="18"></i> | |
| <span>New Trade</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-800 rounded-lg text-gray-300 hover:text-yellow-400 transition"> | |
| <i data-feather="list" width="18" height="18"></i> | |
| <span>Trade History</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-800 rounded-lg text-gray-300 hover:text-yellow-400 transition"> | |
| <i data-feather="bar-chart-2" width="18" height="18"></i> | |
| <span>Analytics</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-800 rounded-lg text-gray-300 hover:text-yellow-400 transition"> | |
| <i data-feather="settings" width="18" height="18"></i> | |
| <span>Settings</span> | |
| </a> | |
| </nav> | |
| <div class="mt-8 pt-4 border-t border-gray-800"> | |
| <button class="flex items-center space-x-3 px-3 py-2 w-full hover:bg-gray-800 rounded-lg text-gray-300 hover:text-red-400 transition"> | |
| <i data-feather="log-out" width="18" height="18"></i> | |
| <span>Logout</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 ml-64 p-6"> | |
| <div class="flex justify-between items-center mb-8"> | |
| <h1 class="text-2xl font-bold">Dashboard</h1> | |
| <button class="flex items-center space-x-2 px-4 py-2 bg-yellow-400 hover:bg-yellow-500 text-gray-900 rounded-lg transition"> | |
| <i data-feather="plus" width="16" height="16"></i> | |
| <span>Add Trade</span> | |
| </button> | |
| </div> | |
| <!-- Stats Cards --> | |
| <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"> | |
| <div class="bg-gray-800 rounded-lg p-4 border border-gray-700"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Total Profit</p> | |
| <p class="text-2xl font-bold text-green-400">$4,280.50</p> | |
| </div> | |
| <div class="p-2 bg-green-900 bg-opacity-30 rounded-lg"> | |
| <i data-feather="dollar-sign" class="text-green-400" width="20" height="20"></i> | |
| </div> | |
| </div> | |
| <div class="mt-2 text-xs text-green-400"> | |
| <i data-feather="arrow-up" class="inline" width="12" height="12"></i> | |
| <span>12.5% from last month</span> | |
| </div> | |
| </div> | |
| <div class="bg-gray-800 rounded-lg p-4 border border-gray-700"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Win Rate</p> | |
| <p class="text-2xl font-bold text-blue-400">64.2%</p> | |
| </div> | |
| <div class="p-2 bg-blue-900 bg-opacity-30 rounded-lg"> | |
| <i data-feather="award" class="text-blue-400" width="20" height="20"></i> | |
| </div> | |
| </div> | |
| <div class="mt-2 text-xs text-blue-400"> | |
| <i data-feather="arrow-up" class="inline" width="12" height="12"></i> | |
| <span>3.2% from last month</span> | |
| </div> | |
| </div> | |
| <div class="bg-gray-800 rounded-lg p-4 border border-gray-700"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Total Trades</p> | |
| <p class="text-2xl font-bold">137</p> | |
| </div> | |
| <div class="p-2 bg-purple-900 bg-opacity-30 rounded-lg"> | |
| <i data-feather="activity" class="text-purple-400" width="20" height="20"></i> | |
| </div> | |
| </div> | |
| <div class="mt-2 text-xs text-gray-400"> | |
| <i data-feather="arrow-up" class="inline" width="12" height="12"></i> | |
| <span>28 this month</span> | |
| </div> | |
| </div> | |
| <div class="bg-gray-800 rounded-lg p-4 border border-gray-700"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Avg Risk/Reward</p> | |
| <p class="text-2xl font-bold text-yellow-400">1:2.3</p> | |
| </div> | |
| <div class="p-2 bg-yellow-900 bg-opacity-30 rounded-lg"> | |
| <i data-feather="trending-up" class="text-yellow-400" width="20" height="20"></i> | |
| </div> | |
| </div> | |
| <div class="mt-2 text-xs text-yellow-400"> | |
| <i data-feather="arrow-up" class="inline" width="12" height="12"></i> | |
| <span>Improved from 1:1.8</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts and Recent Trades --> | |
| <div class="grid lg:grid-cols-3 gap-6 mb-8"> | |
| <div class="lg:col-span-2 bg-gray-800 rounded-lg p-4 border border-gray-700"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="text-lg font-semibold">Monthly Performance</h2> | |
| <select class="bg-gray-700 border border-gray-600 text-sm rounded-lg px-3 py-1"> | |
| <option>Last 6 Months</option> | |
| <option>This Year</option> | |
| <option>All Time</option> | |
| </select> | |
| </div> | |
| <div class="h-64 bg-gray-900 rounded-lg flex items-center justify-center"> | |
| <p class="text-gray-500">Chart would display here</p> | |
| </div> | |
| </div> | |
| <div class="bg-gray-800 rounded-lg p-4 border border-gray-700"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="text-lg font-semibold">Top Pairs</h2> | |
| <a href="#" class="text-sm text-yellow-400 hover:underline">View All</a> | |
| </div> | |
| <div class="space-y-4"> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>EUR/USD</span> | |
| <span class="text-green-400">+$1,245</span> | |
| </div> | |
| <div class="w-full bg-gray-700 rounded-full h-1.5"> | |
| <div class="bg-green-400 h-1.5 rounded-full" style="width: 76%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>USD/JPY</span> | |
| <span class="text-green-400">+$876</span> | |
| </div> | |
| <div class="w-full bg-gray-700 rounded-full h-1.5"> | |
| <div class="bg-green-400 h-1.5 rounded-full" style="width: 53%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>GBP/USD</span> | |
| <span class="text-green-400">+$420</span> | |
| </div> | |
| <div class="w-full bg-gray-700 rounded-full h-1.5"> | |
| <div class="bg-green-400 h-1.5 rounded-full" style="width: 26%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>AUD/NZD</span> | |
| <span class="text-red-400">-$320</span> | |
| </div> | |
| <div class="w-full bg-gray-700 rounded-full h-1.5"> | |
| <div class="bg-red-400 h-1.5 rounded-full" style="width: 19%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>GBP/JPY</span> | |
| <span class="text-red-400">-$280</span> | |
| </div> | |
| <div class="w-full bg-gray-700 rounded-full h-1.5"> | |
| <div class="bg-red-400 h-1.5 rounded-full" style="width: 17%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent Trades --> | |
| <div class="bg-gray-800 rounded-lg p-6 border border-gray-700"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-xl font-bold">Recent Trades</h2> | |
| <a href="#" class="text-sm text-yellow-400 hover:underline">View All</a> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="w-full"> | |
| <thead class="bg-gray-900 text-gray-400 text-left text-sm"> | |
| <tr> | |
| <th class="p-3 rounded-tl-lg">Pair</th> | |
| <th class="p-3">Date</th> | |
| <th class="p-3">Entry</th> | |
| <th class="p-3">Exit</th> | |
| <th class="p-3">Size</th> | |
| <th class="p-3">P/L</th> | |
| <th class="p-3 rounded-tr-lg">Actions</th> | |
| </tr> | |
| </thead> | |
| <tbody class="divide-y divide-gray-700"> | |
| <tr class="hover:bg-gray-700 transition"> | |
| <td class="p-3 font-medium">EUR/USD</td> | |
| <td class="p-3 text-sm">2023-06-15</td> | |
| <td class="p-3">1.1234</td> | |
| <td class="p-3">1.1289</td> | |
| <td class="p-3">1.0</td> | |
| <td class="p-3 font-bold text-green-400">+$152.50</td> | |
| <td class="p-3"> | |
| <div class="flex space-x-2"> | |
| <button class="text-blue-400 hover:text-blue-300"> | |
| <i data-feather="eye" width="16" height="16"></i> | |
| </button> | |
| <button class="text-red-400 hover:text-red-300"> | |
| <i data-feather="trash-2" width="16" height="16"></i> | |
| </button> | |
| </div> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-700 transition"> | |
| <td class="p-3 font-medium">USD/JPY</td> | |
| <td class="p-3 text-sm">2023-06-14</td> | |
| <td class="p-3">134.25</td> | |
| <td class="p-3">134.80</td> | |
| <td class="p-3">0.5</td> | |
| <td class="p-3 font-bold text-green-400">+$87.50</td> | |
| <td class="p-3"> | |
| <div class="flex space-x-2"> | |
| <button class="text-blue-400 hover:text-blue-300"> | |
| <i data-feather="eye" width="16" height="16"></i> | |
| </button> | |
| <button class="text-red-400 hover:text-red-300"> | |
| <i data-feather="trash-2" width="16" height="16"></i> | |
| </button> | |
| </div> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-700 transition"> | |
| <td class="p-3 font-medium">GBP/JPY</td> | |
| <td class="p-3 text-sm">2023-06-13</td> | |
| <td class="p-3">158.42</td> | |
| <td class="p-3">158.15</td> | |
| <td class="p-3">0.5</td> | |
| <td class="p-3 font-bold text-red-400">-$87.30</td> | |
| <td class="p-3"> | |
| <div class="flex space-x-2"> | |
| <button class="text-blue-400 hover:text-blue-300"> | |
| <i data-feather="eye" width="16" height="16"></i> | |
| </button> | |
| <button class="text-red-400 hover:text-red-300"> | |
| <i data-feather="trash-2" width="16" height="16"></i> | |
| </button> | |
| </div> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-700 transition"> | |
| <td class="p-3 font-medium">AUD/USD</td> | |
| <td class="p-3 text-sm">2023-06-12</td> | |
| <td class="p-3">0.6820</td> | |
| <td class="p-3">0.6855</td> | |
| <td class="p-3">1.0</td> | |
| <td class="p-3 font-bold text-green-400">+$102.50</td> | |
| <td class="p-3"> | |
| <div class="flex space-x-2"> | |
| <button class="text-blue-400 hover:text-blue-300"> | |
| <i data-feather="eye" width="16" height="16"></i> | |
| </button> | |
| <button class="text-red-400 hover:text-red-300"> | |
| <i data-feather="trash-2" width="16" height="16"></i> | |
| </button> | |
| </div> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', () => { | |
| feather.replace(); | |
| // Toggle sidebar on mobile | |
| const sidebarToggle = document.getElementById('sidebarToggle'); | |
| const sidebar = document.querySelector('.sidebar'); | |
| sidebarToggle.addEventListener('click', () => { | |
| sidebar.classList.toggle('hidden'); | |
| sidebar.classList.toggle('md:block'); | |
| }); | |
| // Adjust for mobile view | |
| function handleResize() { | |
| if (window.innerWidth < 768) { | |
| sidebar.classList.add('hidden'); | |
| } else { | |
| sidebar.classList.remove('hidden'); | |
| } | |
| } | |
| window.addEventListener('resize', handleResize); | |
| handleResize(); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |