challenge-landing-page/style/style.css

321 lines
5.2 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', sans-serif;
}
/* variaveis de cores */
:root {
--black: #000000;
--white: #FFFFFF;
--grey-body: #E5E5E5;
--grey: #E0E0E0;
--grey-footer: #BDBDBD;
}
/* HEADER DA PAGINA */
header {
height: 100px;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: var(--black);
}
.header-logo {
display: block;
}
/* BANNER DESKTOP */
.banner-img {
width: 100%;
display: block;
}
.banner-img-mobile {
display: none;
}
/* AREA ABAIXO DO BANNER */
.container-midle-flex {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding-top: 74px;
}
.container-midle-title {
font-weight: 500;
font-size: 48px;
line-height: 58px;
text-transform: uppercase;
}
.container-midle-subtitle {
font-weight: 400;
font-size: 32px;
line-height: 40px;
text-transform: uppercase;
}
.container-midle-paragraph {
width: 100%;
max-width: 766px;
font-weight: 400;
font-size: 16px;
line-height: 24px;
margin: 28px 28px 74px;
}
.container-midle-img {
width: 16.40625%;
height: 16.40625%;
max-width: 315px;
display: block;
}
/* GRID INFO CARD TRIPLE */
.container-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: 1fr;
gap: 0px 22px;
grid-auto-flow: row;
grid-template-areas:
"card-1 card-2 card-3 card-4";
justify-content: center;
width: 100%;
padding: 10% 22% 4%;
}
.container-infocard {
grid-template-columns: repeat(4, 1fr);
grid-template-areas:
"card-1 card-2 card-3 card-4";
padding: 130px 72px;
}
.card-1 {
grid-area: card-1;
}
.card-2 {
grid-area: card-2;
}
.card-3 {
grid-area: card-3;
}
.card-4 {
grid-area: card-4;
}
.card-1,
.card-2,
.card-3,
.card-4 {
background: var(--white);
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
padding: 36px 26px 24px;
}
.icon-card {
width: 6.409rem;
height: 6.409rem;
display: block;
margin: 0 auto;
margin-bottom: 28px;
}
.subtitle-card {
width: 100%;
min-width: 72%;
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/* Banner Mosaico */
.wrapper-banner {
width: 100%;
background-color: var(--grey);
display: flex;
justify-content: center;
align-items: center;
}
.banner-mosaic {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: 1fr;
grid-template-areas: "mosaic-img1 mosaic-img2 mosaic-img3";
gap: 40px;
padding: 0 72px;
transform: translateY(60px);
z-index: 999;
}
.mosaic-img1 {
grid-area: mosaic-img1;
}
.mosaic-img2 {
grid-area: mosaic-img2;
}
.mosaic-img3 {
grid-area: mosaic-img3;
}
.mosaic-wrapper-img {
width: 100%;
display: block;
}
/* Medias Queries*/
@media screen and (min-width:2500px) {
.container-cards {
padding: 6% 30% 4%;
}
.container-infocard {
padding: 130px 72px;
}
}
@media screen and (max-width:1024px) {
/* BANNER MOBILE */
.banner-img-desktop {
display: none;
}
.banner-img-mobile {
display: block;
}
/* AREA ABAIXO DO BANNER */
.container-midle {
width: 100%;
}
/* AREA ABAIXO DO BANNER */
.container-midle-flex {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.container-midle-title {
font-size: 28px;
line-height: 34px;
}
.container-midle-subtitle {
font-size: 20px;
line-height: 24px;
}
.container-midle-paragraph {
max-width: 86%;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.container-midle-img {
width: 58%;
height: 58%;
max-width: 240px;
display: block;
}
/* Area dos tres cards */
.container-cards {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: repeat(3, 1fr);
gap: 24px;
grid-auto-flow: row;
grid-template-areas:
"card-1"
"card-2"
"card-3";
justify-content: center;
padding: 90px 32px 80px;
}
.container-infocard {
grid-template-rows: repeat(4, 1fr);
grid-template-areas:
"card-1"
"card-2"
"card-3"
"card-4";
}
.subtitle-card {
max-width: 72%;
margin: 0 auto;
text-align: center;
}
/*REGIAO DO BANNER MOSAICO */
.banner-mosaic {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 2fr;
grid-template-areas:
"mosaic-img2 mosaic-img1"
"mosaic-img3 mosaic-img3";
gap: 24px 14px;
padding: 0 24px;
transform: translateY(32px);
}
.img1,
.img2 {
width: 100%;
height: 100%;
min-width: 50%;
min-height: 50%;
}
.img3 {
min-width: 90%;
min-height: 90%;
}
}