From 0bf1c1071ab3359423cf90e64fab8301c418a687 Mon Sep 17 00:00:00 2001 From: Lanskikh Date: Wed, 29 Jan 2025 19:05:22 +0500 Subject: [PATCH] upd --- src/app/globals.css | 4 + src/components/pages/MainPage/Clients.tsx | 2 +- .../MainPage/Presentation/Presentation.tsx | 4 +- .../MainPage/Presentation/PresentationLG.tsx | 2 +- .../MainPage/Presentation/PresentationMD.tsx | 517 ++++++++++-------- .../MainPage/Presentation/PresentationMd2.tsx | 333 +++++++++++ .../MainPage/Presentation/VideoLayer.tsx | 12 +- src/consts/presentation/videos.ts | 8 + src/hooks/useScroll.ts | 15 +- src/ui/SeasonCard.tsx | 2 +- 10 files changed, 661 insertions(+), 238 deletions(-) create mode 100644 src/components/pages/MainPage/Presentation/PresentationMd2.tsx create mode 100644 src/consts/presentation/videos.ts diff --git a/src/app/globals.css b/src/app/globals.css index f085611b..e8006b7d 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -145,6 +145,10 @@ body { @apply sm:text-[clamp(12px,12px+(100vw-360px)/1560*2,14px)] text-xs leading-none; } +@utility text-gradient { + @apply bg-gradient-to-r from-[#798FFF] to-[#D375FF] bg-clip-text; +} + @keyframes infinite-scroll { 0% { transform: translateX(0); diff --git a/src/components/pages/MainPage/Clients.tsx b/src/components/pages/MainPage/Clients.tsx index f4bee36c..8657a364 100644 --- a/src/components/pages/MainPage/Clients.tsx +++ b/src/components/pages/MainPage/Clients.tsx @@ -17,7 +17,7 @@ export function Clients() { return (
- + <Title className="mx-auto text-center max-w-2/3"> <span className="text-gradient"> {companies !== undefined && getCompaniesCount(companies.length)} </span>{' '} diff --git a/src/components/pages/MainPage/Presentation/Presentation.tsx b/src/components/pages/MainPage/Presentation/Presentation.tsx index fe6303ce..52814e00 100644 --- a/src/components/pages/MainPage/Presentation/Presentation.tsx +++ b/src/components/pages/MainPage/Presentation/Presentation.tsx @@ -1,11 +1,11 @@ import { PresentationLG } from './PresentationLG'; -import { PresentationMD } from './PresentationMD'; +import { PresentationMd2 } from './PresentationMd2'; export function Presentation() { return ( <> <PresentationLG /> - <PresentationMD /> + <PresentationMd2 /> </> ); } diff --git a/src/components/pages/MainPage/Presentation/PresentationLG.tsx b/src/components/pages/MainPage/Presentation/PresentationLG.tsx index b858feab..5aa4243c 100644 --- a/src/components/pages/MainPage/Presentation/PresentationLG.tsx +++ b/src/components/pages/MainPage/Presentation/PresentationLG.tsx @@ -38,7 +38,7 @@ export function PresentationLG() { и увеличивают темпы продаж квартир в жилом комплексе
-
+
{slide === 5 && } diff --git a/src/components/pages/MainPage/Presentation/PresentationMD.tsx b/src/components/pages/MainPage/Presentation/PresentationMD.tsx index 54c11f50..cbb51cc2 100644 --- a/src/components/pages/MainPage/Presentation/PresentationMD.tsx +++ b/src/components/pages/MainPage/Presentation/PresentationMD.tsx @@ -1,10 +1,14 @@ 'use client'; import { EmotionalIcon } from '@/components/icons/EmotionalIcon'; +import { Flat1 } from '@/components/icons/Flat1'; +import { Flat2 } from '@/components/icons/Flat2'; import { KidsIcon } from '@/components/icons/KidsIcon'; import { LocationIcon } from '@/components/icons/LocationIcon'; +import { MailIcon } from '@/components/icons/MailIcon'; import { MetroIcon } from '@/components/icons/MetroIcon'; import { NatureIcon } from '@/components/icons/NatureIcon'; +import { PhoneIcon } from '@/components/icons/PhoneIcon'; import { SafetyIcon } from '@/components/icons/SafetyIcon'; import { ShopIcon } from '@/components/icons/ShopIcon'; import { SportIcon } from '@/components/icons/SportIcon'; @@ -12,235 +16,318 @@ import { StudyIcon } from '@/components/icons/StudyIcon'; import { ClassNameWrapper } from '@/hocs/ClassNameWrapper'; import { SeasonCard } from '@/ui/SeasonCard'; import { SlideBadge } from '@/ui/SlideBadge'; +import { Title } from '@/ui/Title'; import Image from 'next/image'; export function PresentationMD() { return ( -
-
-