Skip to content

Commit

Permalink
Pequenas correções
Browse files Browse the repository at this point in the history
- página principal
  - Quest mais novas na frente
  - gap ao inves de margin
  - webp images
- quest 1
  - centralizando
  - arrumando créditos em mobile
- quest 2
  - submit: input -> button
  • Loading branch information
alpe12 committed Oct 10, 2023
1 parent a223935 commit 753ce8b
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
html {
font-family: 'Poppins', sans-serif;
color:white;
display: flex;
min-width: 100%;
min-height: 100%;
align-items: center;
justify-content: center;
}

body {
background: hsl(257, 40%, 49%) url("../images/bg-desktop.svg") no-repeat;
display:flex;
display: flex;
flex-direction: column;
justify-content: space-between;
margin: 54px 72px 40px 72px;
background-position: center;

}

header {
Expand Down Expand Up @@ -85,9 +92,9 @@ footer a.social:hover > img {
filter: invert(55%) sepia(31%) saturate(5377%) hue-rotate(292deg) brightness(99%) contrast(100%);
}
.attribution {
position: fixed;
position: absolute;
top: 0;
margin-left: -72px;
left: 0;
width: 100%;
text-align: center;
font-size: 11px;
Expand Down
2 changes: 1 addition & 1 deletion 2-formulario-com-validacao/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h2>FICOU COM DÚVIDA?<br>NOS MANDE UMA MENSAGEM!</h2>
<textarea name="mensagem" required placeholder="Mensagem *"></textarea>
<span></span>
<span class="alerta">*campos obrigatórios</span>
<input type="submit" value="Enviar">
<button type="submit">Enviar</button>
</form>
</main>
</body>
Expand Down
13 changes: 7 additions & 6 deletions 2-formulario-com-validacao/src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ html, body {
}

body {
min-height: 100vh;
min-height: 100dvh;
display: flex;
justify-content: center;
align-items: center;
background-image: radial-gradient(rgba(223,101,150,0.65), rgba(98,130,229,0.85));
background-image: linear-gradient(rgb(223,101,150), rgb(98,130,229));
}

.container {
Expand All @@ -23,8 +23,7 @@ body {
display: flex;
align-items: center;
justify-content: space-around;
outline: 1px outset black;
background-image: linear-gradient(rgb(223,101,150), rgb(98,130,229));
outline: 2px outset black;
}

.container .mensagem {
Expand All @@ -49,14 +48,16 @@ body {
}

.container .formulario input,
.container .formulario textarea {
.container .formulario textarea,
.container .formulario button {
border: 1px solid #000;
border-radius: 5px;
padding: 9px;
}

.container .formulario input:not(:first-child),
.container .formulario textarea,
.container .formulario button,
.container .formulario .alerta {
margin-top: 15px;
}
Expand Down Expand Up @@ -89,7 +90,7 @@ body {
scrollbar-width: thin;
}

.container .formulario input[type=submit] {
.container .formulario button {
color:white;
background-color: #3CCC87;
border-color: transparent;
Expand Down
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
<main>
<h1>DevQuest - Quests</h1>
<div class="quests">
<a href="./1-huddle-landing-page-with-single-introductory-section/" class="quest">
<h3 class="titulo">1. HTML/CSS - huddle landing page with single introductory section</h3>
<img class="imagem" src="./src/images/1.png" alt="">
<span class="descricao"></span>
</a>
<a href="./2-formulario-com-validacao/" class="quest">
<h3 class="titulo">2. HTML/CSS/JS - Formulário com validação</h3>
<img class="imagem" src="./src/images/2.png" alt="">
<img class="imagem" src="./src/images/2.webp" alt="">
<span class="descricao"></span>
</a>
<a href="./1-huddle-landing-page-with-single-introductory-section/" class="quest">
<h3 class="titulo">1. HTML/CSS - huddle landing page with single introductory section</h3>
<img class="imagem" src="./src/images/1.webp" alt="">
<span class="descricao"></span>
</a>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ main .quests {
display: grid;
grid-template-columns: repeat(auto-fit, 500px);
justify-content: center;
gap: 2rem;
}

main .quests .quest {
margin: 1em;
outline: thin solid #c0c0c0;
display: flex;
flex-direction: column;
padding: 5px;
background-color: rgba(0,0,0,0.2);
text-decoration: none;
color: white;
border-radius: 1em;
border-radius: 1rem;
}


Expand All @@ -49,8 +49,8 @@ main .quests .quest .titulo {
main .quests .quest .imagem {
object-fit: contain;
max-width: 100%;
border-bottom-left-radius: 1em;
border-bottom-right-radius: 1em;
border-bottom-left-radius: 1rem;
border-bottom-right-radius: 1rem;
}

main .quests .quest .descricao {
Expand Down
Binary file added src/images/1.webp
Binary file not shown.
Binary file added src/images/2.webp
Binary file not shown.

0 comments on commit 753ce8b

Please sign in to comment.