feat: added facts
This commit is contained in:
@@ -24,9 +24,9 @@
|
||||
font-family: 'Gilroy';
|
||||
src: url('../fonts/Gilroy-RegularItalic.eot');
|
||||
src: local('Gilroy Regular Italic'), local('Gilroy-RegularItalic'),
|
||||
url('../fonts/Gilroy-RegularItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Gilroy-RegularItalic.woff') format('woff'),
|
||||
url('../fonts/Gilroy-RegularItalic.ttf') format('truetype');
|
||||
url('../fonts/Gilroy-RegularItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Gilroy-RegularItalic.woff') format('woff'),
|
||||
url('../fonts/Gilroy-RegularItalic.ttf') format('truetype');
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
@@ -108,3 +108,41 @@ img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
font-size: 55px;
|
||||
line-height: 122%;
|
||||
letter-spacing: 0.01em;
|
||||
color: $darkgrey;
|
||||
text-align: center;
|
||||
|
||||
& > span {
|
||||
color: $blue;
|
||||
}
|
||||
|
||||
@include laptop {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
@include tablet {
|
||||
font-size: 36px;
|
||||
}
|
||||
|
||||
@include mobile {
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 0;
|
||||
font-weight: 600;
|
||||
font-size: 23px;
|
||||
line-height: 127%;
|
||||
color: $grey;
|
||||
|
||||
@include mobile {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// colors
|
||||
|
||||
$black: #2d2d2d;
|
||||
$darkgrey: #4d4d4d;
|
||||
$grey: #878787;
|
||||
$lightgrey: #cacaca;
|
||||
$blue: #609eff;
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
.advantages {
|
||||
margin: 51px 0 116px;
|
||||
|
||||
@include tablet {
|
||||
margin: 15px 0 90px;
|
||||
}
|
||||
|
||||
& .container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
156
assets/scss/_l-facts.scss
Normal file
156
assets/scss/_l-facts.scss
Normal file
@@ -0,0 +1,156 @@
|
||||
.facts {
|
||||
margin: 116px 0 100px;
|
||||
|
||||
@include tablet {
|
||||
margin: 90px 0 77px;
|
||||
}
|
||||
|
||||
& .container {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&__title {
|
||||
max-width: 702px;
|
||||
margin: 21px auto 27px;
|
||||
}
|
||||
|
||||
&__figure {
|
||||
position: absolute;
|
||||
top: 664px;
|
||||
right: 15px;
|
||||
left: 15px;
|
||||
border-radius: 80px 12px;
|
||||
overflow: hidden;
|
||||
|
||||
@include desktop {
|
||||
position: static;
|
||||
margin: 0 0 33px;
|
||||
border-radius: 35px 10px;
|
||||
}
|
||||
|
||||
&-image {
|
||||
display: block;
|
||||
max-height: 546px;
|
||||
max-width: none;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
&__slider {
|
||||
& .swiper {
|
||||
overflow: visible;
|
||||
|
||||
@include laptop {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&-wrapper {
|
||||
position: static;
|
||||
flex-wrap: wrap;
|
||||
|
||||
@media screen and (min-width: 992.1px) {
|
||||
gap: 36px 42px;
|
||||
}
|
||||
|
||||
@include laptop {
|
||||
position: relative;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
&-slide {
|
||||
position: static;
|
||||
height: auto;
|
||||
|
||||
@media screen and (min-width: 992.1px) {
|
||||
flex: 0 0 calc(100% / 3 - 42px / 3 * 2);
|
||||
}
|
||||
|
||||
@include laptop {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&:nth-child(-n + 3) {
|
||||
margin-bottom: 590px;
|
||||
|
||||
@include desktop {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__slide {
|
||||
height: 100%;
|
||||
padding: 24px 36px 34px;
|
||||
box-sizing: border-box;
|
||||
border-radius: 22px 40px;
|
||||
background-color: $white;
|
||||
|
||||
@include desktop {
|
||||
padding: 24px 20px 36px;
|
||||
}
|
||||
|
||||
@include laptop {
|
||||
padding: 24px 14px 36px;
|
||||
}
|
||||
|
||||
&-count {
|
||||
margin: 0 0 6px;
|
||||
font-weight: 700;
|
||||
font-size: 59px;
|
||||
line-height: 127%;
|
||||
letter-spacing: 0.05em;
|
||||
color: $white;
|
||||
-webkit-text-stroke: 1px $blue;
|
||||
|
||||
@include laptop {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@include mobile {
|
||||
font-size: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
&-title {
|
||||
margin: 0 0 9px;
|
||||
|
||||
@include laptop {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
&-text {
|
||||
margin: 0;
|
||||
font-weight: 400;
|
||||
font-size: 17px;
|
||||
line-height: 146%;
|
||||
color: $grey;
|
||||
|
||||
& > b {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@include laptop {
|
||||
font-size: 15px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__slider-controls {
|
||||
display: none;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
margin: 35px 0 0 ;
|
||||
|
||||
@include laptop {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -60,8 +60,6 @@
|
||||
&:active {
|
||||
color: $darkblue;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
&--dark {
|
||||
@@ -81,7 +79,8 @@
|
||||
filter: brightness(10);
|
||||
}
|
||||
|
||||
&:hover::before, &:active::before {
|
||||
&:hover::before,
|
||||
&:active::before {
|
||||
filter: brightness(1);
|
||||
}
|
||||
}
|
||||
@@ -106,4 +105,30 @@
|
||||
background-color: $darkblue;
|
||||
}
|
||||
}
|
||||
|
||||
&--prev,
|
||||
&--next {
|
||||
height: 60px;
|
||||
width: 60px;
|
||||
border: none;
|
||||
border-radius: 30px;
|
||||
background: url(../img/icons/prev.svg) center no-repeat;
|
||||
background-color: $blue;
|
||||
transition: background-color ease-in-out 0.1s;
|
||||
cursor: pointer;
|
||||
|
||||
@include laptop {
|
||||
height: 42px;
|
||||
width: 42px;
|
||||
background-size: 8px;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: $darkblue;
|
||||
}
|
||||
}
|
||||
|
||||
&--next {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,3 +19,4 @@
|
||||
@import './l-footer';
|
||||
@import './l-first-screen';
|
||||
@import './l-advantages';
|
||||
@import './l-facts';
|
||||
|
||||
Reference in New Issue
Block a user