Add 2 files
Browse files- index.html +743 -38
- prompts.txt +1 -0
index.html
CHANGED
@@ -1,41 +1,746 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
|
4 |
-
<
|
5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0"
|
6 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
<style>
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
</style>
|
32 |
-
|
33 |
-
|
34 |
-
<
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Global Traders Database</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<script>
|
10 |
+
tailwind.config = {
|
11 |
+
theme: {
|
12 |
+
extend: {
|
13 |
+
colors: {
|
14 |
+
primary: '#1e40af',
|
15 |
+
secondary: '#1e3a8a',
|
16 |
+
accent: '#3b82f6',
|
17 |
+
dark: '#0f172a',
|
18 |
+
light: '#f8fafc'
|
19 |
+
}
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
23 |
+
</script>
|
24 |
<style>
|
25 |
+
.chart-container {
|
26 |
+
position: relative;
|
27 |
+
height: 300px;
|
28 |
+
width: 100%;
|
29 |
+
}
|
30 |
+
|
31 |
+
.sidebar {
|
32 |
+
transition: all 0.3s ease;
|
33 |
+
}
|
34 |
+
|
35 |
+
@media (max-width: 768px) {
|
36 |
+
.sidebar {
|
37 |
+
position: fixed;
|
38 |
+
left: -100%;
|
39 |
+
top: 0;
|
40 |
+
z-index: 50;
|
41 |
+
height: 100vh;
|
42 |
+
width: 80%;
|
43 |
+
}
|
44 |
+
|
45 |
+
.sidebar.active {
|
46 |
+
left: 0;
|
47 |
+
}
|
48 |
+
|
49 |
+
.overlay {
|
50 |
+
position: fixed;
|
51 |
+
top: 0;
|
52 |
+
left: 0;
|
53 |
+
right: 0;
|
54 |
+
bottom: 0;
|
55 |
+
background-color: rgba(0,0,0,0.5);
|
56 |
+
z-index: 40;
|
57 |
+
display: none;
|
58 |
+
}
|
59 |
+
|
60 |
+
.overlay.active {
|
61 |
+
display: block;
|
62 |
+
}
|
63 |
+
}
|
64 |
+
|
65 |
+
/* Custom scrollbar */
|
66 |
+
::-webkit-scrollbar {
|
67 |
+
width: 8px;
|
68 |
+
}
|
69 |
+
|
70 |
+
::-webkit-scrollbar-track {
|
71 |
+
background: #f1f1f1;
|
72 |
+
}
|
73 |
+
|
74 |
+
::-webkit-scrollbar-thumb {
|
75 |
+
background: #888;
|
76 |
+
border-radius: 4px;
|
77 |
+
}
|
78 |
+
|
79 |
+
::-webkit-scrollbar-thumb:hover {
|
80 |
+
background: #555;
|
81 |
+
}
|
82 |
</style>
|
83 |
+
</head>
|
84 |
+
<body class="bg-gray-50">
|
85 |
+
<div class="overlay"></div>
|
86 |
+
|
87 |
+
<!-- Mobile Header -->
|
88 |
+
<div class="md:hidden bg-primary text-white p-4 flex justify-between items-center">
|
89 |
+
<button id="menuToggle" class="text-white">
|
90 |
+
<i class="fas fa-bars text-xl"></i>
|
91 |
+
</button>
|
92 |
+
<h1 class="text-xl font-bold">Traders DB</h1>
|
93 |
+
<div class="w-8"></div> <!-- Spacer for balance -->
|
94 |
+
</div>
|
95 |
+
|
96 |
+
<!-- Sidebar -->
|
97 |
+
<div class="sidebar bg-white shadow-lg md:shadow-none md:w-64 fixed md:static h-screen overflow-y-auto">
|
98 |
+
<div class="p-4 border-b border-gray-200 hidden md:block">
|
99 |
+
<h1 class="text-xl font-bold text-primary">Global Traders Database</h1>
|
100 |
+
<p class="text-sm text-gray-500">Track profitable traders worldwide</p>
|
101 |
+
</div>
|
102 |
+
|
103 |
+
<div class="p-4">
|
104 |
+
<div class="mb-6">
|
105 |
+
<h2 class="text-lg font-semibold mb-2 text-gray-700">Navigation</h2>
|
106 |
+
<ul class="space-y-1">
|
107 |
+
<li>
|
108 |
+
<a href="#" class="flex items-center p-2 text-primary bg-blue-50 rounded-lg">
|
109 |
+
<i class="fas fa-chart-line mr-3"></i>
|
110 |
+
<span>Dashboard</span>
|
111 |
+
</a>
|
112 |
+
</li>
|
113 |
+
<li>
|
114 |
+
<a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg">
|
115 |
+
<i class="fas fa-users mr-3"></i>
|
116 |
+
<span>Traders</span>
|
117 |
+
</a>
|
118 |
+
</li>
|
119 |
+
<li>
|
120 |
+
<a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg">
|
121 |
+
<i class="fas fa-globe mr-3"></i>
|
122 |
+
<span>Markets</span>
|
123 |
+
</a>
|
124 |
+
</li>
|
125 |
+
<li>
|
126 |
+
<a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg">
|
127 |
+
<i class="fas fa-bell mr-3"></i>
|
128 |
+
<span>Alerts</span>
|
129 |
+
</a>
|
130 |
+
</li>
|
131 |
+
<li>
|
132 |
+
<a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg">
|
133 |
+
<i class="fas fa-cog mr-3"></i>
|
134 |
+
<span>Settings</span>
|
135 |
+
</a>
|
136 |
+
</li>
|
137 |
+
</ul>
|
138 |
+
</div>
|
139 |
+
|
140 |
+
<div class="mb-6">
|
141 |
+
<h2 class="text-lg font-semibold mb-2 text-gray-700">Filters</h2>
|
142 |
+
<div class="space-y-3">
|
143 |
+
<div>
|
144 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Profit Range</label>
|
145 |
+
<select class="w-full p-2 border border-gray-300 rounded-md text-sm">
|
146 |
+
<option>All</option>
|
147 |
+
<option>0 - $10k</option>
|
148 |
+
<option>$10k - $50k</option>
|
149 |
+
<option>$50k - $100k</option>
|
150 |
+
<option>$100k+</option>
|
151 |
+
</select>
|
152 |
+
</div>
|
153 |
+
|
154 |
+
<div>
|
155 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Country</label>
|
156 |
+
<select class="w-full p-2 border border-gray-300 rounded-md text-sm">
|
157 |
+
<option>All Countries</option>
|
158 |
+
<option>United States</option>
|
159 |
+
<option>United Kingdom</option>
|
160 |
+
<option>Japan</option>
|
161 |
+
<option>Germany</option>
|
162 |
+
<option>Singapore</option>
|
163 |
+
</select>
|
164 |
+
</div>
|
165 |
+
|
166 |
+
<div>
|
167 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Asset Class</label>
|
168 |
+
<select class="w-full p-2 border border-gray-300 rounded-md text-sm">
|
169 |
+
<option>All</option>
|
170 |
+
<option>Stocks</option>
|
171 |
+
<option>Forex</option>
|
172 |
+
<option>Crypto</option>
|
173 |
+
<option>Commodities</option>
|
174 |
+
<option>Options</option>
|
175 |
+
</select>
|
176 |
+
</div>
|
177 |
+
|
178 |
+
<button class="w-full bg-primary text-white py-2 px-4 rounded-md text-sm hover:bg-secondary transition">
|
179 |
+
Apply Filters
|
180 |
+
</button>
|
181 |
+
</div>
|
182 |
+
</div>
|
183 |
+
|
184 |
+
<div class="p-4 bg-blue-50 rounded-lg">
|
185 |
+
<h3 class="text-sm font-semibold text-primary mb-2">Quick Stats</h3>
|
186 |
+
<div class="space-y-2">
|
187 |
+
<div class="flex justify-between text-sm">
|
188 |
+
<span class="text-gray-600">Total Traders:</span>
|
189 |
+
<span class="font-medium">1,248</span>
|
190 |
+
</div>
|
191 |
+
<div class="flex justify-between text-sm">
|
192 |
+
<span class="text-gray-600">Avg. Profit:</span>
|
193 |
+
<span class="font-medium text-green-600">$42,780</span>
|
194 |
+
</div>
|
195 |
+
<div class="flex justify-between text-sm">
|
196 |
+
<span class="text-gray-600">Top Country:</span>
|
197 |
+
<span class="font-medium">USA (32%)</span>
|
198 |
+
</div>
|
199 |
+
</div>
|
200 |
+
</div>
|
201 |
+
</div>
|
202 |
+
</div>
|
203 |
+
|
204 |
+
<!-- Main Content -->
|
205 |
+
<div class="md:ml-64 min-h-screen">
|
206 |
+
<!-- Header -->
|
207 |
+
<header class="bg-white shadow-sm p-4 hidden md:block">
|
208 |
+
<div class="flex justify-between items-center">
|
209 |
+
<h1 class="text-2xl font-bold text-gray-800">Traders Dashboard</h1>
|
210 |
+
<div class="flex items-center space-x-4">
|
211 |
+
<div class="relative">
|
212 |
+
<input type="text" placeholder="Search traders..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-md text-sm w-64 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
|
213 |
+
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
214 |
+
</div>
|
215 |
+
<button class="bg-primary text-white py-2 px-4 rounded-md text-sm hover:bg-secondary transition flex items-center">
|
216 |
+
<i class="fas fa-plus mr-2"></i>
|
217 |
+
Add Trader
|
218 |
+
</button>
|
219 |
+
<div class="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center">
|
220 |
+
<i class="fas fa-user text-gray-600"></i>
|
221 |
+
</div>
|
222 |
+
</div>
|
223 |
+
</div>
|
224 |
+
</header>
|
225 |
+
|
226 |
+
<!-- Dashboard Content -->
|
227 |
+
<main class="p-4 md:p-6">
|
228 |
+
<!-- Stats Cards -->
|
229 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
|
230 |
+
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
|
231 |
+
<div class="flex justify-between items-start">
|
232 |
+
<div>
|
233 |
+
<p class="text-sm text-gray-500">Total Traders</p>
|
234 |
+
<h3 class="text-2xl font-bold mt-1">1,248</h3>
|
235 |
+
</div>
|
236 |
+
<div class="bg-blue-100 p-2 rounded-full">
|
237 |
+
<i class="fas fa-users text-blue-600"></i>
|
238 |
+
</div>
|
239 |
+
</div>
|
240 |
+
<p class="text-xs text-green-600 mt-2"><i class="fas fa-arrow-up mr-1"></i> 12.5% from last month</p>
|
241 |
+
</div>
|
242 |
+
|
243 |
+
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
|
244 |
+
<div class="flex justify-between items-start">
|
245 |
+
<div>
|
246 |
+
<p class="text-sm text-gray-500">Avg. Profit</p>
|
247 |
+
<h3 class="text-2xl font-bold mt-1">$42.7k</h3>
|
248 |
+
</div>
|
249 |
+
<div class="bg-green-100 p-2 rounded-full">
|
250 |
+
<i class="fas fa-chart-line text-green-600"></i>
|
251 |
+
</div>
|
252 |
+
</div>
|
253 |
+
<p class="text-xs text-green-600 mt-2"><i class="fas fa-arrow-up mr-1"></i> 8.3% from last month</p>
|
254 |
+
</div>
|
255 |
+
|
256 |
+
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
|
257 |
+
<div class="flex justify-between items-start">
|
258 |
+
<div>
|
259 |
+
<p class="text-sm text-gray-500">Top Market</p>
|
260 |
+
<h3 class="text-2xl font-bold mt-1">Crypto</h3>
|
261 |
+
</div>
|
262 |
+
<div class="bg-purple-100 p-2 rounded-full">
|
263 |
+
<i class="fas fa-coins text-purple-600"></i>
|
264 |
+
</div>
|
265 |
+
</div>
|
266 |
+
<p class="text-xs text-gray-500 mt-2">38% of total trades</p>
|
267 |
+
</div>
|
268 |
+
|
269 |
+
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
|
270 |
+
<div class="flex justify-between items-start">
|
271 |
+
<div>
|
272 |
+
<p class="text-sm text-gray-500">Risk Score</p>
|
273 |
+
<h3 class="text-2xl font-bold mt-1">4.2/10</h3>
|
274 |
+
</div>
|
275 |
+
<div class="bg-yellow-100 p-2 rounded-full">
|
276 |
+
<i class="fas fa-shield-alt text-yellow-600"></i>
|
277 |
+
</div>
|
278 |
+
</div>
|
279 |
+
<p class="text-xs text-green-600 mt-2"><i class="fas fa-arrow-down mr-1"></i> 1.2 from last quarter</p>
|
280 |
+
</div>
|
281 |
+
</div>
|
282 |
+
|
283 |
+
<!-- Charts Section -->
|
284 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
|
285 |
+
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
|
286 |
+
<div class="flex justify-between items-center mb-4">
|
287 |
+
<h3 class="font-semibold text-gray-800">Profit Distribution</h3>
|
288 |
+
<select class="text-sm border border-gray-300 rounded px-2 py-1">
|
289 |
+
<option>Last 30 Days</option>
|
290 |
+
<option>Last 90 Days</option>
|
291 |
+
<option>This Year</option>
|
292 |
+
</select>
|
293 |
+
</div>
|
294 |
+
<div class="chart-container">
|
295 |
+
<canvas id="profitChart"></canvas>
|
296 |
+
</div>
|
297 |
+
</div>
|
298 |
+
|
299 |
+
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
|
300 |
+
<div class="flex justify-between items-center mb-4">
|
301 |
+
<h3 class="font-semibold text-gray-800">Trader Locations</h3>
|
302 |
+
<select class="text-sm border border-gray-300 rounded px-2 py-1">
|
303 |
+
<option>By Country</option>
|
304 |
+
<option>By Region</option>
|
305 |
+
</select>
|
306 |
+
</div>
|
307 |
+
<div class="chart-container">
|
308 |
+
<canvas id="locationChart"></canvas>
|
309 |
+
</div>
|
310 |
+
</div>
|
311 |
+
</div>
|
312 |
+
|
313 |
+
<!-- Traders Table -->
|
314 |
+
<div class="bg-white rounded-lg shadow-sm border border-gray-100 overflow-hidden">
|
315 |
+
<div class="p-4 border-b border-gray-200 flex justify-between items-center">
|
316 |
+
<h3 class="font-semibold text-gray-800">Top Performing Traders</h3>
|
317 |
+
<div class="flex space-x-2">
|
318 |
+
<button class="text-gray-500 hover:text-gray-700">
|
319 |
+
<i class="fas fa-download"></i>
|
320 |
+
</button>
|
321 |
+
<button class="text-gray-500 hover:text-gray-700">
|
322 |
+
<i class="fas fa-filter"></i>
|
323 |
+
</button>
|
324 |
+
</div>
|
325 |
+
</div>
|
326 |
+
|
327 |
+
<div class="overflow-x-auto">
|
328 |
+
<table class="min-w-full divide-y divide-gray-200">
|
329 |
+
<thead class="bg-gray-50">
|
330 |
+
<tr>
|
331 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Trader</th>
|
332 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Country</th>
|
333 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Market</th>
|
334 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Profit</th>
|
335 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Win Rate</th>
|
336 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Risk Score</th>
|
337 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
338 |
+
</tr>
|
339 |
+
</thead>
|
340 |
+
<tbody class="bg-white divide-y divide-gray-200" id="tradersTableBody">
|
341 |
+
<!-- Data will be inserted here by JavaScript -->
|
342 |
+
</tbody>
|
343 |
+
</table>
|
344 |
+
</div>
|
345 |
+
|
346 |
+
<div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between">
|
347 |
+
<div class="text-sm text-gray-500">
|
348 |
+
Showing <span class="font-medium">1</span> to <span class="font-medium">10</span> of <span class="font-medium">1248</span> traders
|
349 |
+
</div>
|
350 |
+
<div class="flex space-x-2">
|
351 |
+
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm bg-white text-gray-700 hover:bg-gray-50">
|
352 |
+
Previous
|
353 |
+
</button>
|
354 |
+
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm bg-white text-gray-700 hover:bg-gray-50">
|
355 |
+
1
|
356 |
+
</button>
|
357 |
+
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm bg-white text-gray-700 hover:bg-gray-50">
|
358 |
+
2
|
359 |
+
</button>
|
360 |
+
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm bg-white text-gray-700 hover:bg-gray-50">
|
361 |
+
3
|
362 |
+
</button>
|
363 |
+
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm bg-white text-gray-700 hover:bg-gray-50">
|
364 |
+
Next
|
365 |
+
</button>
|
366 |
+
</div>
|
367 |
+
</div>
|
368 |
+
</div>
|
369 |
+
</main>
|
370 |
+
</div>
|
371 |
+
|
372 |
+
<!-- Add Trader Modal -->
|
373 |
+
<div id="addTraderModal" class="fixed inset-0 z-50 hidden overflow-y-auto">
|
374 |
+
<div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
|
375 |
+
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
|
376 |
+
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
|
377 |
+
</div>
|
378 |
+
|
379 |
+
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span>
|
380 |
+
|
381 |
+
<div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full">
|
382 |
+
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
|
383 |
+
<div class="sm:flex sm:items-start">
|
384 |
+
<div class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-100 sm:mx-0 sm:h-10 sm:w-10">
|
385 |
+
<i class="fas fa-user-plus text-blue-600"></i>
|
386 |
+
</div>
|
387 |
+
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
388 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900">Add New Trader</h3>
|
389 |
+
<div class="mt-2">
|
390 |
+
<form id="addTraderForm" class="space-y-4">
|
391 |
+
<div>
|
392 |
+
<label for="name" class="block text-sm font-medium text-gray-700">Full Name</label>
|
393 |
+
<input type="text" id="name" name="name" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary focus:border-primary sm:text-sm">
|
394 |
+
</div>
|
395 |
+
|
396 |
+
<div>
|
397 |
+
<label for="email" class="block text-sm font-medium text-gray-700">Email</label>
|
398 |
+
<input type="email" id="email" name="email" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary focus:border-primary sm:text-sm">
|
399 |
+
</div>
|
400 |
+
|
401 |
+
<div>
|
402 |
+
<label for="country" class="block text-sm font-medium text-gray-700">Country</label>
|
403 |
+
<select id="country" name="country" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary focus:border-primary sm:text-sm">
|
404 |
+
<option value="">Select Country</option>
|
405 |
+
<option value="US">United States</option>
|
406 |
+
<option value="UK">United Kingdom</option>
|
407 |
+
<option value="JP">Japan</option>
|
408 |
+
<option value="DE">Germany</option>
|
409 |
+
<option value="SG">Singapore</option>
|
410 |
+
</select>
|
411 |
+
</div>
|
412 |
+
|
413 |
+
<div>
|
414 |
+
<label for="market" class="block text-sm font-medium text-gray-700">Primary Market</label>
|
415 |
+
<select id="market" name="market" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary focus:border-primary sm:text-sm">
|
416 |
+
<option value="">Select Market</option>
|
417 |
+
<option value="stocks">Stocks</option>
|
418 |
+
<option value="forex">Forex</option>
|
419 |
+
<option value="crypto">Cryptocurrency</option>
|
420 |
+
<option value="commodities">Commodities</option>
|
421 |
+
<option value="options">Options</option>
|
422 |
+
</select>
|
423 |
+
</div>
|
424 |
+
|
425 |
+
<div>
|
426 |
+
<label for="profit" class="block text-sm font-medium text-gray-700">Annual Profit ($)</label>
|
427 |
+
<input type="number" id="profit" name="profit" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary focus:border-primary sm:text-sm">
|
428 |
+
</div>
|
429 |
+
</form>
|
430 |
+
</div>
|
431 |
+
</div>
|
432 |
+
</div>
|
433 |
+
</div>
|
434 |
+
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
|
435 |
+
<button type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-primary text-base font-medium text-white hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary sm:ml-3 sm:w-auto sm:text-sm">
|
436 |
+
Add Trader
|
437 |
+
</button>
|
438 |
+
<button type="button" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" id="cancelAddTrader">
|
439 |
+
Cancel
|
440 |
+
</button>
|
441 |
+
</div>
|
442 |
+
</div>
|
443 |
+
</div>
|
444 |
+
</div>
|
445 |
+
|
446 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
447 |
+
<script>
|
448 |
+
// Sample trader data
|
449 |
+
const traders = [
|
450 |
+
{
|
451 |
+
id: 1,
|
452 |
+
name: "John Smith",
|
453 |
+
country: "United States",
|
454 |
+
market: "Stocks",
|
455 |
+
profit: 125000,
|
456 |
+
winRate: 78,
|
457 |
+
riskScore: 3.2,
|
458 |
+
avatar: "JS"
|
459 |
+
},
|
460 |
+
{
|
461 |
+
id: 2,
|
462 |
+
name: "Emma Johnson",
|
463 |
+
country: "United Kingdom",
|
464 |
+
market: "Forex",
|
465 |
+
profit: 89000,
|
466 |
+
winRate: 82,
|
467 |
+
riskScore: 2.8,
|
468 |
+
avatar: "EJ"
|
469 |
+
},
|
470 |
+
{
|
471 |
+
id: 3,
|
472 |
+
name: "Hiroshi Tanaka",
|
473 |
+
country: "Japan",
|
474 |
+
market: "Crypto",
|
475 |
+
profit: 215000,
|
476 |
+
winRate: 65,
|
477 |
+
riskScore: 5.1,
|
478 |
+
avatar: "HT"
|
479 |
+
},
|
480 |
+
{
|
481 |
+
id: 4,
|
482 |
+
name: "Sophie Müller",
|
483 |
+
country: "Germany",
|
484 |
+
market: "Commodities",
|
485 |
+
profit: 76000,
|
486 |
+
winRate: 71,
|
487 |
+
riskScore: 4.3,
|
488 |
+
avatar: "SM"
|
489 |
+
},
|
490 |
+
{
|
491 |
+
id: 5,
|
492 |
+
name: "Wei Chen",
|
493 |
+
country: "Singapore",
|
494 |
+
market: "Options",
|
495 |
+
profit: 182000,
|
496 |
+
winRate: 75,
|
497 |
+
riskScore: 3.9,
|
498 |
+
avatar: "WC"
|
499 |
+
},
|
500 |
+
{
|
501 |
+
id: 6,
|
502 |
+
name: "Raj Patel",
|
503 |
+
country: "India",
|
504 |
+
market: "Crypto",
|
505 |
+
profit: 143000,
|
506 |
+
winRate: 68,
|
507 |
+
riskScore: 4.7,
|
508 |
+
avatar: "RP"
|
509 |
+
},
|
510 |
+
{
|
511 |
+
id: 7,
|
512 |
+
name: "Maria Garcia",
|
513 |
+
country: "Spain",
|
514 |
+
market: "Forex",
|
515 |
+
profit: 92000,
|
516 |
+
winRate: 79,
|
517 |
+
riskScore: 3.5,
|
518 |
+
avatar: "MG"
|
519 |
+
},
|
520 |
+
{
|
521 |
+
id: 8,
|
522 |
+
name: "David Kim",
|
523 |
+
country: "South Korea",
|
524 |
+
market: "Stocks",
|
525 |
+
profit: 112000,
|
526 |
+
winRate: 74,
|
527 |
+
riskScore: 3.8,
|
528 |
+
avatar: "DK"
|
529 |
+
},
|
530 |
+
{
|
531 |
+
id: 9,
|
532 |
+
name: "Olivia Brown",
|
533 |
+
country: "Canada",
|
534 |
+
market: "Options",
|
535 |
+
profit: 155000,
|
536 |
+
winRate: 81,
|
537 |
+
riskScore: 3.1,
|
538 |
+
avatar: "OB"
|
539 |
+
},
|
540 |
+
{
|
541 |
+
id: 10,
|
542 |
+
name: "Luca Rossi",
|
543 |
+
country: "Italy",
|
544 |
+
market: "Commodities",
|
545 |
+
profit: 68000,
|
546 |
+
winRate: 69,
|
547 |
+
riskScore: 4.5,
|
548 |
+
avatar: "LR"
|
549 |
+
}
|
550 |
+
];
|
551 |
+
|
552 |
+
// Populate traders table
|
553 |
+
function populateTradersTable() {
|
554 |
+
const tableBody = document.getElementById('tradersTableBody');
|
555 |
+
tableBody.innerHTML = '';
|
556 |
+
|
557 |
+
traders.forEach(trader => {
|
558 |
+
const row = document.createElement('tr');
|
559 |
+
|
560 |
+
// Format profit with commas
|
561 |
+
const formattedProfit = trader.profit.toLocaleString('en-US', {
|
562 |
+
style: 'currency',
|
563 |
+
currency: 'USD',
|
564 |
+
minimumFractionDigits: 0,
|
565 |
+
maximumFractionDigits: 0
|
566 |
+
});
|
567 |
+
|
568 |
+
row.innerHTML = `
|
569 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
570 |
+
<div class="flex items-center">
|
571 |
+
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
|
572 |
+
<span class="text-blue-600 font-medium">${trader.avatar}</span>
|
573 |
+
</div>
|
574 |
+
<div class="ml-4">
|
575 |
+
<div class="text-sm font-medium text-gray-900">${trader.name}</div>
|
576 |
+
<div class="text-sm text-gray-500">ID: ${trader.id}</div>
|
577 |
+
</div>
|
578 |
+
</div>
|
579 |
+
</td>
|
580 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
581 |
+
<div class="text-sm text-gray-900">${trader.country}</div>
|
582 |
+
</td>
|
583 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
584 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full
|
585 |
+
${trader.market === 'Stocks' ? 'bg-green-100 text-green-800' :
|
586 |
+
trader.market === 'Forex' ? 'bg-blue-100 text-blue-800' :
|
587 |
+
trader.market === 'Crypto' ? 'bg-purple-100 text-purple-800' :
|
588 |
+
trader.market === 'Commodities' ? 'bg-yellow-100 text-yellow-800' :
|
589 |
+
'bg-indigo-100 text-indigo-800'}">
|
590 |
+
${trader.market}
|
591 |
+
</span>
|
592 |
+
</td>
|
593 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900 font-medium">
|
594 |
+
${formattedProfit}
|
595 |
+
</td>
|
596 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
597 |
+
<div class="flex items-center">
|
598 |
+
<div class="w-16 bg-gray-200 rounded-full h-2">
|
599 |
+
<div class="bg-green-600 h-2 rounded-full" style="width: ${trader.winRate}%"></div>
|
600 |
+
</div>
|
601 |
+
<span class="ml-2 text-sm text-gray-600">${trader.winRate}%</span>
|
602 |
+
</div>
|
603 |
+
</td>
|
604 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
605 |
+
<div class="flex items-center">
|
606 |
+
<div class="w-16 bg-gray-200 rounded-full h-2">
|
607 |
+
<div class="bg-${trader.riskScore < 4 ? 'green' : trader.riskScore < 7 ? 'yellow' : 'red'}-600 h-2 rounded-full" style="width: ${trader.riskScore * 10}%"></div>
|
608 |
+
</div>
|
609 |
+
<span class="ml-2 text-sm text-gray-600">${trader.riskScore}</span>
|
610 |
+
</div>
|
611 |
+
</td>
|
612 |
+
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
613 |
+
<button class="text-primary hover:text-secondary mr-3">
|
614 |
+
<i class="fas fa-eye"></i>
|
615 |
+
</button>
|
616 |
+
<button class="text-blue-500 hover:text-blue-700 mr-3">
|
617 |
+
<i class="fas fa-edit"></i>
|
618 |
+
</button>
|
619 |
+
<button class="text-red-500 hover:text-red-700">
|
620 |
+
<i class="fas fa-trash"></i>
|
621 |
+
</button>
|
622 |
+
</td>
|
623 |
+
`;
|
624 |
+
|
625 |
+
tableBody.appendChild(row);
|
626 |
+
});
|
627 |
+
}
|
628 |
+
|
629 |
+
// Initialize charts
|
630 |
+
function initCharts() {
|
631 |
+
// Profit Distribution Chart
|
632 |
+
const profitCtx = document.getElementById('profitChart').getContext('2d');
|
633 |
+
const profitChart = new Chart(profitCtx, {
|
634 |
+
type: 'bar',
|
635 |
+
data: {
|
636 |
+
labels: ['0 - $10k', '$10k - $50k', '$50k - $100k', '$100k - $250k', '$250k+'],
|
637 |
+
datasets: [{
|
638 |
+
label: 'Number of Traders',
|
639 |
+
data: [320, 450, 280, 150, 48],
|
640 |
+
backgroundColor: [
|
641 |
+
'rgba(59, 130, 246, 0.6)',
|
642 |
+
'rgba(59, 130, 246, 0.6)',
|
643 |
+
'rgba(59, 130, 246, 0.6)',
|
644 |
+
'rgba(59, 130, 246, 0.6)',
|
645 |
+
'rgba(59, 130, 246, 0.6)'
|
646 |
+
],
|
647 |
+
borderColor: [
|
648 |
+
'rgba(59, 130, 246, 1)',
|
649 |
+
'rgba(59, 130, 246, 1)',
|
650 |
+
'rgba(59, 130, 246, 1)',
|
651 |
+
'rgba(59, 130, 246, 1)',
|
652 |
+
'rgba(59, 130, 246, 1)'
|
653 |
+
],
|
654 |
+
borderWidth: 1
|
655 |
+
}]
|
656 |
+
},
|
657 |
+
options: {
|
658 |
+
responsive: true,
|
659 |
+
maintainAspectRatio: false,
|
660 |
+
scales: {
|
661 |
+
y: {
|
662 |
+
beginAtZero: true
|
663 |
+
}
|
664 |
+
},
|
665 |
+
plugins: {
|
666 |
+
legend: {
|
667 |
+
display: false
|
668 |
+
}
|
669 |
+
}
|
670 |
+
}
|
671 |
+
});
|
672 |
+
|
673 |
+
// Location Distribution Chart
|
674 |
+
const locationCtx = document.getElementById('locationChart').getContext('2d');
|
675 |
+
const locationChart = new Chart(locationCtx, {
|
676 |
+
type: 'doughnut',
|
677 |
+
data: {
|
678 |
+
labels: ['United States', 'United Kingdom', 'Japan', 'Germany', 'Singapore', 'Other'],
|
679 |
+
datasets: [{
|
680 |
+
data: [32, 15, 12, 9, 8, 24],
|
681 |
+
backgroundColor: [
|
682 |
+
'rgba(30, 64, 175, 0.7)',
|
683 |
+
'rgba(59, 130, 246, 0.7)',
|
684 |
+
'rgba(107, 114, 128, 0.7)',
|
685 |
+
'rgba(156, 163, 175, 0.7)',
|
686 |
+
'rgba(209, 213, 219, 0.7)',
|
687 |
+
'rgba(229, 231, 235, 0.7)'
|
688 |
+
],
|
689 |
+
borderColor: [
|
690 |
+
'rgba(30, 64, 175, 1)',
|
691 |
+
'rgba(59, 130, 246, 1)',
|
692 |
+
'rgba(107, 114, 128, 1)',
|
693 |
+
'rgba(156, 163, 175, 1)',
|
694 |
+
'rgba(209, 213, 219, 1)',
|
695 |
+
'rgba(229, 231, 235, 1)'
|
696 |
+
],
|
697 |
+
borderWidth: 1
|
698 |
+
}]
|
699 |
+
},
|
700 |
+
options: {
|
701 |
+
responsive: true,
|
702 |
+
maintainAspectRatio: false,
|
703 |
+
plugins: {
|
704 |
+
legend: {
|
705 |
+
position: 'right',
|
706 |
+
}
|
707 |
+
}
|
708 |
+
}
|
709 |
+
});
|
710 |
+
}
|
711 |
+
|
712 |
+
// Mobile menu toggle
|
713 |
+
document.getElementById('menuToggle').addEventListener('click', function() {
|
714 |
+
document.querySelector('.sidebar').classList.toggle('active');
|
715 |
+
document.querySelector('.overlay').classList.toggle('active');
|
716 |
+
});
|
717 |
+
|
718 |
+
// Close mobile menu when clicking overlay
|
719 |
+
document.querySelector('.overlay').addEventListener('click', function() {
|
720 |
+
document.querySelector('.sidebar').classList.remove('active');
|
721 |
+
this.classList.remove('active');
|
722 |
+
});
|
723 |
+
|
724 |
+
// Modal controls
|
725 |
+
const addTraderModal = document.getElementById('addTraderModal');
|
726 |
+
const addTraderBtn = document.querySelector('button:contains("Add Trader")');
|
727 |
+
const cancelAddTraderBtn = document.getElementById('cancelAddTrader');
|
728 |
+
|
729 |
+
// Show modal when clicking "Add Trader" button in header
|
730 |
+
document.querySelector('header button:contains("Add Trader")').addEventListener('click', function() {
|
731 |
+
addTraderModal.classList.remove('hidden');
|
732 |
+
});
|
733 |
+
|
734 |
+
// Hide modal when clicking cancel
|
735 |
+
cancelAddTraderBtn.addEventListener('click', function() {
|
736 |
+
addTraderModal.classList.add('hidden');
|
737 |
+
});
|
738 |
+
|
739 |
+
// Initialize the app
|
740 |
+
document.addEventListener('DOMContentLoaded', function() {
|
741 |
+
populateTradersTable();
|
742 |
+
initCharts();
|
743 |
+
});
|
744 |
+
</script>
|
745 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Amg7/build-me-full-database-management-application-for-gathering-profitable-traders-database-in-the-w" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
746 |
+
</html>
|
prompts.txt
CHANGED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Build me full database management application for gathering profitable traders database in the world
|