Rollback: Restored functional design (a3bd191)

This commit is contained in:
Marc Blatter 2026-07-04 13:04:48 +02:00
parent c22b6f3f6a
commit c3ccb37f45
1 changed files with 201 additions and 190 deletions

View File

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