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
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/components/GallerySection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export default function GalarySection() {
<p className="text-black-600 mb-6">
Explore our vibrant moments captured in stunning visuals.
</p>
<TButton>Go to Gallery &gt;</TButton>
<a href="/gallery">
<TButton>Go to Gallery &gt;</TButton>
</a>
</div>

{/* Gallery Grid */}
Expand Down
174 changes: 168 additions & 6 deletions src/config/gallary.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,202 @@
const images = [
{
id: 1,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1752424604/image-2_yjyxwo.png",
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749072/asme126_aeedta.jpg",
alt: "Gallery Image 1",
year: 2025,
},
{
id: 2,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1752424605/image_r6mlez.png",
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749067/asme132_li9nos.jpg",
alt: "Gallery Image 2",
year: 2025,
},
{
id: 3,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1752424604/image-3_yezplq.png",
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749064/asme125_jjn2ip.jpg",
alt: "Gallery Image 3",
year: 2025,
},
{
id: 4,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1752424604/image-4_lwzmbl.png",
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749064/asme108_erz3ec.jpg",
alt: "Gallery Image 4",
year: 2024,
},
{
id: 5,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1752424604/image-1_ruw6yy.png",
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749064/asme110_rjve6z.jpg",
alt: "Gallery Image 5",
year: 2024,
},
{
id: 6,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1752425766/e8d1afdb4d097b5c14935394e296d28109b650e4_fominv.png",
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749063/asme93_tpbnrn.jpg",
alt: "Gallery Image 6",
year: 2024,
},
{
id: 7,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749063/asme101_dziwos.jpg",
alt: "Gallery Image 7",
year: 2024,
},
{
id: 8,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749064/asme100_uj4qp9.jpg",
alt: "Gallery Image 8",
year: 2024,
},
{
id: 9,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749063/asme95_xppoty.jpg",
alt: "Gallery Image 9",
year: 2024,
},
{
id: 10,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749063/asme92_vg1ekw.jpg",
alt: "Gallery Image 10",
year: 2024,
},
{
id: 11,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749062/asme81_ugfbch.jpg",
alt: "Gallery Image 11",
year: 2024,
},
{
id: 12,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749063/asme90_k0ajha.jpg",
alt: "Gallery Image 12",
year: 2024,
},
{
id: 13,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749062/asme83_bjlhkt.jpg",
alt: "Gallery Image 13",
year: 2024,
},
{
id: 14,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749062/asme69_gqvlmx.jpg",
alt: "Gallery Image 14",
year: 2024,
},
{
id: 15,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749062/asme82_fgfipo.jpg",
alt: "Gallery Image 15",
year: 2024,
},
{
id: 16,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749062/asme85_zbsd9a.jpg",
alt: "Gallery Image 16",
year: 2024,
},
{
id: 17,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749062/asme76_ix8eiu.jpg",
alt: "Gallery Image 17",
year: 2024,
},
{
id: 18,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749061/asme77_bekwmu.jpg",
alt: "Gallery Image 18",
year: 2024,
},
{
id: 19,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749061/asme56_myrsww.jpg",
alt: "Gallery Image 19",
year: 2024,
},
{
id: 20,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749061/asme63_b5ptz1.jpg",
alt: "Gallery Image 20",
year: 2024,
},
{
id: 21,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749061/asme17_rsnbhe.jpg",
alt: "Gallery Image 21",
year: 2024,
},
{
id: 22,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749060/asme47_sjvcsx.jpg",
alt: "Gallery Image 22",
year: 2024,
},
{
id: 23,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749060/asme58_c3evh8.jpg",
alt: "Gallery Image 23",
year: 2024,
},
{
id: 24,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749060/asme12_yftocz.jpg",
alt: "Gallery Image 24",
year: 2024,
},
{
id: 25,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749059/asme19_h0exya.jpg",
alt: "Gallery Image 25",
year: 2024,
},
{
id: 26,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749059/asme51_bvsohr.jpg",
alt: "Gallery Image 26",
year: 2024,
},
{
id: 27,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749058/asme16_emvjdz.jpg",
alt: "Gallery Image 27",
year: 2024,
},
{
id: 28,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749059/asme46_kohune.jpg",
alt: "Gallery Image 28",
year: 2024,
},
{
id: 29,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749059/asme20_f5b9vs.jpg",
alt: "Gallery Image 29",
year: 2024,
},
{
id: 30,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749058/asme14_agrxxh.jpg",
alt: "Gallery Image 30",
year: 2024,
},
{
id: 31,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749057/asme10_wjrfne.jpg",
alt: "Gallery Image 31",
year: 2024,
},
{
id: 32,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749057/asme1_co9kt5.jpg",
alt: "Gallery Image 32",
year: 2024,
},
{
id: 33,
src: "https://res.cloudinary.com/dsjxx976j/image/upload/v1754749057/asme6_evthjt.jpg",
alt: "Gallery Image 33",
year: 2024,
},
];

export default images;
7 changes: 3 additions & 4 deletions src/pages/gallery/Gallery.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useState, useEffect } from "react";
import images from "../../config/gallary";
import heroImages from "../../config/gallaryPage";

const NavButton = ({ direction, onClick }) => {
const isNext = direction === "next";
Expand Down Expand Up @@ -61,7 +60,7 @@ export default function GallaryPage() {

useEffect(() => {
const interval = setInterval(() => {
setCurrentSlide((prev) => (prev + 1) % heroImages.length);
setCurrentSlide((prev) => (prev + 1) % images.length);
}, 5000);
return () => clearInterval(interval);
}, []);
Expand All @@ -79,7 +78,7 @@ export default function GallaryPage() {
<div className="relative h-[280px] sm:h-[320px] md:h-[400px] lg:h-[480px] w-full overflow-hidden">
{/* Carousel Slides */}
<div className="relative h-full w-full">
{heroImages.map((image, index) => (
{images.map((image, index) => (
<div
key={image.id}
className={`absolute inset-0 transition-opacity duration-1000 ease-in-out ${
Expand All @@ -96,7 +95,7 @@ export default function GallaryPage() {

{/* Carousel Controls */}
<div className="absolute bottom-4 left-0 right-0 z-30 flex justify-center gap-2">
{heroImages.map((_, index) => (
{images.map((_, index) => (
<button
key={index}
onClick={() => setCurrentSlide(index)}
Expand Down
Loading