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,15 +22,24 @@ const ProductType = ({ title, img_url }) => {
22 22
           left: 0,
23 23
           width: '100%',
24 24
           height: '100%',
25
-          backgroundColor: 'rgba(0, 0, 0, 0.3)', // Filter overlay
25
+          backgroundColor: 'rgba(0, 0, 0, 0.1)', // Filter overlay
26 26
           display: 'flex',
27 27
           flexDirection: 'column',
28 28
           justifyContent: 'center',
29 29
           alignItems: 'center',
30 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 43
           {title?.toUpperCase()}
35 44
         </Typography>
36 45
         <Button
@@ -42,7 +51,7 @@ const ProductType = ({ title, img_url }) => {
42 51
             window.location.href = '/products'
43 52
           }}>
44 53
           SHOP NOW
45
-        </Button>
54
+        </Button> */}
46 55
       </Box>
47 56
     </Box>
48 57
   );

Loading…
Cancel
Save