feat: filtre par catégorie dans la GUI
Docker / docker (push) Successful in 1m15s

- arte_api.py : GENRE_PAGES devient une liste de (nom, url), chaque
  concert reçoit un champ "categories" avec ses genres d'appartenance
- main.py : endpoint /api/categories + param ?category= sur /api/concerts
- index.html : barre de pills catégories (Tout + 10 genres)
- style.css : styles .cat-bar / .cat-pill avec pill active en or
- app.js : chargement dynamique des pills, filtre catégorie dans le state

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
dev
2026-04-26 13:03:52 +02:00
parent 1815a4e8c2
commit 16736e2e7a
5 changed files with 122 additions and 30 deletions
+39
View File
@@ -195,6 +195,45 @@ body {
letter-spacing: 0.02em;
}
/* ══ CATEGORY BAR ══════════════════════════════════════════════════════════ */
.cat-bar {
display: flex;
gap: 8px;
margin-bottom: 20px;
overflow-x: auto;
scrollbar-width: none;
-ms-overflow-style: none;
padding-bottom: 2px;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-pill {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 20px;
color: var(--text-dim);
cursor: pointer;
font-family: 'Inter', sans-serif;
font-size: 13px;
padding: 6px 16px;
white-space: nowrap;
transition: color var(--transition), border-color var(--transition), background var(--transition);
flex-shrink: 0;
}
.cat-pill:hover {
color: var(--text);
border-color: rgba(255,255,255,0.15);
}
.cat-pill.active {
background: var(--gold);
border-color: var(--gold);
color: #000;
font-weight: 600;
}
/* ══ GRID ══════════════════════════════════════════════════════════════════ */
.grid {
display: grid;