Adding a Form to reset password in forgetPassword page
This commit is contained in:
parent
a78575f4d6
commit
5c753e4ab0
@ -134,4 +134,8 @@ footer p {
|
|||||||
|
|
||||||
form span {
|
form span {
|
||||||
font-size: .8rem
|
font-size: .8rem
|
||||||
|
}
|
||||||
|
|
||||||
|
#reset_pass_lbl {
|
||||||
|
float: left
|
||||||
}
|
}
|
@ -1,9 +1,26 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
import { Link } from 'react-router-dom'
|
||||||
|
|
||||||
|
import '../../App.css'
|
||||||
|
|
||||||
export default function ForgetPasswordPage() {
|
export default function ForgetPasswordPage() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="text-center m-5-auto">
|
||||||
<h1>Forget Password Page</h1>
|
<h2>Reset your password</h2>
|
||||||
|
<h5>Enter your email address and we will send you a new password</h5>
|
||||||
|
<form action="/login">
|
||||||
|
<p>
|
||||||
|
<label id="reset_pass_lbl">Email address</label><br/>
|
||||||
|
<input type="email" name="email" required />
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<button id="sub_btn" type="submit">Send password reset email</button>
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
<footer>
|
||||||
|
<p>First time? <Link to="/register">Create an account</Link>.</p>
|
||||||
|
<p><Link to="/">Back to Homepage</Link>.</p>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -3,10 +3,6 @@ import { Link } from 'react-router-dom'
|
|||||||
|
|
||||||
import '../../App.css'
|
import '../../App.css'
|
||||||
|
|
||||||
const handleClick = () => {
|
|
||||||
alert('Login Successfully')
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function SignInPage() {
|
export default function SignInPage() {
|
||||||
return (
|
return (
|
||||||
<div className="text-center m-5-auto">
|
<div className="text-center m-5-auto">
|
||||||
@ -14,16 +10,16 @@ export default function SignInPage() {
|
|||||||
<form action="/home">
|
<form action="/home">
|
||||||
<p>
|
<p>
|
||||||
<label>Username or email address</label><br/>
|
<label>Username or email address</label><br/>
|
||||||
<input type="text" name="first_name"/>
|
<input type="text" name="first_name" required />
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label>Password</label>
|
<label>Password</label>
|
||||||
<Link to="/forget-password"><label className="right-label">Forget password?</label></Link>
|
<Link to="/forget-password"><label className="right-label">Forget password?</label></Link>
|
||||||
<br/>
|
<br/>
|
||||||
<input type="password" name="password"/>
|
<input type="password" name="password" required />
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<button id="sub_btn" onClick={handleClick} type="submit">Login</button>
|
<button id="sub_btn" type="submit">Login</button>
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
<footer>
|
<footer>
|
||||||
|
@ -8,7 +8,7 @@ export default function SignUpPage() {
|
|||||||
return (
|
return (
|
||||||
<div className="text-center m-5-auto">
|
<div className="text-center m-5-auto">
|
||||||
<h2>Join us</h2>
|
<h2>Join us</h2>
|
||||||
<h3>Create your personal account</h3>
|
<h5>Create your personal account</h5>
|
||||||
<form action="/home">
|
<form action="/home">
|
||||||
<p>
|
<p>
|
||||||
<label>Username</label><br/>
|
<label>Username</label><br/>
|
||||||
|
Loading…
Reference in New Issue
Block a user