feat(header): criação do header e adição do banner do top, com resposividade

This commit is contained in:
Gabriel Ferraz Nogueira 2022-10-10 11:52:42 -03:00
parent 89ee7124ac
commit a798c7a165
5 changed files with 67 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB

38
assets/styles/main.css Normal file
View File

@ -0,0 +1,38 @@
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.page-header{
display: flex;
justify-content: center;
padding: 29px 0;
background-color: #000;
}
.main-banner-desktop{
width: 100%;
display: block;
}
.main-banner-mobile{
display: none;
}
@media screen and (min-width: 2500px) {
.page-header{
padding: 58px
}
.header-logo{
width: 532px;
height: 86px;
}
}
@media screen and (max-width: 1024px) {
.main-banner-desktop{
display: none;
}
.main-banner-mobile{
width: 100%;
display: block;
}
}

29
index.html Normal file
View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Challenge-landing-page </title>
<link rel="stylesheet" href="./assets/styles/main.css">
</head>
<body>
<header class="page-header">
<a href="./index.html">
<img class="header-logo" src="./assets/imagens/Logo-M3Academy 1.png" alt="Logo M3Academy"/>
</a>
</header>
<main>
<figure>
<img class="main-banner-desktop" src="./assets/imagens/Main-banner-desktop.png" alt="Banner-principal-do-topo"/>
<img class="main-banner-mobile" src="./assets/imagens/Main-banner-mobile.png" alt="Banner-principal-do-topo"/>
</figure>
</figure>
</main>
</body>
</html>