A modern, interactive Pokédex web application built with HTML, CSS, JavaScript, and Bootstrap that displays a comprehensive list of Pokémon fetched from the PokéAPI. Users can browse through Pokémon and view detailed information in an elegant modal interface.
- 🎯 Dynamic Data Fetching: Retrieves real-time Pokémon data from PokéAPI
- 📱 Responsive Design: Fully responsive interface using Bootstrap 4
- 🔍 Interactive Modal: Click any Pokémon to view detailed information
- 🎨 Clean UI: Modern, user-friendly interface with intuitive navigation
- ⚡ Fast Loading: Optimized JavaScript for smooth performance
- 🎪 Pokémon Details: Displays images, height, weight, types, and abilities
Pokedex-3-/
├── index.html # Main HTML page
├── css/
│ └── styles.css # Custom CSS styles
├── js/
│ ├── scripts.js # Main JavaScript application logic
│ ├── fetch.polyfill.js # Fetch API polyfill for older browsers
│ └── promise-polyfill.js # Promise polyfill for older browsers
└── README.md # Project documentation
- HTML5 - Semantic markup structure
- CSS3 - Custom styling and animations
- Bootstrap 4.3.1 - Responsive framework and UI components
- JavaScript (ES6+) - Modern JavaScript with async/await
- Fetch API - For HTTP requests to PokéAPI
- PokéAPI - RESTful Pokémon data source
- A modern web browser (Chrome, Firefox, Safari, Edge)
- Local HTTP server (optional but recommended)
-
Clone or download this repository to your local machine
-
Navigate to the project directory
-
Start a local server (recommended):
Option 1: Using Node.js
npx http-server -p 8000
Option 2: Using Python
python -m http.server 8000
-
Open your browser and navigate to
http://localhost:8000
Alternatively, you can open index.html directly in your browser, though some features may not work due to CORS restrictions.
- The application loads with a list of Pokémon from the PokéAPI
- Click on any Pokémon name to open a modal with detailed information
- The modal displays:
- Pokémon image
- Name and ID
- Height and weight
- Type(s)
- Base stats and abilities
- Close the modal by clicking the X button or clicking outside the modal
This application uses the PokéAPI to fetch Pokémon data. The API provides:
- Comprehensive Pokémon database
- No authentication required
- RESTful interface
- JSON response format
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Internet Explorer 11+ (with polyfills)
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is open source and available under the MIT License.