feat: Criação dos Banners do meio Desktop e Mobile

This commit is contained in:
José Carlos Lins 2022-10-09 21:32:17 -03:00
parent dfa42d42b2
commit e128b550a8
5 changed files with 94 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

View File

@ -95,9 +95,33 @@ body{
font-size: 16px;
}
.middle-banner {
background: #E0E0E0;
display: grid;
grid-template-columns: repeat(3, max-content);
justify-content: center;
gap: 40px;
max-height: 530px;
padding: 0 72px;
}
.middle-banner-image {
width: 100%;
margin-top: 62px;
}
/* .middle-banner-image img {
width: 100%;
} */
/* RESPONSIVIDADE */
@media screen and (max-width: 414px) {
.main-banner-desktop {
display: none;
@ -117,16 +141,11 @@ body{
.top-cards {
grid-template-columns: 1fr;
padding: 36px 32px;
padding: 36px 32px 80px;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards {
grid-template-columns: repeat(2, max-content);
padding: 36px 26px;
}
}
@media screen and (max-width: 1024px) {
.top-infocard-text {
@ -149,4 +168,66 @@ body{
width: 100%;
max-width: 240px;
}
}
@media screen and (max-width: 2040px) {
.middle-banner {
max-height: 398px;
}
.middle-banner-image {
width: 420px;
margin-top: 46px;
}
}
@media screen and (max-width: 1530px) {
.middle-banner {
max-height: 318px;
}
.middle-banner-image {
width: 332px;
margin-top: 36px;
}
}
@media screen and (max-width: 1200px) {
.middle-banner {
grid-template-columns: 45% 45%;
grid-template-areas: "banner-grid-1 banner-grid-2"
"banner-grid-3 banner-grid-3";
gap: 14px;
padding: 0;
max-height: max-content;
}
.banner-grid-1 {
grid-area: banner-grid-1;
margin-top: 32px;
}
.banner-grid-2 {
grid-area: banner-grid-2;
margin-top: 32px;
}
.banner-grid-3 {
grid-area: banner-grid-3;
margin-top: 24px;
}
.middle-banner-image {
width: 100%;
margin-top: 0;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards {
grid-template-columns: repeat(2, max-content);
padding: 36px 26px 80px;
}
}

View File

@ -58,5 +58,11 @@
</p>
</div>
</section>
<div class="middle-banner">
<div class="banner-grid-1"><img class="middle-banner-image" src="./assets/images/banner-middle-01.png" alt="Banner Primeiro Computador"></div>
<div class="banner-grid-2"><img class="middle-banner-image" src="./assets/images/banner-middle-02.png" alt="Banner Segundo Computador"></div>
<div class="banner-grid-3"><img class="middle-banner-image" src="./assets/images/banner-middle-03.png" alt="Banner Terceiro Computador"></div>
</div>
</body>
</html>