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 */}
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 (
Subscribed successfully!
+