diff --git a/app/(event)/photo-gallery/page.jsx b/app/(event)/photo-gallery/page.jsx index 4f96584..cb54d74 100644 --- a/app/(event)/photo-gallery/page.jsx +++ b/app/(event)/photo-gallery/page.jsx @@ -72,9 +72,9 @@ export default function Memories() {

{event.date}

- {event.title} + {event.title}
- +
diff --git a/app/community/cricket-club/page.tsx b/app/community/cricket-club/page.tsx new file mode 100644 index 0000000..dea8c30 --- /dev/null +++ b/app/community/cricket-club/page.tsx @@ -0,0 +1,99 @@ +'use client'; + +import Layout from '@/components/layout/Layout'; +import { communitySubmenuData } from '@/utility/constant.utils'; +import Link from 'next/link'; +import { useSearchParams } from 'next/navigation'; +import { useState } from 'react'; +import Lightbox from "yet-another-react-lightbox"; +import "yet-another-react-lightbox/styles.css"; + + + +export default function CricketClub() { + // Show only images with id 1 to 4 + const galleryImages = communitySubmenuData.filter(img => +img.id >= 1 && +img.id <= 4); + + const [open, setOpen] = useState(false); + const [index, setIndex] = useState(0); + + return ( + <> + + {/* Header Section */} +
+
+
+
+
+

Cricket Club

+
+ + Home Community + +
+
+
+
+
+
+
+
+
+
+

+ Tamil Cricket Club Waterloo +

+
+

Waterloo region’s Tamil Cricket Club was started in 2018. Venue: Waterloo Park, Waterloo, Ontario Canada. Spring/Summer season only. Membership is for Tamil Cultural Association of Waterloo Region only. + + The club is primarily supported by Tamil Cultural Association of Waterloo Region. More info: mail@tca.srika.in

+
+
+
+ + +
+
+
+ {galleryImages.map((img, i) => ( +
+
{ + setIndex(i); + setOpen(true); + }} + > +
+ {img.alt} +
+
+
+ ))} + + {galleryImages.length === 0 && ( +
+

No images found for this event.

+
+ )} +
+
+
+
+
+ + setOpen(false)} + slides={galleryImages} + index={index} + /> + + + ); +} diff --git a/app/community/page.tsx b/app/community/page.tsx index 05fa05b..108e5b5 100644 --- a/app/community/page.tsx +++ b/app/community/page.tsx @@ -12,7 +12,7 @@ export default function CommunityPage() {
-
+
diff --git a/app/community/recipes/page.tsx b/app/community/recipes/page.tsx index b449980..796e1a0 100644 --- a/app/community/recipes/page.tsx +++ b/app/community/recipes/page.tsx @@ -10,7 +10,7 @@ export default function Recipes() {
-
+
diff --git a/components/layout/header/Header1.tsx b/components/layout/header/Header1.tsx index 1983732..a8e671d 100644 --- a/components/layout/header/Header1.tsx +++ b/components/layout/header/Header1.tsx @@ -265,9 +265,9 @@ export default function Header1({ scroll, isMobileMenu, handleMobileMenu, isSear
-
+ {/*
-
+
*/}
  • @@ -283,7 +283,7 @@ export default function Header1({ scroll, isMobileMenu, handleMobileMenu, isSear
-
+ {/*
@@ -291,7 +291,7 @@ export default function Header1({ scroll, isMobileMenu, handleMobileMenu, isSear
-
+
*/} {isSearch &&
}
diff --git a/package-lock.json b/package-lock.json index 1c908ae..00d3f2f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "slick-carousel": "^1.8.1", "swiper": "^11.1.14", "wowjs": "^1.1.3", - "yet-another-react-lightbox": "^3.23.4" + "yet-another-react-lightbox": "^3.24.0" }, "devDependencies": { "@types/aos": "^3.0.7", @@ -5939,9 +5939,9 @@ "license": "ISC" }, "node_modules/yet-another-react-lightbox": { - "version": "3.23.4", - "resolved": "https://registry.npmjs.org/yet-another-react-lightbox/-/yet-another-react-lightbox-3.23.4.tgz", - "integrity": "sha512-q9nlMyCGsizvaPnZ6gFDu3qyMcDpr+3jpQPCBMZyQr62M+xp+TfvypLZJ/UA+3VisNJrd0uDPnGzP4Ugue8DXQ==", + "version": "3.24.0", + "resolved": "https://registry.npmjs.org/yet-another-react-lightbox/-/yet-another-react-lightbox-3.24.0.tgz", + "integrity": "sha512-j3YtwDT+fdBBhxbaxfthHMehXkUj388rpn7knc934H86bJJDBEL/m9WFGdKq2ivT3GaUPF+41GplKFbAv8bOmg==", "license": "MIT", "engines": { "node": ">=14" diff --git a/package.json b/package.json index fa4fc4e..ff4700c 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "slick-carousel": "^1.8.1", "swiper": "^11.1.14", "wowjs": "^1.1.3", - "yet-another-react-lightbox": "^3.23.4" + "yet-another-react-lightbox": "^3.24.0" }, "devDependencies": { "@types/aos": "^3.0.7", diff --git a/utility/constant.utils.js b/utility/constant.utils.js index 6405db7..5fbf34d 100644 --- a/utility/constant.utils.js +++ b/utility/constant.utils.js @@ -3409,6 +3409,50 @@ export const tamilculture = { ] } +export const communitySubmenuData = [ + { + id: "1", + src: "/assets/img/online/membership-2024/tca-mem-1.webp", + alt: "membership2024 pics", + }, + { + id: "2", + src: "/assets/img/online/membership-2024/tca-mem-2.webp", + alt: "membership2024 pics" + }, + { + id: "3", + src: "/assets/img/online/membership-2024/tca-mem-3.webp", + alt: "membership2024 pics", + }, + { + id: "4", + src: "/assets/img/online/membership-2024/tca-mem-4.webp", + alt: "membership2024 pics" + }, + { + id: "5", + src: "/assets/img/online/membership-2025/tca-mem-1.webp", + alt: "membership2025 pics", + }, + { + id: "6", + src: "/assets/img/online/membership-2025/tca-mem-2.webp", + alt: "membership2025 pics" + }, + { + id: "7", + src: "/assets/img/online/membership-2025/tca-mem-3.webp", + alt: "membership2025 pics", + }, + { + id: "8", + src: "/assets/img/online/membership-2025/tca-mem-4.webp", + alt: "membership2025 pics" + }, + +]; + // export const communityData = { // "2024-2026": { // "Executive Committee": [