diff --git a/attached_assets/image_1772316674862.png b/attached_assets/image_1772316674862.png new file mode 100644 index 0000000..0019553 Binary files /dev/null and b/attached_assets/image_1772316674862.png differ diff --git a/client/src/components/photo-gallery.tsx b/client/src/components/photo-gallery.tsx index 317490e..a0b91e8 100644 --- a/client/src/components/photo-gallery.tsx +++ b/client/src/components/photo-gallery.tsx @@ -166,10 +166,11 @@ function SingleImageCarousel({ ); } -export function PhotoGalleryWidget() { - const { data: images, isLoading } = useQuery({ +export function PhotoGalleryWidget({ reverseOrder = false }: { reverseOrder?: boolean } = {}) { + const { data: rawImages, isLoading } = useQuery({ queryKey: ["/api/gallery"], }); + const images = reverseOrder && rawImages ? [...rawImages].reverse() : rawImages; const [lightboxIndex, setLightboxIndex] = useState(null); diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 42bb1fb..89ab1e8 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -430,6 +430,7 @@ export default function Home() { { id: "gallery", el: }, { id: "news", el:
}, { id: "breaking", el:
}, + { id: "gallery2", el: }, ]; for (let i = w.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1));