Browse Source

temp product type

master
azri 1 month ago
parent
commit
1d5a219056
1 changed files with 12 additions and 3 deletions
  1. 12
    3
      src/components/ProductType/ProductType.jsx

+ 12
- 3
src/components/ProductType/ProductType.jsx View File

22
           left: 0,
22
           left: 0,
23
           width: '100%',
23
           width: '100%',
24
           height: '100%',
24
           height: '100%',
25
-          backgroundColor: 'rgba(0, 0, 0, 0.3)', // Filter overlay
25
+          backgroundColor: 'rgba(0, 0, 0, 0.1)', // Filter overlay
26
           display: 'flex',
26
           display: 'flex',
27
           flexDirection: 'column',
27
           flexDirection: 'column',
28
           justifyContent: 'center',
28
           justifyContent: 'center',
29
           alignItems: 'center',
29
           alignItems: 'center',
30
           color: '#fff', // Text and button color for visibility
30
           color: '#fff', // Text and button color for visibility
31
+          transition: "all 0.5s ease-in-out",
32
+          ":hover":{
33
+            backgroundColor: 'rgba(0, 0, 0, 0.5)'
34
+          }
35
+        }}
36
+        onClick={() => {
37
+          sessionStorage.setItem('amber-select-product-type', title)
38
+          sessionStorage.removeItem('amber-select-collection')
39
+          window.location.href = '/products'
31
         }}
40
         }}
32
       >
41
       >
33
-        <Typography variant="h5" gutterBottom sx={{ fontWeight: "600", letterSpacing: 7, marginRight:"-0.4em" }}>
42
+        {/* <Typography variant="h5" gutterBottom sx={{ fontWeight: "600", letterSpacing: 7, marginRight:"-0.4em" }}>
34
           {title?.toUpperCase()}
43
           {title?.toUpperCase()}
35
         </Typography>
44
         </Typography>
36
         <Button
45
         <Button
42
             window.location.href = '/products'
51
             window.location.href = '/products'
43
           }}>
52
           }}>
44
           SHOP NOW
53
           SHOP NOW
45
-        </Button>
54
+        </Button> */}
46
       </Box>
55
       </Box>
47
     </Box>
56
     </Box>
48
   );
57
   );

Loading…
Cancel
Save