feature/main/middle-banner #5

Merged
SavioCarvalhoMoraes merged 4 commits from feature/main/middle-banner into development 2022-10-12 13:40:38 +00:00
5 changed files with 81 additions and 15 deletions

View File

@ -30,12 +30,10 @@ body {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding: 74px 0 180px; padding: 74px 0 180px;
width: 100%;
} }
.top-inforcard-text { .top-inforcard-text {
max-width: 100%; max-width: 40%;
margin: 0 30% 0;
} }
.top-infocard-subtitle { .top-infocard-subtitle {
@ -70,8 +68,8 @@ body {
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
gap: 20px; gap: 20px;
justify-content: center; margin: 0 auto 80px;
margin: 0 22% 4%; width: 57%;
} }
.top-card { .top-card {
@ -84,27 +82,57 @@ body {
.top-card-image { .top-card-image {
display: block; display: block;
margin-top: 10%; margin-top: 35px;
} }
.top-card-description { .top-card-description {
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-size: 16px; font-size: 16px;
line-height: 150%; line-height: 24px;
/* or 150% */ margin: 26px;
margin: 8%;
text-align: center; text-align: center;
} }
.middle-banners {
display: flex;
justify-content: center;
background: #e0e0e0;
width: 100%;
margin-bottom: 192px;
}
.image-01 {
grid-area: image01;
}
.image-02 {
grid-area: image02;
}
.image-03 {
grid-area: image03;
}
.middle-banners-wrapper {
display: grid;
grid-template-areas: "image01 image02 image03";
width: 88%;
gap: 40px;
position: relative;
bottom: -62px;
}
.mb-imagens {
width: 100%;
}
@media screen and (max-width: 1023px) { @media screen and (max-width: 1023px) {
.main-banner-desktop { .main-banner-desktop {
display: none; display: none;
} }
.top-infocard { .top-infocard {
padding-bottom: 90px; padding: 73px 0 90px;
margin: 0 auto 0;
} }
.top-inforcard-text { .top-inforcard-text {
margin: 0 7% 0; margin-bottom: 65px;
max-width: 100%;
} }
.top-infocard-subtitle { .top-infocard-subtitle {
@ -114,17 +142,30 @@ body {
.top-infocard-title { .top-infocard-title {
font-size: 28px; font-size: 28px;
line-height: 34px; line-height: 34px;
margin-bottom: 66px; margin-bottom: 14px;
} }
.top-infocard-description { .top-infocard-description {
line-height: 24px; line-height: 24px;
margin-bottom: 66px;
} }
.top-cards { .top-cards {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center;
gap: 24px; gap: 24px;
margin: 0 32px 80px; margin: 0 auto 80px;
width: 84%;
}
.middle-banners {
margin-bottom: 112px;
}
.middle-banners-wrapper {
grid-template-areas: "image02 image01 " "image03 image03";
bottom: -32px;
row-gap: 24px;
column-gap: 14px;
margin: 0 24px 0;
} }
} }
@media screen and (min-width: 1024px) { @media screen and (min-width: 1024px) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 KiB

View File

@ -15,12 +15,16 @@
</head> </head>
<body> <body>
<header class="page-header"> <header class="page-header">
<a href="/"> <a href="/">
<img class="header-logo" src="./assets/imagens/Logo-M3Academy 1.svg" alt="Logo M3 Academy" /> <img class="header-logo" src="./assets/imagens/Logo-M3Academy 1.svg" alt="Logo M3 Academy" />
</a> </a>
</header> </header>
<main> <main>
<section> <section>
<figure> <figure>
<img class="main-banner main-banner-desktop" src="./assets/imagens/main-banner-desktop.png" <img class="main-banner main-banner-desktop" src="./assets/imagens/main-banner-desktop.png"
@ -29,8 +33,11 @@
alt="Banner principal mobile"> alt="Banner principal mobile">
</figure> </figure>
</section> </section>
<section class="top-infocard"> <section class="top-infocard">
<figcaption class="top-inforcard-text"> <div class="top-inforcard-text">
<h2 class="top-infocard-subtitle">Lorem ipsum</h2> <h2 class="top-infocard-subtitle">Lorem ipsum</h2>
<h1 class="top-infocard-title">dolor sit amet</h1> <h1 class="top-infocard-title">dolor sit amet</h1>
<p class="top-infocard-description"> <p class="top-infocard-description">
@ -39,12 +46,13 @@
magna magna
dui. dui.
</p> </p>
</figcaption> </div>
<figure> <figure>
<img class="top-infocard-image" src="./assets/imagens/top-infocard-image.png" <img class="top-infocard-image" src="./assets/imagens/top-infocard-image.png"
alt="Banner do Infocard do Topo"> alt="Banner do Infocard do Topo">
</figure> </figure>
</section> </section>
<section class="top-cards"> <section class="top-cards">
<figure class="top-card"> <figure class="top-card">
<img class="top-card-image" src="./assets/imagens/top-card-image-01.png" <img class="top-card-image" src="./assets/imagens/top-card-image-01.png"
@ -77,6 +85,23 @@
</figcaption> </figcaption>
</figure> </figure>
</section> </section>
<section class="middle-banners">
<div class="middle-banners-wrapper">
<figure class="middle-banner image-01">
<img class="mb-imagens" src="/assets/imagens/middle-banner-image-01.png"
alt="Imagem do Banner do Meio">
</figure>
<figure class="middle-banner image-02">
<img class="mb-imagens" src="/assets/imagens/middle-banner-image-02.png"
alt="Imagem do Banner do Meio">
</figure>
<figure class="middle-banner image-03">
<img class="mb-imagens" src="/assets/imagens/middle-banner-image-03.png"
alt="Imagem do Banner do Meio">
</figure>
</div>
</section>
</main> </main>
</body> </body>