forked from M3-Academy/challenge-landing-page
feat: Criação dos Banners do meio Desktop e Mobile
This commit is contained in:
parent
dfa42d42b2
commit
e128b550a8
BIN
assets/images/banner-middle-01.png
Normal file
BIN
assets/images/banner-middle-01.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 237 KiB |
BIN
assets/images/banner-middle-02.png
Normal file
BIN
assets/images/banner-middle-02.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 214 KiB |
BIN
assets/images/banner-middle-03.png
Normal file
BIN
assets/images/banner-middle-03.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 318 KiB |
@ -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;
|
||||
}
|
||||
}
|
@ -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>
|
Loading…
Reference in New Issue
Block a user