Bot auto-update: src/__pycache__/web_dashboard.cpython-310.pyc,src/web_dashboard.py

This commit is contained in:
Marc Blatter 2026-07-04 13:12:06 +02:00
parent cfd8320896
commit cf08e5dc8d
2 changed files with 201 additions and 145 deletions

View File

@ -217,144 +217,200 @@ html_content = """
} }
body { body {
background-color: #0d0d0d; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #d0d0d0; background: linear-gradient(135deg, #2ecc71c29 0%, #302b63 100%);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #e0e0e0;
line-height: 1.6; padding: 20px;
} min-height: 100vh;
h1, h2, h3 {
color: #ffffff;
font-weight: 600;
} }
.container { .container {
max-width: 1400px; max-width: 1400px;
margin: 0 auto; margin: 0 auto;
padding: 40px; }
.header {
text-align: center;
margin-bottom: 30px;
border-bottom: 2px solid #6c63ff;
padding-bottom: 20px;
}
.header h1 {
font-size: 2.5em;
color: #6c63ff;
margin-bottom: 10px;
}
.status {
display: inline-block;
padding: 8px 16px;
background: #00c853;
color: white;
border-radius: 20px;
font-weight: bold;
font-size: 0.9em;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 30px;
} }
.card { .card {
background-color: #1a1a1a; background: rgba(255, 255, 255, 0.1);
border: 1px solid #2a2a2a; border: 1px solid #6c63ff;
border-radius: 8px; border-radius: 10px;
padding: 24px; padding: 20px;
margin-bottom: 20px; backdrop-filter: blur(10px);
transition: all 0.3s ease;
}
.card:hover {
background: rgba(255, 255, 255, 0.15);
border-color: #00c853;
transform: translateY(-5px);
} }
.card-title { .card-title {
color: #a0a0a0; color: #6c63ff;
font-size: 12px; font-size: 0.9em;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 1px; letter-spacing: 1px;
margin-bottom: 12px; margin-bottom: 10px;
font-weight: 600;
} }
.card-value { .card-value {
color: #ffffff; font-size: 2em;
font-size: 28px; font-weight: bold;
font-weight: 700; color: #e0e0e0;
margin-bottom: 8px; margin-bottom: 5px;
} }
.card-sub { .card-sub {
color: #666666; color: #a0a0a0;
font-size: 12px; font-size: 0.85em;
} }
.positive { .positive {
color: #2ecc71; color: #00c853;
} }
.negative { .negative {
color: #e74c3c; color: #ff3d00;
} }
table { .section {
width: 100%; margin-bottom: 30px;
border-collapse: collapse;
background-color: #1a1a1a;
border: 1px solid #2a2a2a;
border-radius: 8px;
overflow: hidden;
} }
th { .section-title {
background-color: #252525; color: #6c63ff;
font-size: 1.5em;
margin-bottom: 15px;
border-bottom: 1px solid #6c63ff;
padding-bottom: 10px;
}
.trades-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 15px;
}
.trade-card {
background: rgba(255, 255, 255, 0.08);
border-left: 4px solid #6c63ff;
border-radius: 5px;
padding: 15px;
font-size: 0.9em;
}
.trade-card.open {
border-left-color: #6c63ff;
}
.trade-card.closed {
border-left-color: #00c853;
}
.trade-pair {
font-weight: bold;
color: #6c63ff;
margin-bottom: 8px;
}
.trade-info {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
font-size: 0.85em;
color: #a0a0a0; color: #a0a0a0;
padding: 14px 16px;
text-align: left;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
border-bottom: 1px solid #2a2a2a;
} }
td { .trade-info strong {
padding: 14px 16px; color: #e0e0e0;
border-bottom: 1px solid #252525;
color: #d0d0d0;
font-size: 13px;
} }
tr:last-child td { .swap-item {
border-bottom: none; background: rgba(255, 255, 255, 0.05);
padding: 10px;
border-radius: 5px;
margin-bottom: 8px;
font-size: 0.85em;
} }
tr:hover { .performance-grid {
background-color: #222222;
}
.metrics {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px; gap: 15px;
margin-bottom: 40px;
} }
.status-badge { .stat-card {
display: inline-block; background: rgba(108, 99, 255, 0.2);
padding: 6px 12px; border: 1px solid #6c63ff;
border-radius: 4px; border-radius: 8px;
font-size: 11px; padding: 15px;
font-weight: 600;
text-transform: uppercase;
}
.badge-live {
background-color: #252525;
color: #a0a0a0;
}
.badge-profit {
background-color: rgba(46, 204, 113, 0.15);
color: #2ecc71;
}
.badge-loss {
background-color: rgba(231, 76, 60, 0.15);
color: #e74c3c;
}
.last-update {
color: #666666;
font-size: 11px;
text-align: right;
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid #2a2a2a;
}
.empty {
text-align: center; text-align: center;
color: #666666;
padding: 40px;
font-style: italic;
font-size: 13px;
} }
</style>
.stat-label {
color: #a0a0a0;
font-size: 0.8em;
text-transform: uppercase;
margin-bottom: 8px;
}
.stat-value {
font-size: 1.8em;
font-weight: bold;
color: #00c853;
}
.stat-value.loss {
color: #ff3d00;
}
.update-time {
text-align: right;
color: #666;
font-size: 0.8em;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #333;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.fade-in {
animation: fadeIn 0.3s ease-in;
}
</style>
</head> </head>
<body> <body>
<div class="container"> <div class="container">