Lucid / lucid2-react /src /components /PersonAnalysis.css
Dev-Ryuzakii
Update API base URL and fix addCamera method
fa5a08c
Raw History Blame Contribute Delete
3.96 kB
.person-analysis {
width: 100%;
}
.analysis-content {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 2rem;
}
/* Selection Section */
.selection-section h3 {
color: #00ff9d;
margin-bottom: 1rem;
}
.identity-selector {
display: flex;
flex-direction: column;
gap: 1rem;
}
.identity-option {
background: rgba(15, 23, 42, 0.7);
border-radius: 12px;
padding: 1rem;
border: 1px solid rgba(0, 255, 157, 0.2);
cursor: pointer;
transition: all 0.3s ease;
}
.identity-option:hover {
border-color: rgba(0, 255, 157, 0.5);
transform: translateY(-2px);
}
.identity-option.selected {
border-color: #00ff9d;
box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.3);
}
.identity-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
.identity-name {
font-weight: 600;
color: #00ff9d;
font-size: 1.1rem;
}
.identity-id {
font-size: 0.9rem;
color: #A1B5D8;
}
.identity-metrics {
display: flex;
gap: 1rem;
font-size: 0.9rem;
}
.confidence {
background: rgba(0, 255, 157, 0.2);
color: #00ff9d;
padding: 0.2rem 0.8rem;
border-radius: 20px;
}
.cameras {
color: #A1B5D8;
}
/* Analysis Results */
.analysis-results {
background: rgba(15, 23, 42, 0.7);
border-radius: 16px;
padding: 1.5rem;
border: 1px solid rgba(0, 255, 157, 0.2);
}
.results-header h3 {
color: #00ff9d;
margin-bottom: 1rem;
}
.analysis-summary {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
margin-bottom: 2rem;
}
.summary-item {
background: rgba(0, 0, 0, 0.2);
padding: 1rem;
border-radius: 8px;
text-align: center;
}
.label {
display: block;
font-size: 0.9rem;
color: #A1B5D8;
margin-bottom: 0.5rem;
}
.value {
font-size: 1.2rem;
color: #00ff9d;
font-weight: 600;
}
/* Analysis Sections */
.analysis-section {
margin-bottom: 2rem;
}
.analysis-section h4 {
color: #00ff9d;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid rgba(0, 255, 157, 0.1);
}
/* Camera Timeline */
.camera-timeline {
display: flex;
flex-direction: column;
gap: 1rem;
position: relative;
}
.timeline-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
background: rgba(0, 0, 0, 0.2);
border-radius: 8px;
position: relative;
}
.camera-info {
flex: 1;
}
.camera-name {
font-weight: 600;
color: #00ff9d;
margin-bottom: 0.25rem;
}
.camera-time {
font-size: 0.9rem;
color: #A1B5D8;
}
.visit-duration {
background: rgba(0, 255, 157, 0.2);
color: #00ff9d;
padding: 0.5rem 1rem;
border-radius: 20px;
font-weight: 500;
}
.timeline-connector {
position: absolute;
left: 20px;
top: 100%;
width: 2px;
height: 1rem;
background: rgba(0, 255, 157, 0.3);
}
/* Behavior Analysis */
.behavior-analysis {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.behavior-item .label {
display: block;
margin-bottom: 0.5rem;
text-align: left;
}
.tags {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.tag {
background: rgba(0, 255, 157, 0.2);
color: #00ff9d;
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.9rem;
}
.pattern-description {
color: #A1B5D8;
line-height: 1.5;
}
/* Confidence Metrics */
.confidence-metrics {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
}
.metric {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.metric-label {
color: #A1B5D8;
font-size: 0.9rem;
}
.metric-value {
color: #00ff9d;
font-size: 1.2rem;
font-weight: 600;
}
.metric-bar {
height: 8px;
background: rgba(0, 0, 0, 0.3);
border-radius: 4px;
overflow: hidden;
}
.metric-fill {
height: 100%;
background: linear-gradient(90deg, #00ff9d, #00b8ff);
border-radius: 4px;
transition: width 0.5s ease;
}
/* Responsive Design */
@media (max-width: 768px) {
.analysis-content {
grid-template-columns: 1fr;
}
.analysis-summary {
grid-template-columns: 1fr;
}
}