File size: 12,479 Bytes
17d3a3b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4e94e90
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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CryptoMiner Dashboard</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>
    <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
    <script>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        primary: {
                            500: '#6366f1',
                        },
                        secondary: {
                            500: '#10b981',
                        }
                    }
                }
            }
        }
    </script>
    <style>
        #vanta-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.2;
        }
        .stat-card {
            backdrop-filter: blur(10px);
            background-color: rgba(17, 24, 39, 0.7);
        }
    </style>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen">
    <div id="vanta-bg"></div>
    
    <!-- Navigation -->
    <nav class="border-b border-gray-800 py-4 px-6">
        <div class="max-w-7xl mx-auto flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <i data-feather="cpu" class="text-primary-500"></i>
                <span class="text-xl font-bold">CryptoMiner Wiz</span>
            </div>
            <div class="flex items-center space-x-6">
                <a href="#" class="hover:text-primary-400 transition">Dashboard</a>
                <a href="#" class="hover:text-primary-400 transition">Settings</a>
                <a href="#" class="hover:text-primary-400 transition">Docs</a>
                <button class="bg-primary-500 hover:bg-primary-600 px-4 py-2 rounded-md transition">
                    Start Mining
                </button>
            </div>
        </div>
    </nav>

    <!-- Main Content -->
    <main class="max-w-7xl mx-auto py-8 px-6">
        <div class="flex justify-between items-center mb-8">
            <h1 class="text-3xl font-bold">Mining Dashboard</h1>
            <div class="flex items-center space-x-4">
                <div class="flex items-center">
                    <div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
                    <span>Connected</span>
                </div>
                <button class="bg-gray-800 hover:bg-gray-700 p-2 rounded-md transition">
                    <i data-feather="refresh-cw"></i>
                </button>
            </div>
        </div>

        <!-- Stats Grid -->
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
            <div class="stat-card rounded-lg p-6 border border-gray-800 shadow-lg">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-gray-400">Hashrate</p>
                        <p class="text-2xl font-bold">2.45 KH/s</p>
                    </div>
                    <div class="bg-primary-500 p-3 rounded-md">
                        <i data-feather="zap"></i>
                    </div>
                </div>
                <div class="mt-4">
                    <div class="h-2 bg-gray-700 rounded-full overflow-hidden">
                        <div class="h-full bg-primary-500 rounded-full" style="width: 65%"></div>
                    </div>
                    <p class="text-sm text-gray-400 mt-2">65% of max capacity</p>
                </div>
            </div>

            <div class="stat-card rounded-lg p-6 border border-gray-800 shadow-lg">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-gray-400">Shares</p>
                        <p class="text-2xl font-bold">1,245</p>
                    </div>
                    <div class="bg-secondary-500 p-3 rounded-md">
                        <i data-feather="layers"></i>
                    </div>
                </div>
                <div class="mt-4">
                    <div class="h-2 bg-gray-700 rounded-full overflow-hidden">
                        <div class="h-full bg-secondary-500 rounded-full" style="width: 42%"></div>
                    </div>
                    <p class="text-sm text-gray-400 mt-2">42% of pool average</p>
                </div>
            </div>

            <div class="stat-card rounded-lg p-6 border border-gray-800 shadow-lg">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-gray-400">Temperature</p>
                        <p class="text-2xl font-bold">64°C</p>
                    </div>
                    <div class="bg-yellow-500 p-3 rounded-md">
                        <i data-feather="thermometer"></i>
                    </div>
                </div>
                <div class="mt-4">
                    <div class="h-2 bg-gray-700 rounded-full overflow-hidden">
                        <div class="h-full bg-yellow-500 rounded-full" style="width: 75%"></div>
                    </div>
                    <p class="text-sm text-gray-400 mt-2">75% of threshold</p>
                </div>
            </div>

            <div class="stat-card rounded-lg p-6 border border-gray-800 shadow-lg">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-gray-400">Uptime</p>
                        <p class="text-2xl font-bold">3h 42m</p>
                    </div>
                    <div class="bg-purple-500 p-3 rounded-md">
                        <i data-feather="clock"></i>
                    </div>
                </div>
                <div class="mt-4">
                    <div class="h-2 bg-gray-700 rounded-full overflow-hidden">
                        <div class="h-full bg-purple-500 rounded-full" style="width: 15%"></div>
                    </div>
                    <p class="text-sm text-gray-400 mt-2">15% of daily goal</p>
                </div>
            </div>
        </div>

        <!-- Mining Log -->
        <div class="bg-gray-800 rounded-lg border border-gray-700 overflow-hidden mb-8">
            <div class="p-4 border-b border-gray-700 flex justify-between items-center">
                <h2 class="text-lg font-semibold">Mining Log</h2>
                <button class="text-gray-400 hover:text-gray-200 transition">
                    <i data-feather="maximize-2" class="w-4 h-4"></i>
                </button>
            </div>
            <div class="p-4 h-64 overflow-y-auto font-mono text-sm">
                <p class="text-green-400">[08:42:15] Miner started successfully</p>
                <p class="text-green-400">[08:42:18] Connected to pool: 160.19.166.230:443</p>
                <p class="text-blue-400">[08:42:20] New job received from pool</p>
                <p class="text-gray-400">[08:42:25] Hashrate: 2.45 KH/s</p>
                <p class="text-green-400">[08:42:30] Accepted share #1245</p>
                <p class="text-blue-400">[08:42:45] New job received from pool</p>
                <p class="text-gray-400">[08:43:00] Hashrate: 2.51 KH/s</p>
                <p class="text-green-400">[08:43:05] Accepted share #1246</p>
                <p class="text-green-400">[08:43:20] Accepted share #1247</p>
                <p class="text-blue-400">[08:43:30] New job received from pool</p>
                <p class="text-gray-400">[08:43:45] Hashrate: 2.48 KH/s</p>
            </div>
        </div>

        <!-- Miner Controls -->
        <div class="flex flex-col md:flex-row gap-6">
            <div class="bg-gray-800 rounded-lg border border-gray-700 p-6 flex-1">
                <h2 class="text-lg font-semibold mb-4">Miner Controls</h2>
                <div class="space-y-4">
                    <div>
                        <label class="block text-gray-400 mb-2">Intensity</label>
                        <input type="range" min="1" max="10" value="7" class="w-full accent-primary-500">
                    </div>
                    <div>
                        <label class="block text-gray-400 mb-2">Threads</label>
                        <input type="range" min="1" max="8" value="4" class="w-full accent-secondary-500">
                    </div>
                    <div class="flex space-x-4 pt-4">
                        <button class="bg-primary-500 hover:bg-primary-600 px-6 py-2 rounded-md transition flex-1 flex items-center justify-center space-x-2">
                            <i data-feather="play" class="w-4 h-4"></i>
                            <span>Start</span>
                        </button>
                        <button class="bg-gray-700 hover:bg-gray-600 px-6 py-2 rounded-md transition flex-1 flex items-center justify-center space-x-2">
                            <i data-feather="pause" class="w-4 h-4"></i>
                            <span>Pause</span>
                        </button>
                        <button class="bg-red-500 hover:bg-red-600 px-6 py-2 rounded-md transition flex-1 flex items-center justify-center space-x-2">
                            <i data-feather="stop-circle" class="w-4 h-4"></i>
                            <span>Stop</span>
                        </button>
                    </div>
                </div>
            </div>

            <div class="bg-gray-800 rounded-lg border border-gray-700 p-6 flex-1">
                <h2 class="text-lg font-semibold mb-4">Pool Configuration</h2>
                <div class="space-y-4">
                    <div>
                        <label class="block text-gray-400 mb-2">Pool URL</label>
                        <input type="text" value="160.19.166.230:443" class="w-full bg-gray-700 border border-gray-600 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500">
                    </div>
                    <div>
                        <label class="block text-gray-400 mb-2">Wallet Address</label>
                        <input type="text" value="vi5rghi5c6e35vy1oaqb2p4kqp6izad9pn7d5v" class="w-full bg-gray-700 border border-gray-600 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500">
                    </div>
                    <button class="bg-secondary-500 hover:bg-secondary-600 w-full py-2 rounded-md transition flex items-center justify-center space-x-2 mt-4">
                        <i data-feather="save" class="w-4 h-4"></i>
                        <span>Save Configuration</span>
                    </button>
                </div>
            </div>
        </div>
    </main>

    <footer class="border-t border-gray-800 py-6 px-6">
        <div class="max-w-7xl mx-auto flex flex-col md:flex-row justify-between items-center">
            <div class="flex items-center space-x-2 mb-4 md:mb-0">
                <i data-feather="cpu" class="text-primary-500"></i>
                <span class="font-medium">CryptoMiner Wiz</span>
            </div>
            <div class="flex items-center space-x-4">
                <a href="#" class="text-gray-400 hover:text-gray-200 transition">
                    <i data-feather="github"></i>
                </a>
                <a href="#" class="text-gray-400 hover:text-gray-200 transition">
                    <i data-feather="twitter"></i>
                </a>
                <a href="#" class="text-gray-400 hover:text-gray-200 transition">
                    <i data-feather="discord"></i>
                </a>
                <span class="text-gray-500 text-sm">v1.0.0</span>
            </div>
        </div>
    </footer>

    <script>
        VANTA.GLOBE({
            el: "#vanta-bg",
            mouseControls: true,
            touchControls: true,
            gyroControls: false,
            minHeight: 200.00,
            minWidth: 200.00,
            scale: 1.00,
            scaleMobile: 1.00,
            color: 0x6366f1,
            backgroundColor: 0x111827,
            size: 0.8
        });
    </script>
    <script>
        feather.replace();
    </script>
</body>
</html>