|
@@ -1,7 +1,7 @@
|
1
|
1
|
import React from 'react';
|
2
|
2
|
import { Box, Button, Typography } from '@mui/material';
|
3
|
3
|
|
4
|
|
-const ProductType = ({title}) => {
|
|
4
|
+const ProductType = ({title, link, img_url}) => {
|
5
|
5
|
return (
|
6
|
6
|
<Box
|
7
|
7
|
sx={{
|
|
@@ -9,7 +9,10 @@ const ProductType = ({title}) => {
|
9
|
9
|
width: '100%',
|
10
|
10
|
height: 0,
|
11
|
11
|
paddingTop: '600px', // This sets the height based on top padding
|
|
12
|
+ backgroundImage: `url(${img_url})`,
|
12
|
13
|
overflow: 'hidden',
|
|
14
|
+ backgroundSize:'cover',
|
|
15
|
+ backgroundPosition: 'center center'
|
13
|
16
|
}}
|
14
|
17
|
>
|
15
|
18
|
<Box
|
|
@@ -27,10 +30,10 @@ const ProductType = ({title}) => {
|
27
|
30
|
color: '#fff', // Text and button color for visibility
|
28
|
31
|
}}
|
29
|
32
|
>
|
30
|
|
- <Typography variant="h4" gutterBottom>
|
|
33
|
+ <Typography variant="h5" gutterBottom sx={{fontWeight:"600", letterSpacing:7}}>
|
31
|
34
|
{title}
|
32
|
35
|
</Typography>
|
33
|
|
- <Button variant="contained" color="primary">
|
|
36
|
+ <Button variant="contained" color="primary" onClick={()=>{ window.location.href = link }}>
|
34
|
37
|
SHOP NOW
|
35
|
38
|
</Button>
|
36
|
39
|
</Box>
|