Merge pull request 'feature/footer' (#2) from feature/footer into main

Reviewed-on: #2
This commit is contained in:
Vitor Soares 2022-10-12 22:27:26 +00:00
commit 6cd0443716
2 changed files with 443 additions and 3 deletions

View File

@ -11,7 +11,7 @@ body {
color: #000000;
}
/*Adiciona header desktop e mobile*/
/*Adiciona header*/
.page-header {
display: flex;
justify-content: center;
@ -29,9 +29,310 @@ body {
width: 100%;
}
/*Adiciona top infocard*/
.top-infocard {
display: flex;
flex-direction: column;
align-items: center;
padding: 70px 0 180px;
}
.top-infocard-text {
margin-bottom: 70px;
max-width: 766px;
}
.top-infocard-subtitle {
font-size: 32px;
line-height: 39px;
text-align: center;
text-transform: uppercase;
}
.top-infocard-title {
font-weight: 500;
font-size: 48px;
line-height: 58px;
padding: 0 0 28px;
text-align: center;
text-transform: uppercase;
}
.top-infocard-description {
font-size: 16px;
line-height: 24px;
text-align: center;
}
/*Adiciona top cards*/
.top-cards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
padding: 0 0 80px;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 26px 26px;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image {
display: block;
margin-bottom: 26px;
}
.top-card-description {
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.middle-banner {
position: relative;
display: flex;
justify-content: center;
margin-bottom: 162px;
padding: 0 72px;
}
.middle-banner-wrapper {
display: flex;
align-items: center;
gap: 40px;
}
.middle-banner-image img {
width: 100%;
}
.middle-banner-background {
position: absolute;
background: #E0E0E0;
height: 85%;
width: 100%;
top: -32px;
left: 0;
z-index: -1;
}
/*Adiciona bottom card*/
.bottom-cards {
display: grid;
grid-template-columns: repeat(4, max-content);
gap: 16px;
padding: 0 0 108px 0;
max-width: fit-content;
margin: 0 auto;
}
.bottom-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 32px 65px;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.bottom-card-image {
display: block;
margin-bottom: 18px;
}
.bottom-card-description {
max-width: 368px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/*Adiciona bottom infocard*/
.bottom-infocard {
display: flex;
flex-direction: column;
align-items: center;
padding: 0px 72px 116px;
}
.bottom-infocard-image {
max-width: 1360px;
width: 100%;
margin-top: 50px;
}
.bottom-infocard-text {
max-width: 550px;
}
.bottom-infocard-title {
font-weight: 600;
font-size: 32px;
line-height: 39px;
text-align: center;
}
.bottom-infocard-description {
font-size: 16px;
line-height: 24px;
text-align: center;
}
/*Adiciona footer*/
.page-footer {
display: flex;
flex-direction: column;
align-items: center;
padding: 38px 0;
background: #000000;
}
.footer-icons {
display: flex;
list-style: none;
margin-bottom: 16px;
}
.footer-icon {
margin: 0 8px;
}
.footer-text {
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
color: #BDBDBD;
}
/*Media Querie*/
@media screen and (max-width: 414px) {
.main-banner {
content: url('../imagens/main-banner-mobile.png');
}
.bottom-card-description {
font-size: 14px;
}
}
@media screen and (max-width:1776px) {
.bottom-cards {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (max-width: 768px) {
.top-cards {
grid-template-columns: 1fr;
padding: 0 32px 80px;
}
.bottom-cards {
grid-template-columns: 1fr;
padding: 0 24px 98px;
}
.bottom-infocard {
flex-direction: column-reverse;
padding: 0 0 88px 0;
}
.bottom-infocard-image {
content: url('../imagens/bottom-banner-mobile.png');
margin: 0 0 50px 0;
}
.bottom-infocard-title {
font-size: 24px;
line-height: 20px;
margin: 0 0 18px 0;
}
.bottom-infocard-description {
padding: 0 30px 0;
}
.page-footer {
padding-bottom: 26px;
}
.footer-text {
max-width: 280px;
text-align: center;
}
}
@media screen and (max-width: 992px) {
.top-infocard {
padding: 70px 30px 90px;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
font-size: 28px;
line-height: 34px;
}
.top-infocard-text {
margin: 0 0 65px;
}
.top-infocard-image {
width: 100%;
max-width: 240px;
}
.middle-banner {
padding: 0;
margin-bottom: 80px;
}
.middle-banner-wrapper {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, auto);
padding: 30px 23px 0;
margin-bottom: 80px;
gap: 14px;
max-width: 900px;
}
.middle-banner-image:nth-child(1) {
order: 2;
}
.middle-banner-image:nth-child(2) {
order: 1;
}
.middle-banner-image:nth-child(3) {
grid-column: 1 / span 2;
order: 3;
width: 100%;
}
}
@media screen and (min-width: 768px) and (max-width: 1200px) {
.top-cards {
grid-template-columns: repeat(2, max-content);
}
}
@media screen and (min-width: 2500px) {
.footer-text {
font-size: 16px;
}
.top-infocard-description, .top-card-description, .bottom-card-description, .bottom-infocard-description {
font-size: 22px;
line-height: 24px;
}
}

View File

@ -12,7 +12,7 @@
</head>
<body>
<!--Adiciona header desktop e mobile-->
<!--Adiciona header-->
<header class="page-header">
<a href="/">
<img class="header-logo" src="assets/imagens/logo-m3.svg" alt="Logo M3" />
@ -24,6 +24,145 @@
<figure>
<img class="main-banner" src="assets/imagens/main-banner.png" alt="Banner Principal" />
</figure>
</main>
<!--Adiciona top infocard-->
<section class="top-infocard">
<div class="top-infocard-text">
<h2 class="top-infocard-subtitle">Lorem ipsum</h2>
<h1 class="top-infocard-title">dolor sit amet</h1>
<p class="top-infocard-description">
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>
<img class="top-infocard-image" src="assets/imagens/top-infocard-image.png" alt="Banner Infocard Superior" />
</section>
<!--Adiciona top cards-->
<section class="top-cards">
<div class="top-card">
<img class="top-card-image" src="assets/imagens/top-card-image1.png" alt="Imagem do Primeiro Card do topo" />
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="top-card">
<img class="top-card-image" src="assets/imagens/top-card-image2.png" alt="Imagem do Segundo Card do topo" />
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="top-card">
<img class="top-card-image" src="assets/imagens/top-card-image3.png" alt="Imagem do Terceiro Card do topo" />
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
</section>
<!--Adiciona banner do meio-->
<div class="middle-banner">
<div class="middle-banner-background"></div>
<div class="middle-banner-wrapper">
<figure class="middle-banner-image">
<img src="assets/imagens/middle-banner-image1.png" alt="Primeira Imagem do Banner do Meio" />
</figure>
<figure class="middle-banner-image">
<img src="assets/imagens/middle-banner-image2.png" alt="Segunda Imagem do Banner do Meio" />
</figure>
<figure class="middle-banner-image">
<img src="assets/imagens/middle-banner-image3.png" alt="Terceira Imagem do Banner do Meio" />
</figure>
</div>
</div>
<!--Adiciona bottom card-->
<section class="bottom-cards">
<div class="bottom-card">
<img class="bottom-card-image" src="assets/imagens/bottom-card-image1.png" alt="Imagem do Primeiro Card de Baixo" />
<p class="bottom-card-description">
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="bottom-card">
<img class="bottom-card-image" src="assets/imagens/bottom-card-image2.png" alt="Imagem do Segundo Card de Baixo" />
<p class="bottom-card-description">
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="bottom-card">
<img class="bottom-card-image" src="assets/imagens/bottom-card-image3.png" alt="Imagem do Terceiro Card de Baixo" />
<p class="bottom-card-description">
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="bottom-card">
<img class="bottom-card-image" src="assets/imagens/bottom-card-image4.png" alt="Imagem do Quarto Card de Baixo" />
<p class="bottom-card-description">
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>
<!--Adiciona bottom infocard-->
<section class="bottom-infocard">
<div class="bottom-infocard-text">
<h2 class="bottom-infocard-title">Lorem ipsum dolor sit amet</h2>
<p class="bottom-infocard-description">
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>
<img class="bottom-infocard-image" src="assets/imagens/bottom-banner-desktop.png" alt="Banner Infocard Inferior" />
</section>
<!--Adiciona footer-->
<footer class="page-footer">
<ul class="footer-icons">
<li class="footer-icon">
<a href="#" target="_blank">
<img src="assets/imagens/instagram-icon.svg" alt="Ícone do Instagram" />
</a>
</li>
<li class="footer-icon">
<a href="#" target="_blank">
<img src="assets/imagens/facebook-icon.svg" alt="Ícone do Facebook" />
</a>
</li>
<li class="footer-icon">
<a href="#" target="_blank">
<img src="assets/imagens/youtube-icon.svg" alt="Ícone do YouTube" />
</a>
</li>
</ul>
<p class="footer-text">
Copyright © 2020 - Loja Comércio Eletrônico CNPJ: 000.000.000/0001-00
</p>
</footer>
</main>
</body>
</html>