From 40bab7be1e0025c7c089e1eac17451ef155a989a Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Sat, 19 Nov 2022 13:55:00 +0700 Subject: Add page transition --- src/pages/index.js | 55 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 26 deletions(-) (limited to 'src/pages/index.js') diff --git a/src/pages/index.js b/src/pages/index.js index 7fa538d1..a0363a62 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -9,6 +9,7 @@ import "swiper/css"; import "swiper/css/pagination"; import "swiper/css/autoplay"; import ProductSlider from "../components/product/ProductSlider"; +import Layout from "../components/Layout"; export default function Home() { const [heroBanners, setHeroBanners] = useState(null); @@ -44,38 +45,40 @@ export default function Home() { return ( <> -
- - { - heroBanners?.map((banner, index) => ( - - - - )) - } - -
-

Brand Pilihan

- +
+ + { - manufactures?.manufactures?.map((manufacture, index) => ( + heroBanners?.map((banner, index) => ( -
- -
+
)) }
-
-
-

Produk Ready Stock

- -
-
-

Produk Populer

- -
+
+

Brand Pilihan

+ + { + manufactures?.manufactures?.map((manufacture, index) => ( + +
+ +
+
+ )) + } +
+
+
+

Produk Ready Stock

+ +
+
+

Produk Populer

+ +
+ ) } -- cgit v1.2.3