A modern social media platform designed specifically for athletes, coaches, and sports enthusiasts.
Features • Tech Stack • Getting Started • Project Structure • Available Scripts
- Home Feed - Stay updated with posts from your sports network
- User Profiles - Showcase your athletic journey and achievements
- Friends & Connections - Build your sports community
- Messages - Private communication with fellow athletes
- Notifications - Stay informed about activities that matter to you
- Courses - Browse and enroll in sports training courses
- Events - Discover and participate in sports events
- Gaming - Connect with esports enthusiasts
- Tutorials - Learn from expert-led sports tutorials
- Videos - Watch and share sports videos
- Gallery - Share your memorable sports moments
- Analytics - Track your performance metrics
- Community - Join sports-specific communities
- Shop - Browse sports equipment and merchandise
- Sponsorships - Find sponsorship opportunities
- Work - Explore sports-related job opportunities
- 🌙 Dark/Light Mode - Toggle between themes for comfortable viewing
- 📱 Responsive Design - Optimized for all screen sizes
- 🎨 Modern UI - Clean, intuitive interface with Material-UI components
- ⚡ Fast Performance - Optimized for smooth user experience
| Technology | Purpose |
|---|---|
| React 18 | UI framework |
| React Router v7 | Client-side routing |
| Material-UI (MUI) | UI component library |
| Recharts | Data visualization & analytics |
| SASS/SCSS | CSS preprocessing |
| Context API | State management (Auth, Dark Mode) |
- Node.js (v18 or higher)
- npm
-
Clone the repository
git clone https://github.com/lokeshpuma/AthletiX_frontend.git cd AthletiX_frontend -
Install dependencies
npm install
-
Start the development server
npm start
-
Open your browser Navigate to http://localhost:3000
npm run buildThe build folder contains the optimized production-ready application.
The app is configured for GitHub Pages at https://lokeshpuma.github.io/AthletiX_frontend/.
Automatic (recommended): Push to main. The Deploy workflow builds src/ and publishes the build/ output.
One-time GitHub setup:
- Open Settings → Pages on lokeshpuma/AthletiX_frontend.
- Under Build and deployment, set Source to GitHub Actions.
Manual deploy:
npm run deployThis runs npm run build then publishes the build/ folder to the gh-pages branch.
AthletiX_frontend/
├── public/ # Static assets
│ ├── index.html # HTML template
│ └── logo.png # Application logo
├── src/
│ ├── App.js # Main app component with routing
│ ├── index.js # App entry point
│ ├── style.scss # Global styles & theme variables
│ ├── assets/ # Images and static assets
│ ├── components/ # Reusable UI components
│ │ ├── comments/ # Comments section
│ │ ├── emailPanel/ # Email functionality
│ │ ├── leftBar/ # Left sidebar navigation
│ │ ├── logoAnimation/ # Animated logo component
│ │ ├── navbar/ # Top navigation bar
│ │ ├── notifications/ # Notifications panel
│ │ ├── post/ # Post component
│ │ ├── posts/ # Posts feed
│ │ ├── rightBar/ # Right sidebar
│ │ ├── schedule/ # Schedule/Calendar panel
│ │ ├── share/ # Share/create post
│ │ ├── sportsChatbot/ # AI sports assistant
│ │ ├── stories/ # Stories component
│ │ └── userSwitch/ # User account switcher
│ ├── context/ # React Context providers
│ │ ├── authContext.js # Authentication state
│ │ └── darkModeContext.js # Theme state
│ └── pages/ # Page components
│ ├── home/ # Home feed
│ ├── login/ # Login page
│ ├── register/ # Registration page
│ ├── profile/ # User profile
│ ├── friends/ # Friends management
│ ├── messages/ # Messaging system
│ ├── courses/ # Courses catalog
│ ├── events/ # Events listing
│ ├── gaming/ # Gaming community
│ ├── gallery/ # Photo gallery
│ ├── videos/ # Video content
│ ├── tutorials/ # Tutorial videos
│ ├── analytics/ # Performance analytics
│ ├── community/ # Communities
│ ├── shop/ # Sports shop
│ ├── sponsorships/ # Sponsorship opportunities
│ └── work/ # Job board
├── package.json # Project dependencies
└── README.md # This file
| Command | Description |
|---|---|
npm start |
Runs the app in development mode |
npm test |
Launches the test runner |
npm run build |
Builds for production |
npm run eject |
Ejects from Create React App |
The application features a comprehensive dark mode system:
- Toggle - Switch between light and dark themes via navbar button
- Persistence - Theme preference saved in localStorage
- Optimized UI - Carefully tuned colors for readability
- Global Consistency - All components support both themes
- Navbar with improved contrast
- Animated logo with adjusted brightness
- Schedule/Calendar panel
- Email compose panel
- User account switcher
- All form elements and inputs
Edit src/style.scss to customize theme variables:
$primary-color: #1976d2;
$secondary-color: #dc004e;
$background-light: #f5f5f5;
$background-dark: #121212;- Create page component in
src/pages/ - Add route in
src/App.js:<Route path="/new-page" element={<NewPage />} />
AthletiX is fully responsive with breakpoints for:
- Mobile: < 600px
- Tablet: 600px - 960px
- Desktop: > 960px
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License.
Built with ❤️ for athletes worldwide
