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

View File

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