-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Users should be presented with a reset password link
- Loading branch information
Showing
16 changed files
with
360 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import '../src/styles/reset-password.scss' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ const Footer: React.FC = () => ( | |
</footer> | ||
); | ||
|
||
export default Footer; | ||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ const Header: React.FC = () => ( | |
</header> | ||
); | ||
|
||
export default Header; | ||
export default Header; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ root.render( | |
<Provider store={store}> | ||
<App /> | ||
</Provider> | ||
); | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ const NotFound: React.FC = () => ( | |
</main> | ||
); | ||
|
||
export default NotFound; | ||
export default NotFound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import React, { useState } from 'react'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faEye, faEyeSlash } from '@fortawesome/free-solid-svg-icons'; | ||
import Button from '../components/buttons/Button'; | ||
import Header from '../components/layout/Header'; | ||
|
||
const ResetPassword: React.FC = () => { | ||
const [showNewPassword, setShowNewPassword] = useState(false); | ||
const [showConfirmPassword, setShowConfirmPassword] = useState(false); | ||
|
||
const newPasswordVisibility = () => { | ||
setShowNewPassword(!showNewPassword); | ||
}; | ||
|
||
const confirmPasswordVisibility = () => { | ||
setShowConfirmPassword(!showConfirmPassword); | ||
}; | ||
|
||
return ( | ||
<main> | ||
<Header /> | ||
<form className="resetPasswordForm"> | ||
<h1>Reset password</h1> | ||
<div className="input-containers"> | ||
<div className="input-container1"> | ||
<input | ||
type={showNewPassword ? 'text' : 'password'} | ||
className="input-field1" | ||
placeholder=" " | ||
id="newPassword" | ||
required | ||
/> | ||
<label className="input-label1" htmlFor="newPassword">New password</label> | ||
<button | ||
type="button" | ||
className="toggle-password" | ||
onClick={newPasswordVisibility} | ||
> | ||
<FontAwesomeIcon icon={showNewPassword ? faEyeSlash : faEye} /> | ||
</button> | ||
</div> | ||
<div className="input-container2"> | ||
<input | ||
type={showConfirmPassword ? 'text' : 'password'} | ||
className="input-field2" | ||
placeholder=" " | ||
id="confirmPassword" | ||
required | ||
/> | ||
<label className="input-label2" htmlFor="confirmPassword">Confirm password</label> | ||
<button | ||
type="button" | ||
className="toggle-password" | ||
onClick={confirmPasswordVisibility} | ||
> | ||
<FontAwesomeIcon icon={showConfirmPassword ? faEyeSlash : faEye} /> | ||
</button> | ||
</div> | ||
<div className="reset-Button"> | ||
<Button title="Reset Password" /> | ||
</div> | ||
</div> | ||
</form> | ||
</main> | ||
); | ||
}; | ||
|
||
export default ResetPassword; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
import Header from '../components/layout/Header'; | ||
import Button from '../components/buttons/Button'; | ||
|
||
const SendResetPasswordLink:React.FC = () => ( | ||
<> | ||
<Header /> | ||
<main> | ||
<div className="resetPassword-Container"> | ||
<h1>Get Reset Password Link</h1> | ||
|
||
<div className="input-container"> | ||
<input type="email" className="input-field" placeholder=" " id="email" required /> | ||
<label className="input-label" htmlFor="email">Email Address</label> | ||
</div> | ||
|
||
<div className="reset-Button"> | ||
<Button title="Get Reset Link" /> | ||
</div> | ||
|
||
</div> | ||
</main> | ||
</> | ||
); | ||
|
||
export default SendResetPasswordLink; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
$primary-color: #FF6D18; | ||
$button-bg-color: #FF6D18; | ||
$button-text-color: #fff; | ||
$text-color: #000000; |
Oops, something went wrong.