Add visual badges (selos) to ConsultorCard
- Add SELOS constant with 18 badge types (coord, bolsa, premio, orientacoes, etc) - Add gerarSelos() function to extract badges from consultor data - Add SelosBadges component with compact and full display modes - Integrate badges in card header (compact) and expanded details (full) - Add CSS styles with gradient backgrounds and hover effects for each badge type - Badges show achievement counts and support tooltips
This commit is contained in:
@@ -494,3 +494,146 @@
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.selos-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.4rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.selos-container.selos-compacto {
|
||||
display: inline-flex;
|
||||
margin-left: 0.3rem;
|
||||
}
|
||||
|
||||
.selo {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
font-size: 0.7rem;
|
||||
padding: 0.2rem 0.45rem;
|
||||
border-radius: 6px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: var(--text);
|
||||
font-weight: 500;
|
||||
transition: transform 150ms ease, box-shadow 150ms ease;
|
||||
}
|
||||
|
||||
.selo:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.selo-icone {
|
||||
font-size: 0.85rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.selo-label {
|
||||
font-size: 0.68rem;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
|
||||
.selo-qtd {
|
||||
font-size: 0.6rem;
|
||||
font-weight: 700;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
padding: 0.1rem 0.3rem;
|
||||
border-radius: 4px;
|
||||
margin-left: 0.15rem;
|
||||
}
|
||||
|
||||
.selo-mais {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border-style: dashed;
|
||||
font-size: 0.65rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.selo-coord {
|
||||
background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.1));
|
||||
border-color: rgba(139, 92, 246, 0.4);
|
||||
color: #c4b5fd;
|
||||
}
|
||||
|
||||
.selo-camara {
|
||||
background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
|
||||
border-color: rgba(59, 130, 246, 0.4);
|
||||
color: #93c5fd;
|
||||
}
|
||||
|
||||
.selo-bpq {
|
||||
background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
|
||||
border-color: rgba(34, 197, 94, 0.4);
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
.selo-gp {
|
||||
background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(251, 191, 36, 0.15));
|
||||
border-color: rgba(251, 191, 36, 0.6);
|
||||
color: #fcd34d;
|
||||
}
|
||||
|
||||
.selo-premio {
|
||||
background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(249, 115, 22, 0.1));
|
||||
border-color: rgba(249, 115, 22, 0.4);
|
||||
color: #fdba74;
|
||||
}
|
||||
|
||||
.selo-mencao {
|
||||
background: linear-gradient(135deg, rgba(203, 213, 225, 0.2), rgba(203, 213, 225, 0.08));
|
||||
border-color: rgba(203, 213, 225, 0.35);
|
||||
color: #e2e8f0;
|
||||
}
|
||||
|
||||
.selo-orient {
|
||||
background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.08));
|
||||
border-color: rgba(14, 165, 233, 0.35);
|
||||
color: #7dd3fc;
|
||||
}
|
||||
|
||||
.selo-orient-prem {
|
||||
background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(251, 191, 36, 0.2));
|
||||
border-color: rgba(251, 191, 36, 0.5);
|
||||
color: #fcd34d;
|
||||
}
|
||||
|
||||
.selo-coorient {
|
||||
background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.08));
|
||||
border-color: rgba(99, 102, 241, 0.35);
|
||||
color: #a5b4fc;
|
||||
}
|
||||
|
||||
.selo-coorient-prem {
|
||||
background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(251, 191, 36, 0.2));
|
||||
border-color: rgba(251, 191, 36, 0.5);
|
||||
color: #fcd34d;
|
||||
}
|
||||
|
||||
.selos-section {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.selos-section .selos-container {
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.selos-section .selo {
|
||||
padding: 0.35rem 0.6rem;
|
||||
}
|
||||
|
||||
.selos-section .selo-icone {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.selos-section .selo-label {
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.selos-container.selos-compacto {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user