2024-11-05 23:24:52 +05:30
|
|
|
import React from "react";
|
2024-11-07 12:05:27 +05:30
|
|
|
import { Link } from "react-router-dom";
|
2024-11-05 23:24:52 +05:30
|
|
|
|
|
|
|
|
function Register() {
|
|
|
|
|
return (
|
2024-11-05 23:50:55 +05:30
|
|
|
<div className=" flex justify-center h-screen bg-base-200 p-4">
|
2024-11-05 23:24:52 +05:30
|
|
|
<div className="w-full max-w-md rounded-lg ">
|
|
|
|
|
<h2 className="text-2xl font-semibold text-center text-white mb-6">
|
|
|
|
|
Sign Up
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<form className="space-y-4">
|
|
|
|
|
{/* Username Input */}
|
|
|
|
|
<div className="form-control w-full">
|
|
|
|
|
<label className="label">
|
|
|
|
|
<span className="label-text text-gray-200">Username</span>
|
|
|
|
|
</label>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="Enter your username"
|
|
|
|
|
className="input input-bordered w-full bg-gray-700 text-white focus:outline-none focus:ring focus:ring-primary"
|
|
|
|
|
required
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Email Input */}
|
|
|
|
|
<div className="form-control w-full">
|
|
|
|
|
<label className="label">
|
|
|
|
|
<span className="label-text text-gray-200">Email</span>
|
|
|
|
|
</label>
|
|
|
|
|
<input
|
|
|
|
|
type="email"
|
|
|
|
|
placeholder="Enter your email"
|
|
|
|
|
className="input input-bordered w-full bg-gray-700 text-white focus:outline-none focus:ring focus:ring-primary"
|
|
|
|
|
required
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Password Input */}
|
|
|
|
|
<div className="form-control w-full">
|
|
|
|
|
<label className="label">
|
|
|
|
|
<span className="label-text text-gray-200">Password</span>
|
|
|
|
|
</label>
|
|
|
|
|
<input
|
|
|
|
|
type="password"
|
|
|
|
|
placeholder="Enter your password"
|
|
|
|
|
className="input input-bordered w-full bg-gray-700 text-white focus:outline-none focus:ring focus:ring-primary"
|
|
|
|
|
required
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* Submit Button */}
|
|
|
|
|
<div>
|
|
|
|
|
<button type="submit" className="btn btn-primary w-full text-white mt-4">
|
|
|
|
|
Sign Up
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
{/* Divider */}
|
|
|
|
|
<div className="divider text-gray-400">OR</div>
|
|
|
|
|
|
|
|
|
|
{/* Login Link */}
|
|
|
|
|
<p className="text-center text-gray-300">
|
|
|
|
|
Already have an account?{" "}
|
2024-11-07 12:05:27 +05:30
|
|
|
<Link to="/login" className="text-primary hover:underline">
|
2024-11-05 23:24:52 +05:30
|
|
|
Login
|
2024-11-07 12:05:27 +05:30
|
|
|
</Link>
|
2024-11-05 23:24:52 +05:30
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Register;
|