feat(main-banner-responsive): adicionei responsividade - desktop, mobile~

This commit is contained in:
Matheus Brollo Dauter 2022-10-12 10:54:49 -03:00
parent 27fa27b386
commit 93c48faa84
2 changed files with 24 additions and 6 deletions

View File

@ -17,12 +17,10 @@
</div>
<main>
<div id="img1">
<picture>
<source media="(max-width: 1920px)" srcset="assets/img/Rectangle 9 (1).png">
<img src="assets/img/Rectangle 9.png" alt="Ilustração de um laptop com codigos na tela.">
</picture>
</div>
<section>
<img class="main-banner-desktop" src="assets/img/Rectangle 9.png" alt="Imagem de Laptop com codigos na tela.">
<img class="main-banner-mobile" src="assets/img/Rectangle 9 (1).png" alt="">
</section>
<article>
<h1 id="title1">Lorem ipsum</h1>

View File

@ -20,3 +20,23 @@ header {
width: auto;
height: auto;
}
.main-banner-desktop {
width: 100%;
}
.main-banner-mobile {
width: 100%;
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
display: none;
}
}
@media screen and (min-width: 415px) {
.main-banner-mobile {
display: none;
}
}