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
2 changes: 1 addition & 1 deletion src/components/GallerySection.jsx
Original file line number Diff line number Diff line change
@@ -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 = () => {
Expand Down
File renamed without changes.
File renamed without changes.
26 changes: 3 additions & 23 deletions src/pages/gallery/Gallery.jsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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"
}`}
>
Expand Down Expand Up @@ -105,26 +105,6 @@ export default function GallaryPage() {
/>
))}
</div>

{/* Next/Prev Buttons */}
{heroImages.length > 1 && (
<>
<NavButton
direction="prev"
onClick={() =>
setCurrentSlide((prev) =>
prev === 0 ? heroImages.length - 1 : prev - 1,
)
}
/>
<NavButton
direction="next"
onClick={() =>
setCurrentSlide((prev) => (prev + 1) % heroImages.length)
}
/>
</>
)}
</div>
</div>

Expand Down
Loading