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

291 lines
4.4 KiB
CSS
Raw Normal View History

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
color: #000;
}
/*Header*/
.page-header {
display: flex;
justify-content: center;
background-color: #000;
padding: 28px 0;
}
.header-logo {
display: block;
2022-10-10 12:41:12 +00:00
}
2022-10-10 15:13:00 +00:00
/*Banners*/
.main-banner,
.middle-banner {
2022-10-10 12:41:12 +00:00
width: 100%;
}
.main-banner-desktop,
.middle-banner-desktop {
2022-10-10 12:41:12 +00:00
display: block;
}
.main-banner-mobile,
.middle-banner-mobile {
2022-10-10 12:41:12 +00:00
display: none;
}
/*Top infocard*/
.top-infocard {
display: flex;
align-items: center;
justify-content: center;
gap: 124px;
padding: 80px 0 96px 0;
}
.top-infocard-content {
width: 40%;
}
.top-infocard-subtitle {
font-weight: 400;
font-size: 32px;
text-transform: uppercase;
}
.top-infocard-title {
font-weight: 500;
font-size: 48px;
text-transform: uppercase;
margin-bottom: 24px;
}
.top-infocard-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
/*top card*/
.top-cards {
background: #f0f0f0;
padding: 74px 0;
display: flex;
justify-content: center;
gap: 20px;
}
.top-card {
display: flex;
align-items: center;
flex-direction: column;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
width: 18%;
padding: 26px;
}
.top-card-image {
display: block;
width: 30%;
min-width: 65px;
}
.top-card-description {
margin-top: 26px;
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
width: 86%;
}
/*bottom card*/
.bottom-cards {
margin-top: 140px;
background: linear-gradient(180deg, #00C8FF 0%, #15ACD6 100%);
}
.bottom-cards-wrapper {
display: grid;
grid-template-columns: repeat(2, 23%);
justify-content: center;
gap: 20px;
position: relative;
top: -60px;
}
.bottom-card {
display: flex;
align-items: center;
flex-direction: column;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding: 36px 32px 66px;
}
.bottom-card-image {
width: 24%;
display: block;
}
.bottom-card-description {
margin-top: 15px;
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
width: 86%;
}
/*bottom Infocard*/
.bottom-infocard {
display: flex;
justify-content: center;
align-items: center;
gap: 40px;
padding: 142px 0 179px;
}
.bottom-infocard-image-container {
width: 31%;
}
.bottom-infocard-image {
width: 100%;
}
.bottom-infocard-content {
width: 29%;
}
.bottom-infocard-title {
font-weight: 600;
font-size: 32px;
line-height: 32px;
margin-bottom: 18px;
}
.bottom-infocard-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
@media screen and (max-width: 1024px) {
/*top infocard*/
.top-infocard {
padding: 84px 26px 158px;
flex-wrap: wrap;
gap: 0;
}
.top-infocard-content {
width: 100%;
}
.top-infocard-image-container {
margin-top: 68px;
width: 58%;
display: flex;
justify-content: center;
}
.top-infocard-image {
width: 100%;
max-width: 239px;
}
.top-infocard-subtitle {
font-size: 20px;
}
.top-infocard-title {
font-size: 28px;
}
/*top card*/
.top-cards {
flex-direction: column;
gap: 16px;
padding: 37px 26px;
}
.top-card {
width: 100%;
}
.top-card-image {
max-width: 120px;
}
/*bottom cards*/
.bottom-cards {
padding: 26px;
}
.bottom-cards-wrapper {
grid-template-columns: 1fr;
gap: 16px;
}
.bottom-card-image {
max-width: 120px;
}
.bottom-infocard {
flex-direction: column;
gap: 50px;
padding: 80px 0 135px;
}
.bottom-infocard-image-container {
width: 100%;
}
.bottom-infocard-image {
max-height: 414px;
object-fit: cover;
object-position: bottom;
}
.bottom-infocard-content {
width: 100%;
padding: 0 26px;
}
.bottom-infocard-title {
font-size: 24px;
}
}
2022-10-10 12:41:12 +00:00
@media screen and (max-width: 414px) {
2022-10-10 15:13:00 +00:00
/*banners*/
.main-banner-desktop,
.middle-banner-desktop {
2022-10-10 12:41:12 +00:00
display: none;
}
.main-banner-mobile,
.middle-banner-mobile {
2022-10-10 12:41:12 +00:00
display: block;
}
}