A modern and interactive restaurant web application built with React.js and Tailwind CSS.
This app provides a smooth user experience with advanced UI features such as dark mode, dynamic product management, cart system, and theme customization.
- π JSON-based Data β Fetch and render restaurant menu from a JSON file.
- π Search Bar β Search dishes in real-time.
- π Code Splitting and Lazy Loading for Performance.
- π±οΈ Click-to-View Details β Click any product to see its full details page.
- π Cart & Checkout β Add products to the cart and simulate payments.
- π Dark Mode Toggle β Seamlessly switch between light and dark themes.
- π¨ Custom Navbar Theme β Change the look and feel of the navigation bar.
- β Add New Product β Admin-like feature to create and display new items.
- β‘ Smooth Animations β Modern transitions powered by Tailwind.
- π± Responsive Design β Optimized for desktop, tablet, and mobile.
- React.js β Component-based frontend library
- Code Splitting and Lazy Loading for Performance.
- Tailwind CSS β Utility-first CSS framework for styling
- JavaScript (ES6+) β Core functionality
- JSON β Data storage and fetching
- React Router β Page navigation
restaurant-app/
βββ public/
βββ data/
β βββ data.json # Menu data (products, prices, descriptions)
βββ src/
β βββ components/ # Reusable UI components
β βββ Hooks/ # UseFeatch , UseTheme
β βββ pages/ # Home, Product Details, Cart, Checkout
β βββ context/ # Cart & Theme context providers
β βββ App.jsx # Main app
β βββ index.jsx # React entry point
βββ tailwind.config.js # Tailwind setup
βββ package.json # Dependencies
# Clone repository
git clone https://github.com/MahdiJDS/restaurant-app.git
# Navigate to project folder
cd restaurant-app
# Install Dependencies
npm install
# Run Development Server
npm run dev| π Cart & Checkout | π Light Mode & Home | π Add & Details |
|---|---|---|
![]() |
![]() |
![]() |
π₯ Made with β€οΈ, MahdiJDSβ¨


