forked from M3-Academy/challenge-landing-page
161 lines
2.9 KiB
CSS
161 lines
2.9 KiB
CSS
/* primeiro background */
|
|
.background-main figure img {
|
|
width: 100%;
|
|
height: 700px;
|
|
top: 0;
|
|
max-height: 700px;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
/* primeira seção com imagem e texto */
|
|
.first-section {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
margin-top: 73px;
|
|
position: relative;
|
|
}
|
|
|
|
.first-section h2 {
|
|
font-weight: 400;
|
|
font-size: 32px;
|
|
line-height: 39px;
|
|
text-transform: uppercase;
|
|
color: #000000;
|
|
}
|
|
|
|
.first-section h1 {
|
|
font-weight: 500;
|
|
font-size: 48px;
|
|
line-height: 58px;
|
|
text-transform: uppercase;
|
|
color: #000000;
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.first-section figure {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.first-section figcaption {
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
color: #000000;
|
|
max-width: 766px;
|
|
margin-bottom: 73px;
|
|
|
|
}
|
|
|
|
/* primeiros cards */
|
|
|
|
.content-card-container {
|
|
max-width: 1092px;
|
|
width: 100%;
|
|
height: 350px;
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 21px;
|
|
position: relative;
|
|
margin: auto;
|
|
}
|
|
|
|
.first-content-card {
|
|
margin-top: 179px;
|
|
margin-bottom: 62px;
|
|
width: 100%;
|
|
}
|
|
|
|
.first-card figure, .second-card figure, .three-card figure{
|
|
width: 100%;
|
|
max-width: 350px;
|
|
height: 287.68px;
|
|
background: #FFFFFF;
|
|
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
margin: 0px auto;
|
|
padding: 27px;
|
|
}
|
|
|
|
.first-card figcaption, .second-card figcaption, .three-card figcaption {
|
|
max-width: 299px;
|
|
width: 100%;
|
|
height: auto;
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 1024px) {
|
|
.background-main figure img {
|
|
height: 100%;
|
|
min-height: 598px;
|
|
}
|
|
|
|
.first-section {
|
|
padding: 0 28px;
|
|
}
|
|
|
|
.first-section h2 {
|
|
font-size: 20px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.first-section h1 {
|
|
font-size: 28px;
|
|
line-height: 34px;
|
|
text-align: center;
|
|
}
|
|
|
|
.first-section figure img {
|
|
width: 100%;
|
|
max-width: 239px;
|
|
}
|
|
|
|
.first-section figcaption {
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
.first-content-card {
|
|
margin-top: 91px;
|
|
width: 100%;
|
|
max-width: 1092px;
|
|
height: 966px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.content-card-container {
|
|
width: 100%;
|
|
height: 894px;
|
|
grid-template-columns: repeat(1, 1fr);
|
|
justify-content: space-around;
|
|
margin: 0 30px;
|
|
gap: 24px;
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (min-width: 2500px) {
|
|
.background-main figure img {
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
object-fit: cover;
|
|
position: relative;
|
|
|
|
}
|
|
} |