2024-11-13 21:28:28 +08:00
|
|
|
:root {
|
2024-11-18 03:39:58 +08:00
|
|
|
--bg-primary: #121212;
|
|
|
|
--bg-secondary: #1E1E1E;
|
|
|
|
--text-primary: #FFFFFF;
|
|
|
|
--text-secondary: #A0A0A0;
|
|
|
|
--accent-color: #2196F3;
|
|
|
|
--positive-color: #4CAF50;
|
|
|
|
--negative-color: #F44336;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
* {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2024-11-18 03:39:58 +08:00
|
|
|
font-family: 'Arial', sans-serif;
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
color: var(--text-primary);
|
2024-11-13 21:28:28 +08:00
|
|
|
line-height: 1.6;
|
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.app-container {
|
|
|
|
display: grid;
|
|
|
|
grid-template-rows: auto 1fr auto;
|
|
|
|
min-height: 100vh;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.main-header {
|
2024-11-13 21:28:28 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
2024-11-18 03:39:58 +08:00
|
|
|
padding: 1rem 2rem;
|
|
|
|
background-color: var(--bg-secondary);
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.logo {
|
2024-11-13 21:28:28 +08:00
|
|
|
font-size: 1.5rem;
|
|
|
|
font-weight: bold;
|
2024-11-18 03:39:58 +08:00
|
|
|
color: var(--accent-color);
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.main-nav ul {
|
2024-11-13 21:28:28 +08:00
|
|
|
display: flex;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.main-nav ul li {
|
|
|
|
margin: 0 1rem;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.main-nav ul li a {
|
|
|
|
color: var(--text-secondary);
|
2024-11-13 21:28:28 +08:00
|
|
|
text-decoration: none;
|
|
|
|
transition: color 0.3s ease;
|
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.main-nav ul li a:hover {
|
|
|
|
color: var(--text-primary);
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.user-actions {
|
2024-11-13 21:28:28 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.connect-wallet {
|
|
|
|
background-color: var(--accent-color);
|
|
|
|
color: var(--text-primary);
|
|
|
|
border: none;
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
margin-right: 1rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
cursor: pointer;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.user-profile img {
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
border-radius: 50%;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.main-content {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
gap: 2rem;
|
|
|
|
padding: 2rem;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.dashboard {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
gap: 2rem;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.portfolio-overview, .active-bots {
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
padding: 1.5rem;
|
|
|
|
border-radius: 8px;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.portfolio-stats {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
margin-top: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.stat-card {
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
padding: 1rem;
|
|
|
|
border-radius: 4px;
|
2024-11-13 21:28:28 +08:00
|
|
|
text-align: center;
|
2024-11-18 03:39:58 +08:00
|
|
|
width: 48%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.positive {
|
|
|
|
color: var(--positive-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.active-bots .bot-list {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
gap: 1rem;
|
|
|
|
margin-top: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bot-card {
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
padding: 1rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.trading-interface {
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
padding: 1.5rem;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.trading-panel {
|
|
|
|
display: grid;
|
|
|
|
gap: 1rem;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.trading-header {
|
2024-11-13 21:28:28 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.trading-indicators {
|
|
|
|
display: flex;
|
|
|
|
gap: 1rem;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.indicator {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
padding: 0.5rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
2024-11-13 21:28:28 +08:00
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.indicator span {
|
|
|
|
font-size: 0.8rem;
|
|
|
|
color: var(--text-secondary);
|
|
|
|
}
|
2024-11-13 21:28:28 +08:00
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.trading-chart {
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
height: 400px;
|
|
|
|
border-radius: 4px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2024-11-13 21:28:28 +08:00
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
#tradingview-chart {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
2024-11-13 21:28:28 +08:00
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.trading-order-types {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2024-11-13 21:28:28 +08:00
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.order-type-selector {
|
|
|
|
display: flex;
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
border-radius: 4px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2024-11-13 21:28:28 +08:00
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.order-type-selector button {
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
color: var(--text-secondary);
|
|
|
|
cursor: pointer;
|
|
|
|
transition: background-color 0.3s;
|
|
|
|
}
|
2024-11-13 21:28:28 +08:00
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.order-type-selector button.active {
|
|
|
|
background-color: var(--accent-color);
|
|
|
|
color: var(--text-primary);
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.trading-actions {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
gap: 1rem;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.trade-input {
|
2024-11-13 21:28:28 +08:00
|
|
|
display: flex;
|
2024-11-18 03:39:58 +08:00
|
|
|
flex-direction: column;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.trade-input input {
|
|
|
|
padding: 0.75rem;
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
border: 1px solid var(--text-secondary);
|
|
|
|
color: var(--text-primary);
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.action-buttons {
|
|
|
|
display: flex;
|
|
|
|
gap: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.trading-actions button {
|
|
|
|
flex: 1;
|
|
|
|
padding: 1rem;
|
|
|
|
border: none;
|
|
|
|
border-radius: 4px;
|
|
|
|
cursor: pointer;
|
|
|
|
font-weight: bold;
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.buy-action {
|
|
|
|
background-color: var(--positive-color);
|
|
|
|
color: var(--text-primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.sell-action {
|
|
|
|
background-color: var(--negative-color);
|
|
|
|
color: var(--text-primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.bot-configuration {
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
padding: 1.5rem;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bot-manager h2 {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.create-bot-btn {
|
|
|
|
background-color: var(--accent-color);
|
|
|
|
color: var(--text-primary);
|
|
|
|
border: none;
|
|
|
|
padding: 0.75rem 1.5rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bot-card-advanced {
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 1rem;
|
2024-11-13 21:28:28 +08:00
|
|
|
margin-top: 1rem;
|
2024-11-18 03:39:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.bot-header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bot-status {
|
|
|
|
padding: 0.25rem 0.5rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
font-size: 0.8rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bot-status.running {
|
|
|
|
background-color: var(--positive-color);
|
|
|
|
color: var(--text-primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.bot-details {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
|
gap: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bot-stat {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
padding: 0.75rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bot-actions {
|
|
|
|
display: flex;
|
|
|
|
gap: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bot-actions button {
|
|
|
|
flex: 1;
|
|
|
|
padding: 0.5rem;
|
2024-11-13 21:28:28 +08:00
|
|
|
border: none;
|
2024-11-18 03:39:58 +08:00
|
|
|
border-radius: 4px;
|
2024-11-13 21:28:28 +08:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.edit-bot {
|
|
|
|
background-color: var(--accent-color);
|
|
|
|
color: var(--text-primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.stop-bot {
|
|
|
|
background-color: var(--negative-color);
|
|
|
|
color: var(--text-primary);
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 03:39:58 +08:00
|
|
|
.main-footer {
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
padding: 1rem;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
.dashboard, .main-header, .main-nav ul {
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-nav ul li {
|
|
|
|
margin: 0.5rem 0;
|
|
|
|
}
|
2024-11-13 21:28:28 +08:00
|
|
|
}
|