Spaces:
Running
Running
Download index.html from halil339/cryptomine-dashboard: direct link, hf CLI and curl.
- Browser
- Download file 15.2 kB
-
https://huggingface.co/spaces/halil339/cryptomine-dashboard/resolve/main/index.html
- Command line
-
hf download hf://spaces/halil339/cryptomine-dashboard/index.html
-
curl -L -o index.html https://huggingface.co/spaces/halil339/cryptomine-dashboard/resolve/main/index.html
15.2 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>CryptoMine Dashboard</title> | |
| <link rel="icon" type="image/x-icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></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; } | |
| .gradient-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } | |
| .glass-effect { backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.1); } | |
| .mining-card { transition: all 0.3s ease; } | |
| .mining-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); } | |
| .pulse-animation { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: .5; } | |
| } | |
| .rotate-animation { animation: rotate 3s linear infinite; } | |
| @keyframes rotate { | |
| from { transform: rotate(0deg); } | |
| to { transform: rotate(360deg); } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-900 text-white"> | |
| <!-- Background Animation --> | |
| <div class="fixed inset-0 z-0"> | |
| <div class="absolute inset-0 bg-gradient-to-br from-purple-900 via-blue-900 to-indigo-900 opacity-50"></div> | |
| <div class="absolute inset-0 bg-black opacity-20"></div> | |
| </div> | |
| <!-- Navigation --> | |
| <nav class="relative z-10 glass-effect border-b border-white/10"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between items-center h-16"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-8 h-8 bg-yellow-500 rounded-full flex items-center justify-center"> | |
| <i data-feather="zap" class="w-5 h-5 text-gray-900"></i> | |
| </div> | |
| <span class="text-xl font-bold">CryptoMine</span> | |
| </div> | |
| <div class="hidden md:flex items-center space-x-8"> | |
| <a href="#" class="text-gray-300 hover:text-white transition">Dashboard</a> | |
| <a href="#" class="text-gray-300 hover:text-white transition">Mining</a> | |
| <a href="#" class="text-gray-300 hover:text-white transition">Wallet</a> | |
| <a href="#" class="text-gray-300 hover:text-white transition">Settings</a> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button class="relative"> | |
| <i data-feather="bell" class="w-5 h-5 text-gray-300 hover:text-white transition"></i> | |
| <span class="absolute -top-1 -right-1 w-2 h-2 bg-red-500 rounded-full pulse-animation"></span> | |
| </button> | |
| <div class="w-8 h-8 bg-purple-500 rounded-full flex items-center justify-center"> | |
| <i data-feather="user" class="w-4 h-4"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Main Content --> | |
| <main class="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> | |
| <!-- Stats Overview --> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8"> | |
| <div class="mining-card bg-gray-800/50 rounded-xl p-6 border border-gray-700"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Hash Rate</p> | |
| <p class="text-2xl font-bold text-green-400">125.3 TH/s</p> | |
| </div> | |
| <div class="w-12 h-12 bg-green-500/20 rounded-lg flex items-center justify-center"> | |
| <i data-feather="trending-up" class="w-6 h-6 text-green-400"></i> | |
| </div> | |
| </div> | |
| <p class="text-sm text-green-400 mt-2">+12.5% from yesterday</p> | |
| </div> | |
| <div class="mining-card bg-gray-800/50 rounded-xl p-6 border border-gray-700"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Active Workers</p> | |
| <p class="text-2xl font-bold text-blue-400">8</p> | |
| </div> | |
| <div class="w-12 h-12 bg-blue-500/20 rounded-lg flex items-center justify-center"> | |
| <i data-feather="cpu" class="w-6 h-6 text-blue-400"></i> | |
| </div> | |
| </div> | |
| <p class="text-sm text-gray-400 mt-2">All systems operational</p> | |
| </div> | |
| <div class="mining-card bg-gray-800/50 rounded-xl p-6 border border-gray-700"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Daily Earnings</p> | |
| <p class="text-2xl font-bold text-yellow-400">0.00245 BTC</p> | |
| </div> | |
| <div class="w-12 h-12 bg-yellow-500/20 rounded-lg flex items-center justify-center"> | |
| <i data-feather="dollar-sign" class="w-6 h-6 text-yellow-400"></i> | |
| </div> | |
| </div> | |
| <p class="text-sm text-gray-400 mt-2">≈ $98.50 USD</p> | |
| </div> | |
| <div class="mining-card bg-gray-800/50 rounded-xl p-6 border border-gray-700"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Pool Balance</p> | |
| <p class="text-2xl font-bold text-purple-400">0.0156 BTC</p> | |
| </div> | |
| <div class="w-12 h-12 bg-purple-500/20 rounded-lg flex items-center justify-center"> | |
| <i data-feather="wallet" class="w-6 h-6 text-purple-400"></i> | |
| </div> | |
| </div> | |
| <p class="text-sm text-gray-400 mt-2">Next payout in 2h 15m</p> | |
| </div> | |
| </div> | |
| <!-- Mining Controls --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8"> | |
| <div class="lg:col-span-2"> | |
| <div class="bg-gray-800/50 rounded-xl p-6 border border-gray-700"> | |
| <h2 class="text-xl font-semibold mb-4">Mining Status</h2> | |
| <div class="space-y-4"> | |
| <div class="flex items-center justify-between p-4 bg-gray-700/50 rounded-lg"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-3 h-3 bg-green-500 rounded-full pulse-animation"></div> | |
| <span class="font-medium">Worker #1 - RTX 4090</span> | |
| </div> | |
| <div class="text-right"> | |
| <p class="text-sm text-gray-400">45.2 MH/s</p> | |
| <p class="text-xs text-green-400">Active</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between p-4 bg-gray-700/50 rounded-lg"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-3 h-3 bg-green-500 rounded-full pulse-animation"></div> | |
| <span class="font-medium">Worker #2 - RTX 3080</span> | |
| </div> | |
| <div class="text-right"> | |
| <p class="text-sm text-gray-400">38.7 MH/s</p> | |
| <p class="text-xs text-green-400">Active</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between p-4 bg-gray-700/50 rounded-lg"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-3 h-3 bg-yellow-500 rounded-full"></div> | |
| <span class="font-medium">Worker #3 - RX 6800 XT</span> | |
| </div> | |
| <div class="text-right"> | |
| <p class="text-sm text-gray-400">32.1 MH/s</p> | |
| <p class="text-xs text-yellow-400">Overheating</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="bg-gray-800/50 rounded-xl p-6 border border-gray-700"> | |
| <h2 class="text-xl font-semibold mb-4">Quick Actions</h2> | |
| <div class="space-y-3"> | |
| <button class="w-full py-3 bg-green-600 hover:bg-green-700 rounded-lg font-medium transition flex items-center justify-center space-x-2"> | |
| <i data-feather="play" class="w-4 h-4"></i> | |
| <span>Start All Workers</span> | |
| </button> | |
| <button class="w-full py-3 bg-red-600 hover:bg-red-700 rounded-lg font-medium transition flex items-center justify-center space-x-2"> | |
| <i data-feather="pause" class="w-4 h-4"></i> | |
| <span>Stop All Workers</span> | |
| </button> | |
| <button class="w-full py-3 bg-blue-600 hover:bg-blue-700 rounded-lg font-medium transition flex items-center justify-center space-x-2"> | |
| <i data-feather="refresh-cw" class="w-4 h-4"></i> | |
| <span>Restart Pool</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6"> | |
| <div class="bg-gray-800/50 rounded-xl p-6 border border-gray-700"> | |
| <h2 class="text-xl font-semibold mb-4">Hash Rate (24h)</h2> | |
| <canvas id="hashRateChart" class="w-full h-64"></canvas> | |
| </div> | |
| <div class="bg-gray-800/50 rounded-xl p-6 border border-gray-700"> | |
| <h2 class="text-xl font-semibold mb-4">Temperature Monitor</h2> | |
| <canvas id="tempChart" class="w-full h-64"></canvas> | |
| </div> | |
| </div> | |
| <!-- Mining Pool Info --> | |
| <div class="mt-8 bg-gray-800/50 rounded-xl p-6 border border-gray-700"> | |
| <h2 class="text-xl font-semibold mb-4">Pool Information</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Current Pool</p> | |
| <p class="text-lg font-medium">Ethermine.org</p> | |
| <p class="text-sm text-gray-400">SSL: us1.ethermine.org:5555</p> | |
| </div> | |
| <div> | |
| <p class="text-gray-400 text-sm">Network Difficulty</p> | |
| <p class="text-lg font-medium">58.23 TH</p> | |
| <p class="text-sm text-gray-400">Block Height: 15,847,293</p> | |
| </div> | |
| <div> | |
| <p class="text-gray-400 text-sm">Gas Price</p> | |
| <p class="text-lg font-medium">24.5 Gwei</p> | |
| <p class="text-sm text-gray-400">Base: 22.1 | Priority: 2.4</p> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <script> | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| // Hash Rate Chart | |
| const hashCtx = document.getElementById('hashRateChart').getContext('2d'); | |
| new Chart(hashCtx, { | |
| type: 'line', | |
| data: { | |
| labels: ['00:00', '04:00', '08:00', '12:00', '16:00', '20:00', '24:00'], | |
| datasets: [{ | |
| label: 'Hash Rate (MH/s)', | |
| data: [120, 125, 123, 128, 130, 127, 125], | |
| borderColor: '#10b981', | |
| backgroundColor: 'rgba(16, 185, 129, 0.1)', | |
| tension: 0.4, | |
| fill: true | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { display: false } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: false, | |
| grid: { color: 'rgba(255, 255, 255, 0.1)' }, | |
| ticks: { color: '#9ca3af' } | |
| }, | |
| x: { | |
| grid: { color: 'rgba(255, 255, 255, 0.1)' }, | |
| ticks: { color: '#9ca3af' } | |
| } | |
| } | |
| } | |
| }); | |
| // Temperature Chart | |
| const tempCtx = document.getElementById('tempChart').getContext('2d'); | |
| new Chart(tempCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['GPU 1', 'GPU 2', 'GPU 3', 'GPU 4', 'GPU 5', 'GPU 6', 'GPU 7', 'GPU 8'], | |
| datasets: [{ | |
| label: 'Temperature (°C)', | |
| data: [65, 68, 72, 63, 61, 70, 67, 69], | |
| backgroundColor: [ | |
| '#10b981', '#10b981', '#f59e0b', '#10b981', | |
| '#10b981', '#f59e0b', '#10b981', '#10b981' | |
| ], | |
| borderRadius: 4 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { display: false } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| max: 85, | |
| grid: { color: 'rgba(255, 255, 255, 0.1)' }, | |
| ticks: { color: '#9ca3af' } | |
| }, | |
| x: { | |
| grid: { display: false }, | |
| ticks: { color: '#9ca3af' } | |
| } | |
| } | |
| } | |
| }); | |
| // Real-time updates simulation | |
| setInterval(() => { | |
| const hashRateElement = document.querySelector('.text-2xl.text-green-400'); | |
| const currentRate = parseFloat(hashRateElement.textContent); | |
| const newRate = (currentRate + (Math.random() - 0.5) * 5).toFixed(1); | |
| hashRateElement.textContent = newRate + ' TH/s'; | |
| }, 5000); | |
| </script> | |
| </body> | |
| </html> | |