images updated
@ -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() {
|
||||
<div className="row gx-5">
|
||||
<div className="col-lg-10">
|
||||
<div className="row mt-4">
|
||||
{filteredImages.slice(0, 8).map((img:any, index) => (
|
||||
{filteredImages.slice(0, 8).map((img: any, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="col-lg-3 col-md-6 mb-4"
|
||||
data-aos="zoom-in"
|
||||
data-aos-duration={ 1000}
|
||||
data-aos-duration={1000}
|
||||
>
|
||||
<div className="blog4-boxarea">
|
||||
<div
|
||||
@ -135,6 +135,16 @@ export default function HomePhotoGallerySection() {
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div
|
||||
className="btn-area1 text-center"
|
||||
data-aos="fade-left"
|
||||
data-aos-duration={1200}
|
||||
>
|
||||
<Link href="/photo-gallery" className="vl-btn3">
|
||||
Go To Gallery
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -154,18 +164,10 @@ export default function HomePhotoGallerySection() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="col-lg-12">
|
||||
{/* <div className="col-lg-12">
|
||||
<div className="space32" />
|
||||
<div
|
||||
className="btn-area1 text-center"
|
||||
data-aos="fade-left"
|
||||
data-aos-duration={1200}
|
||||
>
|
||||
<Link href="/photo-gallery" className="vl-btn3">
|
||||
Go To Gallery
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Before Width: | Height: | Size: 610 KiB After Width: | Height: | Size: 226 KiB |
|
Before Width: | Height: | Size: 482 KiB After Width: | Height: | Size: 163 KiB |
|
Before Width: | Height: | Size: 707 KiB After Width: | Height: | Size: 312 KiB |
|
Before Width: | Height: | Size: 587 KiB After Width: | Height: | Size: 246 KiB |
|
Before Width: | Height: | Size: 778 KiB After Width: | Height: | Size: 358 KiB |
|
Before Width: | Height: | Size: 926 KiB After Width: | Height: | Size: 435 KiB |
|
Before Width: | Height: | Size: 439 KiB After Width: | Height: | Size: 179 KiB |
|
Before Width: | Height: | Size: 598 KiB After Width: | Height: | Size: 292 KiB |
|
Before Width: | Height: | Size: 727 KiB After Width: | Height: | Size: 339 KiB |
|
Before Width: | Height: | Size: 455 KiB After Width: | Height: | Size: 164 KiB |
|
Before Width: | Height: | Size: 641 KiB After Width: | Height: | Size: 284 KiB |
|
Before Width: | Height: | Size: 901 KiB After Width: | Height: | Size: 364 KiB |
|
Before Width: | Height: | Size: 485 KiB After Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 611 KiB After Width: | Height: | Size: 220 KiB |
|
Before Width: | Height: | Size: 443 KiB After Width: | Height: | Size: 154 KiB |
|
Before Width: | Height: | Size: 434 KiB After Width: | Height: | Size: 164 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 304 KiB |
|
Before Width: | Height: | Size: 597 KiB After Width: | Height: | Size: 242 KiB |
|
Before Width: | Height: | Size: 406 KiB After Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 533 KiB After Width: | Height: | Size: 190 KiB |
|
Before Width: | Height: | Size: 362 KiB After Width: | Height: | Size: 147 KiB |
|
Before Width: | Height: | Size: 476 KiB After Width: | Height: | Size: 184 KiB |