practice-time-landing-page/assets/styles/main.css

208 lines
3.2 KiB
CSS
Raw Normal View History

2022-10-12 16:29:45 +00:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
color: #000000;
2022-10-12 16:29:45 +00:00
}
.page-header {
display: flex;
justify-content: center;
padding: 28px 0;
background: #000000;
}
.header-logo {
display: block;
}
2022-10-13 00:22:02 +00:00
.main-banner,
.middle-banner {
display: block;
width: 100%;
}
2022-10-12 16:29:45 +00:00
.top-infocard {
display: flex;
align-items: center;
justify-content: center;
padding: 80px 0 96px;
2022-10-12 16:29:45 +00:00
}
.top-infocard-text {
max-width: 766px;
margin-right: 124px;
}
.top-inforcard-subtitle {
font-weight: 400;
font-size: 32px;
text-transform: uppercase;
}
.top-infocard-title {
margin-bottom: 24px;
font-weight: 500;
font-size: 48px;
text-transform: uppercase;
}
.top-infocard-description {
font-size: 16px;
line-height: 24px;
}
.top-cards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
padding: 74px 0;
background: #F0F0F0;
}
.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;
2022-10-13 00:22:02 +00:00
}
.top-card-description {
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
2022-10-13 00:22:02 +00:00
}
.bottom-cards {
margin-top: 140px;
background: linear-gradient(180deg, #00C8FF 0%, #15ACD6 100%);
}
.bottom-cards-wrapper {
display: grid;
grid-template-columns: repeat(2, max-content);
justify-content: center;
gap: 20px;
position: relative;
top: -60px;
}
.bottom-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 32px 66px;
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.bottom-card-image {
display: block;
margin-bottom: 14px;
}
.bottom-card-description {
max-width: 368px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
@media screen and (max-width: 414px) {
2022-10-13 00:22:02 +00:00
.main-banner-desktop,
.middle-banner-desktop {
display: none;
}
}
@media screen and (min-width: 415px) {
2022-10-13 00:22:02 +00:00
.main-banner-mobile,
.middle-banner-mobile {
display: none;
}
}
2022-10-13 00:22:02 +00:00
@media screen and (max-width: 768px) {
.top-cards {
grid-template-columns: 1fr;
padding: 36px 26px;
}
.bottom-cards {
margin-top: 114px;
padding: 0 26px;
}
.bottom-cards-wrapper {
grid-template-columns: 1fr;
gap: 16px;
}
.bottom-card-description {
font-size: 14px;
}
}
@media screen and (max-width: 992px) {
.top-infocard {
flex-direction: column;
padding: 84px 26px 158px;
}
.top-infocard-text {
margin: 0 0 68px;
}
.top-inforcard-subtitle {
font-size: 20px;
}
.top-inforcard-title {
margin-bottom: 20px;
font-size: 28px;
}
.top-infocard-image {
width: 100%;
max-width: 240px;
}
}
2022-10-13 00:22:02 +00:00
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards {
grid-template-columns: repeat(2, max-content);
}
}
2022-10-13 00:22:02 +00:00
@media screen and (min-width: 769px) and (max-width: 992px) {
.bottom-card-description {
max-width: 280px;
}
}
2022-10-13 00:22:02 +00:00
@media screen and (min-width: 993px) and (max-width: 1280px) {
.top-infocard-text {
max-width: 520px;
margin-right: 70px;
}
}