Skip to content

Commit b63ca0a

Browse files
committed
fix: removed the carousel buttons, changed the year button colours
1 parent b1d9445 commit b63ca0a

4 files changed

Lines changed: 4 additions & 24 deletions

File tree

src/components/GallerySection.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import TButton from "./shared/TertiaryButton";
2-
import images from "../config/galary";
2+
import images from "../config/gallary";
33

44
export default function GalarySection() {
55
const getRandomImages = () => {

src/pages/gallery/Gallery.jsx

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState, useEffect } from "react";
2-
import images from "../../config/galary";
3-
import heroImages from "../../config/galaryPage";
2+
import images from "../../config/gallary";
3+
import heroImages from "../../config/gallaryPage";
44

55
const NavButton = ({ direction, onClick }) => {
66
const isNext = direction === "next";
@@ -36,7 +36,7 @@ const YearButton = ({ year, isSelected, onClick }) => (
3636
onClick={onClick}
3737
className={`px-4 py-1 rounded-full text-sm md:text-base transition-all ${
3838
isSelected
39-
? "bg-blue-600 text-white font-medium"
39+
? "bg-[#061946] text-white font-medium"
4040
: "bg-gray-100 text-gray-700 hover:bg-gray-200"
4141
}`}
4242
>
@@ -105,26 +105,6 @@ export default function GallaryPage() {
105105
/>
106106
))}
107107
</div>
108-
109-
{/* Next/Prev Buttons */}
110-
{heroImages.length > 1 && (
111-
<>
112-
<NavButton
113-
direction="prev"
114-
onClick={() =>
115-
setCurrentSlide((prev) =>
116-
prev === 0 ? heroImages.length - 1 : prev - 1,
117-
)
118-
}
119-
/>
120-
<NavButton
121-
direction="next"
122-
onClick={() =>
123-
setCurrentSlide((prev) => (prev + 1) % heroImages.length)
124-
}
125-
/>
126-
</>
127-
)}
128108
</div>
129109
</div>
130110

0 commit comments

Comments
 (0)