fix: fix all responsive mobile

This commit is contained in:
Marcello Rodrigues Martins 2022-10-13 13:36:15 -03:00
parent 27d47b6df9
commit ee13461699
3 changed files with 497 additions and 445 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

View File

@ -1,129 +1,135 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="pt-br"> <html lang="pt-br">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles/styles.css"> <link rel="stylesheet" href="./styles/styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<title>M3academy</title> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
</head> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;900&display=swap" rel="stylesheet">
<body>
<header> <title>M3academy</title>
<a href="./"> </head>
<img class= "logo-m3" src="./assets/images/Logo-M3Academy 1.png" alt="Logo M3" /> <body>
</a> <header>
</header> <a href="./">
<img class= "logo-m3" src="./assets/images/Logo-M3Academy 1.png" alt="Logo M3" />
<section> </a>
<img class= "banner-1-desktop" src="./assets/images/banner-1-desktop.png" alt="laptop com codigos na tela" /> </header>
<img class= "banner-1-mobile" src="./assets/images/banner-1-mobile.png" alt="laptop com codigos na tela">
</section> <section>
<section class="first-section"> <img class= "banner-1-desktop" src="./assets/images/banner-1-desktop.png" alt="laptop com codigos na tela" />
<div class="text-1"> <img class= "banner-1-mobile" src="./assets/images/banner-1-mobile.png" alt="laptop com codigos na tela">
<h2>Lorem ipsum</h2> </section>
<h1>dolor sit amet</h1> <section class="first-section">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Curabitur ut tortor sed lacus egestas vulputate vel sit amet velit. Nulla suscipit magna dui. <div class="text-1">
</p> <h2>Lorem ipsum</h2>
</div> <h1>dolor sit amet</h1>
</section> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Curabitur ut tortor sed lacus egestas vulputate vel sit amet velit. Nulla suscipit magna dui.
<section class="image-section"> </p>
<img class="image-computer" src="./assets/images/computadores e setas.svg" alt="computadores conectados"> </div>
</section> </section>
<section class="section-cards"> <section class="image-section">
<div class="image-card"> <img class="image-computer" src="./assets/images/computadores e setas.svg" alt="computadores conectados">
<img class="image-card-image" src="./assets/images/shop 1.svg" alt="loja" /> </section>
<section class="section-cards">
<p class="image-card-paragraph"> <div class="image-card">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. <img class="image-card-image" src="./assets/images/shop 1.svg" alt="loja" />
</p>
</div> <p class="image-card-paragraph">
<div class="image-card"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
<img class="image-card-image" src="./assets/images/shopping-bag (1) 1.svg" alt="sacola" /> </p>
</div>
<p class="image-card-paragraph"> <div class="image-card">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. <img class="image-card-image" src="./assets/images/shopping-bag (1) 1.svg" alt="sacola" />
</p>
</div> <p class="image-card-paragraph">
<div class="image-card"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
<img class="image-card-image" src="./assets/images/coin 1.svg" alt="mão com moeda" /> </p>
</div>
<p class="image-card-paragraph"> <div class="image-card">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. <img class="image-card-image" src="./assets/images/coin 1.svg" alt="mão com moeda" />
</p>
</div> <p class="image-card-paragraph">
</section> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
<section class="midle-card-section"> </p>
<div class="midle-card-div"> </div>
<img class="midle-card" src="./assets/images/midle card 1.png" alt="laptop 1" /> </section>
<img class="midle-card" src="./assets/images/midle card 2.png" alt="laptop 2" /> <section class="midle-card-section">
</div> <div class="midle-card-div">
<img class="midle-card" src="./assets/images/midel card 3.png" alt="laptop 3" /> <img class="midle-card" src="./assets/images/midle card 1.png" alt="laptop 1" />
</section> <img class="midle-card" src="./assets/images/midle card 2.png" alt="laptop 2" />
<section class="section-cards-second"> </div>
<div class="image-card-second"> <img class="midle-card" src="./assets/images/midel card 3.png" alt="laptop 3" />
<img class="image-card-image-second" src="./assets/images/money.svg" alt="loja" /> </section>
<section class="section-cards-second">
<p class="image-card-paragraph-second"> <div class="image-card-second">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. <img class="image-card-image-second" src="./assets/images/money.svg" alt="loja" />
</p>
</div> <p class="image-card-paragraph-second">
<div class="image-card-second"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
<img class="image-card-image-second" src="./assets/images/coin 1.svg" alt="sacola" /> </p>
</div>
<p class="image-card-paragraph-second"> <div class="image-card-second">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. <img class="image-card-image-second" src="./assets/images/coin 1.svg" alt="sacola" />
</p>
</div> <p class="image-card-paragraph-second">
<div class="image-card-second"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
<img class="image-card-image-second" src="./assets/images/laptop 1.svg" alt="mão com moeda" /> </p>
</div>
<p class="image-card-paragraph-second"> <div class="image-card-second">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. <img class="image-card-image-second" src="./assets/images/laptop 1.svg" alt="mão com moeda" />
</p>
</div> <p class="image-card-paragraph-second">
<div class="image-card-second"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
<img class="image-card-image-second" src="./assets/images/smartphone.svg" alt="mão com moeda" /> </p>
</div>
<p class="image-card-paragraph-second"> <div class="image-card-second">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. <img class="image-card-image-second" src="./assets/images/smartphone.svg" alt="mão com moeda" />
</p>
</div> <p class="image-card-paragraph-second">
</section> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
<section class="text-2-section"> </p>
<div class="text-2"> </div>
<h2>Lorem ipsum dolor sit amet</h2> </section>
<p> <section class="section-glass-mobile">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vulputate sapien non libero faucibus interdum. In eget tincidunt ipsum. <img src="./assets/images/glass-mobile.png" alt="glasses on laptop">
Quisque a tellus at lectus blandit tempor. Ut tristique auctor mi eget hendrerit. Curabitur venenatis felis vitae sagittis venenatis. </section>
Donec finibus turpis vitae lectus interdum rutrum vitae sed augue. <section class="text-2-section">
</p> <div class="text-2">
</div> <h2>Lorem ipsum dolor sit amet</h2>
</section> <p>
<section class="footer-image-section"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vulputate sapien non libero faucibus interdum. In eget tincidunt ipsum.
<div class="footer-image-div"> Quisque a tellus at lectus blandit tempor. Ut tristique auctor mi eget hendrerit. Curabitur venenatis felis vitae sagittis venenatis.
<img class="footer-image" src="./assets/images/glass footer.png" alt="glass"> Donec finibus turpis vitae lectus interdum rutrum vitae sed augue.
</div> </p>
</section> </div>
<footer class="footer-page"> </section>
<div class="footer-div"> <section class="footer-image-section">
<a href="https://www.instagram.com/m3.ecommerce/" target="_blank"> <div class="footer-image-div">
<img src="./assets/images/instagram-icon.svg" alt="icon-instagram"> <img class="footer-image" src="./assets/images/glass footer.png" alt="glass">
</a> </div>
</section>
<a href="https://pt-br.facebook.com/digitalm3/" target="_blank"> <footer class="footer-page">
<img src="./assets/images/facebook-icon.svg" alt="icon-facebook"> <div class="footer-div">
</a> <a href="https://www.instagram.com/m3.ecommerce/" target="_blank">
<img src="./assets/images/instagram-icon.svg" alt="icon-instagram">
<a href="https://www.youtube.com/channel/UCW4o86gZG_ceA8CmHltXeXA" target="_blank"> </a>
<img src="./assets/images/youtube-icon.svg" alt="icon-youtube">
</a> <a href="https://pt-br.facebook.com/digitalm3/" target="_blank">
</div> <img src="./assets/images/facebook-icon.svg" alt="icon-facebook">
</a>
<p class="footer-paragraph">
Copyright © 2020 - Loja Comércio Eletrônico CNPJ: 000.000.000/0001-00 <a href="https://www.youtube.com/channel/UCW4o86gZG_ceA8CmHltXeXA" target="_blank">
</p> <img src="./assets/images/youtube-icon.svg" alt="icon-youtube">
</footer> </a>
</body> </div>
<p class="footer-paragraph">
Copyright © 2020 - Loja Comércio Eletrônico CNPJ: 000.000.000/0001-00
</p>
</footer>
</body>
</html> </html>

