forked from M3-Academy/challenge-landing-page
254 lines
4.4 KiB
CSS
254 lines
4.4 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap%27');
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: "Inter", sans-serif;
|
|
color: #000000;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: center;
|
|
background: #000000;
|
|
padding: 28px 0;
|
|
}
|
|
|
|
.header-logo {
|
|
display: block;
|
|
}
|
|
|
|
.main-banner-desktop, .main-banner-mobile {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.top-infocard {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 72px 0 0 0;
|
|
}
|
|
|
|
.top-infocard-text {
|
|
max-width: 768px;
|
|
}
|
|
|
|
.top-infocard-subtitle {
|
|
text-transform: uppercase;
|
|
font-size: 32px;
|
|
font-weight: 400;
|
|
text-align: center;
|
|
}
|
|
|
|
.top-infocard-title {
|
|
text-transform: uppercase;
|
|
font-size: 48px;
|
|
font-weight: 500;
|
|
margin-bottom: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.top-infocard-description {
|
|
font-size: 16px;
|
|
text-align: left;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.top-infocard-image {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 90px 0 180px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.top-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3,max-content);
|
|
gap: 22px;
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
.top-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 26px 26px 34px;
|
|
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
|
|
width: 100%;
|
|
}
|
|
|
|
.top-card-image {
|
|
display: block;
|
|
margin-bottom: 26px;
|
|
}
|
|
|
|
.top-card-description {
|
|
display: flex;
|
|
margin: 0 auto;
|
|
max-width: 300px;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.middle-banner {
|
|
background: #E0E0E0;
|
|
margin: 80px 0 0 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.middle-banner-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
position: relative;
|
|
gap: 40px;
|
|
width: 100%;
|
|
padding: 0 72px;
|
|
bottom: -62px;
|
|
}
|
|
|
|
.middle-banner-image img {
|
|
width: 100%;
|
|
max-width: 566px;
|
|
}
|
|
|
|
.bottom-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill,432px);
|
|
gap: 16px;
|
|
justify-content: center;
|
|
width: 100%;
|
|
padding: 192px 72px 110px 72px;
|
|
}
|
|
.bottom-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 26px 26px 34px;
|
|
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
|
|
width: 100%;
|
|
}
|
|
|
|
.bottom-card-image {
|
|
display: block;
|
|
margin-bottom: 26px;
|
|
}
|
|
|
|
.bottom-card-description {
|
|
display: flex;
|
|
margin: 0 auto;
|
|
max-width: 368px;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
@media screen and (max-width:1024px) {
|
|
.middle-banner-container {
|
|
display: grid;
|
|
grid-template-areas:
|
|
"b a"
|
|
"c c";
|
|
row-gap: 24px;
|
|
column-gap: 14px;
|
|
padding: 0 24px;
|
|
bottom: -32px;
|
|
}
|
|
|
|
.middle-banner-image img {
|
|
max-width: unset;
|
|
}
|
|
|
|
.middle-banner-image.a {
|
|
grid-area: a;
|
|
}
|
|
|
|
.middle-banner-image.b {
|
|
grid-area: b;
|
|
}
|
|
|
|
.middle-banner-image.c {
|
|
grid-area: c;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width:992px) {
|
|
.middle-banner {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 769px) and (max-width: 1200px) {
|
|
.top-cards {
|
|
grid-template-columns: repeat(2, max-content);
|
|
}
|
|
|
|
.bottom-cards {
|
|
grid-template-columns: repeat(2,max-content);
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width:768px) {
|
|
|
|
.top-infocard {
|
|
flex-direction: column;
|
|
padding: 90px 0 0 0;
|
|
}
|
|
|
|
.top-infocard-subtitle {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.top-infocard-title {
|
|
margin-bottom: 20px;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.top-infocard-description {
|
|
padding: 0 28px 0 28px;
|
|
text-align: center;
|
|
}
|
|
|
|
.top-infocard-image {
|
|
width: 100%;
|
|
max-width: 240px;
|
|
padding-top: 64px;
|
|
padding-bottom: 90px;
|
|
}
|
|
|
|
.top-cards {
|
|
grid-template-columns: 1fr;
|
|
padding: 0 32px ;
|
|
}
|
|
|
|
.middle-banner {
|
|
padding: 32px 43px 32px 24x;
|
|
align-items: center;
|
|
}
|
|
|
|
.bottom-cards {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 415px) {
|
|
.main-banner-mobile {
|
|
display: none;
|
|
}
|
|
}
|
|
@media screen and (max-width: 414px) {
|
|
.main-banner-desktop {
|
|
display: none;
|
|
}
|
|
|
|
.bottom-cards {
|
|
padding: 80px 24px 98px 24px;
|
|
}
|
|
}
|