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

193 lines
3.6 KiB
CSS
Raw Normal View History

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
2022-10-07 22:41:48 +00:00
body{
font-family: 'Inter', sans-serif;
color: #000;
}
.page-header{
display: flex;
justify-content: center;
padding: 28px 0;
2022-10-07 22:41:48 +00:00
background-color: #000
;
}
2022-10-07 23:45:13 +00:00
.main-banner ,
.middler-banner{
max-width: 100%;
2022-10-07 23:45:13 +00:00
display: block;
}
2022-10-07 22:41:48 +00:00
.top-infocard{
display: flex;
align-items: center;
justify-content: center;
padding: 80px 0 96px;
}
.top-infocard-text{
margin-right: 124px;
max-width: 766px;
}
.top-inforcard-subtitle{
text-transform: uppercase;
font-size: 32px;
font-weight: 400;
2022-10-07 22:41:48 +00:00
}
.top-infocard-title{
margin-bottom: 24px;
text-transform: uppercase;
font-weight: 500;
font-size: 48px;
}
.top-infocard-description{
font-weight: 400;
font-size: 16px;
}
.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 36px;
background: #FFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image{
display: block;
margin-bottom: 26px;
}
.top-card-description{
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
@media screen and (max-width: 414px) {
2022-10-07 23:45:13 +00:00
.main-banner-desktop,
.middler-banner-desktop{
display: none;
}
}
2022-10-08 01:21:27 +00:00
@media screen and (min-width: 415px) {
.main-banner-mobile,
.middler-banner-mobile{
display: none;
}
}
@media screen and (max-width: 768px) {
.top-cards{
grid-template-columns: 1fr;
padding: 36px 26px;
}
}
2022-10-07 22:41:48 +00:00
@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-infocard-title{
margin-bottom: 20px;
font-size: 28px;
}
.top-infocard-image{
width: 100%;
max-width: 240px;
}
}
@media screen and (min-width: 993px) and (max-width: 1280px) {
.top-infocard-text{
max-width: 520px;
margin-right: 70px;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards{
grid-template-columns: repeat(2, max-content)
}
}
2022-10-08 01:21:27 +00:00
@media screen and (min-width: 1920px){
2022-10-07 23:45:13 +00:00
.main-banner-desktop,
.middler-banner-desktop {
2022-10-07 22:41:48 +00:00
width: 100%;
object-fit: contain;
}
2022-10-08 01:21:27 +00:00
.top-infocard-description,
.top-card-description{
font-size: 20px;
}
}
@media screen and (min-width:2220px) {
.top-inforcard-subtitle{
font-size: 64px;
}
.top-infocard-title{
font-size: 96px;
}
.top-infocard-description{
font-size: 32px;
}
.top-infocard-image{
width: 100%;
max-width: 480px;
}
}
@media screen and (min-width:2900px) {
.header-logo{
height: 84px;
}
.page-header{
padding: 56px 0
}
.top-infocard-text{
margin-right: 248px;
max-width: 1000px;
}
.top-infocard-image{
width: 100%;
max-width: 550px;
}
.top-card{
padding: 52px 52px 72px;
box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.23);
}
.top-card-description{
max-width: 800px;
font-size: 32px;
line-height: 48px;
}
.top-card-image{
width: 160px;
}
.top-card-description{
max-width: 500px;
font-size: 32px;
line-height: 48px;
}
}