Skip to content

Commit

Permalink
Tela Recuperar Senha
Browse files Browse the repository at this point in the history
  • Loading branch information
femathrl authored May 28, 2024
1 parent 54e4869 commit cc13044
Showing 1 changed file with 39 additions and 10 deletions.
49 changes: 39 additions & 10 deletions frontend/src/pages/PasswordRecovery/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,43 @@ import React, { useState } from 'react';
import './PasswordRecovery.css';
import { Link } from 'react-router-dom';

function passwordRecovery() {
function PasswordRecovery() {

const [email, setEmail] = useState('');

const handleEmailChange = (event) => {
setEmail(event.target.value);
}

const handleSubmit = (event) =>{
event.preventDefault();
console.log("email:", email)

setEmail('');

alert("email : "+email);
}

return (
<>
<p>
aaaaaa
</p>
</>
)
}

export default passwordRecovery;
<body id="paginaPasswordRecovery">
<div className=' divC'>
<Link to= '/Login'>
<img className='img-setaRecovery' src='/seta.svg' alt ='seta'/>
</Link>
<span className='title'> Esqueceu a senha?</span>
<span className='sub-title'> Coloque seu e-mail</span>
<form onSubmit={handleSubmit}>
<input
type = "text"
placeholder='E-mail'
value ={email}
onChange = {handleEmailChange}
/>
<button type="submit"> Enviar</button>
</form>
</div>
</body>
);
}

export default PasswordRecovery;

0 comments on commit cc13044

Please sign in to comment.