diff --git a/frontend/components/home/Hero.vue b/frontend/components/home/Hero.vue index aa89517..02843e5 100644 --- a/frontend/components/home/Hero.vue +++ b/frontend/components/home/Hero.vue @@ -4,34 +4,13 @@ import { Swiper, SwiperSlide } from "swiper/vue"; import type { SwiperClass } from "swiper/react"; +import useHomeData from "~/composables/api/home/useHomeData"; // state +const { data: homeData } = useHomeData(); const swiper_instance = ref(null); -const slides = [ - { - id: 0, - title: "TEST" - }, - { - id: 1, - title: "TEST" - }, - { - id: 2, - title: "TEST" - }, - { - id: 3, - title: "TEST" - }, - { - id: 4, - title: "TEST" - } -]; - // methods const onSwiper = (swiper: SwiperClass) => { @@ -58,27 +37,36 @@ const onChange = (swiper: SwiperClass) => { @slide-change="onChange" >
- -
+ +
-
-

- Samsung {{ slide.id }} +
+

+ {{ slide.title }}

- - توضیحات درمورد این محصول خاص - + + {{ slide.description }} +
@@ -98,7 +86,7 @@ const onChange = (swiper: SwiperClass) => {