Adiciona banners principais desktop e mobile

This commit is contained in:
Vitor Soares 2022-10-09 13:43:18 -03:00
parent 09c085e566
commit 20616652c2
5 changed files with 30 additions and 1 deletions

View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 KiB

View File

@ -4,6 +4,7 @@
box-sizing: border-box; box-sizing: border-box;
} }
/* Cria header desktop e mobile */
.page-header { .page-header {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -14,3 +15,20 @@
.header-logo { .header-logo {
display: block; display: block;
} }
/* Cria banner princial */
.main-banner {
width: 100%;
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
display: none;
}
}
@media screen and (min-width: 414px) {
.main-banner-mobile {
display: none;
}
}

View File

@ -12,10 +12,21 @@
</head> </head>
<body> <body>
<!--Cria header desktop e mobile-->
<header class="page-header"> <header class="page-header">
<a href="/"> <a href="/">
<img class="header-logo" src="./assets/imagens/Logo M3 [branco].svg" alt="Logo M3" /> <img class="header-logo" src="assets/imagens/logo-m3.svg" alt="Logo M3" />
</a> </a>
</header> </header>
<main>
<!--Cria banner principal-->
<div>
<figure>
<img class="main-banner main-banner-desktop" src="assets/imagens/main-banner-desktop.png" alt="Banner Principal Desktop" />
<img class="main-banner main-banner-mobile" src="assets/imagens/main-banner-mobile.png" alt="Banner Principal Mobile" />
</figure>
</div>
</main>
</body> </body>
</html> </html>