gamil: alaminstudent57@gmail.com
A simple and responsive food recipe web application built with Vanilla JavaScript using the TheMealDB API.
Users can browse food recipes, search by food name, view details in a modal, and enjoy a smooth user experience.
- 🍱 Load and display food recipes dynamically
- 🔍 Search food by name
- ❌ Show "Foods not found!!!" when no result exists
- 🔄 Automatically reload all foods when search input is cleared
- 📱 Fully responsive food gallery (Grid layout)
- 🪟 View food details in a modal popup
- ⬆️ Scroll to top button
- ⚡ Smooth scrolling experience
- 🎨 Clean UI with loading spinner
- HTML5
- CSS3
- Vanilla JavaScript (ES6 Modules)
- TheMealDB API
project-root/ │ ├── images/ │ ├── js/ │ ├── header.js │ ├── heroSec.js │ ├── search.js │ ├── foodSection.js │ ├── footer.js │ ├── scrollToTop.js │ └── main.js │ └── index.html
- Main HTML file
- Loads the JavaScript modules
- Contains the root element
- Entry point of the application
- Connects all components together
- Manages application flow
- Creates the website header/navigation
- Displays the hero/banner section
- Handles search UI and user input
- Triggers food search functionality
- Fetches food data from API
- Renders food cards
- Handles "Foods not found" state
- Manages modal popup
- Displays footer section
- Adds scroll-to-top button with smooth scroll
TheMealDB API
https://www.themealdb.com/api/json/v1/1/search.php?s=
- Clone or download the project
- Open
index.htmlin your browser - Start searching for your favorite foods 🍔🍕
⚠️ For best experience, use a local server (VS Code Live Server)
- Search food by name
- Click View Details to see full recipe
- Responsive layout for all devices
- Debounced search
- Category filter
- Favorites feature
- Pagination
- Dark mode
Alamin
Frontend Developer (JavaScript)
If you like this project, give it a ⭐ and feel free to improve it!
