Adiciona imagens primárias responsivas desktop e mobile
This commit is contained in:
parent
f4c9c6bf6c
commit
97db60c9b4
9
assets/img/Logo-M3Academy 1.svg
Normal file
9
assets/img/Logo-M3Academy 1.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 19 KiB |
BIN
assets/img/image_principal.png
Normal file
BIN
assets/img/image_principal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 MiB |
BIN
assets/img/mobile_image_primary.png
Normal file
BIN
assets/img/mobile_image_primary.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 341 KiB |
16
index.html
16
index.html
@ -10,6 +10,22 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header_landing">
|
||||
<a href="/">
|
||||
<picture>
|
||||
<img class="logo_m3" src="./assets/img/Logo-M3Academy 1.svg" alt="LogoM3Academy">
|
||||
</picture>
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<div>
|
||||
<picture>
|
||||
<img class="primary_banner" src="./assets/img/image_principal.png" alt="banner primário">
|
||||
</picture>
|
||||
<picture>
|
||||
<img class="banner_mobile" src="./assets/img/mobile_image_primary.png" alt="image mobile">
|
||||
</picture>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
|
37
style.css
37
style.css
@ -0,0 +1,37 @@
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.header_landing {
|
||||
background-color: #000;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.logo_m3 {
|
||||
margin: 28px 0;
|
||||
}
|
||||
|
||||
.primary_banner {
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
|
||||
@media screen and (max-width: 413px) {
|
||||
.primary_banner {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.banner_mobile {
|
||||
width: 100%;
|
||||
max-width: 414px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width:414px) {
|
||||
.banner_mobile {
|
||||
display: none;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user