Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "Already have an account then login" link to Signup page and vice versa #30

Merged
merged 6 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions frontend/src/Pages/LoginPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ const Login = () => {
Login
</button>
</form>

{/* Don't have an account link */}
<p className="mt-4 text-gray-600">
<span>Don't have an account? </span>
<a href="/register" className="text-blue-500 font-semibold hover:underline transition duration-300 ease-in-out transform hover:scale-105">
Register
</a>
</p>
</div>
);
};
Expand Down
11 changes: 9 additions & 2 deletions frontend/src/Pages/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Register = () => {
<div className="flex flex-col items-center justify-center min-h-screen bg-gray-100">
<h2 className="text-3xl font-bold mb-6">Register New User</h2>
<form onSubmit={handleRegister} className="bg-white p-6 rounded-lg shadow-md w-full max-w-sm">

{/* Name Input */}
<div className="mb-4">
<label className="block text-gray-700 font-bold mb-2" htmlFor="name">Name</label>
Expand Down Expand Up @@ -74,11 +74,18 @@ const Register = () => {
{/* Register Button */}
<button
type="submit"
className="w-full bg-green-500 text-white py-2 rounded-lg font-semibold hover:bg-green-600 transition-colors"
className="w-full bg-blue-500 text-white py-2 rounded-lg font-semibold hover:bg-green-600 transition-colors"
>
Register
</button>
</form>
{/* Already have an account link */}
<p className="mt-4">
<span className="text-gray-600">Already have an account? </span>
<a href="/login" className="text-blue-500 font-semibold hover:underline transition duration-300 ease-in-out transform hover:scale-105">
Log in
</a>
</p>
</div>
);
};
Expand Down
Loading