Merge pull request 'feat: Adiciona settimeout na mensagem de sucesso' (#8) from feature/footer into develop

Reviewed-on: #8
This commit is contained in:
Cainã Milech 2023-01-12 15:24:22 +00:00
commit 38cf21d8cb
2 changed files with 5 additions and 8 deletions

View File

@ -76,6 +76,9 @@ const Contato = () => {
const [feedback, setFeedback] = useState(false);
const Feedback = () => {
setFeedback(true);
setTimeout(() => {
setFeedback(false);
}, 14000);
};
return (
@ -94,14 +97,7 @@ const Contato = () => {
<Form>
<div className={contato["forms__form-col"]}>
<label htmlFor="name">Nome</label>
<Field
onBlur={() => {
setFeedback(false);
}}
placeholder="Seu nome completo"
id="name"
name="name"
/>
<Field placeholder="Seu nome completo" id="name" name="name" />
<ErrorMessage
component="span"
name="name"

View File

@ -50,6 +50,7 @@
padding: 15px 20px;
@media screen and (min-width: 2500px) {
height: 63px;
font-size: 28px;
line-height: 33px;
}