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