Compare commits

..

No commits in common. "9f9388ee2b65c6c15773100edc0debc9d25aad84" and "c22b6f3f6a11c95597d86d0348aa26c51eba8f25" have entirely different histories.

2 changed files with 188 additions and 212 deletions

View File

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