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

419 lines
6.7 KiB
CSS
Raw Normal View History

2022-10-10 22:10:57 +00:00
/* DEFINIÇÕES GERAIS */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
border: none;
}
body{
font-family: 'Inter', sans-serif;
color: #000000;
}
2022-10-10 22:10:57 +00:00
/* CABEÇALHO */
.page-header{
display: flex;
justify-content: center;
background: #000000;
padding: 28px 0;
}
.header-logo {
width: 12%;
}
.header-page, .main-banner, .footer-banner, .header-logo {
width: 100%;
display: block;
}
2022-10-10 22:10:57 +00:00
/* INFOCARDS DO TOPO */
.top-infocard {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 4% 0 9%;
}
.top-infocard-text {
width: 40%;
text-align: center;
}
.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;
padding-bottom: 28px;
text-transform: uppercase;
}
.top-infocard-description{
font-weight: 400;
font-size: 16px;
line-height: 24px;
padding-bottom: 72px;
}
.wrapper-top-infocard {
width: 16%;
}
.top-infocard-image {
width: 100%;
}
.top-cards {
display: grid;
grid-template-columns: repeat(3, 18%);
gap: 20px;
justify-content: center;
padding-bottom: 4%;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding: 7% 7% 10%;
}
.wrapper-top-card-image {
display: block;
margin-bottom: 7%;
width: 30%;
}
.top-card-image {
width: 100%;
}
2022-10-10 22:10:57 +00:00
.card-description {
text-align: center;
line-height: 24px;
font-size: 16px;
}
2022-10-10 22:10:57 +00:00
.top-card-description {
max-width: 86%;
2022-10-10 22:10:57 +00:00
}
/* BANNER DO MEIO */
.middle-banner {
background: #E0E0E0;
display: grid;
grid-template-columns: repeat(3, max-content);
justify-content: center;
gap: 40px;
max-height: 530px;
padding: 0 14%;
}
.banner-grid-1, .banner-grid-2, .banner-grid-3 {
display: block;
margin-top: 12%;
width: 100%;
}
.middle-banner-image {
display: block;
width: max-content;
}
2022-10-10 22:10:57 +00:00
/* CARDS DO RODAPÉ */
.footer-cards {
display: grid;
grid-template-columns: repeat(4, 22%);
gap: 16px;
justify-content: center;
padding-bottom: 6%;
padding-top: 10%;
}
.footer-card {
display: flex;
flex-direction: column;
align-items: center;
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
padding: 8% 8% 15%;
}
.wrapper-footer-card-image {
width: 24%;
}
.footer-card-image {
display: block;
width: 100%;
margin-bottom: 16px;
}
.footer-card-description {
max-width: 85%;
}
2022-10-10 22:10:57 +00:00
/* SESSÃO DO RODAPÉ */
.section-footer {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding-bottom: 6%;
}
.section-footer-text{
width: 28%;
text-align: center;
padding-bottom: 3%;
}
.section-footer-title {
font-weight: 600;
font-size: 32px;
line-height: 39px;
}
.section-footer-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
.section-footer-image-desktop {
display: block;
width: 70%;
}
2022-10-10 22:10:57 +00:00
/* RODAPÉ */
.page-footer {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background: #000000;
padding: 38px 0;
}
.footer-text {
color: #BDBDBD;
font-weight: 400;
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
}
.social-links {
padding-bottom: 16px;
}
2022-10-10 22:10:57 +00:00
.link-social:not(:last-child) {
margin-right: 16px;
}
/* RESPONSIVIDADE */
@media screen and (min-width: 2501px) {
.top-infocard-subtitle, .section-footer-title {
font-size: 64px;
line-height: 78px;
}
.top-infocard-title {
font-size: 96px;
line-height: 116px;
}
.top-infocard-description, .section-footer-description, .card-description{
font-size: 32px;
line-height: 48px;
2022-10-10 22:10:57 +00:00
}
.footer-text {
font-size: 20px;
line-height: 24px;
}
}
@media screen and (min-width: 1025px) and (max-width: 2500px) {
2022-10-10 22:10:57 +00:00
.middle-banner {
background: #E0E0E0;
display: grid;
grid-template-columns: repeat(3, 30%);
justify-content: center;
gap: 40px;
max-height: 530px;
padding: 0 4%;
2022-10-10 22:10:57 +00:00
}
.banner-grid-1, .banner-grid-2, .banner-grid-3 {
display: block;
position: relative;
margin-top: 12%;
max-width: 100%;
}
2022-10-10 22:10:57 +00:00
.middle-banner-image {
display: block;
max-width: 100%;
}
}
@media screen and (min-width: 1025px) {
.main-banner-mobile, .middle-banner-mobile, .section-footer-image-mobile {
display: none;
}
}
@media screen and (max-width: 1024px) {
.main-banner-desktop, .section-footer-image-desktop {
display: none;
}
.top-infocard {
padding: 18% 7% 22%;
}
.top-infocard-text {
width: 100%;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
font-size: 28px;
line-height: 34px;
padding-bottom: 16px;
}
.wrapper-top-infocard {
width: 58%;
}
.top-infocard-image {
width: 100%;
}
.top-cards {
grid-template-columns: 1fr;
padding: 36px 32px 80px;
}
2022-10-10 22:10:57 +00:00
.middle-banner {
grid-template-columns: 45% 45%;
grid-template-areas: "banner-grid-1 banner-grid-2"
"banner-grid-3 banner-grid-3";
gap: 14px;
padding: 0;
max-height: max-content;
}
2022-10-10 22:10:57 +00:00
.banner-grid-1 {
grid-area: banner-grid-1;
margin-top: 32px;
}
.banner-grid-2 {
grid-area: banner-grid-2;
margin-top: 32px;
}
.banner-grid-3 {
grid-area: banner-grid-3;
margin-top: 18px;
}
.middle-banner-image {
width: 100%;
margin-top: 0;
}
.footer-cards {
grid-template-columns: 1fr;
padding: 80px 24px 98px;
justify-content: center;
}
.footer-card-description {
max-width: 73%;
font-size: 14px;
}
.section-footer {
flex-direction: column-reverse;
2022-10-10 22:10:57 +00:00
padding-bottom: 86px;
}
.footer-banner {
padding-bottom: 50px;
}
.section-footer-text{
width: 100%;
text-align: center;
padding: 0 32px;
}
.section-footer-title {
font-size: 24px;
line-height: 29px;
padding-bottom: 8px;
}
2022-10-10 22:10:57 +00:00
.section-footer-description {
padding-bottom: 0;
}
2022-10-10 22:10:57 +00:00
.footer-text {
text-align: center;
width: 85%;
}
}