feat(main): adiciona o banner principal mobile e responsividade

This commit is contained in:
Juan Guzzo Santana 2022-10-11 22:23:42 -03:00
parent dd08f30d59
commit c553a7e193
4 changed files with 18 additions and 2 deletions

View File

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB

View File

@ -28,8 +28,11 @@
<main>
<figure>
<img class="main-banner" src="./assets/images/main-banner.png"
<img class="main-banner main-banner-desktop" src="./assets/images/main-banner-desktop.png"
alt="Banner principal: Um notebook rodando um aplicativo de programação" />
<img class="main-banner main-banner-mobile" src="./assets/images/main-banner-mobile.png"
alt="Banner principal: Um notebook rodando um aplicativo de programação">
</figure>
</main>
</body>

View File

@ -4,6 +4,7 @@
box-sizing: border-box;
}
.header-logo {
width: 100%;
display: block;
@ -16,6 +17,18 @@
background: #000;
}
.main-banner {
.main-banner{
width: 100%;
}
@media screen and (min-width: 821px) {
.main-banner-mobile {
display: none;
}
}
@media screen and (max-width: 820px) {
.main-banner-desktop {
display: none;
}
}