feat(TouristAttractions): Adiciona e Estiliza inputs Text e Button

This commit is contained in:
William Simão Cavalcante 2022-11-16 13:28:24 -03:00
parent 19a7511687
commit add46e4739
2 changed files with 159 additions and 0 deletions

41
index.html Normal file
View File

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Tourist Attractions</title>
</head>
<body>
<main>
<h1 class="page-titulo__tourist" data-test="title-form">Adicionar um Ponto Turístico</h1>
<div class="container-input">
<div class="wrapper-input__img">
<label>
<input type="file" data-test="input-image">
<span>Imagem</span>
</label>
</div>
<div class="wrapper-input__text">
<input class="input-text__titulo" type="text" placeholder="Titulo" data-test="input-titulo">
<input class="input-text__descricao" type="text" placeholder="Descrição" data-test="input-descrição">
<div class="wrapper-button-submit">
<button class="button-submit__input" type="submit" data-test="button-submit">Adicionar</button>
</div>
</div>
</div>
</main>
</body>
</html>

118
style.css Normal file
View File

@ -0,0 +1,118 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.page-titulo__tourist {
font-family: "Poppins", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 32px;
line-height: 120%;
}
.container-input {
display: flex;
}
.wrapper-input__img input {
display: none;
margin-right: 20px;
}
.wrapper-input__img label {
display: flex;
align-items: center;
justify-content: center;
color: #858585;
font-family: "Roboto", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 24px;
letter-spacing: 0.15px;
width: 343px;
height: 212px;
margin-right: 20px;
border: 2px solid #e5e5e5;
border-radius: 8px;
cursor: pointer;
}
.wrapper-input__text {
display: flex;
flex-direction: column;
}
.input-text__titulo {
display: flex;
width: 328px;
height: 56px;
margin-bottom: 20px;
padding: 16px 0 16px 16px;
border: 2px solid #d6d6d6;
border-radius: 8px;
color: #858585;
font-family: "Roboto", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 24px;
letter-spacing: 0.15px;
}
.input-text__descricao {
display: flex;
width: 417px;
height: 136px;
margin-bottom: 16px;
padding: 40px 0px 72px 20px;
color: #858585;
font-family: "Roboto", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 24px;
letter-spacing: 0.15px;
border: 2px solid #d6d6d6;
border-radius: 8px;
}
.wrapper-button-submit {
display: flex;
justify-content: end;
}
.button-submit__input {
display: flex;
align-items: center;
justify-content: center;
width: 121px;
height: 56px;
background: #ff5a5f;
color: #ffffff;
font-family: "Poppins", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 16px;
border: 1px solid #ff5a5f;
border-radius: 8px;
cursor: pointer;
}