feat: added facts

This commit is contained in:
Aliaksei Karzhou committed 2024-06-30 16:26:01 +03:00
1 parent aa44dd8117
commit d5fee8eb76
14 files changed
+681 -8

No files matched your search

+226
View File
@@ -83,6 +83,47 @@ img {
height: auto;
}
h2 {
margin: 0;
font-weight: 700;
font-size: 55px;
line-height: 122%;
letter-spacing: 0.01em;
color: #4d4d4d;
text-align: center;
}
h2 > span {
color: #609eff;
}
@media (max-width: 992px) {
h2 {
font-size: 40px;
}
}
@media (max-width: 768px) {
h2 {
font-size: 36px;
}
}
@media (max-width: 576px) {
h2 {
font-size: 28px;
}
}
h3 {
margin: 0;
font-weight: 600;
font-size: 23px;
line-height: 127%;
color: #878787;
}
@media (max-width: 576px) {
h3 {
font-size: 20px;
}
}
.container {
max-width: 1236px;
width: 100%;
@@ -300,6 +341,29 @@ img {
border-color: #3081ff;
background-color: #3081ff;
}
.button--prev, .button--next {
height: 60px;
width: 60px;
border: none;
border-radius: 30px;
background: url(../img/icons/prev.svg) center no-repeat;
background-color: #609eff;
transition: background-color ease-in-out 0.1s;
cursor: pointer;
}
@media (max-width: 992px) {
.button--prev, .button--next {
height: 42px;
width: 42px;
background-size: 8px;
}
}
.button--prev:active, .button--next:active {
background-color: #3081ff;
}
.button--next {
transform: rotate(180deg);
}
.tag {
display: flex;
@@ -577,6 +641,11 @@ img {
.advantages {
margin: 51px 0 116px;
}
@media (max-width: 768px) {
.advantages {
margin: 15px 0 90px;
}
}
.advantages .container {
display: flex;
flex-wrap: wrap;
@@ -709,4 +778,161 @@ img {
.advantages__item-counter {
font-size: 120px;
}
}
.facts {
margin: 116px 0 100px;
}
@media (max-width: 768px) {
.facts {
margin: 90px 0 77px;
}
}
.facts .container {
position: relative;
}
.facts__title {
max-width: 702px;
margin: 21px auto 27px;
}
.facts__figure {
position: absolute;
top: 664px;
right: 15px;
left: 15px;
border-radius: 80px 12px;
overflow: hidden;
}
@media (max-width: 1240px) {
.facts__figure {
position: static;
margin: 0 0 33px;
border-radius: 35px 10px;
}
}
.facts__figure-image {
display: block;
max-height: 546px;
max-width: none;
width: 100%;
height: auto;
-o-object-fit: cover;
object-fit: cover;
}
.facts__slider .swiper {
overflow: visible;
}
@media (max-width: 992px) {
.facts__slider .swiper {
overflow: hidden;
}
}
.facts__slider .swiper-wrapper {
position: static;
flex-wrap: wrap;
}
@media screen and (min-width: 992.1px) {
.facts__slider .swiper-wrapper {
gap: 36px 42px;
}
}
@media (max-width: 992px) {
.facts__slider .swiper-wrapper {
position: relative;
flex-wrap: nowrap;
}
}
.facts__slider .swiper-slide {
position: static;
height: auto;
}
@media screen and (min-width: 992.1px) {
.facts__slider .swiper-slide {
flex: 0 0 calc(33.3333333333% - 28px);
}
}
@media (max-width: 992px) {
.facts__slider .swiper-slide {
position: relative;
}
}
.facts__slider .swiper-slide:nth-child(-n+3) {
margin-bottom: 590px;
}
@media (max-width: 1240px) {
.facts__slider .swiper-slide:nth-child(-n+3) {
margin: 0;
}
}
.facts__slide {
height: 100%;
padding: 24px 36px 34px;
box-sizing: border-box;
border-radius: 22px 40px;
background-color: #ffffff;
}
@media (max-width: 1240px) {
.facts__slide {
padding: 24px 20px 36px;
}
}
@media (max-width: 992px) {
.facts__slide {
padding: 24px 14px 36px;
}
}
.facts__slide-count {
margin: 0 0 6px;
font-weight: 700;
font-size: 59px;
line-height: 127%;
letter-spacing: 0.05em;
color: #ffffff;
-webkit-text-stroke: 1px #609eff;
}
@media (max-width: 992px) {
.facts__slide-count {
text-align: center;
}
}
@media (max-width: 576px) {
.facts__slide-count {
font-size: 50px;
}
}
.facts__slide-title {
margin: 0 0 9px;
}
@media (max-width: 992px) {
.facts__slide-title {
text-align: center;
}
}
.facts__slide-text {
margin: 0;
font-weight: 400;
font-size: 17px;
line-height: 146%;
color: #878787;
}
.facts__slide-text > b {
font-weight: 600;
}
@media (max-width: 992px) {
.facts__slide-text {
font-size: 15px;
text-align: center;
}
}
.facts__slider-controls {
display: none;
justify-content: center;
align-items: center;
gap: 24px;
margin: 35px 0 0;
}
@media (max-width: 992px) {
.facts__slider-controls {
display: flex;
}
}
+13
View File
@@ -0,0 +1,13 @@
/**
* Swiper 11.1.4
* Most modern mobile touch slider and framework with hardware accelerated transitions
* https://swiperjs.com
*
* Copyright 2014-2024 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: May 30, 2024
*/
@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, 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');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-cLine truncated
Binary file not shown.

After

Width:  |  Height:  |  Size: 551 KiB

+3
View File
@@ -0,0 +1,3 @@
<svg width="10" height="18" viewBox="0 0 10 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.15895 17.9517C9.50823 17.8241 9.7676 17.5796 9.91976 17.2358C9.97855 17.1011 9.99584 16.9983 9.99584 16.7608C9.99584 16.1973 10.269 16.5163 6.38892 12.5361L2.94455 8.99891L6.38892 5.46175C10.2656 1.48155 9.99584 1.80053 9.99584 1.23699C9.9993 0.985351 9.982 0.903833 9.90938 0.740797C9.78143 0.464345 9.60506 0.2765 9.35261 0.138274C9.16587 0.0354905 9.09324 0.014225 8.84079 0.00359223C8.59872 -0.00704052 8.50881 0.00359226 8.33935 0.0673889C8.13878 0.145363 8.00737 0.272956 4.16529 4.20708C-0.316547 8.79689 0.00506761 8.42475 0.00506766 8.99891C0.00506771 9.57308 -0.316547 9.20094 4.1653 13.7907C7.96241 17.6788 8.13878 17.856 8.33244 17.9269C8.56414 18.012 8.95838 18.0261 9.15895 17.9517Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 828 B

+1
View File
@@ -0,0 +1 @@
import './sliders.js';
+47
View File
@@ -0,0 +1,47 @@
let factsSwiper = null;
let init = false;
function swiperMode() {
let mobile = window.matchMedia('(min-width: 0px) and (max-width: 992px)');
if (mobile.matches) {
if (!init) {
init = true;
factsSwiper = new Swiper('.facts .swiper', {
loop: true,
slidesPerView: 1,
spaceBetween: 35,
breakpoints: {
320: {
slidesPerView: 1.2,
},
480: {
slidesPerView: 1.4,
},
576: {
slidesPerView: 2,
},
700: {
slidesPerView: 2.4,
},
},
navigation: {
nextEl: '.facts .button--next',
prevEl: '.facts .button--prev',
},
});
}
} else {
if (factsSwiper !== null) factsSwiper.destroy();
init = false;
}
}
window.addEventListener('load', function () {
swiperMode();
});
window.addEventListener('resize', function () {
swiperMode();
});
+14
View File
@@ -0,0 +1,14 @@
/**
* Swiper 11.1.4
* Most modern mobile touch slider and framework with hardware accelerated transitions
* https://swiperjs.com
*
* Copyright 2014-2024 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: May 30, 2024
*/
var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s,a){void 0===s&&(s={}),void 0===a&&(a={}),Object.keys(a).forEach((i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}function n(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function l(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function o(){return Date.now()}function d(e,t){void 0===t&&(t="x");const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let a=1;a<arguments.length;a+=1){const i=a<0||arguments.length<=a?void 0:arguments[a];if(null!=i&&(s=i,!("undefined"!=typeof window&&void 0!==window.HTMLElement?s instanceof HTMLElement:s&&(1===s.nodeType||11===s.nodeType)))){const s=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,a=s.length;t<a;t+=1){const a=s[t],r=Object.getOwnPropertyDescriptor(i,a);void 0!==r&&r.enumerable&&(c(e[a])&&c(i[a])?i[a].__swiper__?e[a]=i[a]:p(e[a],i[a]):!c(e[a])&&c(i[a])?(e[a]={},i[a].__swiper__?e[a]=i[a]:p(e[a],i[a])):e[a]=i[a])}}}var s;return e}function u(e,t,s){e.style.setProperty(t,s)}function m(e){let{swiper:t,targetPosition:s,side:a}=e;const i=r(),n=-t.translate;let l,o=null;const d=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const c=s>n?"next":"prev",p=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{l=(new Date).getTime(),null===o&&(o=l);const e=Math.max(Math.min((l-o)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=n+r*(s-n);if(p(c,s)&&(c=s),t.wrapperEl.scrollTo({[a]:c}),p(c,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[a]:c})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(u)};u()}function h(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function f(e,t){return void 0===t&&(t=""),[...e.children].filter((e=>e.matches(t)))}function g(e){try{return void console.warn(e)}catch(e){}}function v(e,t){void 0===t&&(t=[]);const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:n(t)),s}function w(e){const t=r(),s=a(),i=e.getBoundingClientRect(),n=s.body,l=e.clientTop||n.clientTop||0,o=e.clientLeft||n.clientLeft||0,d=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}function b(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function y(e){let t,s=e;if(s){for(t=0;null!==(s=s.previousSibling);)1===s.nodeType&&(t+=1);return t}}function E(e,t){const s=[];let a=e.parentElement;for(;a;)t?a.matches(t)&&s.push(a):s.push(a),a=a.parentElement;return s}function x(e,t){t&&e.addEventListener("transitionend",(function s(a){a.target===e&&(t.call(e,a),e.removeEventListener("transitionend",s))}))}function S(e,t,s){const a=r(Line truncated
//# sourceMappingURL=swiper-bundle.min.js.map
+41 -3
View File
@@ -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
View File
@@ -1,6 +1,7 @@
// colors
$black: #2d2d2d;
$darkgrey: #4d4d4d;
$grey: #878787;
$lightgrey: #cacaca;
$blue: #609eff;
+4
View File
@@ -1,6 +1,10 @@
.advantages {
margin: 51px 0 116px;
@include tablet {
margin: 15px 0 90px;
}
& .container {
display: flex;
flex-wrap: wrap;
+156
View 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;
}
}
}
+28 -3
View File
@@ -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);
}
}
+1
View File
@@ -19,3 +19,4 @@
@import './l-footer';
@import './l-first-screen';
@import './l-advantages';
@import './l-facts';