Skip to content

theautonomy/world-cup-soccer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚽ FIFA 2026 — AI-powered team profiles for all 48 nations

One command. Deep research. Stunning HTML. Built on Claude Code.


What it does

Type a team name. The agent researches the country, digs into World Cup history, finds the 2026 squad and coach, surfaces the all-time legends, and generates a beautiful self-contained HTML page — in both Simplified Chinese and English, switchable with a single click.

Language toggle: EN / 中文 Teams: 48 Built with Claude Code

🌐 theautonomy.github.io/world-cup-soccer — browse sample team pages generated by this skill


Quick start

Prerequisites

  • Claude Code installed and running
  • This repo cloned or opened as your working directory
  • Node.js 18+

Generate a team

/world-cup team Brazil
/world-cup team 法国
/world-cup team South Korea

The agent accepts team names in English or Chinese. Data is saved to data/teams/{slug}.json.

Preview locally

node dev.mjs

Opens at http://localhost:5173/world-cup-soccer/. Re-run after generating new teams to pick them up.

Deploy

Push to master — GitHub Actions copies the JSON, builds the React app, and deploys to GitHub Pages automatically.


The HTML page

Each generated page is a single self-contained .html file — no server, no dependencies beyond a Google Fonts import. Double-click it to open in any browser.

Sections

Section Content
Hero Animated flag, team name, FIFA ranking
Stats bar Titles · Appearances · Best result · FIFA rank
Country profile Capital, population, area, language, currency, anthem + geography & football culture description
World Cup history Every tournament appearance with result, color-coded by achievement
2026 squad Player cards: name, club, position, caps
Legends Top 5 all-time players with career bio and key stats
Classic rivalries 2–3 notable opponents with historical context
Did you know? 3–5 surprising facts

Language toggle

A fixed 中文 / EN pill button sits in the top-right corner on every page. Click it to switch languages instantly. The preference is saved in localStorage — the page remembers your choice next time.

Design

  • Dark background with radial glows in the team's actual kit colors
  • CSS color variables (--color-primary, --color-secondary, --color-accent) set per team
  • Fonts: Noto Sans SC for Chinese, Inter for English — switches automatically with the toggle
  • Fully responsive — works on desktop and mobile

All available commands

/world-cup team {name}              Research + generate team JSON

Coming soon:

/world-cup match {team1} vs {team2} Head-to-head preview
/world-cup player {name}            Player spotlight page
/world-cup group {A–L}              Group stage page

How it works

/world-cup team Brazil
      ↓
  research (web search)
      ↓
  data/teams/brazil.json      ← committed to repo
      ↓
  node dev.mjs                ← local preview
      ↓
  git push → GitHub Actions   ← builds React + deploys
      ↓
  GitHub Pages                ← live site

Project structure

world-cup-soccer/
  .claude/skills/world-cup/SKILL.md   Skill router
  modes/team.md                        Research + JSON schema instructions
  data/teams/                          Generated JSON (source of truth)
  app/                                 React + Vite app
    src/components/                    Bilingual UI components
    src/pages/                         Home + TeamPage
    src/context/AppContext.jsx         Lang + theme state
  dev.mjs                              Local dev script
  .github/workflows/deploy-pages.yml  CI/CD pipeline
  CLAUDE.md                            Developer reference
  README.md                            This file

2026 World Cup

  • 48 teams — expanded from 32 for the first time
  • 3 host nations — USA 🇺🇸, Canada 🇨🇦, Mexico 🇲🇽
  • Dates — June 11 – July 19, 2026
  • Format — 12 groups of 4, then knockout from Round of 32

Powered by Claude Code · All content AI-generated from web research

About

⚽ FIFA 2026 — AI-powered team profiles for all 48 nations. One command. Deep research. Stunning HTML. Built on Claude Code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors