From 39f56b170fa0c6e083397686e5c4a1f110a5c569 Mon Sep 17 00:00:00 2001 From: RedrockJS Date: Tue, 17 Jun 2025 14:10:51 +0300 Subject: [PATCH] fix: update license images --- src/shared/ui/modal/modal.module.scss | 4 +-- src/views/home/ui/license/license.tsx | 26 ++++++++++--------- src/views/home/ui/main/main.tsx | 4 +-- src/widgets/license-slider/styles.module.scss | 14 +++++++--- src/widgets/license-slider/ui.tsx | 10 +++---- 5 files changed, 32 insertions(+), 26 deletions(-) diff --git a/src/shared/ui/modal/modal.module.scss b/src/shared/ui/modal/modal.module.scss index 29462c9..5ec3945 100644 --- a/src/shared/ui/modal/modal.module.scss +++ b/src/shared/ui/modal/modal.module.scss @@ -10,6 +10,7 @@ align-items: center; background: rgba(0, 0, 0, 0.5); padding: 0; + animation: fadeIn ease 0.3s; @include iftablet { position: fixed; @@ -20,7 +21,6 @@ @include iflaptop { padding: 0 rem(48px); } - animation: fadeIn ease 0.3s; &_open { animation: fadeOut ease 0.3s; @@ -51,4 +51,4 @@ 100% { opacity: 0; } -} +} \ No newline at end of file diff --git a/src/views/home/ui/license/license.tsx b/src/views/home/ui/license/license.tsx index 027d945..766b366 100644 --- a/src/views/home/ui/license/license.tsx +++ b/src/views/home/ui/license/license.tsx @@ -3,6 +3,8 @@ import { Mark } from '@shared/ui'; import { LicenseForm, LicenseSlider } from '@/widgets'; import emptyPaper from '@public/svg/empty-paper.svg'; +import mcsLicense from '@public/images/license-mcs.jpg'; +import eacLicense from '@public/images/license-dtr-eac.png'; export default function License() { return ( @@ -20,21 +22,21 @@ const slides = [ { id: '0', name: '', - image: emptyPaper, + image: eacLicense, }, { id: '1', name: '', - image: emptyPaper, - }, - { - id: '2', - name: '', - image: emptyPaper, - }, - { - id: '3', - name: '', - image: emptyPaper, + image: mcsLicense, }, + // { + // id: '2', + // name: '', + // image: emptyPaper, + // }, + // { + // id: '3', + // name: '', + // image: emptyPaper, + // }, ]; diff --git a/src/views/home/ui/main/main.tsx b/src/views/home/ui/main/main.tsx index 620ebef..5b0b5be 100644 --- a/src/views/home/ui/main/main.tsx +++ b/src/views/home/ui/main/main.tsx @@ -1,15 +1,13 @@ import s from './main.module.scss'; import Image from 'next/image'; -import { Button } from '@shared/ui'; import { ConsultationOrder } from '@/entities/home/consultation-order'; +import { CallbackOrder } from '@/entities/home/callback-order'; import bgStart from '@public/images/bg-start-desktop.jpg'; import logo from '@public/images/dtr-logo.png'; import waIcon from '@public/svg/whatsapp.svg'; import emailIcon from '@public/svg/email-icon.svg'; -import callBtn from '@public/svg/phone-calling.svg'; -import { CallbackOrder } from '@/entities/home/callback-order'; export default function Main() { return ( diff --git a/src/widgets/license-slider/styles.module.scss b/src/widgets/license-slider/styles.module.scss index f7561c9..cf12c39 100644 --- a/src/widgets/license-slider/styles.module.scss +++ b/src/widgets/license-slider/styles.module.scss @@ -3,7 +3,7 @@ flex-direction: row; justify-content: space-between; margin-bottom: rem(40px); - padding: 0 rem(20px) 0; + padding: 0 rem(20px) 0!important; @include iftablet { padding: unset; @@ -15,6 +15,14 @@ } .Slide { - cursor: pointer; - width: 100%; + display: flex!important; + justify-content: center; + + .Image { + cursor: pointer; + width: auto; + height: rem(400px); + display: flex; + align-items: center; + } } \ No newline at end of file diff --git a/src/widgets/license-slider/ui.tsx b/src/widgets/license-slider/ui.tsx index 7c31feb..7615378 100644 --- a/src/widgets/license-slider/ui.tsx +++ b/src/widgets/license-slider/ui.tsx @@ -32,11 +32,11 @@ const swiperBreakpoints = { spaceBetween: 30, }, 1024: { - slidesPerView: 3, + slidesPerView: 2, spaceBetween: 30, }, 1440: { - slidesPerView: 3, + slidesPerView: 2, spaceBetween: 30, }, }; @@ -47,13 +47,11 @@ export default function Ui({ className, images }: LicenseSliderProps) { className={clsx(s.Slider, className)} modules={[Grid]} breakpoints={swiperBreakpoints} - // onSlideChange={() => console.log('slide change')} - // onSwiper={(swiper) => console.log(swiper)} > {images.map(({ id, name, image }) => ( - + - {name} + {name} ))}