diff --git a/package.json b/package.json index ab12438..39aa361 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "react-hook-form": "^7.50.1", "react-image": "^4.1.0", "react-imask": "^7.5.0", + "swiper": "^11.0.7", "valtio": "^1.13.0", "zod": "^3.22.4" }, diff --git a/public/cars.PNG b/public/cars.PNG new file mode 100644 index 0000000..8a5a189 Binary files /dev/null and b/public/cars.PNG differ diff --git a/public/hands.PNG b/public/hands.PNG new file mode 100644 index 0000000..86d81f6 Binary files /dev/null and b/public/hands.PNG differ diff --git a/public/sto.PNG b/public/sto.PNG new file mode 100644 index 0000000..1ea0a99 Binary files /dev/null and b/public/sto.PNG differ diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 4648361..25c803e 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -2,28 +2,89 @@ import {Button, dropdownSection} from "@nextui-org/react"; import ChevronBannerIcon from "@/../public/banner_arr_btn.svg.svg" import {Card, CardHeader, Image} from "@nextui-org/react"; import Link from "next/link"; -import NextImage from "next/image"; +import {Swiper, SwiperSlide} from "swiper/react"; +import {Pagination, Navigation, Autoplay} from "swiper/modules"; +import "swiper/css" +import 'swiper/css/navigation'; +import 'swiper/css/pagination'; +import "swiper/css/autoplay"; const Hero = () => { return ( -
-
-
-

Оформите заказ - на сумму от 5000₽

- И получите бесплатную доставку + - Перейти к покупке - - + autoplay={ + { + delay: 5000, + disableOnInteraction: false + } + } + navigation={ + { - *Срок действия акции ограничен -
+ } + } + pagination={{ clickable: true }} -
-
+ > + +
+ +
+
+

Моторные масла для дизельных двигателей

+ Грузового транспорта и спецтехники + + + Купить + + +
+ +
+
+
+ +
+ +
+
+

Начать бизнес по продажам качественного моторного масла

+ -ЛЕГКО + + Получить предложение о партнерстве + + +
+ +
+
+
+ +
+ +
+
+

Приглашаем к сотрудничеству СТО и автосервисы

+ Поставляем масло RELYNOLLI ® в партнерские СТО на льготных условиях + + + Узнать больше + + + +
+ +
+
+
+ ) } diff --git a/yarn.lock b/yarn.lock index 1c9d28b..4a5eca9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5963,6 +5963,11 @@ svgo@^3.0.2: csso "^5.0.5" picocolors "^1.0.0" +swiper@^11.0.7: + version "11.0.7" + resolved "https://registry.yarnpkg.com/swiper/-/swiper-11.0.7.tgz#fe51bb64546c2c21a1ec6914e7764af953443ded" + integrity sha512-cDfglW1B6uSmB6eB6pNmzDTNLmZtu5bWWa1vak0RU7fOI9qHjMzl7gVBvYSl34b0RU2N11HxxETJqQ5LeqI1cA== + tailwind-merge@^1.14.0: version "1.14.0" resolved "https://registry.yarnpkg.com/tailwind-merge/-/tailwind-merge-1.14.0.tgz#e677f55d864edc6794562c63f5001f45093cdb8b"