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