challenge-landing-page-eleo.../assets/styles/main.css

425 lines
6.7 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter' , sans-serif;
}
body {
font-family: 'Inter', sans-serif;
color: #000000;
}
/*Header da landing page M3 Academy*/
.page-header {
display: flex;
justify-content: center;
align-items: center;
padding: 28px;
background: #000000;
}
.header-logo {
display: block;
}
/*Banner principal*/
.main-banner {
width: 100%;
}
.main-banner-mobile {
display: none;
}
/*Infocard do topo */
.top-infocard {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 73px 0 178px;
}
.top-infocard-text {
width: 40%;
text-align: center;
align-items: center;
padding: 0 0 73px;
}
.top-infocard-subtitle {
text-transform: uppercase;
font-weight: 400;
font-size: 32px;
}
.top-infocard-title {
text-transform: uppercase;
font-weight: 500;
font-size: 48px;
line-height: 58px;
padding: 0 0 28px;
}
.top-infocard-description {
font-size: 16px;
line-height: 24px;
text-align: left;
}
.top-infocard-image {
width: 17%;
}
/*Cards do Topo*/
.top-cards {
display: flex;
background: #FFFFFF;
gap: 21px;
justify-content: center;
align-items: center;
margin-bottom: 80px;
width: 100%;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 35px 26px 27px 26px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.23);
min-height: 287px;
width: 18%;
gap: 27px;
height: auto;
}
.top-card-image {
display: block;
width: 34%;
}
.top-card-description {
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.gallery-area {
background: #E0E0E0;
width: 100%;
}
.gallery-wrapper {
position: relative;
transform: translateY(4rem);
display: flex;
gap: 39px;
justify-content: center;
width: 88%;
margin: 0 auto;
margin-bottom: 173px;
}
.gallery-area-images {
display: block;
}
.gallery-area-image {
width: 100%
}
/* Cards de Baixo */
.bottom-cards {
display: flex;
background: #FFFFFF;
gap: 16px;
justify-content: center;
align-items: center;
margin: auto auto 108px;
width: 88%;
}
.bottom-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 51px 32px 65px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.23);
min-height: 287px;
gap: 25px;
height: auto;
width: 22%;
}
.bottom-card-image {
display: block;
/*max-width: 102px;*/
width: 29%;
}
.bottom-card-description {
max-width: 367px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/*Infocard de baixo*/
.bottom-infocard {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0 0 116px;
width: 100%;
padding: 0 72px;
}
.bottom-infocard-text {
text-align: center;
margin-bottom: 50px;
width: 29%;
}
.bottom-infocard-title {
font-size: 32px;
font-weight: 600;
line-height: 39px;
}
.bottom-infocard-description {
font-size: 16px;
line-height: 24px;
}
.bottom-infocard-image {
display: block;
width: 100%;
}
.bottom-infocard-image-desktop {
display: block;
margin: auto;
width: 71%;
}
.bottom-infocard-image-mobile {
display: none;
}
/*Footer*/
.page-footer {
display: flex;
flex-direction: column;
background: #000000;
align-items: center;
padding: 38px 0;
gap: 17px;
}
.footer-icons {
display: flex;
list-style: none;
}
.footer-icon {
margin: 0 8px;
}
.footer-text {
text-align: center;
text-transform: uppercase;
font-size: 10px;
line-height: 12px;
color: #BDBDBD;
}
/*Versão mobile*/
@media screen and (max-width: 320px) {
.header-logo {
width: 180px
/*Apresentar padding lateral para espaçar melhor as informações*/
}
}
@media screen and (max-width: 1024px) {
.main-banner-desktop {
display: none;
}
.main-banner-mobile {
display: flex;
width: 100%;
}
.top-infocard {
margin: 73px 28px 91px;
}
.top-infocard-text {
width: 86%;
padding: 0 0;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
font-size: 28px;
line-height: 32px;
padding: 0 0 18px;
}
.top-infocard-description {
padding: 0 0 65px;
text-align: center;
}
.top-infocard-image {
width: 58%;
}
.top-cards {
flex-direction: column;
}
.top-card {
width: 84%;
}
.top-card-image {
max-width: 102px;
}
.gallery-area {
padding: 0;
}
.gallery-wrapper {
display: grid;
grid-template-columns: repeat(2, 1fr);
width: 89%;
gap: 23px 14px;
transform: translateY(32px);
margin-bottom: 98px;
}
.gallery-area-images-01 {
order: 2;
}
.gallery-area-images-02 {
order: 1;
}
.gallery-area-images-03 {
grid-column: 1/2 span;
order: 2;
}
.bottom-cards {
flex-direction: column;
margin-bottom: 98px;
}
.bottom-card {
width: 88%;
}
.bottom-card-image {
max-width: 102px;
}
.bottom-card-description {
font-size: 14px;
}
.bottom-infocard {
margin: 0;
padding: 0;
flex-direction: column-reverse;
}
.bottom-infocard-text {
margin-bottom: 87px;
gap: 10px;
width: 84%;
align-items: center;
}
.bottom-infocard-title {
margin-bottom: 9px;
font-size: 24px;
line-height: 29px;
}
.bottom-infocard-description {
font-size: 16px;
line-height: 24px;
}
.bottom-infocard-image-desktop {
display: none;
}
.bottom-infocard-image-mobile {
display: flex;
width: 100%;
margin-bottom: 50px;
}
.page-footer {
gap: 16px;
}
.footer-text {
max-width: 63%;
}
}
/*Versão telas 4k*/
/*rever as fontes, precisam estar no dobro do tamanho do desktop*/
@media screen and (min-width: 2500px) {
.top-infocard-text {
width: 52%;
margin: 95px 0 95px;
}
.top-infocard-subtitle {
font-size: 42px;
padding: 0 0 10px;
}
.top-infocard-title {
font-size: 63px;
}
.top-infocard-description {
font-size: 21px;
line-height: 31px;
padding: 0 0 36px;
}
.top-infocard-image {
width: 20%;
}
}