feat(header): criação do header e adição do banner do top, com resposividade
This commit is contained in:
parent
89ee7124ac
commit
a798c7a165
BIN
assets/imagens/Logo-M3Academy 1.png
Normal file
BIN
assets/imagens/Logo-M3Academy 1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
BIN
assets/imagens/Main-banner-desktop.png
Normal file
BIN
assets/imagens/Main-banner-desktop.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 MiB |
BIN
assets/imagens/Main-banner-mobile.png
Normal file
BIN
assets/imagens/Main-banner-mobile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 332 KiB |
38
assets/styles/main.css
Normal file
38
assets/styles/main.css
Normal 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
29
index.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user