- Your journey continues after login 🔐 -
-- Your journey continues after login 🔐 -
-- Your journey continues after login 🔐 -
-Your journey continues after login 🔐
+- {passwordStrength.length ? '✔️' : '❌'} At least 8 characters long -
-- {passwordStrength.uppercase ? '✔️' : '❌'} Contains at least one uppercase letter -
-- {passwordStrength.lowercase ? '✔️' : '❌'} Contains at least one lowercase letter -
-- {passwordStrength.number ? '✔️' : '❌'} Contains at least one number -
-- {passwordStrength.special ? '✔️' : '❌'} Contains at least one special character -
-- {passwordMatch ? '✅ Passwords match' : '❌ Passwords do not match'} -
-By continuing, I agree to the terms of use & privacy policy.
-{ - setForgotFlow(true); - setStage(1); - }}> - Forgot Password? -
+setForgotFlow(true)}>Forgot Password?
)} > )} - {forgotFlow && stage === 1 && ( - <> - setEmail(e.target.value)} - required - /> - - > - )} - - {forgotFlow && stage === 2 && ( - <> -Create a new account? { setCurrState("Sign Up"); setPassword(""); setConfirmPassword(""); }}>Click Here
+ ) : ( +Already have an account? { setCurrState("Login"); setPassword(""); setConfirmPassword(""); }}>Login Here
+ ) )}Create a new account? setCurrState("Sign Up")}>Click Here
- ) : ( -Already have an account? setCurrState("Login")}>Login Here
- ) - )} ); diff --git a/frontend/src/components/LoginPopup/SuccessPopup.css b/frontend/src/components/LoginPopup/SuccessPopup.css new file mode 100644 index 0000000..8f17530 --- /dev/null +++ b/frontend/src/components/LoginPopup/SuccessPopup.css @@ -0,0 +1,47 @@ +.success-popup-overlay { + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background: rgba(0, 0, 0, 0.6); + display: flex; + align-items: center; + justify-content: center; + z-index: 9999; /* Make sure it's above everything else */ +} + +.success-popup { + background: #fff; + padding: 2rem; + border-radius: 12px; + text-align: center; + box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3); + animation: popupFadeIn 0.3s ease; +} + +.success-popup h2 { + margin-bottom: 10px; + color: #28a745; +} + +.success-popup button { + margin-top: 10px; + padding: 8px 16px; + border: none; + background-color: #28a745; + color: white; + border-radius: 6px; + cursor: pointer; +} + +@keyframes popupFadeIn { + from { + opacity: 0; + transform: scale(0.9); + } + to { + opacity: 1; + transform: scale(1); + } +} diff --git a/frontend/src/components/LoginPopup/SuccessPopup.jsx b/frontend/src/components/LoginPopup/SuccessPopup.jsx new file mode 100644 index 0000000..6971f9b --- /dev/null +++ b/frontend/src/components/LoginPopup/SuccessPopup.jsx @@ -0,0 +1,18 @@ +import React from "react"; +import "./SuccessPopup.css"; + +const SuccessPopup = ({ message, onClose }) => { + if (!message) return null; // safety guard + + return ( +{message}
+ +