challenge-landing-page/style/style.css
Emmanuel Vitor c18a1de615 feat: cria a regiao do botton da pagina, responsiva para mobile e desktop, antes do footer.
criação seguindo o layout, qu eno mobile o texto com a imagem troca de posição e a imagem troca de estilo
2022-10-13 09:25:33 -03:00

378 lines
6.1 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);
}
img {
display: block;
}
.header-logo {
display: block;
}
/* BANNER DESKTOP */
.banner-img {
width: 100%;
}
.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;
}
/* AREA BOTTON, ANTES DO FOOTER */
.bottom-flex,
.bottom-text {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.bottom-subtitle {
width: 100%;
max-width: 22%;
font-weight: 600;
font-size: 32px;
margin: 0 40% 5px;
}
.bottom-paraphase {
width: 100%;
max-width: 28%;
margin-bottom: 50px;
text-align: center;
font-size: 16px;
font-weight: 400;
line-height: 24px;
}
.botton-img-mobile {
display: none;
}
/* Medias Queries*/
@media screen and (min-width:2500px) {
.container-cards {
padding: 6% 30% 4%;
}
}
@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%;
}
/* AREA BOTTON, ANTES DO FOOTER */
.botton-img-desktop {
display: none;
}
.botton-img-mobile {
display: block;
width: 100%;
}
.bottom-paraphase{
max-width: 84%;
}
.bottom-subtitle{
max-width: 76%;
margin: 50px 50px 10px;
font-size: 24px;
line-height: 30px;
}
.bottom-flex{
flex-direction: column-reverse;
}
}