practice-time-landing-page-.../assets/styles/main.css

148 lines
2.6 KiB
CSS
Raw Normal View History

2022-10-09 17:37:29 +00:00
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');
2022-10-09 16:09:50 +00:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
2022-10-09 17:37:29 +00:00
body {
font-family: 'Inter', sans-serif;
color: #000;
}
/* Cria header desktop e mobile */
2022-10-09 16:09:50 +00:00
.page-header {
display: flex;
justify-content: center;
padding: 28px 0;
background-color: #000;
}
.header-logo {
display: block;
}
2022-10-09 17:37:29 +00:00
/* Adiciona banner princial */
.main-banner {
width: 100%;
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
display: none;
}
}
@media screen and (min-width: 414px) {
.main-banner-mobile {
display: none;
}
2022-10-09 17:37:29 +00:00
}
2022-10-09 18:15:38 +00:00
/* Cria top infocard desktop e mobile */
2022-10-09 17:37:29 +00:00
.top-infocard {
display: flex;
align-items: center;
justify-content: center;
padding: 80px 0 96px;
}
.top-infocard-text {
max-width: 766px;
margin-right: 124px;
}
.top-infocard-subtitle {
font-weight: 400;
font-size: 32px;
text-transform: uppercase;
}
.top-infocard-title {
font-weight: 500;
font-size: 48px;
text-transform: uppercase;
margin-bottom: 24px;
}
.top-infocard-description {
font-size: 16px;
line-height: 24px;
}
@media screen and (max-width: 992px) {
.top-infocard {
flex-direction: column;
padding: 84px 26px 158px;
}
.top-infocard-text {
margin: 0 0 68px;
}
.top-infocard-subtitle {
font-size: 20px;
}
.top-infocard-title {
margin-bottom: 20px;
font-size: 28px;
}
.top-infocard-image {
width: 100%;
max-width: 240px;
}
}
@media screen and (min-width: 992px) and (max-width: 1280px) {
.top-infocard-text {
max-width: 520px;
margin-right: 70px;
}
2022-10-09 18:15:38 +00:00
}
/* Cria cards topo desktop e mobile*/
.top-cards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
padding: 74px 0;
background-color: #f0f0f0;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 26px 26px 34px;
background-color: #fff;
box-shadow: 8px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image {
display: block;
margin-bottom: 26px;
}
.top-card-description {
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
@media screen and (max-width: 768px) {
.top-cards {
grid-template-columns: 1fr;
padding: 36px 26px;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards {
grid-template-columns: repeat(2, max-content);
}
2022-10-09 16:09:50 +00:00
}