challenge-landing-page/styles/style.css

259 lines
4.3 KiB
CSS
Raw Normal View History

2022-10-12 03:24:44 +00:00
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');
2022-10-11 23:42:16 +00:00
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
2022-10-12 03:24:44 +00:00
body {
font-family: 'Inter', sans-serif;
color: #000000;
}
2022-10-11 23:42:16 +00:00
.page-header {
background-color: black;
display: flex;
justify-content: center;
align-items: center;
padding: 28px 0;
}
.header-logo {
display: block;
width: 100%;
}
.main-banner {
2022-10-12 03:24:44 +00:00
display: block;
2022-10-11 23:42:16 +00:00
width: 100%;
}
2022-10-12 03:24:44 +00:00
.top-infocard {
display: flex;
flex-direction: column;
align-items: center;
}
.top-infocard-text {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
max-width: 766px;
margin: 72px 0 178px;
}
.top-infocard-subtitle {
text-transform: uppercase;
font-size: 32px;
line-height: 39px;
}
.top-inforcard-title {
text-transform: uppercase;
font-family: 'Inter';
font-weight: 500;
font-size: 48px;
line-height: 58px;
margin-bottom: 24px;
}
.top-infocard-description {
font-size: 16px;
line-height: 24px;
margin-bottom: 72px;
}
.top-infocard-img {
display: block;
width: 55%;
}
2022-10-13 03:54:38 +00:00
.top-cards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
padding: 80px;
background-color: #fff;
justify-content: center;
}
2022-10-12 03:24:44 +00:00
2022-10-13 03:54:38 +00:00
.top-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 26px;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
2022-10-12 03:24:44 +00:00
2022-10-13 03:54:38 +00:00
.top-card-img {
display: block;
margin-bottom: 26px;
}
.top-card-description {
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.mid-banners {
padding-top: 62px;
height: 530px;
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 40px;
justify-content: center;
background: #E0E0E0;
}
.mid-infocards {
margin-top: 191px;
display: grid;
grid-template-columns: repeat(4, max-content);
gap: 16px;
justify-content: center;
background-color: #FFFFFF;
}
.mid-infocard {
display: flex;
flex-direction: column;
align-items: center;
padding: 32px;
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.mid-infocard-img {
margin-top: 59px;
display: flex;
}
.mid-infocard-description {
width: 366px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.botton-infocard {
margin: 108px;
display: flex;
flex-direction: column;
align-items: center;
}
.botton-infocard-title {
font-size: 32px;
line-height: 39px;
text-align: center;
}
.botton-infocard-subtitle {
width: 550px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.botton-infocard-banner-desktop {
max-width: 100%;
margin: 50px 280px 0;
}
footer {
align-items: center;
justify-content: center;
display: flex;
height: 128px;
background-color: black;
color: gray;
}
.footer-social-media {
text-align: center;
margin: 38px;
}
.social-media-links {
margin-bottom: 16px;
}
@media screen and (max-width: 425px) {
2022-10-12 03:24:44 +00:00
.main-banner-desktop {
display: none;
}
2022-10-13 03:54:38 +00:00
.botton-infocard-banner-desktop{
display: none;
}
2022-10-12 03:24:44 +00:00
.top-infocard-text {
2022-10-13 03:54:38 +00:00
margin: 72px 7.5% 65px;
}
.top-infocard-img {
max-width: 238px;
width: 100%;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
display: flex;
align-items: center;
text-align: center;
}
.top-inforcard-title {
margin-bottom: 12px;
font-weight: 500;
font-size: 28px;
line-height: 34px;
text-align: center;
}
.top-infocard-description{
text-align: center;
max-width: 357px;
margin-bottom: 64px;
2022-10-12 03:24:44 +00:00
}
2022-10-13 03:54:38 +00:00
.card-1{
order: 2;
}
.card-2 {
order: 3;
}
2022-10-12 03:24:44 +00:00
}
2022-10-13 03:54:38 +00:00
@media screen and (min-width: 426px) {
2022-10-12 03:24:44 +00:00
.main-banner-mobile {
display: none;
}
2022-10-13 03:54:38 +00:00
}
@media screen and (max-width: 768px) {
.top-cards {
grid-template-columns: 1fr;
padding: 90px 32px 80px 32px;
}
.mid-infocards {
grid-template-columns: 1fr;
padding: 80px 23px 98px 23px;
}
}
@media screen and (min-width: 1024px) {
.botton-infocard-banner-mobile {
display: none;
}
2022-10-12 03:24:44 +00:00
}