View File

@ -1,317 +1,363 @@
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
header { header {
align-items: center; align-items: center;
height: 101px; height: 101px;
display: flex; display: flex;
justify-content: center; justify-content: center;
background: black; background: black;
width: 100%; width: 100%;
} }
body { body {
font-family: 'Inter', sans-serif; font-family: 'Inter', sans-serif;
color: #000000; }
}
.banner-1-desktop {
.banner-1-desktop { width: 100%;
width: 100%; }
}
.banner-1-mobile {
.banner-1-mobile { width: 100%;
width: 100%; display: none;
display: none; }
}
.first-section h2 {
.first-section h2 { text-transform: uppercase;
text-transform: uppercase; font-size: 32px;
font-size: 32px; line-height: 39px;
line-height: 39px; font-weight: 400;
font-weight: 400; }
}
.first-section h1 {
.first-section h1 { text-transform: uppercase;
text-transform: uppercase; font-weight: 500;
font-weight: 500; font-size: 48px;
font-size: 48px; line-height: 58px;
line-height: 58px; }
}
.first-section p {
.first-section p { margin-top: 28px;
margin-top: 28px; text-align: left;
text-align: left; font-weight: 400;
font-weight: 400; font-size: 16px;
font-size: 16px; line-height: 24px;
line-height: 24px; }
}
.text-1 {
.text-1 { width: 50%;
width: 50%; }
}
.first-section {
.first-section { margin-top: 74px;
margin-top: 74px; text-align: center;
text-align: center; display: flex;
display: flex; justify-content: center;
justify-content: center; align-items: center;
align-items: center; }
}
.image-computer{
.image-computer{ width: 18%;
width: 18%; }
}
.image-section {
.image-section { display: flex;
display: flex; justify-content: center;
justify-content: center; margin-top: 74px;
margin-top: 74px; }
}
.section-cards {
.section-cards { justify-content: center;
justify-content: center; align-items: center;
align-items: center; gap: 21px;
gap: 21px; display: flex;
display: flex; }
}
.image-card {
.image-card { box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23); max-width: 18%;
max-width: 18%; display: flex;
display: flex; flex-direction: column;
flex-direction: column; justify-content: center;
justify-content: center; align-items: center;
align-items: center; margin-top: 179px;
margin-top: 179px; }
}
.image-card-image {
.image-card-image { display: block;
display: block; margin-top: 36px;
margin-top: 36px; }
}
.image-card-paragraph {
.image-card-paragraph { padding-top: 27px;
padding-top: 27px; padding: 26px;
padding: 26px; max-width: 300px;
max-width: 300px; text-align: center;
text-align: center; font-weight: 400;
font-weight: 400; font-size: 16px;
font-size: 16px; line-height: 24px;
line-height: 24px; }
}
.midle-card-section {
.midle-card-section { display: flex;
display: flex; background: #E0E0E0;
background: #E0E0E0; margin-top: 80px;
margin-top: 80px; justify-content: center;
justify-content: center; align-items: center;
align-items: center; gap: 40px;
gap: 40px; }
}
.midle-card {
.midle-card { position: relative;
position: relative; top: 62px;
top: 62px; }
}
.midle-card-div {
.midle-card-div { display: flex;
display: flex; gap: 40px;
gap: 40px; justify-content: center;
justify-content: center; }
}
.midle-card-section img {
.midle-card-section img { flex-direction: row;
flex-direction: row; max-width: 28.5vw;
max-width: 50vmin; }
}
.section-cards-second {
.midle-card-section > img { padding: 0 72px;
max-width: 50vmin; justify-content: center;
} align-items: center;
gap: 16px;
.section-cards-second { display: flex;
padding: 0 72px; }
justify-content: center;
align-items: center; .image-card-second {
gap: 16px; box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
display: flex; max-width: 432px;
} min-height: 332px;
display: flex;
.image-card-second { flex-direction: column;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23); justify-content: center;
max-width: 432px; align-items: center;
max-height: 332px; margin-top: 162px;
display: flex; }
flex-direction: column;
justify-content: center; .image-card-second p {
align-items: center; max-width: 90%;
margin-top: 162px; }
}
.image-card-image-second {
.image-card-image-second { display: block;
display: block; margin-top: 36px;
margin-top: 36px; }
}
.image-card-paragraph-second {
.image-card-paragraph-second { font-style: normal;
font-style: normal; color: #000000;
color: #000000; padding-top: 14px;
padding-top: 14px; padding-bottom: 64px;
padding-bottom: 64px; padding: 33px;
padding: 33px; max-width: 368px;
max-width: 368px; text-align: center;
text-align: center; font-weight: 400;
font-weight: 400; font-size: 16px;
font-size: 16px; line-height: 24px;
line-height: 24px; }
}
.text-2-section h2 {
.text-2-section h2 { font-weight: 600;
font-weight: 600; font-size: 32px;
font-size: 32px; line-height: 40px;
line-height: 40px; text-align: center;
text-align: center; }
}
.text-2-section p {
.text-2-section p { font-weight: 400;
font-weight: 400; font-size: 16px;
font-size: 16px; line-height: 24px;
line-height: 24px; text-align: center;
text-align: center; }
}
.text-2 {
.text-2 { width: 28.65%;
width: 28.65%; }
}
.text-2-section {
.text-2-section { margin-top: 108px;
margin-top: 118px; display: flex;
display: flex; justify-content: center;
justify-content: center; align-items: center;
align-items: center; }
}
.footer-image {
.footer-image { width: 70.83%;
width: 70.83%; }
}
.footer-image-div {
.footer-image-div { display: flex;
display: flex; justify-content: center;
justify-content: center; align-items: center;
align-items: center; }
}
.footer-image-section {
.footer-image-section { margin-top: 50px;
margin-top: 50px; }
}
.footer-page {
.footer-page { margin-top: 116px;
margin-top: 116px; display: flex;
display: flex; flex-direction: column;
flex-direction: column; align-items: center;
align-items: center; background: #000000
background: #000000 }
}
.footer-div {
.footer-div { margin-top: 38px;
margin-top: 38px; display: flex;
display: flex; justify-content: center;
justify-content: center; align-items: center;
align-items: center; }
}
.footer-div img {
.footer-div img { margin: 0 8px;
margin: 0 8px; }
}
.footer-paragraph {
.footer-paragraph { width: 398px;
width: 398px; margin-top: 16px;
margin-top: 16px; margin-bottom: 38px;
margin-bottom: 38px; font-size: 10px;
font-size: 10px; line-height: 12px;
line-height: 12px; text-transform: uppercase;
text-transform: uppercase; color: #BDBDBD;
color: #BDBDBD; }
}
.section-glass-mobile {
@media screen and (max-width: 1024px) { display: none;
.banner-1-desktop { }
display: none;
} .section-glass-mobile img {
width: 100%;
.banner-1-mobile { margin-top: 98px;
display: unset; }
}
@media screen and (max-width: 1024px) {
.text-1 { .banner-1-desktop {
width: 86.47%; display: none;
} }
.first-section p { .banner-1-mobile {
text-align: center; display: unset;
} }
.section-cards { .text-1 {
display: flex; width: 86.47%;
flex-direction: column; }
margin-top: 90px;
} .first-section p {
text-align: center;
.image-card { }
max-width: 84.54%;
margin-top: 0%; .section-cards {
padding-top: 35px; display: flex;
padding-bottom: 27px; flex-direction: column;
} margin-top: 90px;
}
.image-computer {
width: 57.73%; .image-card {
} max-width: 84.54%;
margin-top: 0%;
.midle-card-section { padding-top: 35px;
flex-direction: column; padding-bottom: 27px;
padding: 0 23px; }
gap: 24px;
} .image-computer {
width: 57.73%;
.midle-card-div { }
padding: 0 20px;
flex-direction: row-reverse; .midle-card-section {
gap: 14px; flex-direction: column;
justify-content: center; padding: 0 23px;
} gap: 24px;
}
.midle-card-div img {
max-width: 54.2%; .midle-card-div {
} width: 100%;
flex-direction: row-reverse;
.midle-card-section > img { gap: 14px;
max-width: 100%; justify-content: center;
} }
.section-cards-second { .midle-card-div img {
display: flex; width: calc(50% - 7px);
flex-direction: column; max-width: unset;
margin-top: 112px; }
padding: 0%;
} .midle-card-section > img {
width: 100%;
.image-card-second { max-width: unset;
padding: 10px; }
}
.section-cards-second {
.image-card-second { display: flex;
max-width: 84.54%; flex-direction: column;
padding-top: 35px; margin-top: 112px;
padding-bottom: 27px; padding: 0%;
} }
.image-card-second { .image-card-second {
max-width: 84.54%; padding: 10px;
margin-top: 0%; }
padding-top: 35px;
padding-bottom: 27px; .image-card-image-second {
} margin-top: 0;
} }
.image-card-second p {
width: 302px;
}
.image-card-second {
max-width: 84.54%;
padding-top: 35px;
padding-bottom: 27px;
}
.image-card-second {
max-width: 84.54%;
margin-top: 0%;
padding-top: 35px;
padding-bottom: 27px;
}
.footer-image-section {
display: none;
}
.footer-paragraph {
max-width: 62.8%;
text-align: center;
}
.section-glass-mobile {
display: unset;
}
.text-2 {
display: flex;
flex-direction: column;
width: 84.54%;
}
.text-2 h2 {
font-size: 24px;
}
.text-2-section {
margin-top: 50px;
}
}