A modern, high-performance web application designed to manage premium sports facilities, schedule sessions, and host region-wide tournaments. Built with React, TypeScript, Tailwind CSS, and Vite.
- Purpose: Introduction & quick access
- Features: Config-driven Arena name and Logo, Hero section, "Book Now" CTA, Featured facilities preview, Upcoming tournaments preview, Contact information, Opening hours, Quick navigation links.
- Purpose: Show all rentable facilities
- Features: List of facilities, Facility type filters (football, snooker, playground, etc.), Price per hour display, Availability indicator, "View Details" button, Search functionality, Sort by price.
- Purpose: Detailed facility view & booking entry
- Features: Facility name, Type, Description, Price/hour, Image gallery, Opening hours, Time slot selector (date picker + hourly grid), Selected time preview, "Book Now" action.
- Purpose: Confirm booking
- Features: Selected facility summary, Selected date & time, Price calculation (hours × rate), Customer details form, Booking status preview, Optional payment status indicator, Confirmation modal, Booking success page.
- Purpose: Show active and upcoming tournaments
- Features: Tournament cards, Filter by sport type, Status badge (upcoming, ongoing, completed), Prize display, Start date, "View Details" button.
- Purpose: Full tournament overview
- Features: Sport type, Prize, Status, Registered teams list, Bracket view (if generated), Match list with scores, "Register Team" action.
- Purpose: Register a team into a tournament
- Features: Team name input, Team manager details, Confirmation modal, Registration success state.
- Purpose: Simulate different user roles
- Features: Role selection (Admin, Staff, Customer, Team Manager), Store role in state, Permission-based UI rendering.
- Purpose: Overview
- Features: Total bookings, Active tournaments, Total facilities, Upcoming sessions today, Quick action buttons, Revenue summary.
- Purpose: CRUD UI for facilities
- Features: Table of facilities, Add/Edit facility modals, Enable/disable facility toggles, Set custom pricing and facility types.
- Purpose: Manage all platform bookings
- Features: Booking table, Status/Date/Facility filtering, Change booking statuses, Cancel/Mark completed functions, Search by customer name.
- Purpose: Visual booking schedule
- Features: Daily/Weekly views, Hourly time grid, Visual booking blocks, Click-to-view details.
- Purpose: Admin tournament control
- Features: Create/Edit/Delete tournaments, Change event statuses, Generate fixtures logic, View brackets.
- Purpose: Manage registered teams
- Features: Team list view, View by tournament, Edit details, Remove teams.
- Purpose: Record match results
- Features: Match lists, Input/Update scores, Auto-update tournament status logically based on results.
- Purpose: Manage platform users
- Features: List users, Assign roles, Enable/Disable users, Filter by role.
- Framework: React + Vite
- Language: TypeScript
- Styling: Tailwind CSS + styled-components
- UI Components: shadcn/ui + Framer Motion
- Animations: CSS Keyframes + Framer Motion
The only requirement is having Node.js & npm installed - Install with nvm.
Follow these steps to run the app locally:
# Step 1: Clone the repository
git clone https://github.com/SportsArena-Recreations/Sports_Arena.git
# Step 2: Navigate to the project directory
cd Sport_Arena
# Step 3: Install the necessary dependencies
npm install
# Step 4: Start the development server
npm run devYou can seamlessly publish the project anywhere standard React/Vite outputs are supported (Vercel, Netlify, AWS, etc.). For quick deployment using your starter service (e.g. Lovable / Vercel):
- Connect to your Git Repository
- Allow CI/CD to build by utilizing the
npm run buildcommand. - Your deployment setup will automatically serve the
./distfolder securely!