challenge-landing-page-humb.../assets/style/main.css

188 lines
3.4 KiB
CSS
Raw Normal View History

2022-10-09 19:49:37 +00:00
* {
margin:0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color:#000000
}
2022-10-09 19:49:37 +00:00
.page-header{
background: #000000;
display:flex;
justify-content: center;
padding: 29px 0;
}
.header-logo{
display: block;
}
.top-infocard{
display: flex;
align-items: center;
justify-content: center;
gap: 72px;
flex-direction: column;
padding: 84px 38px 179px;
}
.top-infocard-test{
width: 40%;
margin: 0 auto;
}
.top-infocard-subtitle{
text-transform: uppercase;
font-size: 32px;
font-weight: 400;
}
.top-infocard-description{
font-size: 16px;
line-height: 24px;
}
.top-infocard-title{
text-transform: uppercase;
font-size: 48px;
font-weight: 500;
margin-bottom: 24px;
}
.top-infocard-title,
.top-infocard-subtitle{
text-align: center;
}
.main-banner-desktop {
display: block;
width: 100%;
}
.main-banner-mobile {
display: none;
}
.top-cards{
display: grid;
grid-template-columns: repeat(3, max-content);
background: #F0F0F0;
gap: 20px;
justify-content: center;
padding: 178px 0 80px 0;
}
.top-card{
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
display: flex;
flex-direction: column;
align-items: center;
padding: 26px 26px 34px;
}
.top-card-image{
display: block;
margin-bottom: 26px;
}
.top-card-description{
max-width: 300px;
text-align: center;
line-height: 24px;
font-size: 16px;
}
2022-10-11 12:02:53 +00:00
.cards-desktop{
padding: 0 72px;
margin: 80px 0 190px;
background-color: #E0E0E0;
}
.card-dentro{
display: grid;
grid-template-columns: 1fr 1fr 1fr;
width: 100%;
justify-content: center;
position: relative;
margin: 0 auto;
gap: 40px;
transform: translateY(4rem);
}
.image-card-desktop{
height: auto;
width: 100%;
display: block;
}
.card-02 {
grid-row: 1;
}
.card-03{
grid-column: initial;
}
2022-10-11 19:45:16 +00:00
.bottom-cards{
display: grid;
grid-template-columns: repeat(4, max-content);
background: #F0F0F0;
gap: 16px;
justify-content: center;
padding: 130px 0 108px 0;
}
.bottom-card{
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
align-items: center;
padding: 35px 32px 65px;
}
.bottom-card-image{
display: block;
margin-bottom: 14px;
}
.bottom-card-description {
max-width: 368px;
text-align: center;
line-height: 24px;
font-size: 16px;
}
@media (max-width: 1024px) {
.main-banner-desktop {
display: none;
}
.main-banner-mobile {
display: block;
width: 100%;
}
}
@media screen and (max-width:1024px) {
.top-infocard{
padding: 65px 0 90px;
flex-direction: column;
}
.top-infocard-subtitle{
font-size: 20px;
}
.top-infocard-title{
font-size: 28px;
margin-bottom: 20px;
}
.top-infocard-test{
margin: 0 0 66px
}
.top-infocard-image{
max-width: 240px;
width: 100%;
}
}
@media screen and (max-width:1024px){
.top-cards{
grid-template-columns: 1fr;
padding: 90px 32px 80px;
}
2022-10-11 19:45:16 +00:00
@media screen and (max-width: 1024px){
.bottom-cards{
grid-template-columns: 1fr;
padding: 80px 24px 98px;
}
}
}