feat(home): adicionando banner principal desktop e mobile

This commit is contained in:
Bernardo Cunha Ernani Waldhelm 2022-10-11 13:21:25 -03:00
parent 0e75588840
commit 7271058f88
4 changed files with 26 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -3,12 +3,24 @@
justify-content:center;
align-items:center;
padding:29px 0;
background:#000
}
.header__logo {
width: 16%;
display: block;
}
.banner__img {
width: 100%;
display: block;
}
@media screen and (min-width: 415px) {
.banner__img__mobile {
display: none;
}
}
@media screen and (max-width: 414px) {
@ -16,4 +28,7 @@
.header__logo {
width: 54%;
}
.banner__img__desktop {
display: none;
}
}

View File

@ -13,5 +13,15 @@
<header class="header">
<img class="header__logo" src="./assets/images/logo-m3.svg" alt="Logo M3 Academy">
</header>
<main>
<section class="banner">
<img class="banner__img banner__img__desktop" src="/assets/images/banner-princpal-desktop.png" alt="Banner Principal do Site" />
<img class="banner__img banner__img__mobile" src="/assets/images/banner-principal-mobile.png" alt="Banner Principal do Site" />
</section>
</main>
</body>
</html>