suna/agentpress/examples/example_agent/workspace/styles.css

247 lines
4.2 KiB
CSS
Raw Normal View History

2024-11-13 21:28:28 +08:00
:root {
--bg-dark: #0b0e11;
--bg-darker: #121619;
--primary-color: #1b2028;
--accent-color: #2968ff;
--text-light: #ffffff;
--text-muted: #8a8f9b;
--green: #02c077;
--red: #f84960;
--border-color: #2c3035;
2024-11-13 21:28:28 +08:00
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: var(--bg-dark);
color: var(--text-light);
2024-11-13 21:28:28 +08:00
line-height: 1.6;
}
.app-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 15px;
2024-11-13 21:28:28 +08:00
}
.navbar {
2024-11-13 21:28:28 +08:00
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
border-bottom: 1px solid var(--primary-color);
2024-11-13 21:28:28 +08:00
}
.navbar .logo {
font-size: 24px;
2024-11-13 21:28:28 +08:00
font-weight: bold;
color: var(--accent-color);
2024-11-13 21:28:28 +08:00
}
.navbar nav ul {
2024-11-13 21:28:28 +08:00
display: flex;
list-style: none;
}
.navbar nav ul li {
margin: 0 15px;
2024-11-13 21:28:28 +08:00
}
.navbar nav ul li a {
color: var(--text-light);
2024-11-13 21:28:28 +08:00
text-decoration: none;
transition: color 0.3s ease;
}
.navbar nav ul li a:hover {
color: var(--accent-color);
2024-11-13 21:28:28 +08:00
}
.user-actions {
2024-11-13 21:28:28 +08:00
display: flex;
gap: 10px;
2024-11-13 21:28:28 +08:00
}
.login-btn, .signup-btn {
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
2024-11-13 21:28:28 +08:00
}
.login-btn {
background-color: var(--primary-color);
color: var(--text-light);
2024-11-13 21:28:28 +08:00
}
.signup-btn {
background-color: var(--accent-color);
color: var(--text-light);
2024-11-13 21:28:28 +08:00
}
.dashboard {
display: grid;
grid-template-columns: 3fr 1fr;
gap: 20px;
margin-top: 20px;
2024-11-13 21:28:28 +08:00
}
.trading-panel {
background-color: var(--bg-darker);
border-radius: 8px;
padding: 20px;
2024-11-13 21:28:28 +08:00
}
.market-overview {
margin-bottom: 20px;
}
.crypto-pairs {
display: flex;
gap: 15px;
margin-bottom: 15px;
}
.pair {
padding: 8px 15px;
background-color: var(--primary-color);
border-radius: 4px;
cursor: pointer;
opacity: 0.7;
transition: opacity 0.3s ease;
}
.pair.active {
opacity: 1;
background-color: var(--accent-color);
2024-11-13 21:28:28 +08:00
}
.price-chart {
background-color: var(--bg-dark);
height: 300px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 8px;
}
2024-11-13 21:28:28 +08:00
.trading-interface {
background-color: var(--bg-dark);
border-radius: 8px;
padding: 20px;
}
2024-11-13 21:28:28 +08:00
.order-types {
display: flex;
gap: 15px;
margin-bottom: 20px;
}
2024-11-13 21:28:28 +08:00
.order-type {
padding: 10px 20px;
background-color: var(--primary-color);
border: none;
color: var(--text-light);
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
2024-11-13 21:28:28 +08:00
.order-type.active {
background-color: var(--accent-color);
2024-11-13 21:28:28 +08:00
}
.order-form {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
2024-11-13 21:28:28 +08:00
}
.amount-input, .price-input {
padding: 10px;
background-color: var(--primary-color);
border: none;
color: var(--text-light);
border-radius: 4px;
}
.buy-btn, .sell-btn {
padding: 12px;
border: none;
border-radius: 4px;
color: var(--text-light);
cursor: pointer;
transition: opacity 0.3s ease;
2024-11-13 21:28:28 +08:00
}
.buy-btn {
background-color: green;
}
.sell-btn {
background-color: red;
}
.bot-management {
background-color: var(--bg-darker);
border-radius: 8px;
padding: 20px;
}
.bot-list {
display: grid;
gap: 15px;
}
.bot-card {
background-color: var(--bg-dark);
padding: 15px;
border-radius: 8px;
display: flex;
justify-content: space-between;
align-items: center;
}
.bot-stats {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.configure-bot {
background-color: var(--accent-color);
color: var(--text-light);
2024-11-13 21:28:28 +08:00
border: none;
padding: 8px 15px;
border-radius: 4px;
2024-11-13 21:28:28 +08:00
cursor: pointer;
}
footer {
margin-top: 20px;
padding: 20px 0;
border-top: 1px solid var(--primary-color);
text-align: center;
}
.legal-links {
margin-top: 10px;
2024-11-13 21:28:28 +08:00
}
.legal-links a {
color: var(--text-muted);
text-decoration: none;
margin: 0 10px;
}
@media (max-width: 1024px) {
.dashboard {
grid-template-columns: 1fr;
}
2024-11-13 21:28:28 +08:00
}