diff --git a/src/App.jsx b/src/App.jsx index 1f83ca68..ecac6994 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -157,13 +157,8 @@ export default function App() { {/* Other user routes */} } /> } /> -<<<<<<< HEAD } /> {/* Help page route */} } /> -======= - } /> - } /> ->>>>>>> 5eed12d9 (revert sadaf commit for category changes) {/* Privacy policy page route */} } /> {


+ + +

SOCIALS: diff --git a/src/User/pages/Home/Home.css b/src/User/pages/Home/Home.css index a4264a79..128c369f 100644 --- a/src/User/pages/Home/Home.css +++ b/src/User/pages/Home/Home.css @@ -9,6 +9,12 @@ animation: smoothUpDown 2s infinite alternate ease-in-out; } +.custom-shadow { + box-shadow: 0px 6px 20px rgba(60, 60, 60, 0.3); /* Dark gray, thick shadow */ + border-radius: 8px; + } + + @keyframes smoothUpDown { 0%, diff --git a/src/User/pages/Home/Home.jsx b/src/User/pages/Home/Home.jsx index 3ae24ceb..0af87632 100644 --- a/src/User/pages/Home/Home.jsx +++ b/src/User/pages/Home/Home.jsx @@ -135,6 +135,9 @@ const Home = () => { const [suggestions, setSuggestions] = useState([]); const navigate = useNavigate(); + const [isSubscribed, setIsSubscribed] = useState(false); + const [email, setEmail] = useState(""); + const handleSearch = (e) => { const term = e.target.value; setSearchTerm(term); @@ -160,6 +163,17 @@ const Home = () => { sectionRef.current.scrollIntoView({ behavior: "smooth" }); }; + + const handleSubscribe = (e) => { + e.preventDefault(); + setIsSubscribed(true); // Show the success message + setTimeout(() => { + setIsSubscribed(false); // Hide the message + setEmail(""); // Clear the email input + }, 3000); // 3 seconds + }; + + return (

@@ -218,12 +232,14 @@ const Home = () => {
{popularCategories.map((category, index) => ( +
+
))}
@@ -248,6 +264,13 @@ const Home = () => {
+ + + + + + + {/* App Download Section */}
{ Subscribe to our newsletter to receive exclusive updates, promotions, and tips.

-
+ setEmail(e.target.value)} style={{ color: "black", width: "100%", @@ -297,9 +322,6 @@ const Home = () => { padding: "10px", marginBottom: "10px", border: "1px solid #ccc", - "@media (maxWidth: 780px)": { - width: "80%", - }, }} /> {" "} +
+ {isSubscribed && ( +
+

Subscribed successfully!

+
+ )}