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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>Retro Portfolio Tracker</title>
|
| 7 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 8 |
+
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap" rel="stylesheet">
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 10 |
+
<style>
|
| 11 |
+
:root {
|
| 12 |
+
--neon-blue: #00f3ff;
|
| 13 |
+
--neon-pink: #ff00ff;
|
| 14 |
+
--neon-green: #39ff14;
|
| 15 |
+
--dark-bg: #0a0a1a;
|
| 16 |
+
--card-bg: #1a1a3a;
|
| 17 |
+
--text-primary: #ffffff;
|
| 18 |
+
--text-secondary: #cccccc;
|
| 19 |
+
--glow-blue: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
|
| 20 |
+
--glow-pink: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
|
| 21 |
+
--glow-green: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
* {
|
| 25 |
+
margin: 0;
|
| 26 |
+
padding: 0;
|
| 27 |
+
box-sizing: border-box;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
body {
|
| 31 |
+
font-family: 'Share Tech Mono', monospace;
|
| 32 |
+
background-color: var(--dark-bg);
|
| 33 |
+
color: var(--text-primary);
|
| 34 |
+
background-image:
|
| 35 |
+
radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.05) 0%, transparent 20%),
|
| 36 |
+
radial-gradient(circle at 90% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 20%);
|
| 37 |
+
min-height: 100vh;
|
| 38 |
+
overflow-x: hidden;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.container {
|
| 42 |
+
max-width: 1200px;
|
| 43 |
+
margin: 0 auto;
|
| 44 |
+
padding: 20px;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
header {
|
| 48 |
+
display: flex;
|
| 49 |
+
justify-content: space-between;
|
| 50 |
+
align-items: center;
|
| 51 |
+
padding: 20px 0;
|
| 52 |
+
border-bottom: 2px solid var(--neon-blue);
|
| 53 |
+
margin-bottom: 30px;
|
| 54 |
+
box-shadow: var(--glow-blue);
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.logo {
|
| 58 |
+
font-family: 'Orbitron', sans-serif;
|
| 59 |
+
font-size: 2.5rem;
|
| 60 |
+
font-weight: 900;
|
| 61 |
+
text-transform: uppercase;
|
| 62 |
+
background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
|
| 63 |
+
-webkit-background-clip: text;
|
| 64 |
+
background-clip: text;
|
| 65 |
+
color: transparent;
|
| 66 |
+
text-shadow: var(--glow-blue);
|
| 67 |
+
letter-spacing: 2px;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.built-with {
|
| 71 |
+
font-size: 0.8rem;
|
| 72 |
+
color: var(--text-secondary);
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
.built-with a {
|
| 76 |
+
color: var(--neon-green);
|
| 77 |
+
text-decoration: none;
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
.main-grid {
|
| 81 |
+
display: grid;
|
| 82 |
+
grid-template-columns: 1fr 2fr;
|
| 83 |
+
gap: 20px;
|
| 84 |
+
margin-bottom: 30px;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
@media (max-width: 768px) {
|
| 88 |
+
.main-grid {
|
| 89 |
+
grid-template-columns: 1fr;
|
| 90 |
+
}
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.card {
|
| 94 |
+
background-color: var(--card-bg);
|
| 95 |
+
border-radius: 8px;
|
| 96 |
+
padding: 20px;
|
| 97 |
+
box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
|
| 98 |
+
border: 1px solid rgba(0, 243, 255, 0.3);
|
| 99 |
+
transition: all 0.3s ease;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.card:hover {
|
| 103 |
+
box-shadow: var(--glow-blue);
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.card-title {
|
| 107 |
+
font-family: 'Orbitron', sans-serif;
|
| 108 |
+
font-size: 1.2rem;
|
| 109 |
+
margin-bottom: 15px;
|
| 110 |
+
color: var(--neon-blue);
|
| 111 |
+
display: flex;
|
| 112 |
+
align-items: center;
|
| 113 |
+
gap: 10px;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
.card-title i {
|
| 117 |
+
font-size: 1.4rem;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
.wallet-form {
|
| 121 |
+
display: flex;
|
| 122 |
+
flex-direction: column;
|
| 123 |
+
gap: 15px;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
.form-group {
|
| 127 |
+
display: flex;
|
| 128 |
+
flex-direction: column;
|
| 129 |
+
gap: 5px;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
label {
|
| 133 |
+
font-size: 0.9rem;
|
| 134 |
+
color: var(--text-secondary);
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
input, select {
|
| 138 |
+
background-color: rgba(0, 0, 0, 0.3);
|
| 139 |
+
border: 1px solid var(--neon-blue);
|
| 140 |
+
border-radius: 4px;
|
| 141 |
+
padding: 10px;
|
| 142 |
+
color: var(--text-primary);
|
| 143 |
+
font-family: 'Share Tech Mono', monospace;
|
| 144 |
+
transition: all 0.3s ease;
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
input:focus, select:focus {
|
| 148 |
+
outline: none;
|
| 149 |
+
box-shadow: var(--glow-blue);
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
.btn {
|
| 153 |
+
background-color: transparent;
|
| 154 |
+
border: 1px solid var(--neon-blue);
|
| 155 |
+
color: var(--neon-blue);
|
| 156 |
+
padding: 10px 15px;
|
| 157 |
+
border-radius: 4px;
|
| 158 |
+
cursor: pointer;
|
| 159 |
+
font-family: 'Share Tech Mono', monospace;
|
| 160 |
+
transition: all 0.3s ease;
|
| 161 |
+
text-transform: uppercase;
|
| 162 |
+
letter-spacing: 1px;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
.btn:hover {
|
| 166 |
+
background-color: var(--neon-blue);
|
| 167 |
+
color: var(--dark-bg);
|
| 168 |
+
box-shadow: var(--glow-blue);
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
.btn-primary {
|
| 172 |
+
background-color: var(--neon-blue);
|
| 173 |
+
color: var(--dark-bg);
|
| 174 |
+
font-weight: bold;
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
+
.btn-primary:hover {
|
| 178 |
+
background-color: var(--neon-green);
|
| 179 |
+
border-color: var(--neon-green);
|
| 180 |
+
box-shadow: var(--glow-green);
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
.btn-danger {
|
| 184 |
+
border-color: var(--neon-pink);
|
| 185 |
+
color: var(--neon-pink);
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
.btn-danger:hover {
|
| 189 |
+
background-color: var(--neon-pink);
|
| 190 |
+
color: var(--dark-bg);
|
| 191 |
+
box-shadow: var(--glow-pink);
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
.portfolio-summary {
|
| 195 |
+
display: grid;
|
| 196 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 197 |
+
gap: 15px;
|
| 198 |
+
margin-bottom: 30px;
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
.stat-card {
|
| 202 |
+
background-color: var(--card-bg);
|
| 203 |
+
border-radius: 8px;
|
| 204 |
+
padding: 15px;
|
| 205 |
+
text-align: center;
|
| 206 |
+
border: 1px solid rgba(0, 243, 255, 0.3);
|
| 207 |
+
transition: all 0.3s ease;
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
.stat-card:hover {
|
| 211 |
+
box-shadow: var(--glow-blue);
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
.stat-value {
|
| 215 |
+
font-family: 'Orbitron', sans-serif;
|
| 216 |
+
font-size: 1.8rem;
|
| 217 |
+
font-weight: bold;
|
| 218 |
+
margin: 10px 0;
|
| 219 |
+
color: var(--neon-green);
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
.stat-label {
|
| 223 |
+
font-size: 0.9rem;
|
| 224 |
+
color: var(--text-secondary);
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
.tokens-grid {
|
| 228 |
+
display: grid;
|
| 229 |
+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
| 230 |
+
gap: 15px;
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
.token-card {
|
| 234 |
+
background-color: var(--card-bg);
|
| 235 |
+
border-radius: 8px;
|
| 236 |
+
padding: 15px;
|
| 237 |
+
border: 1px solid rgba(0, 243, 255, 0.3);
|
| 238 |
+
transition: all 0.3s ease;
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
.token-card.old-token {
|
| 242 |
+
border-color: var(--neon-pink);
|
| 243 |
+
box-shadow: var(--glow-pink);
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
.token-header {
|
| 247 |
+
display: flex;
|
| 248 |
+
justify-content: space-between;
|
| 249 |
+
align-items: center;
|
| 250 |
+
margin-bottom: 10px;
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
.token-name {
|
| 254 |
+
font-weight: bold;
|
| 255 |
+
font-size: 1.1rem;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
.token-age {
|
| 259 |
+
font-size: 0.8rem;
|
| 260 |
+
padding: 3px 8px;
|
| 261 |
+
border-radius: 12px;
|
| 262 |
+
background-color: rgba(255, 0, 255, 0.2);
|
| 263 |
+
color: var(--neon-pink);
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
.token-details {
|
| 267 |
+
display: grid;
|
| 268 |
+
grid-template-columns: 1fr 1fr;
|
| 269 |
+
gap: 10px;
|
| 270 |
+
margin-top: 10px;
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
.detail-label {
|
| 274 |
+
font-size: 0.8rem;
|
| 275 |
+
color: var(--text-secondary);
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
.detail-value {
|
| 279 |
+
font-size: 0.9rem;
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
.csv-upload {
|
| 283 |
+
margin-top: 30px;
|
| 284 |
+
display: flex;
|
| 285 |
+
flex-direction: column;
|
| 286 |
+
gap: 15px;
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
.upload-area {
|
| 290 |
+
border: 2px dashed var(--neon-blue);
|
| 291 |
+
border-radius: 8px;
|
| 292 |
+
padding: 30px;
|
| 293 |
+
text-align: center;
|
| 294 |
+
cursor: pointer;
|
| 295 |
+
transition: all 0.3s ease;
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
.upload-area:hover {
|
| 299 |
+
background-color: rgba(0, 243, 255, 0.1);
|
| 300 |
+
box-shadow: var(--glow-blue);
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
.upload-area i {
|
| 304 |
+
font-size: 3rem;
|
| 305 |
+
color: var(--neon-blue);
|
| 306 |
+
margin-bottom: 15px;
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
.chart-container {
|
| 310 |
+
height: 300px;
|
| 311 |
+
margin-top: 20px;
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
.wallet-list {
|
| 315 |
+
margin-top: 20px;
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
.wallet-item {
|
| 319 |
+
display: flex;
|
| 320 |
+
justify-content: space-between;
|
| 321 |
+
align-items: center;
|
| 322 |
+
padding: 10px;
|
| 323 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
.wallet-address {
|
| 327 |
+
font-family: 'Share Tech Mono', monospace;
|
| 328 |
+
font-size: 0.9rem;
|
| 329 |
+
color: var(--text-secondary);
|
| 330 |
+
}
|
| 331 |
+
|
| 332 |
+
.actions {
|
| 333 |
+
display: flex;
|
| 334 |
+
gap: 10px;
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
.modal {
|
| 338 |
+
display: none;
|
| 339 |
+
position: fixed;
|
| 340 |
+
top: 0;
|
| 341 |
+
left: 0;
|
| 342 |
+
width: 100%;
|
| 343 |
+
height: 100%;
|
| 344 |
+
background-color: rgba(0, 0, 0, 0.8);
|
| 345 |
+
z-index: 1000;
|
| 346 |
+
justify-content: center;
|
| 347 |
+
align-items: center;
|
| 348 |
+
}
|
| 349 |
+
|
| 350 |
+
.modal-content {
|
| 351 |
+
background-color: var(--card-bg);
|
| 352 |
+
border-radius: 8px;
|
| 353 |
+
padding: 30px;
|
| 354 |
+
width: 90%;
|
| 355 |
+
max-width: 500px;
|
| 356 |
+
border: 2px solid var(--neon-blue);
|
| 357 |
+
box-shadow: var(--glow-blue);
|
| 358 |
+
}
|
| 359 |
+
|
| 360 |
+
.modal-header {
|
| 361 |
+
display: flex;
|
| 362 |
+
justify-content: space-between;
|
| 363 |
+
align-items: center;
|
| 364 |
+
margin-bottom: 20px;
|
| 365 |
+
}
|
| 366 |
+
|
| 367 |
+
.close-modal {
|
| 368 |
+
background: none;
|
| 369 |
+
border: none;
|
| 370 |
+
color: var(--text-primary);
|
| 371 |
+
font-size: 1.5rem;
|
| 372 |
+
cursor: pointer;
|
| 373 |
+
}
|
| 374 |
+
|
| 375 |
+
.hidden {
|
| 376 |
+
display: none;
|
| 377 |
+
}
|
| 378 |
+
|
| 379 |
+
.scan-line {
|
| 380 |
+
position: fixed;
|
| 381 |
+
top: 0;
|
| 382 |
+
left: 0;
|
| 383 |
+
width: 100%;
|
| 384 |
+
height: 2px;
|
| 385 |
+
background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
|
| 386 |
+
animation: scan 5s linear infinite;
|
| 387 |
+
pointer-events: none;
|
| 388 |
+
z-index: 100;
|
| 389 |
+
}
|
| 390 |
+
|
| 391 |
+
@keyframes scan {
|
| 392 |
+
0% { top: 0; }
|
| 393 |
+
100% { top: 100%; }
|
| 394 |
+
}
|
| 395 |
+
|
| 396 |
+
.grid-overlay {
|
| 397 |
+
position: fixed;
|
| 398 |
+
top: 0;
|
| 399 |
+
left: 0;
|
| 400 |
+
width: 100%;
|
| 401 |
+
height: 100%;
|
| 402 |
+
background-image:
|
| 403 |
+
linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
|
| 404 |
+
linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
|
| 405 |
+
background-size: 20px 20px;
|
| 406 |
+
pointer-events: none;
|
| 407 |
+
z-index: -1;
|
| 408 |
+
}
|
| 409 |
+
</style>
|
| 410 |
+
</head>
|
| 411 |
+
<body>
|
| 412 |
+
<div class="grid-overlay"></div>
|
| 413 |
+
<div class="scan-line"></div>
|
| 414 |
+
|
| 415 |
+
<div class="container">
|
| 416 |
+
<header>
|
| 417 |
+
<div class="logo">Portfolio Tracker</div>
|
| 418 |
+
<div class="built-with">Built with <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank">anycoder</a></div>
|
| 419 |
+
</header>
|
| 420 |
+
|
| 421 |
+
<div class="portfolio-summary">
|
| 422 |
+
<div class="stat-card">
|
| 423 |
+
<div class="stat-label">Total Portfolio Value</div>
|
| 424 |
+
<div class="stat-value">$24,578.32</div>
|
| 425 |
+
</div>
|
| 426 |
+
<div class="stat-card">
|
| 427 |
+
<div class="stat-label">Active Wallets</div>
|
| 428 |
+
<div class="stat-value">3</div>
|
| 429 |
+
</div>
|
| 430 |
+
<div class="stat-card">
|
| 431 |
+
<div class="stat-label">Tokens Tracked</div>
|
| 432 |
+
<div class="stat-value">18</div>
|
| 433 |
+
</div>
|
| 434 |
+
<div class="stat-card">
|
| 435 |
+
<div class="stat-label">Old Tokens (>12m)</div>
|
| 436 |
+
<div class="stat-value">4</div>
|
| 437 |
+
</div>
|
| 438 |
+
</div>
|
| 439 |
+
|
| 440 |
+
<div class="main-grid">
|
| 441 |
+
<div class="card">
|
| 442 |
+
<div class="card-title">
|
| 443 |
+
<i class="fas fa-wallet"></i>
|
| 444 |
+
Wallet Management
|
| 445 |
+
</div>
|
| 446 |
+
<div class="wallet-form">
|
| 447 |
+
<div class="form-group">
|
| 448 |
+
<label for="wallet-address">Wallet Address</label>
|
| 449 |
+
<input type="text" id="wallet-address" placeholder="0x...">
|
| 450 |
+
</div>
|
| 451 |
+
<div class="form-group">
|
| 452 |
+
<label for="blockchain">Blockchain</label>
|
| 453 |
+
<select id="blockchain">
|
| 454 |
+
<option value="ethereum">Ethereum</option>
|
| 455 |
+
<option value="bsc">Binance Smart Chain</option>
|
| 456 |
+
<option value="polygon">Polygon</option>
|
| 457 |
+
<option value="solana">Solana</option>
|
| 458 |
+
<option value="avalanche">Avalanche</option>
|
| 459 |
+
</select>
|
| 460 |
+
</div>
|
| 461 |
+
<button class="btn btn-primary" id="add-wallet">
|
| 462 |
+
<i class="fas fa-plus"></i> Add Wallet
|
| 463 |
+
</button>
|
| 464 |
+
</div>
|
| 465 |
+
|
| 466 |
+
<div class="wallet-list">
|
| 467 |
+
<div class="wallet-item">
|
| 468 |
+
<div class="wallet-address">0x1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1</div>
|
| 469 |
+
<div class="actions">
|
| 470 |
+
<button class="btn btn-danger"><i class="fas fa-trash"></i></button>
|
| 471 |
+
</div>
|
| 472 |
+
</div>
|
| 473 |
+
<div class="wallet-item">
|
| 474 |
+
<div class="wallet-address">0x2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c</div>
|
| 475 |
+
<div class="actions">
|
| 476 |
+
<button class="btn btn-danger"><i class="fas fa-trash"></i></button>
|
| 477 |
+
</div>
|
| 478 |
+
</div>
|
| 479 |
+
<div class="wallet-item">
|
| 480 |
+
<div class="wallet-address">0x3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d</div>
|
| 481 |
+
<div class="actions">
|
| 482 |
+
<button class="btn btn-danger"><i class="fas fa-trash"></i></button>
|
| 483 |
+
</div>
|
| 484 |
+
</div>
|
| 485 |
+
</div>
|
| 486 |
+
</div>
|
| 487 |
+
|
| 488 |
+
<div class="card">
|
| 489 |
+
<div class="card-title">
|
| 490 |
+
<i class="fas fa-chart-line"></i>
|
| 491 |
+
Portfolio Overview
|
| 492 |
+
</div>
|
| 493 |
+
<div class="chart-container">
|
| 494 |
+
<canvas id="portfolio-chart"></canvas>
|
| 495 |
+
</div>
|
| 496 |
+
</div>
|
| 497 |
+
</div>
|
| 498 |
+
|
| 499 |
+
<div class="card">
|
| 500 |
+
<div class="card-title">
|
| 501 |
+
<i class="fas fa-coins"></i>
|
| 502 |
+
Token Holdings
|
| 503 |
+
</div>
|
| 504 |
+
<div class="tokens-grid" id="tokens-container">
|
| 505 |
+
<!-- Token cards will be dynamically generated here -->
|
| 506 |
+
</div>
|
| 507 |
+
</div>
|
| 508 |
+
|
| 509 |
+
<div class="card">
|
| 510 |
+
<div class="card-title">
|
| 511 |
+
<i class="fas fa-file-import"></i>
|
| 512 |
+
Import Transactions
|
| 513 |
+
</div>
|
| 514 |
+
<div class="csv-upload">
|
| 515 |
+
<div class="upload-area" id="upload-area">
|
| 516 |
+
<i class="fas fa-file-csv"></i>
|
| 517 |
+
<h3>Drop CSV file here or click to upload</h3>
|
| 518 |
+
<p>Supported formats: CSV with transaction data</p>
|
| 519 |
+
</div>
|
| 520 |
+
<input type="file" id="csv-file" accept=".csv" class="hidden">
|
| 521 |
+
</div>
|
| 522 |
+
</div>
|
| 523 |
+
</div>
|
| 524 |
+
|
| 525 |
+
<div class="modal" id="wallet-modal">
|
| 526 |
+
<div class="modal-content">
|
| 527 |
+
<div class="modal-header">
|
| 528 |
+
<h2>Add New Wallet</h2>
|
| 529 |
+
<button class="close-modal">×</button>
|
| 530 |
+
</div>
|
| 531 |
+
<div class="wallet-form">
|
| 532 |
+
<div class="form-group">
|
| 533 |
+
<label for="new-wallet-address">Wallet Address</label>
|
| 534 |
+
<input type="text" id="new-wallet-address" placeholder="0x...">
|
| 535 |
+
</div>
|
| 536 |
+
<div class="form-group">
|
| 537 |
+
<label for="new-blockchain">Blockchain</label>
|
| 538 |
+
<select id="new-blockchain">
|
| 539 |
+
<option value="ethereum">Ethereum</option>
|
| 540 |
+
<option value="bsc">Binance Smart Chain</option>
|
| 541 |
+
<option value="polygon">Polygon</option>
|
| 542 |
+
<option value="solana">Solana</option>
|
| 543 |
+
<option value="avalanche">Avalanche</option>
|
| 544 |
+
</select>
|
| 545 |
+
</div>
|
| 546 |
+
<button class="btn btn-primary">Add Wallet</button>
|
| 547 |
+
</div>
|
| 548 |
+
</div>
|
| 549 |
+
</div>
|
| 550 |
+
|
| 551 |
+
<script>
|
| 552 |
+
// Sample token data
|
| 553 |
+
const tokens = [
|
| 554 |
+
{ name: "Ethereum", symbol: "ETH", value: 12540.50, change: 2.5, age: "6 months", isOld: false },
|
| 555 |
+
{ name: "Bitcoin", symbol: "BTC", value: 8430.75, change: -1.2, age: "8 months", isOld: false },
|
| 556 |
+
{ name: "Uniswap", symbol: "UNI", value: 1520.30, change: 5.7, age: "14 months", isOld: true },
|
| 557 |
+
{ name: "Chainlink", symbol: "LINK", value: 890.25, change: -0.5, age: "10 months", isOld: false },
|
| 558 |
+
{ name: "Aave", symbol: "AAVE", value: 670.80, change: 3.2, age: "16 months", isOld: true },
|
| 559 |
+
{ name: "Polygon", symbol: "MATIC", value: 450.60, change: 7.1, age: "9 months", isOld: false },
|
| 560 |
+
{ name: "Compound", symbol: "COMP", value: 320.40, change: -2.3, age: "18 months", isOld: true },
|
| 561 |
+
{ name: "Synthetix", symbol: "SNX", value: 210.90, change: 4.8, age: "13 months", isOld: true }
|
| 562 |
+
];
|
| 563 |
+
|
| 564 |
+
// Initialize the token display
|
| 565 |
+
function renderTokens() {
|
| 566 |
+
const container = document.getElementById('tokens-container');
|
| 567 |
+
container.innerHTML = '';
|
| 568 |
+
|
| 569 |
+
tokens.forEach(token => {
|
| 570 |
+
const tokenCard = document.createElement('div');
|
| 571 |
+
tokenCard.className = `token-card ${token.isOld ? 'old-token' : ''}`;
|
| 572 |
+
|
| 573 |
+
tokenCard.innerHTML = `
|
| 574 |
+
<div class="token-header">
|
| 575 |
+
<div class="token-name">${token.name} (${token.symbol})</div>
|
| 576 |
+
${token.isOld ? '<div class="token-age">OLD</div>' : ''}
|
| 577 |
+
</div>
|
| 578 |
+
<div class="token-details">
|
| 579 |
+
<div>
|
| 580 |
+
<div class="detail-label">Value</div>
|
| 581 |
+
<div class="detail-value">$${token.value.toLocaleString()}</div>
|
| 582 |
+
</div>
|
| 583 |
+
<div>
|
| 584 |
+
<div class="detail-label">24h Change</div>
|
| 585 |
+
<div class="detail-value" style="color: ${token.change >= 0 ? '#39ff14' : '#ff00ff'}">
|
| 586 |
+
${token.change >= 0 ? '+' : ''}${token.change}%
|
| 587 |
+
</div>
|
| 588 |
+
</div>
|
| 589 |
+
<div>
|
| 590 |
+
<div class="detail-label">Holding Age</div>
|
| 591 |
+
<div class="detail-value">${token.age}</div>
|
| 592 |
+
</div>
|
| 593 |
+
<div>
|
| 594 |
+
<div class="detail-label">Status</div>
|
| 595 |
+
<div class="detail-value">${token.isOld ? 'Long-term' : 'Active'}</div>
|
| 596 |
+
</div>
|
| 597 |
+
</div>
|
| 598 |
+
`;
|
| 599 |
+
|
| 600 |
+
container.appendChild(tokenCard);
|
| 601 |
+
});
|
| 602 |
+
}
|
| 603 |
+
|
| 604 |
+
// Initialize the portfolio chart
|
| 605 |
+
function initChart() {
|
| 606 |
+
const ctx = document.getElementById('portfolio-chart').getContext('2d');
|
| 607 |
+
const chart = new Chart(ctx, {
|
| 608 |
+
type: 'line',
|
| 609 |
+
data: {
|
| 610 |
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
| 611 |
+
datasets: [{
|
| 612 |
+
label: 'Portfolio Value',
|
| 613 |
+
data: [12000, 13500, 14200, 15800, 16500, 17200, 18500, 19800, 21000, 22500, 23800, 24578],
|
| 614 |
+
borderColor: '#00f3ff',
|
| 615 |
+
backgroundColor: 'rgba(0, 243, 255, 0.1)',
|
| 616 |
+
borderWidth: 2,
|
| 617 |
+
pointBackgroundColor: '#00f3ff',
|
| 618 |
+
pointBorderColor: '#0a0a1a',
|
| 619 |
+
pointBorderWidth: 2,
|
| 620 |
+
pointRadius: 4,
|
| 621 |
+
tension: 0.3,
|
| 622 |
+
fill: true
|
| 623 |
+
}]
|
| 624 |
+
},
|
| 625 |
+
options: {
|
| 626 |
+
responsive: true,
|
| 627 |
+
maintainAspectRatio: false,
|
| 628 |
+
plugins: {
|
| 629 |
+
legend: {
|
| 630 |
+
labels: {
|
| 631 |
+
color: '#ffffff',
|
| 632 |
+
font: {
|
| 633 |
+
family: "'Share Tech Mono', monospace"
|
| 634 |
+
}
|
| 635 |
+
}
|
| 636 |
+
}
|
| 637 |
+
},
|
| 638 |
+
scales: {
|
| 639 |
+
x: {
|
| 640 |
+
grid: {
|
| 641 |
+
color: 'rgba(255, 255, 255, 0.1)'
|
| 642 |
+
},
|
| 643 |
+
ticks: {
|
| 644 |
+
color: '#cccccc'
|
| 645 |
+
}
|
| 646 |
+
},
|
| 647 |
+
y: {
|
| 648 |
+
grid: {
|
| 649 |
+
color: 'rgba(255, 255, 255, 0.1)'
|
| 650 |
+
},
|
| 651 |
+
ticks: {
|
| 652 |
+
color: '#cccccc',
|
| 653 |
+
callback: function(value) {
|
| 654 |
+
return '$' + value.toLocaleString();
|
| 655 |
+
}
|
| 656 |
+
}
|
| 657 |
+
}
|
| 658 |
+
}
|
| 659 |
+
}
|
| 660 |
+
});
|
| 661 |
+
}
|
| 662 |
+
|
| 663 |
+
// Event listeners
|
| 664 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 665 |
+
renderTokens();
|
| 666 |
+
initChart();
|
| 667 |
+
|
| 668 |
+
// Add wallet button
|
| 669 |
+
document.getElementById('add-wallet').addEventListener('click', function() {
|
| 670 |
+
document.getElementById('wallet-modal').style.display = 'flex';
|
| 671 |
+
});
|
| 672 |
+
|
| 673 |
+
// Close modal
|
| 674 |
+
document.querySelector('.close-modal').addEventListener('click', function() {
|
| 675 |
+
document.getElementById('wallet-modal').style.display = 'none';
|
| 676 |
+
});
|
| 677 |
+
|
| 678 |
+
// CSV upload
|
| 679 |
+
document.getElementById('upload-area').addEventListener('click', function() {
|
| 680 |
+
document.getElementById('csv-file').click();
|
| 681 |
+
});
|
| 682 |
+
|
| 683 |
+
document.getElementById('csv-file').addEventListener('change', function(e) {
|
| 684 |
+
if (e.target.files.length > 0) {
|
| 685 |
+
const fileName = e.target.files[0].name;
|
| 686 |
+
alert(`File "${fileName}" selected for import. Processing transactions...`);
|
| 687 |
+
// In a real app, you would process the CSV file here
|
| 688 |
+
}
|
| 689 |
+
});
|
| 690 |
+
|
| 691 |
+
// Drag and drop for CSV
|
| 692 |
+
const uploadArea = document.getElementById('upload-area');
|
| 693 |
+
uploadArea.addEventListener('dragover', function(e) {
|
| 694 |
+
e.preventDefault();
|
| 695 |
+
uploadArea.style.backgroundColor = 'rgba(0, 243, 255, 0.2)';
|
| 696 |
+
uploadArea.style.boxShadow = 'var(--glow-blue)';
|
| 697 |
+
});
|
| 698 |
+
|
| 699 |
+
uploadArea.addEventListener('dragleave', function() {
|
| 700 |
+
uploadArea.style.backgroundColor = '';
|
| 701 |
+
uploadArea.style.boxShadow = '';
|
| 702 |
+
});
|
| 703 |
+
|
| 704 |
+
uploadArea.addEventListener('drop', function(e) {
|
| 705 |
+
e.preventDefault();
|
| 706 |
+
uploadArea.style.backgroundColor = '';
|
| 707 |
+
uploadArea.style.boxShadow = '';
|
| 708 |
+
|
| 709 |
+
if (e.dataTransfer.files.length > 0) {
|
| 710 |
+
const file = e.dataTransfer.files[0];
|
| 711 |
+
if (file.name.endsWith('.csv')) {
|
| 712 |
+
alert(`File "${file.name}" dropped. Processing transactions...`);
|
| 713 |
+
// In a real app, you would process the CSV file here
|
| 714 |
+
} else {
|
| 715 |
+
alert('Please drop a CSV file');
|
| 716 |
+
}
|
| 717 |
+
});
|
| 718 |
+
});
|
| 719 |
+
|
| 720 |
+
// Simulate data updates
|
| 721 |
+
setInterval(() => {
|
| 722 |
+
// Update token prices randomly
|
| 723 |
+
tokens.forEach(token => {
|
| 724 |
+
const randomChange = (Math.random() * 4 - 2).toFixed(2);
|
| 725 |
+
token.change = parseFloat(randomChange);
|
| 726 |
+
|
| 727 |
+
// Update value based on change
|
| 728 |
+
const changeFactor = 1 + (token.change / 100);
|
| 729 |
+
token.value = parseFloat((token.value * changeFactor).toFixed(2));
|
| 730 |
+
});
|
| 731 |
+
|
| 732 |
+
renderTokens();
|
| 733 |
+
}, 10000);
|
| 734 |
+
</script>
|
| 735 |
+
</body>
|
| 736 |
+
</html>
|