A comprehensive football team management application built with Next.js, TypeScript, and Tailwind CSS. Create teams, manage players, analyze tactics, and build your dream squad with advanced statistics and Best XI analysis.
๐ Live Demo: https://fifa-manager-rtib.vercel.app
- Create Custom Teams: Build your own football team with custom logos and themes
- Team Selection: Choose from a database of real football teams with autocomplete suggestions
- Team Theming: Automatic color extraction from team logos for consistent branding
- Team Switching: Easily switch between different teams
- Player Database: Access to a comprehensive database of real football players
- Player Creation: Add custom players with detailed attributes
- Player Statistics: Track goals, assists, and performance metrics
- Advanced Player Stats: Monitor red cards, shots, shots on target, and true shooting percentage
- Player Potential: Advanced scoring system that considers player potential for Best XI selection
- Attribute System: Manage pace, shooting, passing, dribbling, defending, and physical attributes
- Interactive Navigation: Click on any player in Best XI to view their detailed statistics
- Formation Editor: Configure custom formations with position-specific player counts
- Position Priorities: Set attribute priorities for each position (e.g., pace for wingers, defending for center-backs)
- Tactical Flexibility: Support for inverted wingers and position-specific tactics
- Formation Presets: Quick setup with popular formations (4-3-3, 4-4-2, 3-5-2)
- Intelligent Selection: Advanced algorithm that considers:
- Player overall rating
- Position-specific attribute priorities
- Age and experience factors
- Player potential for future development
- Role importance (Crucial, Important, Rotation, Squad, Prospect)
- Preferred foot for wing positions
- Advanced Metrics: Red cards (penalty), shooting efficiency, and true shooting percentage
- Bench Selection: Automatic selection of substitute players
- Team Analysis: Comprehensive breakdown of team strengths and weaknesses
- Position Analysis: Detailed analysis of each position's depth and quality
- Interactive Player Cards: Click any player to navigate to their detailed statistics
- Player Performance: Track individual player statistics and performance scores
- Advanced Statistics: Monitor red cards, shots, shots on target, and true shooting percentage
- Team Statistics: Overall team ratings, average age, and squad size
- Position-based Scoring: Weighted scoring system based on position requirements
- Sector Analysis: Defense, midfield, and forward line strength assessment
- Shooting Efficiency: True shooting percentage calculation for attacking players
- Optimized Navigation: Fast, responsive page transitions with reduced loading times
- Smooth Animations: Enhanced hover effects and interactive feedback
- Mobile-First Design: Responsive layouts optimized for all devices
- Real-time Updates: Instant feedback when modifying player statistics
- Next.js 15.3.3: React framework with App Router
- TypeScript: Type-safe development
- Tailwind CSS: Utility-first CSS framework
- React Hooks: State management and side effects
- Local Storage: Persistent data storage for teams and players
- JSON Data: Real football data from FIFA database
- Custom Hooks: Reusable logic for data management
- Custom Color Scheme: Forest green (#3c5c34), light gray (#dde1e0), and accent colors
- Responsive Design: Mobile-first approach with responsive layouts
- Smooth Animations: CSS transitions and custom animations
- Modern UI: Clean, professional interface with soccer-themed elements
- Vercel: Production deployment and hosting
- GitHub: Version control and CI/CD
fifa-manager/
โโโ src/
โ โโโ app/ # Next.js App Router pages
โ โ โโโ best-xi/ # Best XI analysis page
โ โ โโโ create-team/ # Team creation page
โ โ โโโ edit-tactics/ # Tactics configuration
โ โ โโโ manager/ # Main dashboard
โ โ โโโ player-stats/ # Player statistics
โ โ โโโ page.tsx # Landing page
โ โโโ components/ # Reusable React components
โ โ โโโ BestXI.tsx # Best XI display component
โ โ โโโ PlayerForm.tsx # Player creation/editing form
โ โ โโโ PlayerList.tsx # Player list with sorting
โ โ โโโ TeamForm.tsx # Team creation form
โ โ โโโ TeamStats.tsx # Team statistics display
โ โโโ contexts/ # React contexts
โ โ โโโ TeamThemeContext.tsx
โ โโโ hooks/ # Custom React hooks
โ โ โโโ useLocalStorage.ts
โ โ โโโ useTeamThemeStyles.ts
โ โโโ types/ # TypeScript type definitions
โ โ โโโ player.ts
โ โโโ utils/ # Utility functions
โ โโโ colorUtils.ts
โโโ public/
โ โโโ data/ # JSON data files
โ โ โโโ countries.json
โ โ โโโ players.json
โ โ โโโ teams.json
โ โโโ images/ # Static images
โโโ package.json
- Visit https://fifa-manager-rtib.vercel.app
- Click "START MANAGING" to begin
- Create or select a team from the available options
- Start building your squad by adding players
- Navigate to the Create Team page
- Enter a team name (with autocomplete suggestions)
- Optionally upload a team logo
- Click on your team card to proceed to management
- In the Manager Dashboard, click "Add Player"
- Enter player details or search from the database
- Set player attributes and statistics
- Configure advanced stats (red cards, shots, shots on target)
- Save the player to your squad
- Go to "Edit Tactics" from the Manager Dashboard
- Set the number of players for each position
- Configure position-specific attribute priorities
- Save your tactical configuration
- Ensure you have exactly 10 players configured in tactics
- Click "Analyze Team" from the Manager Dashboard
- View your optimal starting lineup and bench
- Click on any player card to view their detailed statistics
- Review detailed analysis of team strengths
- Navigate to the Player Stats page
- Expand the "Advanced Stats" dropdown for detailed metrics
- View red cards, shots, shots on target, and true shooting percentage
- All advanced stats factor into the player's overall score
- Use the two-column layout for efficient data entry
- Node.js 18+
- npm or yarn
# Clone the repository
git clone https://github.com/anidixit64/fifa-manager.git
# Navigate to project directory
cd fifa-manager
# Install dependencies
npm install
# Run development server
npm run dev
npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
The application uses local storage for data persistence, so no additional environment variables are required for basic functionality.
- Players Database: Comprehensive FIFA player database with real player statistics
- Teams Database: Real football teams with official names and data
- Countries Database: FIFA country codes and national team information
The application follows a modern, clean design philosophy with:
- Soccer-themed aesthetics: Green color scheme reminiscent of football fields
- Intuitive navigation: Clear, logical flow between different sections
- Responsive design: Works seamlessly on desktop and mobile devices
- Performance focus: Optimized for fast loading and smooth interactions
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
- FIFA for the comprehensive player and team data
- Next.js team for the excellent framework
- Vercel for seamless deployment and hosting
- The football community for inspiration and feedback
Ready to build your dream team? Visit https://fifa-manager-rtib.vercel.app and start managing! โฝ