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
+76
View File
@@ -0,0 +1,76 @@
{
"groups": [
{
"name": "Group A",
"teams": [
"Brazil",
"Croatia",
"Mexico",
"Cameroon"
]
},
{
"name": "Group B",
"teams": [
"Spain",
"Netherlands",
"Chile",
"Australia"
]
},
{
"name": "Group C",
"teams": [
"Colombia",
"Greece",
"Ivory Coast",
"Japan"
]
},
{
"name": "Group D",
"teams": [
"Uruguay",
"Costa Rica",
"England",
"Italy"
]
},
{
"name": "Group E",
"teams": [
"Switzerland",
"Ecuador",
"France",
"Honduras"
]
},
{
"name": "Group F",
"teams": [
"Argentina",
"Bosnia and Herzegovina",
"Iran",
"Nigeria"
]
},
{
"name": "Group G",
"teams": [
"Germany",
"Portugal",
"Ghana",
"United States"
]
},
{
"name": "Group H",
"teams": [
"Belgium",
"Algeria",
"Russia",
"South Korea"
]
}
]
}
File diff suppressed because it is too large Load Diff
+8
View File
@@ -0,0 +1,8 @@
{
"host": "Brazil",
"teams_count": 32,
"winner": "Germany",
"runner_up": "Argentina",
"third_place": "Netherlands",
"fourth_place": "Brazil"
}
File diff suppressed because it is too large Load Diff
+60
View File
@@ -0,0 +1,60 @@
{
"stadiums": [
{
"name": "Estádio Mineirão",
"city": "Belo Horizonte"
},
{
"name": "Estádio do Maracanã",
"city": "Rio de Janeiro"
},
{
"name": "Estádio Castelão",
"city": "Fortaleza"
},
{
"name": "Itaipava Arena Pernambuco",
"city": "Recife"
},
{
"name": "Estádio Nacional Mané Garrincha",
"city": "Brasília"
},
{
"name": "Estádio Beira-Rio",
"city": "Porto Alegre"
},
{
"name": "Arena Corinthians",
"city": "São Paulo"
},
{
"name": "Itaipava Arena Fonte Nova",
"city": "Salvador"
},
{
"name": "Maracanã Stadium",
"city": "Rio de Janeiro"
},
{
"name": "Arena de São Paulo",
"city": "São Paulo"
},
{
"name": "Arena das Dunas",
"city": "Natal"
},
{
"name": "Arena da Amazônia",
"city": "Manaus"
},
{
"name": "Arena Pantanal",
"city": "Cuiabá"
},
{
"name": "Arena da Baixada",
"city": "Curitiba"
}
]
}