Entrega do Desafio #1

Merged
anacarolinaduartecavalcante merged 29 commits from feature/challenge-tourist-attractions into develop 2022-11-28 17:16:05 +00:00
4 changed files with 107 additions and 54 deletions
Showing only changes of commit e286dec4b5 - Show all commits

View File

@ -0,0 +1,5 @@
.container {
width: 81.875%;
margin: 40px 0 0 130px;
}

View File

@ -1,34 +1,102 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
h1 {
width: 100%;
font-weight: 700;
font-size: 32px;
}
input,
textarea {
border-radius: 8px;
}
.form-container {
max-width: 780px;
textarea::placeholder,
textarea,
input::placeholder,
input,
.input-image-container {
font-weight: 400;
font-size: 16px;
line-height: 24px;
letter-spacing: 0.15px;
font-family: "Roboto", sans-serif;
color: $input-text-color;
}
form {
width: 66.157%;
height: 284px;
margin-top: 40px;
.form-container {
.form-inputs {
display: flex;
justify-content: space-between;
width: 100%;
gap: 20px;
.input-image-container {
width: 23.81%;
width: 43.974%;
height: 212px;
border: 2px solid $input-image-border-color;
border-radius: 8px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
background: rgb(255, 255, 255);
overflow: hidden;
&::after {
content: "Imagem";
text-align: center;
pointer-events: none;
}
.input-image-content {
width: 100%;
height: 212px;
border: 2px solid $input-image-border-color;
z-index: 1;
opacity: 0;
}
& img {
object-fit: cover;
width: 100%;
height: 100%;
transition: opacity 0.25s ease-in-out;
opacity: 1;
&[src=""] {
opacity: 0;
}
}
}
.form-input-descricao {
display: flex;
flex-direction: column;
width: 53.461%;
height: 284px;
gap: 20px;
.input-titulo {
width: 79%;
width: 78%;
height: 56px;
border: 2px solid $input-titulo-border-color;
}
.description-content {
width: 100%;
height: 208px;
.input-descricao {
width: 417px;
width: 100%;
height: 136px;
border: 2px solid $input-descrição-border-color;
}
& button {
background: $button-submit-color;
padding: 16px 20px;
border: 1px solid $button-submit-color;
border-radius: 8px;
margin-top: 16px;
font-weight: 700;
font-size: 16px;
color: $text-button-submit-color;
float: right;
}
}
.input-descricao,
.input-titulo {
@ -36,19 +104,10 @@ textarea {
}
}
}
}
}
textarea::placeholder,
textarea,
input::placeholder,
input,
.input-image-content {
font-weight: 400;
font-size: 16px;
line-height: 24px;
letter-spacing: 0.15px;
font-family: "Roboto", sans-serif;
.input-image-content,
.input-image-container img {
position: absolute;
}
// width: 328px;
// height: 56px;

View File

@ -3,11 +3,9 @@
$background-color: #ffffff;
$title-form-color: #000000;
$input-image-border-color: #e5e5e5;
$input-image-text-color: #858585;
$input-titulo-color: #d6d6d6;
$input-titulo-text-color: #858585;
$input-descrição-color: #d6d6d6;
$input-descrição-text-color: #858585;
$input-text-color: #858585;
$input-titulo-border-color: #d6d6d6;
$input-descrição-border-color: #d6d6d6;
$button-submit-color: #ff5a5f;
$text-button-submit-color: #ffffff;
$title-list-color: #000000;
@ -15,14 +13,3 @@ $title-item-list-color: #333333;
$description-item-list-color: #858585;
$slider-ellipse-color: #858585;
$slider-arrow-color: #858585;
// Font-size
$title-form-font-size: 32px;
$input-image-font-size: 16px;
$input-titulo-font-size: 16px;
$input-descrição-font-size: 16px;
$button-submit-font-size: 16px;
$title-list-font-size: 32px;
$title-item-list-font-size: 24px;
$description-item-list-font-size: 16px;

View File

@ -26,11 +26,13 @@
</div>
<div class="form-input-descricao">
<input type="text" placeholder="Título" data-test="input-titulo" class="input-titulo" name="item-title">
<div class="description-content">
<textarea placeholder="Descrição" class="input-descricao" data-test="input-descricao" name="item-description" rows="10" cols="30"></textarea>
<button type="submit" data-test="button-submit">Adicionar</button>
</div>
</div>
</div>
</div>
</form>
</section>
</main>