diff --git a/app/stats/page.tsx b/app/stats/page.tsx index e24472f..848c122 100644 --- a/app/stats/page.tsx +++ b/app/stats/page.tsx @@ -290,19 +290,26 @@ export default function StatsPage() {
🌍 Performance by Confederation -
- ConfederationAppearancesTitlesGoals -
- {confStats.map(c => ( -
- {c.confederation} - {c.appearances} - {c.titles} - {c.totalGoals} -
- ))} + + + + + + + + + + + {confStats.map(c => ( + + + + + + + ))} + +
ConfederationAppearancesTitlesGoals
{c.confederation}{c.appearances}{c.titles}{c.totalGoals}
)} @@ -312,37 +319,42 @@ export default function StatsPage() {
📊 All-Time Team Table -
- #TeamWC - WDL - GFGAGD - Win% +
+ + + + {['#', 'Team', 'WC', 'W', 'D', 'L', 'GF', 'GA', 'GD', 'Win%'].map((h, i) => ( + + ))} + + + + {teams.slice(0, 40).map((t, i) => ( + + + + + + + + + + + + + ))} + +
{h}
{i + 1} + + + {t.name} + + {t.stats?.appearances}{t.stats?.wins}{t.stats?.draws}{t.stats?.losses}{t.stats?.goalsFor}{t.stats?.goalsAgainst} + {(t.stats?.goalsFor ?? 0) - (t.stats?.goalsAgainst ?? 0) >= 0 + ? `+${(t.stats?.goalsFor ?? 0) - (t.stats?.goalsAgainst ?? 0)}` + : (t.stats?.goalsFor ?? 0) - (t.stats?.goalsAgainst ?? 0)} + {t.stats?.winPct}%
- {teams.slice(0, 40).map((t, i) => ( - -
- {i + 1} -
- - {t.name} -
- {t.stats?.appearances} - {t.stats?.wins} - {t.stats?.draws} - {t.stats?.losses} - {t.stats?.goalsFor} - {t.stats?.goalsAgainst} - - {(t.stats?.goalsFor ?? 0) - (t.stats?.goalsAgainst ?? 0) >= 0 - ? `+${(t.stats?.goalsFor ?? 0) - (t.stats?.goalsAgainst ?? 0)}` - : (t.stats?.goalsFor ?? 0) - (t.stats?.goalsAgainst ?? 0)} - - {t.stats?.winPct}% -
- - ))}
)}