|
@@ -206,30 +206,23 @@ const Navbar = () => {
|
206
|
206
|
position: "relative",
|
207
|
207
|
cursor: "pointer",
|
208
|
208
|
transition: "transform 0.3s ease",
|
209
|
|
- ":hover": {
|
210
|
|
- transform: "scale(1.1)"
|
211
|
|
- }
|
212
|
209
|
}}
|
213
|
210
|
onClick={() => {
|
214
|
211
|
sessionStorage.setItem('amber-select-collection', JSON.stringify(colletion))
|
215
|
212
|
sessionStorage.setItem('amber-select-product-type', displayCollection.productType)
|
216
|
213
|
window.location.href = `/products`;
|
217
|
214
|
}}
|
|
215
|
+ ></Box>
|
|
216
|
+ <Typography
|
|
217
|
+ variant="body1"
|
|
218
|
+ sx={{
|
|
219
|
+ mt:1,
|
|
220
|
+ color: "black",
|
|
221
|
+ fontWeight: "400",
|
|
222
|
+ }}
|
218
|
223
|
>
|
219
|
|
- <Typography
|
220
|
|
- variant="body1"
|
221
|
|
- sx={{
|
222
|
|
- color: "white",
|
223
|
|
- fontWeight: "bolder",
|
224
|
|
- position: "absolute",
|
225
|
|
- top: "50%",
|
226
|
|
- left: "50%",
|
227
|
|
- transform: "translate(-50%, -50%)"
|
228
|
|
- }}
|
229
|
|
- >
|
230
|
|
- {colletion?.title?.toUpperCase()}
|
231
|
|
- </Typography>
|
232
|
|
- </Box>
|
|
224
|
+ {colletion?.title?.toUpperCase()}
|
|
225
|
+ </Typography>
|
233
|
226
|
</SwiperSlide>
|
234
|
227
|
)
|
235
|
228
|
|
|
@@ -383,13 +376,27 @@ const Navbar = () => {
|
383
|
376
|
<Typography variant="body2"
|
384
|
377
|
className="navItem"
|
385
|
378
|
sx={{
|
386
|
|
- fontSize:"0.95rem",
|
|
379
|
+ fontSize: "0.95rem",
|
387
|
380
|
fontWeight: "400",
|
388
|
381
|
color: (isAtTop) ? "white" : "black",
|
389
|
382
|
transition: "all 0.3s ease-in-out",
|
390
|
383
|
":hover": {
|
391
|
384
|
color: "#95AAC5 !important"
|
392
|
|
- }
|
|
385
|
+ },
|
|
386
|
+ "&::after": {
|
|
387
|
+ content: '""',
|
|
388
|
+ position: "absolute",
|
|
389
|
+ left: "50%",
|
|
390
|
+ transform: "translateX(-50%)",
|
|
391
|
+ bottom: 2,
|
|
392
|
+ width: "0%",
|
|
393
|
+ height: "2px", // Thickness of the underline
|
|
394
|
+ backgroundColor: "#95AAC5",
|
|
395
|
+ transition: "width 0.3s ease-in-out",
|
|
396
|
+ },
|
|
397
|
+ ":hover::after": {
|
|
398
|
+ width: "50%", // Expands on hover
|
|
399
|
+ },
|
393
|
400
|
}}>{productType}</Typography>
|
394
|
401
|
</Button>))}
|
395
|
402
|
|
|
@@ -497,7 +504,7 @@ const Navbar = () => {
|
497
|
504
|
{showSearch && <SearchProduct onClose={() => { setShowSearch(false) }} />}
|
498
|
505
|
|
499
|
506
|
<MobileNav open={openSideMenu} menu={navItem} onClose={() => { setOpenSideMenu(false) }} />
|
500
|
|
- <SideCart open={openSideCart} onClose={()=>{setOpenSideCart(false)}}/>
|
|
507
|
+ <SideCart open={openSideCart} onClose={() => { setOpenSideCart(false) }} />
|
501
|
508
|
|
502
|
509
|
</>
|
503
|
510
|
);
|