Skip to content

Repository files navigation

StadiumIQ 🏟️⚽

Next.js React Firebase Gemini AI Tailwind CSS FIFA 2026

StadiumIQ is an AI-powered stadium intelligence platform designed for the FIFA World Cup 2026, providing fans, volunteers, organizers, and stadium staff with multilingual assistance, smart navigation, venue insights, and real-time operational support through Google Gemini AI.


πŸ“ Project Summary

  • Purpose: Enhance the FIFA World Cup stadium experience using AI-powered assistance, intelligent navigation, and live venue operations.
  • Audience: Football fans, stadium visitors, volunteers, organizers, and event staff.
  • Structure: Next.js App Router frontend with Firebase Authentication, Gemini AI integration, and modern React architecture.

πŸš€ Key Features

  • πŸ€– AI Stadium Assistant powered by Google Gemini
  • 🏟️ Interactive Stadium & Venue Explorer
  • 🧭 Smart Stadium Navigator
  • 🌍 Multilingual AI Support
  • πŸ“Š Live Operations Dashboard
  • πŸš‡ Transport & Route Guidance
  • 🚨 Crowd Awareness & Stadium Alerts
  • πŸ‘₯ Role-based Experience (Fans, Volunteers, Staff & Organizers)
  • πŸ” Firebase Authentication
  • πŸ“± Responsive Mobile-first Interface

🧭 Approach & Logic

  1. Secure authentication using Firebase Authentication.
  2. Personalized AI assistance based on user role.
  3. Intelligent navigation across stadiums and venues.
  4. Gemini generates contextual recommendations and answers.
  5. Dashboard displays live operational insights for better crowd management.
  6. Modern responsive UI optimized for desktop and mobile.

βš™οΈ How the Solution Works

  1. User signs in using Firebase Authentication.
  2. User selects their role (Fan, Staff, Volunteer, Organizer).
  3. Next.js frontend communicates with AI services.
  4. Gemini processes requests securely.
  5. AI returns multilingual recommendations, navigation guidance, and venue intelligence.
  6. Dashboard continuously updates operational information.

πŸ—ΊοΈ Architecture

graph TD

    User[Fan / Staff / Volunteer / Organizer]

    subgraph Frontend
        UI[Next.js 16 + React 19]
        Dashboard[Live Dashboard]
        Navigator[Smart Navigator]
        Explorer[Venue Explorer]
        AIUI[AI Command Center]
    end

    subgraph Authentication
        Firebase[Firebase Authentication]
    end

    subgraph AI Layer
        Gemini[Google Gemini AI]
        Prompt[Prompt Validation]
    end

    User --> Firebase
    Firebase --> UI

    UI --> Dashboard
    UI --> Navigator
    UI --> Explorer
    UI --> AIUI

    AIUI --> Gemini
    Gemini --> Prompt
    Prompt --> AIUI

    AIUI --> User
Loading

🧩 Code Flow

flowchart TD

Developer --> Next[Next.js Dev Server]

Next --> AppRouter[App Router]

AppRouter --> Components[React Components]

Components --> Firebase[Firebase Authentication]

Components --> AI[Gemini API]

AI --> Response[AI Response]

Response --> UI[Dynamic User Interface]
Loading

πŸ› οΈ Tech Stack

Frontend

  • Next.js 16
  • React 19
  • Tailwind CSS
  • TypeScript

Authentication

  • Firebase Authentication

AI

  • Google Gemini API

Development

  • ESLint
  • Node.js
  • npm

Deployment

  • Vercel
  • Firebase Hosting (Optional)

🧭 Quickstart β€” Local Development

Prerequisites

  • Node.js 20+
  • npm

Clone the repository

git clone https://github.com/yourusername/StadiumIQ.git

cd StadiumIQ

Install dependencies

npm install

Create environment variables

cp .env.local.example .env.local

Add your credentials

NEXT_PUBLIC_FIREBASE_API_KEY=
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=
NEXT_PUBLIC_FIREBASE_PROJECT_ID=
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
NEXT_PUBLIC_FIREBASE_APP_ID=

GEMINI_API_KEY=

Run development server

npm run dev

Visit

http://localhost:3000

πŸ“¦ Production Build

Create production build

npm run build

Start production server

npm run start

πŸš€ Deploy to Vercel

npm install -g vercel

vercel

Or connect your GitHub repository directly with Vercel.


βœ… Testing

Run lint

npm run lint

Run tests

npm test

Build verification

npm run build

πŸ”’ Security & Best Practices

  • Firebase Authentication for secure login.
  • Environment variables for sensitive credentials.
  • Gemini API key stored server-side.
  • Prompt validation before AI execution.
  • Client-side authentication state management.
  • Production-ready Next.js security headers.

β™Ώ Accessibility

  • Keyboard-friendly navigation.
  • Mobile responsive design.
  • Semantic HTML.
  • Screen reader support.
  • High-contrast accessible UI.
  • Multilingual AI assistance.

πŸ“ Project Structure

app/
β”‚
β”œβ”€β”€ api/
β”œβ”€β”€ auth/
β”œβ”€β”€ dashboard/
β”œβ”€β”€ navigator/
└── venues/

components/
β”‚
β”œβ”€β”€ dashboard/
β”œβ”€β”€ navigation/
β”œβ”€β”€ ai/
└── ui/

context/
β”‚
└── AuthContext

lib/
β”‚
β”œβ”€β”€ firebase.ts
β”œβ”€β”€ gemini.ts
└── utils.ts

public/

tests/

styles/

πŸ“‚ Important Files

  • app/ β€” Next.js App Router
  • components/ β€” Reusable UI Components
  • context/ β€” Authentication Context
  • lib/firebase.ts β€” Firebase Configuration
  • lib/gemini.ts β€” Gemini AI Integration
  • tests/ β€” AI & Application Tests

🌍 Future Enhancements

  • Live Match Analytics
  • Indoor Stadium Maps
  • Real-time Seat Navigation
  • Emergency Assistance
  • AI Voice Assistant
  • Push Notifications
  • QR Ticket Integration
  • Live Crowd Density Heatmaps
  • Public Transport Live Tracking
  • Offline Stadium Mode

❀️ Built For

FIFA World Cup 2026

Empowering every fan, volunteer, organizer, and stadium staff member with AI-powered stadium intelligence.


πŸ“„ License

This project is built for educational, hackathon, and demonstration purposes.


⚽ StadiumIQ

AI-powered Stadium Intelligence for FIFA World Cup 2026

Built with ❀️ using Next.js β€’ React β€’ Firebase β€’ Google Gemini AI