generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from amosproj/dev
Updating dev-#82 with the current state
- Loading branch information
Showing
6 changed files
with
129 additions
and
5 deletions.
There are no files selected for viewing
Binary file added
BIN
+180 KB
deliverables/2021-06-23 - AMOS SS2021 - Team 8 - Planning Document.pdf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,56 @@ | ||
import './RecoverPasswordStyle.css'; | ||
import { useContext } from 'react'; | ||
import slugs from 'resources/slugs'; | ||
import { GlobalContext } from 'hooks/GlobalContext'; | ||
import React from 'react'; | ||
|
||
function RecoverPasswordComponent() { | ||
const [, setState] = useContext(GlobalContext); | ||
|
||
return ( | ||
<div className='flex-container-recover'> | ||
<div className='w3-padding-24 w3-auto'> | ||
<form | ||
className='recover' | ||
action={slugs.categories} | ||
onSubmit={() => setState({ userIsLoggedIn: true })} | ||
> | ||
<div className='w3-container w3-large w3-center'> | ||
<div className='w3-center-align w3-padding-24'> | ||
<h1>Forgot Your Password ?</h1> | ||
</div> | ||
</div> | ||
|
||
<div className='recoverpassword-container'> | ||
<div className='w3-center-align w3-padding-16'> | ||
<p> | ||
Don't fret! Just type in your email and we will send you a code to | ||
reset the password | ||
</p> | ||
</div> | ||
<label htmlFor='uname'> | ||
<b>Your Email</b> | ||
</label> | ||
<input | ||
className='recover' | ||
type='text' | ||
placeholder='abc@siemens.com' | ||
name='uname' | ||
required | ||
/> | ||
|
||
<button className='recover' type='submit'> | ||
Recover Password | ||
</button> | ||
|
||
<div className='recoverpassword-container'> | ||
<a href={slugs.login}> Back to SignIn </a> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default RecoverPasswordComponent; |
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,67 @@ | ||
/* Stylefile for the RecoverPasswordComponent. */ | ||
|
||
/* Vertically Centering Container */ | ||
.flex-container-recover { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
overflow: auto; | ||
color: 'white'; | ||
background: radial-gradient(#54386e, #6b26af, #5d0785); | ||
} | ||
|
||
/* Bordered form */ | ||
form.recover { | ||
display: flex; | ||
flex-direction: column; | ||
background-color: #ffffff; | ||
border: 3px solid #cf9bff; | ||
margin: auto; | ||
border-radius: 25px; | ||
max-width: 800px; | ||
} | ||
button { | ||
background-color: #8a00e5; | ||
} | ||
|
||
/* Full-width inputs */ | ||
input[type='text'].recover { | ||
width: 100%; | ||
padding: 12px 20px; | ||
margin: 8px 0; | ||
display: inline-block; | ||
border: 1px solid #cf9bff; | ||
box-sizing: border-box; | ||
border-radius: 10px; | ||
} | ||
|
||
/* Making the selected text field appearance also rounded */ | ||
input.recover:focus { | ||
outline: none; | ||
box-shadow: 0 0 0 2px; | ||
} | ||
|
||
/* Set a style for all buttons */ | ||
button.recover { | ||
color: white; | ||
padding: 14px 20px; | ||
margin: 8px 0; | ||
border: none; | ||
cursor: pointer; | ||
width: 100%; | ||
border-radius: 10px; | ||
} | ||
|
||
/* Add a hover effect for buttons */ | ||
button.recover:hover { | ||
opacity: 0.8; | ||
} | ||
|
||
/* Add padding to containers */ | ||
.recoverpassword-container { | ||
padding: 16px; | ||
max-width: 500px; | ||
margin: auto; | ||
} |
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