feat: Criou infocard meio desktop

This commit is contained in:
Patrick Reis Santos 2022-10-12 14:17:23 -03:00
parent c708a5078e
commit 9e00e5cc2b
5 changed files with 190 additions and 108 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 962 B

View File

@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Inter&display=swap");
* {
margin: 0;
@ -7,9 +7,8 @@
}
body {
font-family: 'Inter', sans-serif;
font-family: "Inter", sans-serif;
color: #000000;
}
.page-header {
@ -17,7 +16,6 @@ body {
justify-content: center;
display: flex;
background: #000000;
}
.logo-cima {
@ -50,7 +48,6 @@ body {
font-weight: 400;
font-size: 32px;
text-transform: uppercase;
}
.top-titulo-h1 {
@ -61,11 +58,39 @@ body {
text-transform: uppercase;
}
.img {
margin-top: 73px;
.top-img {
margin: 73px 0 179px;
}
@media screen and (max-width: 1024px) {
.infocard-meio {
padding: 80px 0;
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
}
.card-meio {
padding: 27px 27px 36px;
display: flex;
flex-direction: column;
align-items: center;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
background: #ffffff;
}
.cards-do-meio {
display: block;
margin-bottom: 27px;
}
.paragrafos-meio {
max-width: 299px;
text-align: center;
font-size: 16px;
line-height: 24px;
}
@media screen and (max-width: 820px) {
.top-titulo-h2 {
font-size: 20px;
line-height: 24px;
@ -78,6 +103,8 @@ body {
}
.top-paragrafo {
font-size: 16px;
line-height: 24px;
max-width: 357px;
width: 96%;
height: 115px;
@ -85,19 +112,17 @@ body {
margin: 0 auto;
}
.img {
.top-img {
width: 239px;
height: auto;
margin: 65px 0 90px;
}
}
@media screen and (max-width: 414px) {
.banner-principal-desktop {
display: none;
}
}
@media screen and (min-width: 415px) {

View File

@ -1,38 +1,95 @@
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<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>M3 Challenge - Patrick Reis</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<link rel="stylesheet" href="./assets/Styles/main.css">
<link rel="stylesheet" href="./assets/Styles/main.css" />
</head>
<body>
<header class="page-header">
<a href="index.html">
<img class="logo-cima" src="./assets/Images/Logo-M3Academy1.png" alt="Logo M3 Academy" />
<img
class="logo-cima"
src="./assets/Images/Logo-M3Academy1.png"
alt="Logo M3 Academy"
/>
</a>
</header>
<main>
<section>
<img class="banner-principal banner-principal-desktop" src="./assets/Images/banner-principal-desktop.jpg" alt="Banner principal desktop">
<img class="banner-principal banner-principal-mobile" src="./assets/Images/banner-principal-mobile.jpg" alt="Banner principal mobile">
<img
class="banner-principal banner-principal-desktop"
src="./assets/Images/banner-principal-desktop.jpg"
alt="Banner principal desktop"
/>
<img
class="banner-principal banner-principal-mobile"
src="./assets/Images/banner-principal-mobile.jpg"
alt="Banner principal mobile"
/>
</section>
<section class="infocard-cima">
<div class="top-texto">
<h2 class="top-titulo-h2">Lorem ipsum</h2>
<h1 class="top-titulo-h1">dolor sit amet</h1>
<p class="top-paragrafo">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>
<p class="top-paragrafo">
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>
<div>
<img class="img" src="./assets/Images/infocard-cima.png" alt="Infocard de cima">
<img
class="top-img"
src="./assets/Images/infocard-cima.png"
alt="Infocard de cima"
/>
</div>
</section>
<section class="infocard-meio">
<div class="card-meio">
<img
class="cards-do-meio"
src="./assets/Images/mid-card-esquerda.png"
alt="Inforcard da esquerda"
/>
<p class="paragrafos-meio">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras
euismod enim non dui fringilla interdum.
</p>
</div>
<div class="card-meio">
<img
class="cards-do-meio"
src="./assets/Images/mid-card-centro.png"
alt="Infocard do centro"
/>
<p class="paragrafos-meio">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras
euismod enim non dui fringilla interdum.
</p>
</div>
<div class="card-meio">
<img
class="cards-do-meio"
src="./assets/Images/mid-card-direita.png"
alt="Infocard da direita"
/>
<p class="paragrafos-meio">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras
euismod enim non dui fringilla interdum.
</p>
</div>
</section>
</main>
</body>
</html>