diff --git a/README.md b/README.md
index 66f660c2..a37d87d3 100644
--- a/README.md
+++ b/README.md
@@ -214,29 +214,6 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
Arindam
-
-
-
-
- alolika bhowmik
-
-
-
-
-
-
- Ashwini_ab
-
-
-
-
-
-
- Mahera Nayan
-
-
-
-
@@ -245,24 +222,10 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
-
-
-
- Tyarla Shirisha
-
-
-
-
-
-
- Aman Yadav
-
-
-
-
-
+
+
- Nilanchal
+ Ashwini_ab
@@ -272,6 +235,8 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
Haseeb Zaki
+
+
@@ -279,13 +244,11 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
Suhas Koheda
-
-
-
-
+
+
- Jay shah
+ Sajal Batra
@@ -296,24 +259,17 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
-
-
-
- Sajal Batra
-
-
-
-
-
+
+
- PavanTeja2005
+ Abhijit Motekar
-
-
+
+
- Abhijit Motekar
+ Mahera Nayan
@@ -325,63 +281,12 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
-
-
-
-
- Sawan kushwah
-
-
-
-
-
-
- Vinay Anand Lodhi
-
-
-
-
-
-
- Vishal Lade
-
-
-
-
-
-
- MD REHAN
-
-
-
-
-
-
- Aditya Bakshi
-
-
Tanishi Rai
-
-
-
-
-
-
-
- Sushree Manaswini Biswal
-
-
-
-
-
-
- Sourabh Singh Rawat
-
@@ -391,10 +296,10 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
-
-
+
+
- MANI
+ Sawan kushwah
@@ -404,6 +309,13 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
Ayush Yadav
+
+
+
+
+ Aman Yadav
+
+
@@ -413,13 +325,6 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
-
-
-
-
- CHIKATLA RAKESH
-
-
@@ -434,6 +339,13 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
Jai Dhingra
+
+
+
+
+ Jay shah
+
+
@@ -448,6 +360,15 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
Bashua Mutiat
+
+
+
+
+ Nilanchal
+
+
+
+
@@ -455,8 +376,6 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
Sapna Kul
-
-
@@ -477,6 +396,13 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
Vaibhav-Kumar-K-R
+
+
+
+
+
+ dev129
+
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index c5a927fb..4805fcf1 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -1,15 +1,19 @@
// src/App.js
import './App.css';
+import React from 'react';
+import { useState } from 'react';
import Navbar from '../src/components/Shared/Navbar';
import Footer from '../src/components/Shared/Footer';
import { Outlet } from 'react-router-dom';
import BackToTopButton from './components/Shared/BackToTopButton';
import Preloader from './components/Preloader';
-
+import Offers from './components/Shared/Offers'
function App() {
+ const [showModal, setShowModal] = useState(true);
return (
<>
+ setShowModal(false)} />
@@ -18,4 +22,4 @@ function App() {
);
}
-export default App;
+export default App;
\ No newline at end of file
diff --git a/frontend/src/components/Shared/Navbar.jsx b/frontend/src/components/Shared/Navbar.jsx
index 482056a9..21cf9db9 100644
--- a/frontend/src/components/Shared/Navbar.jsx
+++ b/frontend/src/components/Shared/Navbar.jsx
@@ -71,7 +71,7 @@ const Navbar = () => {
return (
diff --git a/frontend/src/components/Shared/Offers.jsx b/frontend/src/components/Shared/Offers.jsx
new file mode 100644
index 00000000..ad8b4df7
--- /dev/null
+++ b/frontend/src/components/Shared/Offers.jsx
@@ -0,0 +1,87 @@
+import React, { useEffect } from 'react';
+import { RxCross1 } from "react-icons/rx";
+import { useNavigate } from 'react-router-dom'; // Import useNavigate from react-router-dom
+
+const Offers = ({ isVisible, onClose }) => {
+ const navigate = useNavigate(); // Initialize the useNavigate hook
+
+ // useEffect to add/remove class to body for disabling scroll when modal is visible
+ useEffect(() => {
+ if (isVisible) {
+ document.body.style.overflow = 'hidden';
+ } else {
+ document.body.style.overflow = 'auto';
+ }
+ return () => {
+ document.body.style.overflow = 'auto';
+ };
+ }, [isVisible]);
+
+ if (!isVisible) return null; // Modal is only visible when isVisible is true
+
+ // Function to handle redirect and modal close
+ const handleTakeMeThere = () => {
+ onClose(); // Close the modal first
+ navigate('/menu'); // Then navigate to /menu
+ };
+
+ return (
+
+
+
+ {/* Close Button */}
+
onClose()} // onClick event to trigger onClose
+ >
+
+
+
+ {/* Modal Content in two sections */}
+
+ {/* Left Section: Image */}
+
+
+
+
+ {/* Right Section: Text and Buttons */}
+
+ {/* Title */}
+
+ So what are you waiting for?
+ Grab the Offer now!
+
+
+ {/* Buttons */}
+
+ {/* No thanks button (left) */}
+ onClose()} // Close modal on No thanks
+ >
+ No thanks
+
+
+ {/* Yes, Take Me There button (right) */}
+
+ Take Me There
+
+
+
+
+
+
+ {/* Backdrop blur layer */}
+
+
+ );
+};
+
+export default Offers;