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