From fb61e13387ec64a507bd2e1c6d708349c381a355 Mon Sep 17 00:00:00 2001 From: Alaguraj0361 Date: Fri, 22 Aug 2025 19:17:07 +0530 Subject: [PATCH] home page gallery section button updated --- components/home/HomePhotoGallerySection.tsx | 34 +++++++++++---------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/components/home/HomePhotoGallerySection.tsx b/components/home/HomePhotoGallerySection.tsx index 5a08f34..8f9095e 100644 --- a/components/home/HomePhotoGallerySection.tsx +++ b/components/home/HomePhotoGallerySection.tsx @@ -44,7 +44,7 @@ export default function HomePhotoGallerySection() { setGalleryImages(formatted); // Unique years, sorted latest first - const uniqueYears:any = [...new Set(eventsData.map((event: any) => event.year))] + const uniqueYears: any = [...new Set(eventsData.map((event: any) => event.year))] setYears(uniqueYears); @@ -62,9 +62,9 @@ export default function HomePhotoGallerySection() { // Filter images by active year const filteredImages = galleryImages.filter((img) => img.year === activeYear) - - console.log("filteredImages", filteredImages) + + console.log("filteredImages", filteredImages) const handleImageClick = (index: number) => { const actualIndex = galleryImages.findIndex( @@ -103,12 +103,12 @@ export default function HomePhotoGallerySection() {
- {filteredImages.slice(0, 8).map((img:any, index) => ( + {filteredImages.slice(0, 8).map((img: any, index) => (
)} + +
+ + Go To Gallery + +
@@ -154,18 +164,10 @@ export default function HomePhotoGallerySection() {
-
+ {/*
-
- - Go To Gallery - -
-
+ +
*/}