challenge-landing-page/styles/main.css

357 lines
5.4 KiB
CSS
Raw Normal View History

2022-10-11 14:05:41 +00:00
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
img{
display: block;
}
2022-10-11 16:40:02 +00:00
body{
color: #000;
font-family: 'Inter', sans-serif;
text-align: center;
}
2022-10-11 14:05:41 +00:00
.page-header{
display: flex;
justify-content: center;
background: #000000;
padding: 29px 0;
}
.main-banner{
width: 100%;
}
2022-10-11 16:40:02 +00:00
.top-infocard{
2022-10-11 18:27:45 +00:00
margin: 73px 0 187px;
2022-10-11 16:40:02 +00:00
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 65px;
}
.top-infocard-text{
max-width: 40%;
}
.top-infocard-subtitle{
font-weight: 400;
font-size: 32px;
line-height: 39px;
text-transform: uppercase;
}
.top-infocard-title{
font-weight: 500;
font-size: 48px;
line-height: 58px;
text-transform: uppercase;
margin-bottom: 28px;
}
2022-10-12 17:29:03 +00:00
.top-infocard-description,
.top-card-text,
.bottom-card-text{
2022-10-11 16:40:02 +00:00
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
.top-infocard-figure{
min-width: 16%;
}
.top-infocard-image{
width: 100%;
}
2022-10-11 18:27:45 +00:00
.top-cards{
display: flex;
gap: 21px;
justify-content: center;
margin-bottom: 80px;
}
.top-card{
width: 18%;
2022-10-11 18:45:13 +00:00
background: #FFF;
2022-10-11 18:27:45 +00:00
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding: 35px 0 27px;
}
.top-card-figure{
display: flex;
flex-direction: column;
align-items: center;
gap: 27px;
}
.top-card-text{
width: 85%;
}
.top-card-image{
width: 29%;
}
2022-10-11 19:25:11 +00:00
.middle-card-images{
background: #E0E0E0;
margin-bottom: 191px;
}
.middle-card-images-wrapper{
position: relative;
bottom: -62px;
display: grid;
grid-template-columns: repeat(3, 29%);
gap: 39px;
justify-content: center;
}
.middle-card-image{
width: 100%;
}
2022-10-12 17:29:03 +00:00
.bottom-cards{
display: flex;
gap: 16px;
align-items: center;
justify-content: center;
2022-10-12 18:03:45 +00:00
margin-bottom: 108px;
2022-10-12 17:29:03 +00:00
}
.bottom-card{
width: 22%;
background: #FFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding: 35px 0 65px;
}
.bottom-card-figure{
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
}
.bottom-card-image{
width: 24%;
}
#bottom-card-image04{
width: 20%;
}
.bottom-card-text{
width: 85%;
}
2022-10-12 18:33:01 +00:00
.bottom-article{
display: flex;
flex-direction: column;
align-items: center;
gap: 50px;
margin-bottom: 116px;
}
.bottom-article-text{
max-width: 29%;
}
.bottom-article-figure{
width: 71%;
}
.bottom-article-title{
font-weight: 600;
font-size: 32px;
line-height: 39px;
}
.bottom-article-description{
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
.bottom-banner{
width: 100%;
}
2022-10-12 19:26:18 +00:00
.page-footer{
background: #000;
padding: 38px 0;
display: flex;
align-items: center;
flex-direction: column;
gap: 16px;
}
.footer-list{
display: flex;
justify-content: center;
list-style: none;
gap: 16px;
}
.footer-text{
color: #BDBDBD;
font-weight: 400;
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
}
@media screen and (max-width: 1024px){
2022-10-12 18:33:01 +00:00
.main-banner-desktop,
.bottom-banner-desktop{
display: none;
}
2022-10-11 17:55:36 +00:00
.top-infocard{
margin-bottom: 90px;
}
2022-10-11 17:55:36 +00:00
.top-infocard-text{
max-width: 86%;
}
.top-infocard-subtitle{
font-size: 20px;
line-height: 24px;
}
2022-10-11 18:27:45 +00:00
2022-10-11 17:55:36 +00:00
.top-infocard-title{
font-size: 28px;
line-height: 34px;
margin-bottom: 46px;
}
.top-infocard-figure{
max-width: 58%;
}
.top-infocard-image{
max-width: 100%;
}
2022-10-11 18:45:13 +00:00
.top-cards{
flex-direction: column;
gap: 24px;
2022-10-11 18:45:13 +00:00
align-items: center;
}
.top-card{
min-width: 85%;
}
2022-10-11 19:46:13 +00:00
.middle-card-images{
margin-bottom: 112px;
}
2022-10-11 19:46:13 +00:00
.middle-card-images-wrapper{
grid-template-columns: repeat(2, 43%);
column-gap: 14px;
row-gap: 23px;
bottom: -32px;
}
#middle-card02{
order: -1;
}
#middle-card03{
grid-area: 2/1/2/3;
}
2022-10-12 18:03:45 +00:00
.bottom-cards{
flex-direction: column;
margin-bottom: 98px;
2022-10-12 18:03:45 +00:00
}
.bottom-card{
min-width: 89%;
}
.bottom-card-image{
width: 28%;
}
#bottom-card-image04{
width: 23%;
}
2022-10-12 18:03:45 +00:00
.bottom-card-text{
max-width: 82%;
2022-10-12 18:03:45 +00:00
font-size: 14px;
line-height: 24px;
}
2022-10-12 18:47:35 +00:00
.bottom-article{
flex-direction: column-reverse;
margin-bottom: 87px;
2022-10-12 18:47:35 +00:00
}
.bottom-article-text{
max-width: 85%;
}
.bottom-article-title{
font-size: 24px;
line-height: 29px;
}
.bottom-article-figure{
width: 100%;
}
2022-10-12 19:30:22 +00:00
2022-10-12 19:44:15 +00:00
.page-footer{
gap: 17px;
padding: 32px 0;
2022-10-12 19:44:15 +00:00
}
2022-10-12 19:30:22 +00:00
.footer-text{
max-width: 63%;
}
}
@media screen and (min-width: 1025px){
2022-10-12 18:33:01 +00:00
.main-banner-mobile,
.bottom-banner-mobile{
display: none;
}
2022-10-11 17:55:36 +00:00
.top-infocard-description{
text-align: left;
}
2022-10-11 16:40:02 +00:00
}
@media screen and (min-width: 2500px){
2022-10-12 18:33:01 +00:00
.top-infocard-subtitle,
.bottom-article-title{
2022-10-11 16:40:02 +00:00
font-size: 64px;
line-height: 78px;
}
.top-infocard-title{
font-size: 98px;
line-height: 116px;
}
2022-10-12 17:29:03 +00:00
.top-infocard-description,
.top-card-text,
2022-10-12 18:33:01 +00:00
.bottom-card-text,
.bottom-article-description{
2022-10-11 18:27:45 +00:00
font-size: 32px;
line-height: 48px;
}
2022-10-12 19:26:18 +00:00
.footer-text{
font-size: 20px;
line-height: 24px;
}
2022-10-11 14:05:41 +00:00
}