Lucid / lucid2-react /src /components /Dashboard.css
BigJuls's picture
Fix RTSP URL overflow in camera status cards
0a45f48
Raw History Blame Contribute Delete
2.72 kB
.dashboard {
width: 100%;
}
/* Stats Grid */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.stat-card {
background: rgba(0, 255, 157, 0.1);
border: 1px solid rgba(0, 255, 157, 0.3);
border-radius: 12px;
padding: 1.5rem;
text-align: center;
transition: all 0.3s ease;
}
.stat-card:hover {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(0, 255, 157, 0.3);
}
.stat-value {
color: #00ff9d;
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.stat-label {
color: #c5dff8;
font-size: 1rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Activity List */
.activity-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.activity-item {
background: rgba(15, 23, 42, 0.6);
border-radius: 12px;
padding: 1rem;
border-left: 4px solid #00ff9d;
}
.activity-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
.person-id {
font-weight: 600;
color: #00ff9d;
}
.similarity-score {
background: rgba(0, 255, 157, 0.2);
color: #00ff9d;
padding: 0.2rem 0.8rem;
border-radius: 20px;
font-size: 0.9rem;
font-weight: 600;
}
.activity-details {
display: flex;
gap: 1rem;
font-size: 0.9rem;
color: #A1B5D8;
}
/* Camera Grid */
.camera-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
}
.camera-item {
background: rgba(15, 23, 42, 0.7);
border-radius: 12px;
padding: 1.5rem;
border: 1px solid rgba(0, 255, 157, 0.2);
transition: all 0.3s ease;
}
.camera-item:hover {
transform: translateY(-3px);
border-color: rgba(0, 255, 157, 0.5);
box-shadow: 0 8px 25px rgba(0, 255, 157, 0.2);
}
.camera-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.camera-name {
font-weight: 600;
color: #00ff9d;
font-size: 1.1rem;
}
.camera-status {
padding: 0.2rem 0.8rem;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
}
.camera-status.online {
background: rgba(0, 255, 157, 0.2);
color: #00ff9d;
border: 1px solid rgba(0, 255, 157, 0.4);
}
.camera-status.offline {
background: rgba(255, 79, 100, 0.2);
color: #ff4f64;
border: 1px solid rgba(255, 79, 100, 0.4);
}
.camera-details {
display: flex;
flex-direction: column;
gap: 0.5rem;
font-size: 0.9rem;
color: #A1B5D8;
word-wrap: break-word;
overflow-wrap: break-word;
}
.camera-details div {
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
overflow-wrap: break-word;
max-width: 100%;
}