forked from M3-Academy/challenge-landing-page
307 lines
4.8 KiB
CSS
307 lines
4.8 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
img{
|
|
max-width:100%;
|
|
height:auto;
|
|
}
|
|
|
|
body {
|
|
color: #000000;
|
|
font-family: 'Inter', sans-serif;
|
|
}
|
|
|
|
/* HEADER E BANNER */
|
|
|
|
.page__header {
|
|
display: flex;
|
|
justify-content: center;
|
|
background: #000000;
|
|
padding: 1.87rem 0;
|
|
}
|
|
|
|
.header__logo {
|
|
display: block;
|
|
}
|
|
|
|
.main__banner-desktop {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.main__banner-mobile {
|
|
display: none;
|
|
}
|
|
|
|
|
|
/* TOP TEXTS */
|
|
|
|
.top__text {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
padding: 84px 30px 179px;
|
|
gap: 72px;
|
|
}
|
|
|
|
.top__infocard-text {
|
|
width: 40%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.top__infocard-subtitle {
|
|
text-transform: uppercase;
|
|
font-weight: 400;
|
|
font-size: 32px;
|
|
text-align: center;
|
|
}
|
|
|
|
.top__infocard-title,
|
|
.top__infocard-subtitle {
|
|
text-align: center;
|
|
}
|
|
|
|
.top__infocard-title {
|
|
margin-bottom: 24px;
|
|
text-transform: uppercase;
|
|
font-weight: 500;
|
|
font-size: 48px;
|
|
}
|
|
|
|
.top__infocard-description {
|
|
line-height: 24px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
|
|
/* TOP CARDS */
|
|
|
|
.top__cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, max-content);
|
|
gap: 20px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.top__card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 26px 26px 34px;
|
|
background: #FFFFFF;
|
|
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;
|
|
}
|
|
|
|
|
|
/* BOTTOM CARDS */
|
|
|
|
.bottom__cards {
|
|
background: #E0E0E0;
|
|
padding: 0 72px;
|
|
margin: 80px 0 191px;
|
|
}
|
|
|
|
.bottom__cards-container {
|
|
width: 100%;
|
|
position: relative;
|
|
display: grid;
|
|
justify-content: center;
|
|
margin: 0 auto;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
transform: translateY(4rem);
|
|
gap: 40px;
|
|
|
|
}
|
|
|
|
.bottom__card img {
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
|
|
.bottom__card-image {
|
|
display: block;
|
|
}
|
|
|
|
|
|
.bottom__card-image-3 {
|
|
grid-column: initial;
|
|
}
|
|
|
|
/* BOTTOM INFOCARDS */
|
|
|
|
.bottom__infocards {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 16px;
|
|
padding: 0 76px 108px;
|
|
}
|
|
|
|
.bottom__infocard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 33px 32px 65px;
|
|
background: #FFFFFF;
|
|
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
|
|
min-width: 22%;
|
|
}
|
|
|
|
.bottom__infocard-image {
|
|
display: block;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.bottom__infocard-description {
|
|
min-width: 15%;
|
|
font-size: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
|
|
/* MEDIAS QUERIES */
|
|
|
|
@media screen and (max-width: 1024px) {
|
|
|
|
/* MAIN BANNER */
|
|
|
|
.main__banner-desktop {
|
|
display: none;
|
|
}
|
|
|
|
.main__banner-mobile {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
/* TOP CARDS */
|
|
|
|
.top__text {
|
|
flex-direction: column;
|
|
padding: 88px 32px 90px;
|
|
gap: 65px;
|
|
}
|
|
|
|
.top__infocard-text {
|
|
width: 100%;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.top__infocard-subtitle {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.top__infocard-title {
|
|
margin-bottom: 20px;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.top__infocard-image {
|
|
width: 100%;
|
|
max-width: 240px;
|
|
}
|
|
|
|
.top__infocard-description {
|
|
text-align: center;
|
|
}
|
|
|
|
.top__cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, max-content);
|
|
gap: 20px;
|
|
justify-content: center;
|
|
padding: 0 0;
|
|
}
|
|
|
|
.top__card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 26px 26px 34px;
|
|
}
|
|
|
|
/* BOTTOM CARDS */
|
|
|
|
.bottom__cards {
|
|
padding: 0 24px;
|
|
margin-bottom: 112px;
|
|
}
|
|
|
|
.bottom__cards-container {
|
|
gap: 24px 14px;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
transform: translateY(2rem);
|
|
}
|
|
|
|
.bottom__card img {
|
|
width: 100%;
|
|
}
|
|
|
|
.bottom__card-3 {
|
|
grid-column: 1/3;
|
|
}
|
|
|
|
.bottom__infocards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, max-content);
|
|
gap: 20px;
|
|
justify-content: center;
|
|
padding: 0 0;
|
|
}
|
|
|
|
.bottom__infocard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 26px 26px 34px;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
@media screen and (min-width: 769px) and (max-width: 1200px) {
|
|
.top__cards {
|
|
grid-template-columns: repeat(2, max-content);
|
|
}
|
|
|
|
.bottom__infocards {
|
|
grid-template-columns: repeat(2, max-content);
|
|
}
|
|
}
|
|
|
|
|
|
@media screen and (max-width: 1200px) {
|
|
.top__cards {
|
|
grid-template-columns: 1fr;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.bottom__infocards {
|
|
grid-template-columns: 1fr;
|
|
padding: 0 24px;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|