forked from M3-Academy/challenge-landing-page
463 lines
7.3 KiB
CSS
463 lines
7.3 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: 'Inter' sans-serif;
|
|
color: #000;
|
|
}
|
|
|
|
body {
|
|
color: #000000;
|
|
font-family: 'Inter', sans-serif;
|
|
}
|
|
|
|
/* HEADER E MAIN BANNER */
|
|
.page__header {
|
|
background: #000000;
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 1.87rem 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.header__logo {
|
|
display: block;
|
|
}
|
|
|
|
.main__banner-desktop {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.main__banner-mobile {
|
|
display: none;
|
|
}
|
|
|
|
|
|
/* TOP TEXTS */
|
|
.top__text {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 72px;
|
|
justify-content: center;
|
|
padding: 84px 30px 179px;
|
|
}
|
|
|
|
.top__infocard-text {
|
|
margin: 0 auto;
|
|
width: 40%;
|
|
}
|
|
|
|
.top__infocard-subtitle {
|
|
font-size: 32px;
|
|
font-weight: 400;
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.top__infocard-title,
|
|
.top__infocard-subtitle {
|
|
text-align: center;
|
|
}
|
|
|
|
.top__infocard-image {
|
|
width: 100%;
|
|
}
|
|
|
|
.top__infocard-title {
|
|
font-size: 48px;
|
|
font-weight: 500;
|
|
margin-bottom: 24px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.top__infocard-description {
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
|
|
/* TOP CARDS */
|
|
.top__cards {
|
|
display: grid;
|
|
gap: 20px;
|
|
grid-template-columns: repeat(3, max-content);
|
|
justify-content: center;
|
|
width: 100%
|
|
}
|
|
|
|
.top__card {
|
|
align-items: center;
|
|
background: #FFFFFF;
|
|
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 26px 26px 34px;
|
|
}
|
|
|
|
.top__card-image {
|
|
display: block;
|
|
margin-bottom: 26px;
|
|
}
|
|
|
|
.top__card-description {
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
max-width: 300px;
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
/* BOTTOM CARDS */
|
|
.bottom__cards {
|
|
background: #E0E0E0;
|
|
margin: 80px 0 191px;
|
|
padding: 0 72px;
|
|
}
|
|
|
|
.bottom__cards-container {
|
|
display: grid;
|
|
gap: 40px;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
justify-content: center;
|
|
margin: 0 auto;
|
|
transform: translateY(4rem);
|
|
position: relative;
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.bottom__card img {
|
|
height: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.bottom__card-image {
|
|
display: block;
|
|
}
|
|
|
|
.bottom__card-3 {
|
|
grid-column: initial;
|
|
}
|
|
|
|
|
|
/* BOTTOM INFOCARDS */
|
|
.bottom__infocards {
|
|
display: grid;
|
|
gap: 16px;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
padding: 0 76px 108px;
|
|
width: 100%;
|
|
}
|
|
|
|
.bottom__infocard {
|
|
align-items: center;
|
|
background: #FFFFFF;
|
|
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 33px 32px 65px;
|
|
}
|
|
|
|
.bottom__infocard-image {
|
|
display: block;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.bottom__infocard-description {
|
|
font-size: 16px;
|
|
max-width: 300px;
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
/* BOTTOM BANNER CONTAINER */
|
|
.bottom__banner-container {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.bottom__banner-desktop {
|
|
margin-top: 50px;
|
|
padding: 0 280px 116px;
|
|
width: 100%;
|
|
}
|
|
|
|
.bottom__banner-mobile {
|
|
display: none;
|
|
}
|
|
|
|
.bottom__title {
|
|
font-size: 32px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.bottom__text {
|
|
max-width: 550px;
|
|
}
|
|
|
|
.bottom__description {
|
|
line-height: 24px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
|
|
/* FOOTER */
|
|
.footer {
|
|
align-items: center;
|
|
background: #000000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 38px 0;
|
|
}
|
|
|
|
.footer__icons {
|
|
display: flex;
|
|
gap: 20px;
|
|
list-style-type: none;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.footer__text {
|
|
color: #BDBDBD;
|
|
font-size: 10px;
|
|
line-height: 12px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
|
|
/* ----- MEDIAS QUERIES ----- */
|
|
|
|
@media screen and (max-width: 1024px) {
|
|
|
|
/* MAIN BANNER */
|
|
.main__banner-desktop {
|
|
display: none;
|
|
}
|
|
|
|
.main__banner-mobile {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.bottom__banner-desktop {
|
|
display: none;
|
|
}
|
|
|
|
.bottom__banner-mobile {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
/* TOP TEXTS */
|
|
.top__text {
|
|
gap: 65px;
|
|
padding: 88px 32px 90px;
|
|
}
|
|
|
|
.top__infocard-text {
|
|
margin-right: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.top__infocard-subtitle {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.top__infocard-title {
|
|
font-size: 28px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
|
|
.top__infocard-description {
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
/* TOP CARDS */
|
|
.top__card-image {
|
|
align-items: center;
|
|
width: 34%;
|
|
}
|
|
|
|
|
|
/* BOTTOM CARDS */
|
|
.bottom__cards {
|
|
margin-bottom: 112px;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.bottom__cards-container {
|
|
gap: 24px 14px;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
transform: translateY(2rem);
|
|
}
|
|
|
|
.bottom__card-3 {
|
|
grid-column: 1/3;
|
|
}
|
|
|
|
.bottom__card-2 {
|
|
grid-row: 1;
|
|
}
|
|
|
|
|
|
/* BOTTOM INFOCARDS */
|
|
.bottom__infocards {
|
|
display: grid;
|
|
gap: 20px;
|
|
grid-template-columns: repeat(3, max-content);
|
|
justify-content: center;
|
|
padding: 0 0;
|
|
}
|
|
|
|
.bottom__infocard {
|
|
padding: 26px 26px 34px;
|
|
}
|
|
|
|
.bottom__infocard-image {
|
|
align-items: center;
|
|
width: 34%;
|
|
}
|
|
|
|
|
|
/* BOTTOM BANNER CONTAINER */
|
|
.bottom__banner-container {
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
}
|
|
|
|
.bottom__title {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.bottom__text {
|
|
padding: 0 32px 87px;
|
|
}
|
|
|
|
.bottom__banner-desktop {
|
|
display: none;
|
|
}
|
|
|
|
.bottom__banner-mobile {
|
|
display: block;
|
|
margin-bottom: 50px;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
/* FOOTER */
|
|
.page__footer {
|
|
padding-bottom: 26px;
|
|
}
|
|
|
|
.footer__text {
|
|
max-width: 280px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
|
|
@media screen and (min-width: 769px) and (max-width: 1024px) {
|
|
|
|
/* TOP CARDS */
|
|
.top__cards {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
/* BOTTOM INFOCARDS */
|
|
.bottom__infocards {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
|
|
@media screen and (max-width: 1200px) {
|
|
|
|
/* TOP CARDS */
|
|
.top__cards {
|
|
grid-template-columns: 1fr;
|
|
padding: 0 32px;
|
|
}
|
|
|
|
/* BOTTOM INFOCARDS */
|
|
.bottom__infocards {
|
|
grid-template-columns: 1fr;
|
|
padding: 0 24px 98px;
|
|
}
|
|
}
|
|
|
|
|
|
@media screen and (min-width: 2560px) {
|
|
|
|
/* TOP TEXTS */
|
|
.top__text {
|
|
gap: 72px;
|
|
padding: 84px 30px 179px;
|
|
}
|
|
|
|
.top__infocard-subtitle {
|
|
font-size: 64px;
|
|
}
|
|
|
|
.top__infocard-title {
|
|
font-size: 96px;
|
|
margin-bottom: 48px;
|
|
}
|
|
|
|
.top__infocard-description {
|
|
font-size: 32px;
|
|
line-height: 48px;
|
|
}
|
|
|
|
|
|
/* BOTTOM BANNER CONTAINER */
|
|
.bottom__title {
|
|
font-size: 64px;
|
|
}
|
|
|
|
.bottom__description {
|
|
font-size: 32px;
|
|
line-height: 48px;
|
|
}
|
|
|
|
|
|
/* FOOTER */
|
|
.footer__text {
|
|
font-size: 20px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
|
|
/* TOP CARDS */
|
|
.top__cards {
|
|
display: grid;
|
|
gap: 20px;
|
|
grid-template-columns: repeat(3, max-content);
|
|
justify-content: center;
|
|
width: 100%
|
|
}
|
|
|
|
.top__card-image {
|
|
display: block;
|
|
margin-bottom: 26px;
|
|
}
|
|
|
|
.top__card-description {
|
|
font-size: 32px;
|
|
line-height: 48px;
|
|
}
|
|
|
|
|
|
/* BOTTOM INFOCARDS */
|
|
.bottom__infocard-description {
|
|
font-size: 32px;
|
|
max-width: 300px;
|
|
}
|
|
} |