Skip to content

Commit

Permalink
Updated the UI of Forgot Password Component
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaishnavi7854 committed Oct 25, 2024
1 parent ee0360d commit 9233cc9
Show file tree
Hide file tree
Showing 70 changed files with 80 additions and 409 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/Greetings.yml
Git LFS file not shown
Binary file modified frontend/public/favicons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/favicons/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/favicons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/50.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/51.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/52.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/aboutimage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/b.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/b14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/b2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/b5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/b6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/b8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/contact.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/d.jpg
Binary file modified frontend/public/images/e.jpg
Binary file modified frontend/public/images/e1.png
Binary file modified frontend/public/images/e11.jpg
Binary file modified frontend/public/images/e13.jpg
Binary file modified frontend/public/images/e14.jpg
Binary file modified frontend/public/images/e15.png
Binary file modified frontend/public/images/e16.png
Binary file modified frontend/public/images/e17.jpg
Binary file modified frontend/public/images/e18pg.jpg
Binary file modified frontend/public/images/e2.png
Binary file modified frontend/public/images/e20.jpg
Binary file modified frontend/public/images/e21.jpg
Binary file modified frontend/public/images/e22.jpg
Binary file modified frontend/public/images/e23.jpg
Binary file modified frontend/public/images/e23jpg.jpg
Binary file modified frontend/public/images/e3.png
Binary file modified frontend/public/images/e4.png
Binary file modified frontend/public/images/e5.png
Binary file modified frontend/public/images/e6.png
Binary file modified frontend/public/images/e7.png
Binary file modified frontend/public/images/e8.png
Binary file modified frontend/public/images/e9.png
Binary file modified frontend/public/images/f1.png
Binary file modified frontend/public/images/f2.png
Binary file modified frontend/public/images/f3.png
Binary file modified frontend/public/images/g1.png
Binary file modified frontend/public/images/g2.png
Binary file modified frontend/public/images/g3.png
Binary file modified frontend/public/images/l.jpg
Binary file modified frontend/public/images/l.png
Binary file modified frontend/public/images/log.jpg
Binary file modified frontend/public/images/login.jpg
Binary file modified frontend/public/images/m.png
Binary file modified frontend/public/images/moon.png
Binary file modified frontend/public/images/r.jpg
Binary file modified frontend/public/images/r.png
Binary file modified frontend/public/images/sun.png
Binary file modified frontend/public/images/w.jpg
Binary file modified frontend/public/images/y.png
118 changes: 68 additions & 50 deletions frontend/src/components/ForgotPassword/ForgotPassword.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import { useNavigate } from "react-router-dom";
import { auth } from "../Firebase/firebase";
import { sendPasswordResetEmail } from "firebase/auth";
import Footer from "../Footer/Footer";

function Login() {
function ForgotPassword() {
const [email, setEmail] = useState("");
const [loading, setLoading] = useState(false);
const [message, setMessage] = useState("");
Expand All @@ -25,58 +26,75 @@ function Login() {
};

return (
<div
className="container mt-5 justify-content-center"
style={{ height: "auto" }}
>
<div className="row justify-content-center" style={{ width: "100%" }}>
<div className="col-md-6">
<div className="card shadow">
<div className="card-body">
<h2 className="text-center mb-4">Forgot Password</h2>
{error && <div className="alert alert-danger">{error}</div>}
{message && (
<div className="alert alert-success">{message}</div>
)}
<form onSubmit={handleResetPassword}>
<div className="mb-3">
<label htmlFor="email" className="form-label">
Email:
</label>
<input
type="email"
id="email"
className="form-control"
placeholder="Enter your email"
value={email}
onChange={(e) => setEmail(e.target.value)}
required
/>
</div>
<button
type="submit"
className="btn btn-primary w-100"
disabled={loading}
>
{loading ? "Requesting..." : "Request password link"}
</button>
</form>
<p className="mt-3 text-center">
Remember you password {" "}
<span
className="text-primary"
style={{ cursor: "pointer" }}
onClick={() => navigate("/login")}
>
Login
</span>
</p>
<>
<style>
{`.forgot-password-card {
background: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 100%);
border-radius: 20px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
padding: 2rem;
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.forgot-password-card:hover {
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
transform: translateY(-5px);
}
.forgot-password-title {
font-size: 1.8rem;
font-weight: bold;
color: #333;
text-align: center;
margin-bottom: 1.5rem;
}
`}
</style>
<div className="container mx-auto mt-5 flex flex-col justify-center bg-cyan-500" style={{ height: "auto" }}>
<div className="row justify-content-center" style={{ width: "100%" }}>
<div className="col-md-6">
<div className="card shadow forgot-password-card">
<div className="card-body">
<h2 className="forgot-password-title">Forgot Password</h2>
{error && <div className="alert alert-danger">{error}</div>}
{message && <div className="alert alert-success">{message}</div>}
<form onSubmit={handleResetPassword}>
<div className="mb-3">
<label htmlFor="email" className="form-label">Email:</label>
<input
type="email"
id="email"
className="form-control"
placeholder="Enter your email"
value={email}
onChange={(e) => setEmail(e.target.value)}
required
/>
</div>
<button
type="submit"
className="btn btn-primary w-100"
disabled={loading}
>
{loading ? "Requesting..." : "Request password link"}
</button>
</form>
<p className="mt-3 text-center">
Remember your password?{" "}
<span
className="text-primary"
style={{ cursor: "pointer" }}
onClick={() => navigate("/login")}
>
Login
</span>
</p>
</div>
</div>
</div>
</div>
<Footer />
</div>
</div>
</>
);
}

export default Login;
export default ForgotPassword;
Loading

0 comments on commit 9233cc9

Please sign in to comment.