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

313 lines
4.5 KiB
CSS

*{
margin:0;
padding:0;
border:0;
}
header {
display: flex;
justify-content: center;
align-items: center;
background-color: #000000;
margin: 0;
width: 100%;
height: 101px;
}
.logo{
width: 12%;
}
.logo img{
width: 100%;
}
.banner-top{
width: 100%;
}
.information-network{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.sub-title, .title, .descriptiom{
text-align: center;
}
.sub-title{
font-size: clamp(1.75em, 1em + 2vw, 2em);
padding-top: 73px;
text-transform: uppercase;
}
.title{
font-size: clamp(1.75em, 1em + 3vw, 3em);
text-transform: uppercase;
}
.descriptiom{
width: 40%;
font-size: clamp(0.75em, 1em + 1vw, 1em);
padding-top: 28px;
padding-bottom: 73px;
}
.network{
display: flex;
justify-content: center;
width: 16%;
}
.network img{
width: 100%;
}
.card-section, .card-section-small{
display: flex;
justify-content: center;
}
.card-section{
padding: 178px 0px 80px 0px;
}
.card, .card-small{
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
display: flex;
flex-direction: column;
text-align: center;
align-items: center;
}
.card{
width: 18%;
height: 287.68px;
margin: 21px;
justify-content: center;
}
.img-card{
width: 29%;
}
.img-card img{
width: 100%;
}
.card p{
width: 85%;
margin-top: 30px;
font-size: clamp(0.5em, 1em + 1vw, 1em);
}
.computers-area{
display: flex;
justify-content: space-evenly;
width: 100%;
background: #E0E0E0;
}
.computers-img{
position: relative;
top: 60px;
width: 29%;
}
.computers-img img{
width: 100%;
}
.card-section-small{
width: 100%;
padding-top: 190px;
}
.card-small{
width: 22%;
height: 332px;
margin: 16px;
justify-content: center;
}
.img-card-small{
width: 24%;
}
.img-card-small img{
width: 100%;
}
.card-small p{
width: 85%;
margin-top: 17px;
font-size: clamp(0.5em, 1em + 1vw, 1em);
}
.information-code{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
width: 100%;
padding-top: 108px;
padding-bottom: 116px;
}
.information-code h1{
width: 22%;
font-size: clamp(1.25em, 1em + 1vw, 2em);
}
.information-code p{
width: 30%;
font-size: clamp(1em, 1em + 1vw, 1.5em);
}
.computer-code{
width: 71%;
padding-top: 50px;
}
.computer-code img{
width: 100%;
}
footer{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
width: 100%;
height: 130px;
background-color: #000000;
}
.social{
display: flex;
width: 100%;
justify-content: center;
align-items: center;
text-align: center;
}
.social-networks{
width: 6%;
margin: 20px;
}
.social-networks img{
width: 100%;
}
footer p{
color: #ffffff;
width: 63%;
}
@media (max-width: 1024px) {
.logo{
width: 55%;
}
.banner-top{
visibility: hidden;
width: 0px;
}
.banner-top-mob{
width: 100%;
height: 598px;
}
.network{
width: 58%;
}
.card-section, .card-section-small{
flex-direction: column;
align-items: center;
}
.card, .card-small{
width: 85%;
height: 380px;
}
.card-img, .img-card-small{
width: 29%;
}
.card p, .card-small p{
width: 82%;
}
.computers-area{
display: grid;
grid-template-columns: repeat(2,1fr);
justify-items: center
}
.computers-img{
width: 89%;
margin: 14px;
}
#item1{
grid-area: 1/2/1/2;
}
#item2{
grid-area: 1/1/1/1;
}
#item3{
grid-area: 2/1/2/3;
}
.information-code{
display: grid;
justify-items: center
}
.computer-code{
grid-area: 1/1/1/1;
width: 100%;
}
.banner-bottom{
visibility: hidden;
width: 0px;
position: relative;
}
.banner-bottom-mob{
width: 100%;
height: 414px;
}
.information-code p{
width: 85%;
}
.information-code p{
width: 85%;
}
}
@media (min-width: 1025px) {
.banner-top-mob{
visibility: hidden;
width: 0px;
position: absolute;
}
.banner-bottom-mob{
visibility: hidden;
width: 0px;
position: fixed;
}
}