feat(client_web): show holes & points progress bars

This commit is contained in:
Henri Bourcereau 2026-03-28 17:17:01 +01:00
parent bef0ecbd8c
commit 01fa837b84
5 changed files with 242 additions and 118 deletions

View file

@ -70,18 +70,85 @@ input[type="text"] {
cursor: pointer;
}
/* ── Score panel ────────────────────────────────────────────────────── */
.score-panel {
display: flex;
gap: 2rem;
/* ── Player score panel ─────────────────────────────────────────────── */
.player-score-panel {
background: #f5edd8;
border-radius: 6px;
padding: 0.5rem 1.5rem;
font-size: 0.95rem;
padding: 0.5rem 1rem;
font-size: 0.9rem;
box-shadow: 0 1px 4px rgba(0,0,0,0.2);
width: 100%;
max-width: 900px;
}
.player-score-header {
margin-bottom: 0.3rem;
}
.player-name {
font-weight: bold;
font-size: 1rem;
}
.score-bars {
display: flex;
flex-direction: column;
gap: 4px;
}
.score-bar-row {
display: flex;
align-items: center;
gap: 0.5rem;
}
.score-bar-label {
font-size: 0.8rem;
color: #555;
width: 3.5rem;
text-align: right;
flex-shrink: 0;
}
.score-bar {
width: 140px;
height: 10px;
background: rgba(0,0,0,0.12);
border-radius: 5px;
overflow: hidden;
flex-shrink: 0;
}
.score-bar-fill {
height: 100%;
border-radius: 5px;
transition: width 0.3s;
}
.score-bar-points { background: #4a7a3a; }
.score-bar-holes { background: #7a4a2a; }
.score-bar-value {
font-size: 0.8rem;
color: #444;
min-width: 2.5rem;
}
.bredouille-badge {
font-size: 0.7rem;
font-weight: bold;
color: #fff;
background: #c07800;
border-radius: 3px;
padding: 0.05em 0.35em;
cursor: default;
}
.player-jans {
margin-top: 0.35rem;
border-top: 1px solid rgba(0,0,0,0.1);
padding-top: 0.25rem;
}
.score-row { display: flex; gap: 1rem; align-items: center; }
.score-name { font-weight: bold; min-width: 80px; }
/* ── Status bar ─────────────────────────────────────────────────────── */
.status-bar {