feat(home): Adiciona banner do meio desktop

This commit is contained in:
Savio Carvalho Moraes 2022-10-11 20:51:04 -03:00
parent fefa192461
commit a710d9ba98
2 changed files with 48 additions and 23 deletions

View File

@ -14,7 +14,6 @@ body {
padding: 28px 0;
justify-content: center;
background-color: #000000;
width: 100%;
}
.header-logo {
@ -31,12 +30,10 @@ body {
flex-direction: column;
align-items: center;
padding: 74px 0 180px;
width: 100%;
}
.top-inforcard-text {
max-width: 100%;
margin: 0 30% 0;
max-width: 40%;
}
.top-infocard-subtitle {
@ -71,8 +68,8 @@ body {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
justify-content: center;
margin: 0 22% 4%;
margin: 0 auto 80px;
width: 57%;
}
.top-card {
@ -91,24 +88,37 @@ body {
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 150%;
/* or 150% */
margin: 8%;
line-height: 24px;
margin: 26px;
text-align: center;
}
.middle-banners {
display: flex;
justify-content: center;
background: #e0e0e0;
width: 100%;
}
.middle-banners-wrapper {
display: grid;
grid-template-columns: repeat(3, max-content);
justify-content: center;
gap: 40px;
margin: 0 72px 0;
.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;
}
.imagens {
width: 100%;
}
@media screen and (max-width: 1023px) {
.main-banner-desktop {
display: none;

View File

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