challenge-landing-page-juan.../styles/main.css

195 lines
3.1 KiB
CSS
Raw Normal View History

2022-10-12 00:44:49 +00:00
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
2022-10-12 16:50:43 +00:00
body {
font-family: 'Inter', sans-serif;
}
2022-10-12 16:50:43 +00:00
/* Cabeçalho */
2022-10-12 00:44:49 +00:00
.header-logo {
width: 100%;
display: block;
}
.page-header {
display: flex;
padding: 28px 0;
justify-content: center;
background: #000;
}
2022-10-12 16:50:43 +00:00
/* Banner principal */
.main-banner{
2022-10-12 00:44:49 +00:00
width: 100%;
2022-10-12 16:50:43 +00:00
display: block;
}
/* Primeiro infocard */
.top-infocard, .top-infocard-subtitle, .top-infocard-title, .top-infocard-description {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
2022-10-12 16:50:43 +00:00
}
.top-infocard-text {
width: 40%;
max-width: 100%;
margin: 72px 0 72px;
}
.top-infocard-subtitle {
font-weight: 400;
2022-10-12 16:50:43 +00:00
font-size: 32px;
line-height: 39px;
text-transform: uppercase;
}
.top-infocard-title {
font-weight: 500;
font-size: 48px;
line-height: 58px;
text-transform: uppercase;
margin-bottom: 22px;
2022-10-12 16:50:43 +00:00
}
.top-infocard-description {
font-size: 16px;
line-height: 24px;
}
.top-infocard-figure {
width: 16%;
2022-10-12 16:50:43 +00:00
}
.top-infocard-image {
width: 100%;
2022-10-12 16:50:43 +00:00
display: block;
margin-bottom: 178px;
2022-10-12 16:50:43 +00:00
}
/* Cards de cima */
.top-cards {
width: 100%;
display: flex;
justify-content: center;
gap: 1%;
margin-bottom: 11vh;
}
.top-card {
width: 18%;
display: flex;
flex-direction: column;
align-items: center;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image {
width: 30%;
margin: 13% 0 9%;
}
.top-cards-description {
width: 85%;
margin-bottom: 9%;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/* Banner do Meio */
.middle-banners {
background-color: #E0E0E0;
}
.middle-banners-wrapper {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 2%;
position: relative;
top: 8vh;
}
.middle-banner {
width: 30%;
display: block;
}
.middle-banner-image {
width: 100%
}
/* Responsividade */
@media screen and (min-width: 821px) {
.main-banner-mobile {
display: none;
}
}
@media screen and (max-width: 820px) {
.main-banner-desktop {
display: none;
}
.top-infocard-text {
width: 86%;
max-width: 100%;
margin: 68px 0 68px;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
font-weight: 500;
font-size: 28px;
line-height: 34px;
}
.top-infocard-figure {
width: 58%;
}
.top-cards {
display: flex;
flex-direction: column;
align-items: center;
grid-template-columns: 1fr;
}
.top-card {
width: 85%
}
.middle-banners-wrapper {
margin: 0px 2% 0;
width: 95%;
display: grid;
grid-template-columns: repeat(2, 1fr);
column-gap: 3vw;
row-gap: 3vh;
}
.middle-banner {
width: 100%;
}
.middle-banner-fig-03 {
grid-row-start: 2;
grid-column-start: 1;
grid-column-end: 3;
}
}