File size: 19,314 Bytes
e986245
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<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>