forked from M3-Academy/challenge-landing-page
feat(main): adiciona o banner principal mobile e responsividade
This commit is contained in:
parent
dd08f30d59
commit
c553a7e193
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
BIN
assets/images/main-banner-mobile.png
Normal file
BIN
assets/images/main-banner-mobile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 332 KiB |
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user