diff --git a/src/components/BrandsCarousel/BrandCard.tsx b/src/components/BrandsCarousel/BrandCard.tsx index ab7e01a..0add124 100644 --- a/src/components/BrandsCarousel/BrandCard.tsx +++ b/src/components/BrandsCarousel/BrandCard.tsx @@ -1,12 +1,15 @@ import { Brand } from "@/types"; import Image from "next/image"; import Link from "next/link"; +import useMobile from "@/hooks/useMobile"; interface BrandCardProps { brand: Brand; } export const BrandCard = ({ brand }: BrandCardProps) => { + const { isMobile } = useMobile(); + return ( { > {brand.name} diff --git a/src/components/BrandsCarousel/Carousel.tsx b/src/components/BrandsCarousel/Carousel.tsx index cbc7ee6..3a4fb43 100644 --- a/src/components/BrandsCarousel/Carousel.tsx +++ b/src/components/BrandsCarousel/Carousel.tsx @@ -20,7 +20,7 @@ export const Carousel = ({ brands }: CarouselProps) => { pauseOnHover speed={40} gradient - gradientWidth={100} + gradientWidth={50} gradientColor={theme === "dark" ? "black" : "white"} > {brands.map((brand, i) => (