diff --git a/app/coworking/page.tsx b/app/coworking/page.tsx index 153a899..926006b 100644 --- a/app/coworking/page.tsx +++ b/app/coworking/page.tsx @@ -1,8 +1,10 @@ import Itinerary from "components/Itinerary/Itinerary"; +import OfficeLightbox from "components/officeLightbox/OfficeLightbox"; + export default function Coworking () { return ( - + ) } \ No newline at end of file diff --git a/components/officeLightbox/OfficeLightbox.tsx b/components/officeLightbox/OfficeLightbox.tsx new file mode 100644 index 0000000..3e45c04 --- /dev/null +++ b/components/officeLightbox/OfficeLightbox.tsx @@ -0,0 +1,58 @@ +'use client' +import Image from 'next/image'; +import React, { useState } from 'react'; + +const OfficeLightbox: React.FC = () => { + const [selectedImage, setSelectedImage] = useState(null); + + const images = [ + '/office1.jpeg', + '/office5.jpeg', + '/office3.jpeg', + '/office2.jpeg', + '/office6.jpeg', + '/office8.jpeg' + ]; + const openLightbox = (image: string) => { + setSelectedImage(image); + }; + const closeLightbox = () => { + setSelectedImage(null); + }; + + return ( +
+
+ {images.map((image, index) => ( + {`Image openLightbox(image)} + className="cursor-pointer" + width={600} + height={275} + /> + ))} +
+ + {/* Render the lightbox when an image is selected */} + {selectedImage && ( +
+
+ Selected Image +
+
+ )} +
+ ); +}; + +export default OfficeLightbox; diff --git a/public/office1.jpeg b/public/office1.jpeg new file mode 100644 index 0000000..0435555 Binary files /dev/null and b/public/office1.jpeg differ diff --git a/public/office2.jpeg b/public/office2.jpeg new file mode 100644 index 0000000..7106ad4 Binary files /dev/null and b/public/office2.jpeg differ diff --git a/public/office3.jpeg b/public/office3.jpeg new file mode 100644 index 0000000..5ade26a Binary files /dev/null and b/public/office3.jpeg differ diff --git a/public/office4.jpeg b/public/office4.jpeg new file mode 100644 index 0000000..3b819f6 Binary files /dev/null and b/public/office4.jpeg differ diff --git a/public/office5.jpeg b/public/office5.jpeg new file mode 100644 index 0000000..906374b Binary files /dev/null and b/public/office5.jpeg differ diff --git a/public/office6.jpeg b/public/office6.jpeg new file mode 100644 index 0000000..b489307 Binary files /dev/null and b/public/office6.jpeg differ diff --git a/public/office7.jpeg b/public/office7.jpeg new file mode 100644 index 0000000..d402f98 Binary files /dev/null and b/public/office7.jpeg differ diff --git a/public/office8.jpeg b/public/office8.jpeg new file mode 100644 index 0000000..8226ef5 Binary files /dev/null and b/public/office8.jpeg differ