|
@@ -42,94 +42,96 @@ const ProductSuggestion = () => {
|
42
|
42
|
item
|
43
|
43
|
size={{ xs: 6, sm: 6, md: 3 }}
|
44
|
44
|
>
|
45
|
|
- <Box
|
46
|
|
- sx={{
|
47
|
|
- overflow: "hidden",
|
48
|
|
- position: "relative",
|
49
|
|
- cursor: "pointer",
|
50
|
|
- }}
|
51
|
|
- onClick={() => {
|
52
|
|
- navigate(`/products/${handle}`)
|
53
|
|
- }}
|
54
|
|
- >
|
55
|
|
- <img
|
56
|
|
- src={img_url}
|
57
|
|
- alt={title}
|
58
|
|
- style={{
|
59
|
|
- width: "100%",
|
60
|
|
- aspectRatio: "3 / 4",
|
61
|
|
- objectFit: "cover",
|
62
|
|
- objectPosition: "top center",
|
|
45
|
+ <a href={`/products/${handle}`} style={{ textDecoration: "none", color: "#000" }}>
|
|
46
|
+ <Box
|
|
47
|
+ sx={{
|
|
48
|
+ overflow: "hidden",
|
|
49
|
+ position: "relative",
|
|
50
|
+ cursor: "pointer",
|
63
|
51
|
}}
|
64
|
|
- />
|
65
|
|
-
|
66
|
|
- {selected && (
|
67
|
|
- <Button
|
68
|
|
- sx={{
|
69
|
|
- position: "absolute",
|
70
|
|
- top: {
|
71
|
|
- xs: 0,
|
72
|
|
- sm: 0,
|
73
|
|
- md: 10,
|
74
|
|
- lg: 20,
|
75
|
|
- },
|
76
|
|
- left: {
|
77
|
|
- xs: 0,
|
78
|
|
- sm: 0,
|
79
|
|
- md: 10,
|
80
|
|
- lg: 20,
|
81
|
|
- },
|
82
|
|
- boxShadow: 0,
|
83
|
|
- fontSize: 10,
|
|
52
|
+ onClick={() => {
|
|
53
|
+ navigate(`/products/${handle}`)
|
|
54
|
+ }}
|
|
55
|
+ >
|
|
56
|
+ <img
|
|
57
|
+ src={img_url}
|
|
58
|
+ alt={title}
|
|
59
|
+ style={{
|
|
60
|
+ width: "100%",
|
|
61
|
+ aspectRatio: "3 / 4",
|
|
62
|
+ objectFit: "cover",
|
|
63
|
+ objectPosition: "top center",
|
84
|
64
|
}}
|
85
|
|
- variant="contained"
|
86
|
|
- >
|
87
|
|
- NEW
|
88
|
|
- </Button>
|
89
|
|
- )}
|
|
65
|
+ />
|
90
|
66
|
|
91
|
|
- <Box sx={{ pb: 3, pt: 1, width: "90%" }}>
|
92
|
|
- <Typography
|
93
|
|
- variant="body2"
|
94
|
|
- sx={{
|
95
|
|
- fontWeight: "100",
|
96
|
|
- fontSize: {
|
97
|
|
- xs: "0.65rem",
|
98
|
|
- sm: "0.65rem",
|
99
|
|
- md: "0.75rem",
|
100
|
|
- },
|
101
|
|
- }}
|
102
|
|
- >
|
103
|
|
- {collection_name}
|
104
|
|
- </Typography>
|
105
|
|
- <Typography
|
106
|
|
- variant="body2"
|
107
|
|
- sx={{
|
108
|
|
- fontWeight: "400",
|
109
|
|
- fontSize: {
|
110
|
|
- xs: "0.73rem",
|
111
|
|
- sm: "0.73rem",
|
112
|
|
- md: "0.875rem",
|
113
|
|
- },
|
114
|
|
- }}
|
115
|
|
- >
|
116
|
|
- {title}
|
117
|
|
- </Typography>
|
118
|
|
- <Typography
|
119
|
|
- variant="body2"
|
120
|
|
- sx={{
|
121
|
|
- fontWeight: "100",
|
122
|
|
- fontSize: {
|
123
|
|
- xs: "0.73rem",
|
124
|
|
- sm: "0.73rem",
|
125
|
|
- md: "0.875rem",
|
126
|
|
- },
|
127
|
|
- }}
|
128
|
|
- >
|
129
|
|
- {`${minPriceCurrency} ${parseFloat(minPrice).toFixed(2)}`}
|
130
|
|
- </Typography>
|
|
67
|
+ {selected && (
|
|
68
|
+ <Button
|
|
69
|
+ sx={{
|
|
70
|
+ position: "absolute",
|
|
71
|
+ top: {
|
|
72
|
+ xs: 0,
|
|
73
|
+ sm: 0,
|
|
74
|
+ md: 10,
|
|
75
|
+ lg: 20,
|
|
76
|
+ },
|
|
77
|
+ left: {
|
|
78
|
+ xs: 0,
|
|
79
|
+ sm: 0,
|
|
80
|
+ md: 10,
|
|
81
|
+ lg: 20,
|
|
82
|
+ },
|
|
83
|
+ boxShadow: 0,
|
|
84
|
+ fontSize: 10,
|
|
85
|
+ }}
|
|
86
|
+ variant="contained"
|
|
87
|
+ >
|
|
88
|
+ NEW
|
|
89
|
+ </Button>
|
|
90
|
+ )}
|
|
91
|
+
|
|
92
|
+ <Box sx={{ pb: 3, pt: 1, width: "90%" }}>
|
|
93
|
+ <Typography
|
|
94
|
+ variant="body2"
|
|
95
|
+ sx={{
|
|
96
|
+ fontWeight: "100",
|
|
97
|
+ fontSize: {
|
|
98
|
+ xs: "0.65rem",
|
|
99
|
+ sm: "0.65rem",
|
|
100
|
+ md: "0.75rem",
|
|
101
|
+ },
|
|
102
|
+ }}
|
|
103
|
+ >
|
|
104
|
+ {collection_name}
|
|
105
|
+ </Typography>
|
|
106
|
+ <Typography
|
|
107
|
+ variant="body2"
|
|
108
|
+ sx={{
|
|
109
|
+ fontWeight: "400",
|
|
110
|
+ fontSize: {
|
|
111
|
+ xs: "0.73rem",
|
|
112
|
+ sm: "0.73rem",
|
|
113
|
+ md: "0.875rem",
|
|
114
|
+ },
|
|
115
|
+ }}
|
|
116
|
+ >
|
|
117
|
+ {title}
|
|
118
|
+ </Typography>
|
|
119
|
+ <Typography
|
|
120
|
+ variant="body2"
|
|
121
|
+ sx={{
|
|
122
|
+ fontWeight: "100",
|
|
123
|
+ fontSize: {
|
|
124
|
+ xs: "0.73rem",
|
|
125
|
+ sm: "0.73rem",
|
|
126
|
+ md: "0.875rem",
|
|
127
|
+ },
|
|
128
|
+ }}
|
|
129
|
+ >
|
|
130
|
+ {`${minPriceCurrency} ${parseFloat(minPrice).toFixed(2)}`}
|
|
131
|
+ </Typography>
|
|
132
|
+ </Box>
|
131
|
133
|
</Box>
|
132
|
|
- </Box>
|
|
134
|
+ </a>
|
133
|
135
|
</Grid>
|
134
|
136
|
);
|
135
|
137
|
};
|