challenge-landing-page-gabr.../style.css

175 lines
2.8 KiB
CSS
Raw Normal View History

2022-10-10 22:54:03 +00:00
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
2022-10-10 23:50:15 +00:00
body{
font-family: 'Inter', sans-serif;
}
2022-10-11 14:29:40 +00:00
/* header */
2022-10-10 23:13:56 +00:00
2022-10-10 22:54:03 +00:00
header{
background-color: black;
display: flex;
align-items: center;
justify-content: center;
height: 101px;
2022-10-10 23:13:56 +00:00
}
/* Banner principal */
.top-banner-desktop{
width: 100%;
}
.top-banner-mobile{
display: none;
max-height: 598px;
object-fit: cover;
}
2022-10-10 23:50:15 +00:00
/* info section */
.info-section{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 73px 0 80px;
}
.info-section h2{
text-align: center;
font-weight: 400;
font-size: 32px;
line-height: 39px;
}
.info-section h1{
text-align: center;
font-weight: 500;
font-size: 48px;
line-height: 58px;
}
.info-section p{
font-weight: 400;
font-size: 16px;
line-height: 24px;
2022-10-11 00:21:57 +00:00
max-width: 54%;
2022-10-10 23:50:15 +00:00
padding: 28px 0 73px;
2022-10-11 00:21:57 +00:00
margin: 0 auto;
2022-10-10 23:50:15 +00:00
}
2022-10-11 14:29:40 +00:00
/* top cards */
.top-cards{
display: flex;
align-items: center;
justify-content: center;
padding: 74px 0;
gap: 20px;
}
.top-cards-box{
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: min(350px,90vw);
min-height: 288px;
padding: 26px;
gap: 30px;
}
.top-cards-box p{
text-align: center;
}
2022-10-10 23:50:15 +00:00
2022-10-11 15:17:57 +00:00
.middle-banner{
background-color: #E0E0E0;
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 39px;
padding: 0 72px;
justify-content: center;
position: relative;
}
.middle-banner img{
2022-10-11 21:17:41 +00:00
position: relative;
bottom: -62px;
2022-10-11 15:17:57 +00:00
max-width: 100%;
}
2022-10-11 21:17:41 +00:00
/* bottom cards */
.bottom-cards{
display: flex;
align-items: center;
justify-content: center;
padding: 191px 72px 108px;
gap: 16px;
}
.bottom-cards-box{
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.23);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: min(432px,90vw);
max-height: 332px;
padding: 35px 32px 65px 33px;
gap: 16px;
}
.bottom-cards-box p{
text-align: center;
font-size: 16px;
line-height: 24px;
}
2022-10-10 23:13:56 +00:00
/* Banner pincipal mobile */
@media screen and (max-width:768px) {
.top-banner-desktop{
display: none;
}
.top-banner-mobile{
display: unset;
width: 100%;
}
2022-10-11 00:21:57 +00:00
2022-10-11 14:29:40 +00:00
/* info section mobile */
2022-10-11 00:21:57 +00:00
.info-section h2{
max-width: unset;
font-size: 20px;
line-height: 24px;
}
.info-section h1{
font-size: 28px;
line-height: 34px;
}
.info-section p{
max-width: unset;
padding: 12px 28px 65px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
2022-10-11 14:29:40 +00:00
/* top card mobile */
.top-cards{
flex-direction: column;
}
2022-10-10 22:54:03 +00:00
}