challenge-landing-page/assets/styles/main.css

373 lines
6.8 KiB
CSS
Raw Normal View History

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color: #000;
}
.page-header{
display: flex;
justify-content: center;
text-align: center;
padding: 29px 0;
background-color: #000;
}
.header-logo{
width: 12%;
}
.header-logo-image{
width: 100%;
}
/* main-banner */
.main-banner-desktop{
width: 100%;
display: block;
}
.main-banner-mobile{
display: none;
}
/* top-infocard */
.top-infocard{
display: flex;
flex-direction: column;
align-items: center;
padding: 73px 0 0;
}
.top-inforcard-subtitle{
text-align: center;
font-weight: 400;
font-size: 32px;
2022-10-11 22:32:18 +00:00
line-height: 39px;
text-transform: uppercase;
}
.top-infocard-title{
text-align: center;
font-weight: 500;
font-size: 48px;
2022-10-11 22:32:18 +00:00
line-height: 58px;
text-transform: uppercase;
padding: 0 0 28px;
}
.top-infocard-description{
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
.top-infocard-text{
max-width: 40%;
padding: 0 0 73px;
}
.top-infocard-image{
width: 16%;
min-width: 239px;
}
/* top-cards */
.top-cards{
display: flex;
justify-content: center;
gap: 21px;
padding: 178px 31px 50px;
}
.top-card{
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 26px 26px;
gap: 27px;
background: #FFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
width: 18%;
min-height: 287px;
}
.top-card-image{
width: 34%;
}
.top-card-description{
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/* middle-banner */
.middle-banner-wrapper{
background: #E0E0E0
}
.banners-middle{
display: flex;
justify-content: center;
gap: 39px;
position: relative;
bottom: -62px;
}
.middle-banner{
justify-content: center;
width: 29%;
}
.middle-banner-image{
width: 100%;
}
/* bottom-cards */
.bottom-cards{
display: flex;
justify-content: center;
padding: 191px 0 54px;
2022-10-11 22:32:18 +00:00
gap: 16px;
}
.bottom-figures-card{
display: flex;
flex-direction: column;
align-items: center;
width: 23%;
padding: 35px 32px 65px;
2022-10-11 20:54:42 +00:00
gap: 17px;
min-height: 332px;
background: #FFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.bottom-figures-image{
2022-10-11 20:54:42 +00:00
height: 100%;
width: 34%;
}
.bottom-figcapiton{
text-align: center;
font-weight: 400;
font-size: 16px;
line-height: 24px;
2022-10-11 20:54:42 +00:00
}
/* bottom-banner */
.bottom-banner{
display: flex;
flex-direction: column;
align-items: center;
padding: 54px 0 106px;
gap: 50px;
}
.bottom-banner-text{
width: 29%;
min-width: 550px;
2022-10-11 20:54:42 +00:00
text-align: center;
}
.bottom-banner-subtitle{
font-weight: 600;
font-size: 32px;
line-height: 39px;
}
.bottom-banner-describition{
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
.bottom-banner-images{
width: 71%;
}
.bottom-banner-desktop{
display: block;
width: 100%;
}
.bottom-banner-mobile{
display: none;
2022-10-11 22:07:01 +00:00
}
/* footer */
.page-footer{
display: flex;
flex-direction: column;
align-items: center;
padding: 38px 0;
gap: 16px;
background: #000000;
}
.footer-icons{
display: flex;
list-style: none;
justify-content: center;
2022-10-11 22:07:01 +00:00
gap: 16px;
}
.icons{
width: 100%;
}
.icons-image{
width: 5%;
min-width: 24px;
}
2022-10-11 22:07:01 +00:00
.footer-text{
text-align: center;
2022-10-11 22:07:01 +00:00
font-weight: 400;
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
color: #BDBDBD;
2022-10-11 22:32:18 +00:00
}
/* layout 4K */
@media screen and (min-width: 2500px) {
.page-header{
padding: 58px
}
2022-10-11 22:32:18 +00:00
.top-inforcard-subtitle{
font-size: 64px;
line-height: 78px;
}
.top-infocard-title{
font-size: 96px;
line-height: 116px;
}
.top-infocard-description{
font-size: 32px;
line-height: 48px;
}
.top-card-description{
font-size: 32px;
line-height: 48px;
}
.bottom-figcapiton{
font-size: 32px;
line-height: 48px;
}
.bottom-banner-subtitle{
font-size: 64px;
line-height: 78px;
}
.bottom-banner-text{
min-width: 900px;
}
2022-10-11 22:32:18 +00:00
.bottom-banner-describition{
font-size: 32px;
line-height: 48px;
}
.footer-text{
font-size: 20px;
line-height: 24px;
}
.icons-image{
min-width: 48px;}
}
/* layaut mobile */
@media screen and (max-width: 1024px) {
.header-logo{
width: 55%;
}
.main-banner-desktop{
display: none;
}
.main-banner-mobile{
width: 100%;
display: block;
}
/* top infocard */
.top-inforcard-subtitle{
font-size: 20px;
line-height: 34px;
}
.top-infocard-title{
font-size: 28px;
line-height: 24px;
}
.top-infocard-text{
text-align: center;
max-width: 86%;
padding: 0 0 73px;
}
.top-infocard-image {
2022-10-11 22:32:18 +00:00
width: 58%;
}
/* top-cards */
.top-cards{
flex-direction: column;
align-items: center;
padding: 90px 0;
}
.top-card{
width: 85%;
gap: 37px;
}
.top-card-image{
width: 25%;
}
2022-10-11 22:07:01 +00:00
/* banners-middle */
.banners-middle{
display: grid;
grid-template-areas:
"b1 b2"
"b3 b3";
justify-items: center;
padding: 0px 23px;
gap: 14px;
top: 32px;
}
.middle-banner{
width: 100%;
}
.Banner1{
grid-area: b1;
}
.Banner2{
grid-area: b2;
2022-10-11 22:32:18 +00:00
}
.Banner3{
grid-area: b3;
}
/* bottom-cards */
.bottom-cards{
flex-direction: column;
align-items: center;
2022-10-11 21:21:27 +00:00
padding: 96px 0 0;
}
.bottom-banner-text{
width: 29%;
}
.bottom-figures-card{
width: 89%;
}
2022-10-11 20:54:42 +00:00
/* bottom-banner */
2022-10-11 21:21:27 +00:00
.bottom-banner{
flex-direction: column-reverse;
padding: 98px 0 87px;
}
2022-10-11 20:54:42 +00:00
.bottom-banner-desktop{
display: none;
}
.bottom-banner-mobile{
display: block;
width: 100%;
}
2022-10-11 21:21:27 +00:00
.bottom-banner-images{
width: 100%;
}
.bottom-banner-text{
width: 85%;
min-width: 0;
2022-10-11 21:21:27 +00:00
}
.bottom-banner-subtitle{
font-size: 24px;
line-height: 29px;
margin-bottom: 9px;
2022-10-11 21:21:27 +00:00
}
2022-10-11 22:07:01 +00:00
/* footer-text */
.page-footer{
padding: 32px 0;
}
.footer-text{
width: 63%;
}
}
@media screen and (max-width: 413px) {
.top-card {
width: 95%;
padding: 36px 7px 26px;
}
.top-infocard-text {
max-width: 87%;
}
.banners-middle {
padding: 0px 10px;
}
.bottom-figures-card {
width: 95%;
padding: 35px 16px 65px;
}
.bottom-banner-text {
width: 90%;
}
}