forked from M3-Academy/practice-time-landing-page
192 lines
3.1 KiB
CSS
192 lines
3.1 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
color: #000000;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 28px 0;
|
|
background: #000000;
|
|
}
|
|
|
|
.header-logo {
|
|
display: block;
|
|
}
|
|
|
|
.main-banner {
|
|
width: 100%;
|
|
}
|
|
|
|
.top-infocard {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 80px 0 96px;
|
|
}
|
|
|
|
.top-infocard-text {
|
|
max-width: 40%;
|
|
margin-right: 124px;
|
|
}
|
|
|
|
.top-infocard-subtitle {
|
|
text-transform: uppercase;
|
|
font-size: 32px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.top-infocard-title {
|
|
margin-bottom: 24px;
|
|
text-transform: uppercase;
|
|
font-size: 48px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.top-infocard-description {
|
|
line-height: 24px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.top-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, max(350px));
|
|
gap: 20px;
|
|
justify-content: center;
|
|
padding: 74px 0;
|
|
background: #F0F0F0;
|
|
}
|
|
|
|
.top-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 36px 0 26px;
|
|
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: 85%;
|
|
text-align: center;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
@media screen and (max-width: 340px) {
|
|
.top-card {
|
|
padding: 22px 0 20px;
|
|
}
|
|
|
|
.top-card-image {
|
|
margin-bottom: 16px;
|
|
max-width: 30%;
|
|
}
|
|
|
|
.top-card-description {
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 1024px) {
|
|
.main-banner-desktop {
|
|
display: none;
|
|
}
|
|
|
|
.top-infocard {
|
|
flex-direction: column;
|
|
padding: 84px 0 158px;
|
|
}
|
|
|
|
.top-infocard-text {
|
|
max-width: 85%;
|
|
margin: 0 0 68px;
|
|
}
|
|
|
|
.top-infocard-subtitle {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.top-infocard-title {
|
|
margin-bottom: 20px;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.top-infocard-image {
|
|
max-width: 240px;
|
|
}
|
|
|
|
.top-cards {
|
|
grid-template-columns: 1fr;
|
|
padding: 36px 26px;
|
|
justify-items: center;
|
|
}
|
|
|
|
.top-card {
|
|
max-width: 350px;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1025px) {
|
|
.main-banner-mobile {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1025px) and (max-width: 1200px) {
|
|
.top-cards {
|
|
grid-template-columns: repeat(3, max(300px));
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 2500px) {
|
|
.top-infocard-subtitle {
|
|
font-size: 64px;
|
|
}
|
|
|
|
.top-infocard-title {
|
|
font-size: 96px;
|
|
}
|
|
|
|
.top-infocard-description {
|
|
line-height: 48px;
|
|
font-size: 32px;
|
|
}
|
|
|
|
.top-infocard-image {
|
|
width: 800px;
|
|
}
|
|
|
|
.top-cards {
|
|
grid-template-columns: repeat(3, max(700px));
|
|
gap: 30px;
|
|
padding: 148px 0;
|
|
}
|
|
|
|
.top-card {
|
|
padding: 72px 0 52px;
|
|
}
|
|
|
|
.top-card-image {
|
|
margin-bottom: 52px;
|
|
width: 100%;
|
|
max-width: 200px;
|
|
}
|
|
|
|
.top-card-description {
|
|
font-size: 32px;
|
|
line-height: 48px;
|
|
}
|
|
} |