Ajoute l Elo et les statistiques de parties

This commit is contained in:
2026-04-16 00:17:52 +02:00
parent db233e7110
commit 407e5e8ed5
13 changed files with 1914 additions and 11 deletions

View File

@@ -1732,6 +1732,62 @@ body.site-menu-hidden .site-menu-shell {
grid-column: 1 / -1;
}
.user-stats-block {
display: grid;
gap: 0.7rem;
margin-top: 0.2rem;
}
.user-stats-grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 0.55rem;
}
.user-stat-emphasis {
background: linear-gradient(135deg, rgba(255, 168, 62, 0.18), rgba(255, 255, 255, 0.05));
border-color: rgba(255, 168, 62, 0.35);
}
.user-stat-emphasis strong {
color: var(--accent);
font-size: 1.2rem;
}
.user-recent-matches {
display: grid;
gap: 0.55rem;
}
.recent-match-item {
align-items: center;
}
.recent-match-meta {
display: flex;
align-items: center;
gap: 0.45rem;
flex-wrap: wrap;
}
.recent-loss-badge {
border-color: rgba(255, 100, 127, 0.28);
background: rgba(255, 100, 127, 0.12);
color: #ffd8de;
}
.user-elo-chip-positive {
border-color: rgba(69, 185, 127, 0.32);
background: rgba(69, 185, 127, 0.16);
color: #dff7ea;
}
.user-elo-chip-negative {
border-color: rgba(255, 100, 127, 0.28);
background: rgba(255, 100, 127, 0.12);
color: #ffd8de;
}
.admin-hero-stats {
margin-top: 0.8rem;
}
@@ -2066,6 +2122,7 @@ body.site-menu-hidden .site-menu-shell {
.admin-edit-summary-grid,
.user-profile-summary-grid,
.user-stats-grid,
.profile-meta-grid,
.profile-form-grid,
.admin-toggle-grid,
@@ -2103,6 +2160,12 @@ body.site-menu-hidden .site-menu-shell {
}
}
@media (max-width: 720px) {
.recent-match-item {
align-items: start;
}
}
@media (max-width: 900px) {
:root {
--site-menu-offset: calc(6.8rem + var(--safe-top));