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

252 lines
4.0 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;
}
.gallery-area-images {
display: block;
}
.gallery-area-image {
width: 100%
}
/*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-wrapper {
display: grid;
grid-template-columns: repeat(2, 1fr);
width: 89%;
gap: 23px 14px;
transform: translateY(32px);
}
.gallery-area-images {
}
.gallery-area-images-01 {
order: 2;
}
.gallery-area-images-02 {
order: 1;
}
.gallery-area-images-03 {
grid-column: 1/2 span;
order: 2;
}
}
/*Versão telas 4k*/
@media screen and (min-width: 2500px) {
/*rever as fontes, precisam estar no dobro do tamanho do desktop*/
.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%;
}
}