|
|
@@ -2,14 +2,10 @@ import React from "react";
|
|
2
|
2
|
import { Box, IconButton } from "@mui/material";
|
|
3
|
3
|
import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
|
|
4
|
4
|
import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
|
|
5
|
|
-// import mainImage1 from "../../assets/images/MAINHEADER-01.webp";
|
|
6
|
5
|
import mainImage2 from "../../assets/images/MAINHEADER-02.webp";
|
|
7
|
|
-// import mainImage3 from "../../assets/images/MAINHEADER-03.webp";
|
|
8
|
|
-// import mainImage4 from "../../assets/images/MAINHEADER-04.webp";
|
|
9
|
6
|
import mainImage5 from "../../assets/images/MAINHEADER-05.webp";
|
|
10
|
7
|
import mainImage6 from "../../assets/images/MAINHEADER-06.webp";
|
|
11
|
8
|
import mainImage8 from "../../assets/images/MAINHEADER-08.webp";
|
|
12
|
|
-// import mainImage10 from "../../assets/images/MAINHEADER-10.png";
|
|
13
|
9
|
import mainImage11 from "../../assets/images/MAINHEADER-11.webp";
|
|
14
|
10
|
import mainImage13 from "../../assets/images/MAINHEADER-13.webp";
|
|
15
|
11
|
import mainImage14 from "../../assets/images/MAINHEADER-14.jpeg";
|
|
|
@@ -20,22 +16,13 @@ import { Carousel } from 'react-responsive-carousel';
|
|
20
|
16
|
const CarouselContainer = () => {
|
|
21
|
17
|
|
|
22
|
18
|
const baseItems = [
|
|
23
|
|
- // Banner click targets. Update productType/title/titles here when changing banner destinations.
|
|
24
|
19
|
{ img_src: mainImage14, alt_name: "Essentials", productType: "BEAUTY" },
|
|
25
|
20
|
{ img_src: mainImage13, alt_name: "Eid's Time For Love", productType: "Apparel", title: "Eid's Time For Love", titles: ["EID'S TIME FOR LOVE"] },
|
|
26
|
|
- // Local Shopify collection title is "DENIM ND X MARII FOR AMBER"; old/reference title: "ND X MARII FOR AMBER".
|
|
27
|
21
|
{ img_src: mainImage11, alt_name: "ND X Marii for Amber", productType: "Apparel", title: "ND X Marii for Amber", titles: ["DENIM ND X MARII FOR AMBER", "ND X MARII FOR AMBER"] },
|
|
28
|
|
- // { img_src: mainImage10, alt_name: "Oasis Abaya", productType: "Apparel", title: "Oasis abaya", titles: ["OASIS ABAYA COLLECTION", "MIRAGE COLLECTION"] },
|
|
29
|
22
|
{ img_src: mainImage8, alt_name: "Somewhere Somehow Someone", productType: "Apparel", title: "Somewhere Somehow Someone", titles: ["SOMEWHERE SOMEHOW SOMEONE"] },
|
|
30
|
23
|
{ img_src: mainImage6, alt_name: "Oasis Abaya Collection", productType: "Apparel", title: "Oasis abaya", titles: ["OASIS ABAYA COLLECTION", "OASIS ABAYA"] },
|
|
31
|
|
- // Local Shopify collection title is "RAYA ROMANTICS"; old/reference title: "RAYA ROMANTICS COLLECTION 2025".
|
|
32
|
24
|
{ img_src: mainImage5, alt_name: "Raya Romantics", productType: "Apparel", title: "Raya Romantics", titles: ["RAYA ROMANTICS", "RAYA ROMANTICS COLLECTION 2025"] },
|
|
33
|
|
- // { img_src: mainImage3, alt_name: "Amber Home", productType: "HOME" },
|
|
34
|
|
- // { img_src: mainImage3, alt_name: "Amber Home", clickable: false },
|
|
35
|
|
- // { img_src: mainImage4, alt_name: "Amber Beauty Fragrance", productType: "BEAUTY", title: "Fragrances", titles: ["FRAGRANCES"] },
|
|
36
|
|
- // { img_src: mainImage4, alt_name: "Amber Beauty Fragrance", clickable: false },
|
|
37
|
25
|
{ img_src: mainImage2, alt_name: "Amber Beauty Cosmetics", productType: "BEAUTY", title: "Cosmetics", titles: ["COSMETICS"] },
|
|
38
|
|
- // { img_src: mainImage1, alt_name: "Amber Apparel", clickable: false },
|
|
39
|
26
|
];
|
|
40
|
27
|
|
|
41
|
28
|
const items = [...baseItems, ...baseItems];
|
|
|
@@ -81,22 +68,6 @@ const CarouselContainer = () => {
|
|
81
|
68
|
outline: "none"
|
|
82
|
69
|
}}
|
|
83
|
70
|
>
|
|
84
|
|
- {/*
|
|
85
|
|
- Old image-click code:
|
|
86
|
|
- <Box
|
|
87
|
|
- component="img"
|
|
88
|
|
- src={item.img_src}
|
|
89
|
|
- alt={item.alt_name}
|
|
90
|
|
- onClick={() => navigateToBanner(item)}
|
|
91
|
|
- sx={{
|
|
92
|
|
- width: "100%",
|
|
93
|
|
- height: "100%",
|
|
94
|
|
- zIndex: 0,
|
|
95
|
|
- filter: "brightness(0.9)",
|
|
96
|
|
- cursor: item.clickable === false ? "default" : "pointer"
|
|
97
|
|
- }}
|
|
98
|
|
- />
|
|
99
|
|
- */}
|
|
100
|
71
|
<Box
|
|
101
|
72
|
component="img"
|
|
102
|
73
|
src={item.img_src}
|