feat(style): added blocks and responsiveness

This commit is contained in:
Matheus Brollo Dauter 2022-10-12 13:55:36 -03:00
parent 93c48faa84
commit fe0728fee9
2 changed files with 153 additions and 25 deletions

View File

@ -23,36 +23,45 @@
</section> </section>
<article> <article>
<h1 id="title1">Lorem ipsum</h1> <div class="cicle-text">
<h2 id="title2">dolor sit amet</h2> <h2 id="title1">Lorem ipsum</h2>
<h1 id="title2">dolor sit amet</h1>
<p> <p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Curabitur ut tortor sed lacus egestas vulputate vel sit amet velit. Nulla suscipit magna dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Curabitur ut tortor sed lacus egestas vulputate vel sit amet velit. Nulla suscipit magna dui.
</p> </p>
</div>
<picture> <section>
<img src="assets/fxemoji_threenetworkedcomputers.png" alt="ciclo de 3 computadores."> <img class="cicle-img" src="assets/fxemoji_threenetworkedcomputers.png" alt="ciclo de 3 computadores.">
</picture> </section>
<section class="block"> <section class="blocks">
<img src="assets/shop 1.png" alt="Icone de uma loja."> <div class="block">
<p> <img class="block-img" src="assets/shop 1.png" alt="Icone de uma loja.">
<p class="block-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p> </p>
</section> </div>
<section class="block">
<img src="assets/shopping-bag (1) 1.png" alt="Icone de uma sacola de compras.">
<p> <div class="block">
<img class="block-img" src="assets/shopping-bag (1) 1.png" alt="Icone de uma sacola de compras.">
<p class="block-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p> </p>
</section> </div>
<section class="block">
<img src="assets/coin 1.png" alt="Icone de dinheiro."> <div class="block">
<p> <img class="block-img" src="assets/coin 1.png" alt="Icone de dinheiro.">
<p class="block-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p> </p>
</div>
</section> </section>
</article> </article>
<!--
<div class="img-square"> <div class="img-square">
<img src="assets/img/Rectangle 13.png" alt="Imagem de um laptop"> <img src="assets/img/Rectangle 13.png" alt="Imagem de um laptop">
</div> </div>
@ -99,6 +108,9 @@
<img src="assets/img/Rectangle 15.png" alt=""> <img src="assets/img/Rectangle 15.png" alt="">
</picture> </picture>
</article> </article>
-->
</main> </main>
<footer> <footer>

View File

@ -2,9 +2,17 @@
/* Começar Css por Header e img1 */ /* Começar Css por Header e img1 */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500&display=swap');
* { * {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
font-weight: 400;
}
body {
font-family: 'Bebas Neue', cursive;
font-family: 'Inter', sans-serif;
} }
header { header {
@ -29,6 +37,78 @@ header {
width: 100%; width: 100%;
} }
article {
text-align: center;
}
.cicle-text {
max-width: 766px;
margin: auto;
padding: 20px;
}
.cicle-text h1 {
font-size: 48px;
text-transform: uppercase;
font-weight: 500;
padding-bottom: 28px;
}
.cicle-text h2 {
font-size: 32px;
text-transform: uppercase;
padding-top: 73px;
font-weight: 400;
}
.cicle-text p {
text-align: center;
line-height: 24px;
}
.cicle-img {
width: 350px;
height: 350px;
margin: auto;
padding-top: 73px;
padding-bottom: 179px;
}
.blocks {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
background-color: white;
}
.block {
display: flex;
flex-direction: column;
align-items: center;
padding: 26px 26px 34px;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.block-img {
display: block;
margin-bottom: 26px;
}
.block-text {
max-width: 300px;
font-size: 16px;
line-height: 24px;
}
@media screen and (max-width: 414px) { @media screen and (max-width: 414px) {
.main-banner-desktop { .main-banner-desktop {
display: none; display: none;
@ -40,3 +120,39 @@ header {
display: none; display: none;
} }
} }
@media screen and (max-width: 768px) {
.cicle-text h2 {
font-size: 20px;
}
.cicle-text h1 {
font-size: 28px;
padding-bottom: 10px;
}
.cicle-text p {
width: 357px;
margin: auto;
}
.cicle-img {
width: 239px;
height: 239px;
padding-top: 65px;
padding-bottom: 90px;
margin: auto;
}
.blocks {
grid-template-columns: 1fr;
padding: 36px 26px;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.blocks {
grid-template-columns: repeat(2, max-content);
padding: 36px 26px;
}
}