Adiciona os cards do topo #4

Merged
nicolasrosadeoliveira merged 1 commits from feature/top-cards into develop 2022-10-10 16:53:16 +00:00
5 changed files with 80 additions and 13 deletions

BIN
assets/images/coin-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
assets/images/shop-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 962 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -9,6 +9,8 @@ body {
font-family: 'Inter', sans-serif; font-family: 'Inter', sans-serif;
} }
/* HEADER E BANNER */
.page__header { .page__header {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -20,19 +22,24 @@ body {
display: block; display: block;
} }
.main__banner { .main__banner-desktop {
display: block; display: block;
width: 100%; width: 100%;
} }
.main__banner-mobile {
display: none;
}
/* TOP TEXTS */
.top__text { .top__text {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
padding: 84px 30px; padding: 84px 30px 179px;
gap: 72px; gap: 72px;
} }
@ -66,32 +73,69 @@ body {
} }
/* TOP CARDS */
.top__cards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
padding: 0 0 80px;
}
.top__card {
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);
}
.top__card-image {
display: block;
margin-bottom: 26px;
}
.top__card-description {
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/* MEDIAS QUERIES */ /* MEDIAS QUERIES */
@media screen and (min-width: 769px) and (max-width: 1200px) {
@media screen and (max-width: 414px) { .top-cards {
.main__banner-desktop, grid-template-columns: repeat(2, max-content);
.middle__banner-desktop {
display: none;
} }
} }
@media screen and (min-width: 415px) { @media screen and (max-width: 1200px) {
.main__banner-mobile, .top__cards {
.middle__banner-mobile { grid-template-columns: 1fr;
display: none; padding: 0 32px 80px;
} }
} }
@media screen and (max-width: 1024px) {
.main__banner-desktop {
display: none;
}
.main__banner-mobile {
display: block;
width: 100%;
}
}
@media screen and (max-width: 992px) { @media screen and (max-width: 992px) {
.top__text { .top__text {
flex-direction: column; flex-direction: column;
padding: 73px 30px 158px; padding: 88px 32px 90px;
gap: 65px; gap: 65px;
} }
@ -118,4 +162,11 @@ body {
text-align: center; text-align: center;
} }
} }
@media screen and (min-width: 993px ) and (max-width: 1280px) {
.top-infocard-text {
max-width: 520px;
margin-right: 70px;
}
}

View File

@ -32,6 +32,22 @@
<img class="top__infocard-image" src="./assets/images/top-image.png" alt="Imagem de 3 monitores"> <img class="top__infocard-image" src="./assets/images/top-image.png" alt="Imagem de 3 monitores">
</figure> </figure>
</section> </section>
<section class="top__cards">
<div class="top__card">
<img class="top__card-image" src="./assets/images/shop-icon.png" alt="Imagem de um shop icon do primeiro card do topo">
<p class="top__card-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
<div class="top__card">
<img class="top__card-image" src="./assets/images/shopping-bag-icon.png" alt="Imagem de um shopping bag do segundo card do topo">
<p class="top__card-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
<div class="top__card">
<img class="top__card-image" src="./assets/images/coin-icon.png" alt="Imagem de uma coin icon do terceiro card do topo">
<p class="top__card-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
</section>
</main> </main>
</body> </body>
</html> </html>