From b63ca0a08a3504ea94fee5067ca4e62c221c7025 Mon Sep 17 00:00:00 2001 From: Krishnakant Sahu Date: Thu, 17 Jul 2025 20:21:16 +0530 Subject: [PATCH] fix: removed the carousel buttons, changed the year button colours --- src/components/GallerySection.jsx | 2 +- src/config/{galary.js => gallary.js} | 0 src/config/{galaryPage.js => gallaryPage.js} | 0 src/pages/gallery/Gallery.jsx | 26 +++----------------- 4 files changed, 4 insertions(+), 24 deletions(-) rename src/config/{galary.js => gallary.js} (100%) rename src/config/{galaryPage.js => gallaryPage.js} (100%) diff --git a/src/components/GallerySection.jsx b/src/components/GallerySection.jsx index c1ab79b..1e6ce9d 100644 --- a/src/components/GallerySection.jsx +++ b/src/components/GallerySection.jsx @@ -1,5 +1,5 @@ import TButton from "./shared/TertiaryButton"; -import images from "../config/galary"; +import images from "../config/gallary"; export default function GalarySection() { const getRandomImages = () => { diff --git a/src/config/galary.js b/src/config/gallary.js similarity index 100% rename from src/config/galary.js rename to src/config/gallary.js diff --git a/src/config/galaryPage.js b/src/config/gallaryPage.js similarity index 100% rename from src/config/galaryPage.js rename to src/config/gallaryPage.js diff --git a/src/pages/gallery/Gallery.jsx b/src/pages/gallery/Gallery.jsx index 370e1cf..b955655 100644 --- a/src/pages/gallery/Gallery.jsx +++ b/src/pages/gallery/Gallery.jsx @@ -1,6 +1,6 @@ import { useState, useEffect } from "react"; -import images from "../../config/galary"; -import heroImages from "../../config/galaryPage"; +import images from "../../config/gallary"; +import heroImages from "../../config/gallaryPage"; const NavButton = ({ direction, onClick }) => { const isNext = direction === "next"; @@ -36,7 +36,7 @@ const YearButton = ({ year, isSelected, onClick }) => ( onClick={onClick} className={`px-4 py-1 rounded-full text-sm md:text-base transition-all ${ isSelected - ? "bg-blue-600 text-white font-medium" + ? "bg-[#061946] text-white font-medium" : "bg-gray-100 text-gray-700 hover:bg-gray-200" }`} > @@ -105,26 +105,6 @@ export default function GallaryPage() { /> ))} - - {/* Next/Prev Buttons */} - {heroImages.length > 1 && ( - <> - - setCurrentSlide((prev) => - prev === 0 ? heroImages.length - 1 : prev - 1, - ) - } - /> - - setCurrentSlide((prev) => (prev + 1) % heroImages.length) - } - /> - - )}