A dynamic web application that fetches and displays creature data from an external API. This project demonstrates mastery of Asynchronous JavaScript, DOM Manipulation, and Responsive CSS.
(Note: Replace this link with a real screenshot after you deploy)
- Real-time Data Fetching: Uses
async/awaitto consume a RESTful API. - Search Functionality: Supports queries by both Creature Name (e.g., "Pikachu") and ID (e.g., "25").
- Dynamic UI: The interface updates instantly to display stats, types, and physical attributes without a page reload.
- Error Handling: Gracefully manages 404 errors for invalid search terms.
- Keyboard Support: Users can search by pressing the
Enterkey.
- JavaScript (ES6+):
fetchAPI, Promises, Arrow Functions, DOM manipulation. - CSS3: CSS Variables, Grid/Flexbox layouts, and Mobile-First responsive design.
- HTML5: Semantic markup structure.
- User inputs a name or ID.
- The app sanitizes the input (
trim()andtoLowerCase()). - A
fetchrequest is sent to the proxy API. - If found: The DOM is cleared and repopulated with the new data.
- If not found: A user-friendly error message is displayed.
/
├── index.html # Main markup
├── styles.css # Styling & Animations
├── script.js # Search logic & API handling
└── README.md # Documentation