forked from M3-Academy/challenge-landing-page
feat(home): Adiciona banner do meio desktop
This commit is contained in:
parent
fefa192461
commit
a710d9ba98
@ -14,7 +14,6 @@ body {
|
|||||||
padding: 28px 0;
|
padding: 28px 0;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background-color: #000000;
|
background-color: #000000;
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-logo {
|
.header-logo {
|
||||||
@ -31,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 {
|
||||||
@ -71,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 {
|
||||||
@ -91,24 +88,37 @@ body {
|
|||||||
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 {
|
.middle-banners {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
background: #e0e0e0;
|
background: #e0e0e0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.middle-banners-wrapper {
|
|
||||||
display: grid;
|
.image-01 {
|
||||||
grid-template-columns: repeat(3, max-content);
|
grid-area: image01;
|
||||||
justify-content: center;
|
}
|
||||||
gap: 40px;
|
.image-02 {
|
||||||
margin: 0 72px 0;
|
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) {
|
@media screen and (max-width: 1023px) {
|
||||||
.main-banner-desktop {
|
.main-banner-desktop {
|
||||||
display: none;
|
display: none;
|
||||||
|
31
index.html
31
index.html
@ -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,20 +85,27 @@
|
|||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<section class="middle-banners">
|
<section class="middle-banners">
|
||||||
<div class="middle-banners-wrapper">
|
<div class="middle-banners-wrapper">
|
||||||
<figure class="middle-banner">
|
<figure class="middle-banner image-01">
|
||||||
<img src="/assets/imagens/middle-banner-image-01.png" alt="Imagem do Banner do Meio">
|
<img class="imagens" src="/assets/imagens/middle-banner-image-01.png"
|
||||||
|
alt="Imagem do Banner do Meio">
|
||||||
</figure>
|
</figure>
|
||||||
<figure class="middle-banner">
|
<figure class="middle-banner image-02">
|
||||||
<img src="/assets/imagens/middle-banner-image-02.png" alt="Imagem do Banner do Meio">
|
<img class="imagens" src="/assets/imagens/middle-banner-image-02.png"
|
||||||
|
alt="Imagem do Banner do Meio">
|
||||||
</figure>
|
</figure>
|
||||||
<figure class="middle-banner">
|
<figure class="middle-banner image-03">
|
||||||
<img src="/assets/imagens/middle-banner-image-03.png" alt="Imagem do Banner do Meio">
|
<img class="imagens" src="/assets/imagens/middle-banner-image-03.png"
|
||||||
|
alt="Imagem do Banner do Meio">
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user