Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 36 additions & 6 deletions client/src/components/Landing/Landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,21 +183,51 @@

/* Positions the navigation dots below the image */
.landing__slider .slick-dots {
bottom: -15px;
bottom: -15px;
display: flex !important;
justify-content: center;
align-items: center;
gap: 8px;
}

/* Styles the inactive navigation dots */
.landing__slider .slick-dots li {
width: auto;
height: auto;
margin: 0;
}

.landing__slider .slick-dots li button {
width: 10px;
height: 10px;
padding: 0;
}

.landing__slider .slick-dots li button:before {
font-size: 12px;
color: var(--accent-color);
opacity: 0.6;
transition: all 0.3s ease;
font-size: 10px;
width: 10px;
height: 10px;
content: '';
border-radius: 50%;
background-color: var(--accent-color);
opacity: 0.4;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
border: 2px solid transparent;
}

/* Styles the single active navigation dot */
.landing__slider .slick-dots li.slick-active button:before {
opacity: 1;
color: var(--accent-color);
background-color: var(--accent-color);
transform: scale(1.3);
border-color: var(--accent-color);
box-shadow: 0 0 10px rgba(255, 226, 110, 0.6);
}

/* Hover effect for dots */
.landing__slider .slick-dots li button:hover:before {
opacity: 0.8;
transform: scale(1.2);
}

@media screen and (max-width: 768px) {
Expand Down
35 changes: 26 additions & 9 deletions client/src/components/Landing/Landing.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import './Landing.css'
import land from '../../asset/brand/men2.png'
import { Link } from "react-router-dom"
import { Button } from "@mui/material";
import Slider from "react-slick"; // Import Slider component
Expand All @@ -22,7 +21,8 @@ const settings = {
autoplay: true, // Automatically change slides
autoplaySpeed: 3000, // Change slide every 3 seconds
fade: true, // Use a fade transition
cssEase: 'linear'
cssEase: 'linear',
arrows: false // Remove left/right navigation arrows
};

// Array of images to display in the carousel
Expand All @@ -48,24 +48,41 @@ const settings = {
height: '50px',
borderRadius: '25px',
fontWeight: '700',
backgroundColor: 'var(--bg-primary)',
fontSize: '1rem',
backgroundColor: 'transparent',
borderWidth: '2px',
borderColor: 'var(--accent-color)',
color: 'var(--text-primary)',
boxShadow: '0 4px 15px rgba(255, 226, 110, 0.3)',
transition: 'all 0.3s ease',
transition: 'all 0.4s cubic-bezier(0.4, 0, 0.2, 1)',
position: 'relative',
overflow: 'hidden'
overflow: 'hidden',
'&::before': {
content: '""',
position: 'absolute',
top: 0,
left: '-100%',
width: '100%',
height: '100%',
background: 'var(--accent-color)',
transition: 'left 0.4s cubic-bezier(0.4, 0, 0.2, 1)',
zIndex: -1
}
},
{
'&:hover': {
backgroundColor: "var(--accent-color)",
color: "var(--bg-primary)",
color: "#000000",
borderColor: 'var(--accent-color)',
transform: 'translateY(-2px)',
boxShadow: '0 8px 25px rgba(255, 226, 110, 0.4)'
transform: 'translateY(-3px) scale(1.05)',
boxShadow: '0 10px 30px rgba(255, 226, 110, 0.5)',
'&::before': {
left: 0
}
},
'&:active': {
transform: 'translateY(0px)'
transform: 'translateY(-1px) scale(1.02)',
boxShadow: '0 5px 15px rgba(255, 226, 110, 0.4)'
}
}
]}
Expand Down