Compare commits

..

2 Commits

Author SHA1 Message Date
Marc Blatter 9f9388ee2b Bot auto-update: src/__pycache__/web_dashboard.cpython-310.pyc,src/web_dashboard.py 2026-07-04 13:05:01 +02:00
Marc Blatter c3ccb37f45 Rollback: Restored functional design (a3bd191) 2026-07-04 13:04:48 +02:00
2 changed files with 212 additions and 188 deletions

View File

@ -210,6 +210,19 @@ html_content = """
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trading Bot Dashboard</title> <title>Trading Bot Dashboard</title>
<style> <style>
:root {
--bg-primary: #0a0a0a;
--bg-secondary: #1a1a1a;
--bg-tertiary: #2a2a2a;
--text-primary: #ffffff;
--text-secondary: #b0b0b0;
--text-tertiary: #888888;
--border-color: #2a2a2a;
--accent-green: #2ecc71;
--accent-red: #e74c3c;
}
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -217,187 +230,198 @@ html_content = """
} }
body { body {
background-color: #0a0a0a; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
color: #e0e0e0; color: #e0e0e0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif; padding: 20px;
line-height: 1.8; min-height: 100vh;
letter-spacing: 0.3px;
}
.header {
background-color: #121212;
border-bottom: 1px solid #1f1f1f;
padding: 40px 60px;
}
.header h1 {
color: #ffffff;
font-size: 32px;
font-weight: 700;
letter-spacing: -0.5px;
} }
.container { .container {
max-width: 1800px; max-width: 1400px;
margin: 0 auto; margin: 0 auto;
padding: 60px 60px;
} }
.grid-auto { .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; display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 24px; gap: 20px;
margin-bottom: 60px; 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: 16px; border-radius: 10px;
padding: 28px; padding: 20px;
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.3s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
} }
.card:hover { .card:hover {
background-color: #1f1f1f; background: rgba(255, 255, 255, 0.15);
border-color: #3a3a3a; border-color: #00c853;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20); transform: translateY(-5px);
} }
.card-label { .card-title {
color: #888888; color: #6c63ff;
font-size: 12px; font-size: 0.9em;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 1.2px; letter-spacing: 1px;
margin-bottom: 12px; margin-bottom: 10px;
font-weight: 600;
} }
.card-value { .card-value {
color: #ffffff; font-size: 2em;
font-size: 36px; font-weight: bold;
font-weight: 700; color: #e0e0e0;
line-height: 1.2; margin-bottom: 5px;
margin-bottom: 8px;
} }
.card-subtitle { .card-sub {
color: #666666; color: #a0a0a0;
font-size: 13px; font-size: 0.85em;
font-weight: 500;
} }
.card-positive { .positive {
color: #2ecc71; color: #00c853;
} }
.card-negative { .negative {
color: #e74c3c; color: #ff3d00;
}
.section {
margin-bottom: 30px;
} }
.section-title { .section-title {
color: #ffffff; color: #6c63ff;
font-size: 24px; font-size: 1.5em;
font-weight: 700; margin-bottom: 15px;
margin: 60px 0 32px 0; border-bottom: 1px solid #6c63ff;
letter-spacing: -0.3px; padding-bottom: 10px;
} }
.content-block { .trades-list {
background-color: #1a1a1a;
border: 1px solid #2a2a2a;
border-radius: 16px;
padding: 32px;
margin-bottom: 40px;
}
table {
width: 100%;
border-collapse: collapse;
}
th {
background-color: #121212;
color: #b0b0b0;
padding: 16px 20px;
text-align: left;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
border-bottom: 1px solid #2a2a2a;
}
td {
padding: 16px 20px;
border-bottom: 1px solid #1f1f1f;
color: #d0d0d0;
font-size: 14px;
}
tr:last-child td {
border-bottom: none;
}
tbody tr:hover {
background-color: #0f0f0f;
}
.status-badge {
display: inline-block;
padding: 6px 12px;
border-radius: 8px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.badge-live {
background-color: #1a1a1a;
color: #888888;
border: 1px solid #2a2a2a;
}
.badge-profit {
background-color: rgba(46, 204, 113, 0.15);
color: #2ecc71;
}
.badge-loss {
background-color: rgba(231, 76, 60, 0.15);
color: #e74c3c;
}
.metric-row {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px; gap: 15px;
margin-bottom: 40px;
} }
.spacer { .trade-card {
height: 1px; background: rgba(255, 255, 255, 0.08);
background-color: #1f1f1f; border-left: 4px solid #6c63ff;
margin: 40px 0; border-radius: 5px;
padding: 15px;
font-size: 0.9em;
} }
.footer-text { .trade-card.open {
color: #666666; border-left-color: #6c63ff;
font-size: 12px;
text-align: right;
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid #1f1f1f;
} }
.empty-state { .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;
}
.trade-info strong {
color: #e0e0e0;
}
.swap-item {
background: rgba(255, 255, 255, 0.05);
padding: 10px;
border-radius: 5px;
margin-bottom: 8px;
font-size: 0.85em;
}
.performance-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}
.stat-card {
background: rgba(108, 99, 255, 0.2);
border: 1px solid #6c63ff;
border-radius: 8px;
padding: 15px;
text-align: center; text-align: center;
color: #555555; }
padding: 60px 20px;
font-size: 14px; .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> </style>
</head> </head>