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

267 lines
5.6 KiB
CSS

/* CÓDIGO DE IMPORTAÇÃO DA FONTE / FONT IMPORT CODE */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@font-face {
font-family: 'Inter';
src: 'https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap' ;
}
* {
font-family: 'Bebas Neue', cursive;
font-family: 'Inter', sans-serif;
}
/* CÓDIGO DE IMPORTAÇÃO DA FONTE / FONT IMPORT CODE */
* {
margin: 0;
border: 0;
align-items: center;
justify-content: center;
}
header {
display: flex;
width: 100%;
background-color: black;
padding-top: 28px;
padding-bottom: 28px;
}
.main-poster {
width: 100%;
margin-bottom: 73px;
}
.info-1 {
display: flex;
flex-direction: column;
}
.info-1-subtitulo {
text-transform: uppercase;
font-weight: 400;
font-size: 32px;
width: 220px;
height: 39px;
}
.info-1-titulo {
text-transform: uppercase;
font-weight: 500;
font-size: 48px;
width: 403px;
height: 58px;
margin-bottom: 28px;
}
.info-1-texto {
font-weight: 400;
font-size: 16px;
line-height: 24px;
width: 766px;
height: 56px;
margin-bottom: 73px;
}
.computadores {
width: 315.5;
height: 315;
margin-bottom: 178.5px;
}
/* -------------------------- */
.cards-1 {
display: flex;
gap: 21px;
}
.card-1-1, .card-1-2, .card-1-3 {
display: flex;
flex-direction: column;
width: 18.23%;
max-width: 350px;
height: 287px;
gap: 21px;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
margin-bottom: 80px;
}
.card-logo-1-1, .card-logo-1-2, .card-logo-1-3 {
display: block;
width: 103px;
height: 103px;
}
.card-1-text {
font-size: 16px;
font-weight: 400;
max-width: 299px;
height: 95px;
text-align: center;
}
/* -------------------------- */
.laptops-background {
display: flex;
width: 100%;
height: 530px;
margin-bottom: -468px;
background-color: #E0E0E0;
}
.laptops-img-div {
display: flex;
margin-left: 72px;
margin-right: 72px;
gap: 39px;
}
.laptop-img {
width: 566px;
height: 530px;
margin-bottom: 129px;
}
/* -------------------------- */
.cards-2 {
display: flex;
justify-content: center;
gap: 16px;
}
.card-2-1, .card-2-2, .card-2-3, .card-2-4 {
display: flex;
flex-direction: column;
width: 432px;
height: 332px;
gap: 21px;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
margin-bottom: 108px;
}
.card-logo-2-1, .card-logo-2-2, .card-logo-2-3, .card-logo-2-4{
display: block;
width: 104px;
height: 104px;
}
.card-2-text {
font-size: 16px;
font-weight: 400;
width: 367px;
height: 95px;
line-height: 24px;
text-align: center;
}
/* -------------------------- */
.info-2 {
display: flex;
flex-direction: column;
}
.titulo-2 {
font-weight: 600;
font-size: 32px;
}
.titulo-2-texto {
font-weight: 400;
font-size: 16px;
width: 550px;
text-align: center;
margin-bottom: 50px;
}
.titulo-2-div {
display: flex;
flex-direction: column;
}
.end-image-div {
display: flex;
}
.end-image {
margin-top: 50px;
width: 70.83%;
height: 276px;
margin-bottom: 116px;
}
footer {
display: flex;
height: 128px;
width: 100%;
background: black;
flex-direction: column;
}
.footer-div {
display: flex;
flex-direction: column;
}
.footer-imgs {
display: flex;
justify-content: space-around;
align-self: center;
width: 104px;
height: 24px;
gap: 16px;
margin-bottom: 17px;
}
.facebook-logo, .youtube-logo, .instagram-logo {
width: 25px;
height: 25px;
gap: 16px;
}
.footer-text {
font-weight: 400;
width: fit-content;
height: 11px;
color: #BDBDBD;
size: 10px;
line-height: 12.1px;
}
@media only screen and (max-width: 414px){
.info-1-subtitulo {width: 138px; height: 24px; font-size: 20px; margin-bottom: 1px;}
.info-1-titulo {width: 235px; height: 49px; font-size: 28px; margin-bottom: 46px;}
.info-1-texto {width: 357px; height: 115px; font-size: 16px ; text-align: center; margin-bottom: 65px;}
.computadores {width: 239px; height: 239.38px; margin-bottom: 90.62px;}
.cards-1 {flex-direction: column; gap: 24px;}
.card-1-1, .card-1-2, .card-1-3 {width: 350px; height: 287px;}
.card-1-text {line-height: 24px;}
.laptops-img-div {flex-wrap: wrap; margin-left: 0; margin-right: 0; gap: 14px;}
.laptops-background {height: 574px; margin-bottom: -541px;}
.laptop-img {width: 177px; height: 178px; margin-bottom: 0px;}
.flex-break {flex-basis: 100%; height: 0;}
.laptop-img3 {width: 368px; height: 372px; margin-top: -5px; margin-bottom: 80px;}
/*margin-top aqui define a distância da gap vertical entre o quadro maior e os menores*/
.cards-2 {flex-direction: column; gap: 16px;}
.card-2-1, .card-2-2, .card-2-3, .card-2-4 {width: 368px; height: 332px; margin-bottom: 0px;}
.card-2-text {font-size: 14px; line-height: 24px; width: 302px; height: 113;}
.info-2 {flex-direction: column-reverse;}
.end-image {margin-top: 98px; width: 100%; height: auto; margin-bottom: 50px;}
.titulo-2 {margin-bottom: 9px; width: 315px; height: 29px; font-size: 24px; line-height: 29.05px;}
.titulo-2-texto {margin-bottom: 87px; width: 350px; height: 192px; font-size: 16px; line-height: 24px;}
.footer-div {display: flex; flex-direction: column; height: 64px;}
.footer-imgs {margin-bottom: 16px;}
.footer-text {width: 261px; height: 23px; font-size: 10px; line-height: 12.1px; text-align: center;}
}