feat: added first screen

This commit is contained in:
Aliaksei Karzhou
2024-06-30 02:44:42 +03:00
parent 086f0099ba
commit 3de42548c2
11 changed files with 612 additions and 2 deletions

View File

@@ -0,0 +1,144 @@
.first-screen {
& .container {
@include desktop {
padding: 0;
}
}
&__wrapper {
padding: 43px 26px 55px;
border-radius: 80px 12px;
background-color: $blue;
@include laptop {
border-radius: 40px 7px;
}
& > * {
max-width: 996px;
margin: 0 auto;
}
& > .tag {
@include mobile {
margin: 0 32px;
}
}
}
&__title {
margin-bottom: 28px;
margin-top: 13px;
font-weight: 500;
font-size: 80px;
line-height: 114%;
letter-spacing: 0.01em;
text-align: center;
color: $white;
@include desktop {
font-size: 72px;
}
@include laptop {
font-size: 56px;
}
@include tablet {
margin-bottom: 23px;
font-size: 39px;
}
& > b {
font-weight: 700;
}
}
&__advantages {
display: flex;
margin-bottom: 34px;
@include tablet {
flex-direction: column;
gap: 24px;
padding: 0 32px;
margin-bottom: 24px;
}
&-item {
flex: 1 1 auto;
display: flex;
flex-direction: column;
gap: 16px;
padding: 0 60px;
box-sizing: border-box;
border-right: 1px solid rgba($color: $white, $alpha: 0.2);
@include laptop {
gap: 10px;
padding: 0 32px;
}
@include tablet {
padding: 0;
border: none;
}
&:last-child {
border: none;
}
&-figure {
display: flex;
justify-content: center;
align-items: flex-start;
height: 60px;
@include laptop {
height: 50px;
}
&-image {
display: block;
max-width: 100%;
height: auto;
@include laptop {
max-height: 48px;
}
}
}
&-text {
font-weight: 500;
font-size: 21px;
line-height: 138%;
text-align: center;
color: #fff;
@include laptop {
font-size: 18px;
line-height: 161%;
}
& > b {
font-weight: 700;
}
}
}
}
&__buttons {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 20px 32px;
& > .button {
@include tablet {
width: 100%;
}
}
}
}

View File

@@ -1,9 +1,91 @@
.button {
box-sizing: border-box;
border-radius: 100px;
background-color: $white;
background-color: rgba($color: $white, $alpha: 0);
transition: all ease-in-out 0.1s;
cursor: pointer;
&--lg {
display: flex;
align-items: center;
gap: 24px;
padding: 24px 58px 26px;
border: 1px solid rgba(255, 255, 255, 0.3);
font-weight: 600;
font-size: 22px;
line-height: 140%;
text-align: center;
@include tablet {
justify-content: center;
gap: 20px;
max-width: 480px;
padding: 21px 30px;
font-size: 18px;
}
&::before {
transition: all ease-in-out 0.1s;
}
&--consult {
&::before {
content: '';
display: inline-block;
height: 22px;
width: 22px;
background: url(../img/icons/consultation.svg) center no-repeat;
}
}
&--coin {
&::before {
content: '';
display: inline-block;
height: 22px;
width: 22px;
background: url(../img/icons/ruble.svg) center no-repeat;
}
}
}
&--light {
color: $black;
background-color: $white;
&:hover {
color: $blue;
}
&:active {
color: $darkblue;
}
}
&--dark {
color: $white;
border-color: rgba($color: $white, $alpha: 0.3);
&:hover {
color: $blue;
background-color: $white;
}
&:active {
color: $darkblue;
}
&::before {
filter: brightness(10);
}
&:hover::before, &:active::before {
filter: brightness(1);
}
}
&--order {
display: inline-block;
padding: 14px 29px;

38
assets/scss/_m-tag.scss Normal file
View File

@@ -0,0 +1,38 @@
.tag {
display: flex;
align-items: center;
gap: 22px;
width: fit-content;
padding: 19px 46px;
margin: 0 auto;
font-weight: 400;
font-size: 18px;
line-height: 122%;
color: $grey;
border: 1px solid rgba($color: $grey, $alpha: 0.2);
border-radius: 240px;
@include tablet {
gap: 10px;
padding: 13px 26px;
font-size: 14px;
}
&::before {
content: '';
flex: 0 0 auto;
width: 7px;
height: 7px;
border-radius: 7px;
background-color: $blue;
}
&--light {
color: $white;
border-color: rgba($color: $white, $alpha: 0.2);
&::before {
background-color: white;
}
}
}

View File

@@ -10,9 +10,11 @@
@import './m-logo';
@import './m-social-link';
@import './m-button';
@import './m-tag';
// Layouts
@import './l-header';
@import './l-main';
@import './l-footer';
@import './l-first-screen';