refactor: replace hardcoded hex colors with theme tokens, move data/ to root

- Add --color-green-mid token (#4a7a55) to @theme for dimmer stat values
- Replace all text-[#hex]/bg-[#hex] arbitrary values with named tokens:
  text-green, text-green-light, text-green-sec, text-green-muted,
  text-green-dark, text-green-mid, text-text, bg-card, bg-bg, border-border
- Replace rgba(34,197,94,X) inline styles with bg-green/X opacity modifiers
- Convert single-prop style={{ borderColor/background }} to className
- Fix SVG stroke="#dff5e8" → stroke="currentColor"
- Use CSS variables in globals.css base styles (background-color, color)
- Move app/data/wikipedia/ → data/ (project root, not inside Next.js app dir)
- Update Dockerfile, seed.ts, scrape-wikipedia.ts paths accordingly
- Remove unused app/data/world_cup.csv

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-15 18:08:23 +02:00
parent 187ee2e312
commit b141356247
125 changed files with 279 additions and 322 deletions
+90
View File
@@ -0,0 +1,90 @@
{
"groups": [
{
"name": "Group 1",
"teams": [
"Italy",
"Poland",
"Peru",
"Cameroon"
]
},
{
"name": "Group 2",
"teams": [
"West Germany",
"Algeria",
"Chile",
"Austria"
]
},
{
"name": "Group 3",
"teams": [
"Argentina",
"Belgium",
"Hungary",
"El Salvador"
]
},
{
"name": "Group 4",
"teams": [
"England",
"France",
"Czechoslovakia",
"Kuwait"
]
},
{
"name": "Group 5",
"teams": [
"Spain",
"Honduras",
"Yugoslavia",
"Northern Ireland"
]
},
{
"name": "Group 6",
"teams": [
"Brazil",
"Soviet Union",
"Scotland",
"New Zealand"
]
},
{
"name": "Group A",
"teams": [
"Poland",
"Belgium",
"Soviet Union"
]
},
{
"name": "Group B",
"teams": [
"West Germany",
"England",
"Spain"
]
},
{
"name": "Group C",
"teams": [
"Italy",
"Argentina",
"Brazil"
]
},
{
"name": "Group D",
"teams": [
"Austria",
"France",
"Northern Ireland"
]
}
]
}
File diff suppressed because it is too large Load Diff
+8
View File
@@ -0,0 +1,8 @@
{
"host": "Spain",
"teams_count": 24,
"winner": "Italy",
"runner_up": "West Germany",
"third_place": "Poland",
"fourth_place": "France"
}
File diff suppressed because it is too large Load Diff
+80
View File
@@ -0,0 +1,80 @@
{
"stadiums": [
{
"name": "Camp Nou",
"city": "Barcelona"
},
{
"name": "Ramón Sánchez Pizjuán Stadium",
"city": "Seville"
},
{
"name": "Estadio José Rico Pérez",
"city": "Alicante"
},
{
"name": "Santiago Bernabéu",
"city": "Madrid"
},
{
"name": "Balaídos",
"city": "Vigo"
},
{
"name": "Estadio de Riazor",
"city": "A Coruña"
},
{
"name": "El Molinón",
"city": "Gijón"
},
{
"name": "Estadio Carlos Tartiere",
"city": "Oviedo"
},
{
"name": "Nuevo Estadio",
"city": "Elche"
},
{
"name": "San Mamés",
"city": "Bilbao"
},
{
"name": "Estadio José Zorrilla",
"city": "Valladolid"
},
{
"name": "Estadio Luis Casanova",
"city": "Valencia"
},
{
"name": "La Romareda",
"city": "Zaragoza"
},
{
"name": "Ramón Sánchez Pizjuán",
"city": "Seville"
},
{
"name": "La Rosaleda Stadium",
"city": "Málaga"
},
{
"name": "Estadio Benito Villamarín",
"city": "Seville"
},
{
"name": "Sarrià Stadium",
"city": "Barcelona"
},
{
"name": "Estadio Sarriá",
"city": "Barcelona"
},
{
"name": "Vicente Calderón",
"city": "Madrid"
}
]
}