chore: remove flags from location text on homepage and history

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-14 17:30:12 +02:00
parent 78340bd2db
commit c418a51f08
2 changed files with 2 additions and 16 deletions
+1 -12
View File
@@ -21,16 +21,6 @@ interface Tournament {
topScorers: Array<{ playerName: string; goals: number; team?: { name: string; iso2?: string | null } | null }>
}
function HostIso(host: string): string {
const map: Record<string, string> = {
'Uruguay': 'uy', 'Italy': 'it', 'France': 'fr', 'Brazil': 'br',
'Switzerland': 'ch', 'Sweden': 'se', 'Chile': 'cl', 'England': 'gb-eng',
'Mexico': 'mx', 'Germany': 'de', 'Argentina': 'ar', 'Spain': 'es',
'South Korea / Japan': 'kr', 'South Africa': 'za', 'Russia': 'ru',
'Qatar': 'qa', 'USA': 'us', 'USA / Canada / Mexico': 'us',
}
return map[host] ?? 'un'
}
export default function HistoryPage() {
const { data, loading } = useQuery(HISTORY_QUERY)
@@ -72,8 +62,7 @@ export default function HistoryPage() {
<div className="flex justify-between items-start mb-3.5">
<div>
<div className="font-['Bebas_Neue'] text-[34px] text-[#22c55e] leading-none">{t.year}</div>
<div className="text-xs text-[#2a5c35] mt-0.5 flex items-center gap-1.5">
<span className={`fi fi-${HostIso(t.host)} rounded-sm text-sm inline-block`} />
<div className="text-xs text-[#2a5c35] mt-0.5">
{t.host}
</div>
</div>
+1 -4
View File
@@ -117,10 +117,7 @@ export default function HomePage() {
World Cup 2026
</h1>
<p className="text-[#2a5c35] text-sm mb-9">
<span className="fi fi-us rounded-sm text-lg mx-0.5 inline-block" /> USA ·{' '}
<span className="fi fi-ca rounded-sm text-lg mx-0.5 inline-block" /> Canada ·{' '}
<span className="fi fi-mx rounded-sm text-lg mx-0.5 inline-block" /> Mexico
&nbsp;·&nbsp; 11 June 19 July 2026 · 48 Teams
USA · Canada · Mexico &nbsp;·&nbsp; 11 June 19 July 2026 · 48 Teams
</p>
<div className="flex gap-2.5 flex-wrap max-w-[760px]">
{stats ? <>