From 35e7fa4123ea3b7ae035958c2d01b7bccdeb7789 Mon Sep 17 00:00:00 2001 From: Mhdi <0MehdiKeramati1@gmail.com> Date: Mon, 15 Jul 2024 18:59:56 +0330 Subject: [PATCH] Updates --- index.html | 4 +++- main.js | 3 ++- main.js.map | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b6058d7..6f0d874 100644 --- a/index.html +++ b/index.html @@ -3,8 +3,10 @@ - Your Component Library Demo + Overlay Image Gallery + +
diff --git a/main.js b/main.js index 771fb20..103ca34 100644 --- a/main.js +++ b/main.js @@ -194,7 +194,8 @@ var css_248z = "*,\r\n*::after,\r\n*::before {\r\n margin: 0;\r\n padding: 0;\r\n border: 0;\r\n box-sizing: border-box;\r\n}\r\n\r\nhtml,\r\nbody {\r\n overflow-x: hidden;\r\n font-family: \"Segoe UI\", Tahoma, Geneva, Verdana, sans-serif;\r\n}\r\n\r\nimg {\r\n background-size: cover;\r\n object-fit: cover;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n}\r\n"; styleInject(css_248z); - ReactDOM.createRoot(document.getElementById("root")).render(React.createElement(React.StrictMode, null, + var root = ReactDOM.createRoot(document.getElementById("root")); + root.render(React.createElement(React.StrictMode, null, React.createElement(App, null))); })(React, ReactDOM); diff --git a/main.js.map b/main.js.map index 1b5a4e8..eea1af6 100644 --- a/main.js.map +++ b/main.js.map @@ -1 +1 @@ -{"version":3,"file":"main.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/components/AlbumModal.tsx","../src/components/SingleImageModal.tsx","../src/components/ImageGallery.tsx","../src/App.tsx","../src/main.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React, { useRef, useEffect } from \"react\";\r\nimport { AlbumModalProps } from \"../types\";\r\nimport \"../styles/AlbumModal.css\";\r\n\r\nconst getRandomHeight = () => {\r\n const min = 6;\r\n const max = 20;\r\n const height = Math.random() * (max - min) + min;\r\n return `${height}rem`;\r\n};\r\n\r\nconst AlbumModal = (props: AlbumModalProps) => {\r\n const { images, onClose, onImageClick, selectedImageIndex } = props;\r\n const selectedImageRef = useRef(null);\r\n\r\n useEffect(() => {\r\n if (selectedImageRef.current) {\r\n setTimeout(() => {\r\n selectedImageRef.current?.scrollIntoView({\r\n behavior: \"smooth\",\r\n block: \"center\",\r\n });\r\n }, 150);\r\n selectedImageRef.current.classList.add(\"winking-effect\");\r\n setTimeout(() => {\r\n if (selectedImageRef.current) {\r\n selectedImageRef.current.classList.remove(\"winking-effect\");\r\n }\r\n }, 2200);\r\n }\r\n }, [selectedImageIndex]);\r\n\r\n return (\r\n
\r\n \r\n
\r\n {images.map((image, index) => (\r\n
\r\n onImageClick(index)}\r\n style={{ height: getRandomHeight() }}\r\n ref={index === selectedImageIndex ? selectedImageRef : null}\r\n />\r\n
\r\n ))}\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default AlbumModal;\r\n","import React from \"react\";\r\n\r\nimport { useRef, useEffect, useState } from \"react\";\r\nimport { SingleImageModalProps } from \"../types\";\r\nimport \"../styles/SingleImageModal.css\";\r\n\r\nconst SingleImageModal = (props: SingleImageModalProps) => {\r\n const { images, currentIndex, onClose, onPrev, onNext, onThumbnailClick } =\r\n props;\r\n const currentImage = images[currentIndex];\r\n const thumbnailStripRef = useRef(null);\r\n const [direction, setDirection] = useState<\"next\" | \"prev\" | null>(null);\r\n\r\n useEffect(() => {\r\n if (thumbnailStripRef.current) {\r\n const activeThumb = thumbnailStripRef.current.querySelector(\".active\");\r\n if (activeThumb) {\r\n activeThumb.scrollIntoView({\r\n behavior: \"smooth\",\r\n inline: \"center\",\r\n block: \"nearest\",\r\n });\r\n }\r\n }\r\n }, [currentIndex]);\r\n\r\n const handleNext = () => {\r\n setDirection(\"next\");\r\n onNext();\r\n };\r\n\r\n const handlePrev = () => {\r\n setDirection(\"prev\");\r\n onPrev();\r\n };\r\n\r\n return (\r\n
\r\n \r\n
\r\n setDirection(null)}\r\n />\r\n
\r\n {currentIndex + 1}/{images.length}\r\n
\r\n
\r\n \r\n \r\n
\r\n {images.map((image, index) => (\r\n
\r\n onThumbnailClick(index)}\r\n />\r\n
\r\n ))}\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default SingleImageModal;\r\n","import React from \"react\";\r\nimport { ImageGalleryProps } from \"../types\";\r\n\r\nimport { useEffect, useState } from \"react\";\r\n\r\nimport AlbumModal from \"./AlbumModal\";\r\nimport SingleImageModal from \"./SingleImageModal\";\r\n\r\nimport \"../styles/ImageGallery.css\";\r\n\r\nconst ImageGallery = (props: ImageGalleryProps) => {\r\n const { images, width, height, grid, fullScreen } = props;\r\n\r\n const [showAlbumModal, setShowAlbumModal] = useState(false);\r\n const [showSingleImageModal, setShowSingleImageModal] = useState(false);\r\n const [currentImageIndex, setCurrentImageIndex] = useState(0);\r\n const [selectedImageIndex, setSelectedImageIndex] = useState(0);\r\n const [isMobile, setIsMobile] = useState(false);\r\n\r\n useEffect(() => {\r\n const checkMobile = () => {\r\n setIsMobile(window.innerWidth <= 468);\r\n };\r\n\r\n checkMobile();\r\n window.addEventListener(\"resize\", checkMobile);\r\n return () => window.removeEventListener(\"resize\", checkMobile);\r\n }, []);\r\n\r\n const openAlbumModal = (index: number) => {\r\n setSelectedImageIndex(index);\r\n setShowAlbumModal(true);\r\n };\r\n\r\n const closeAlbumModal = () => setShowAlbumModal(false);\r\n const openSingleImageModal = (index: number) => {\r\n setSelectedImageIndex(index);\r\n setShowSingleImageModal(true);\r\n };\r\n const closeSingleImageModal = () => setShowSingleImageModal(false);\r\n\r\n const handleThumbnailClick = (index: number) => {\r\n setSelectedImageIndex(index);\r\n };\r\n\r\n const handleNextImage = () => {\r\n setCurrentImageIndex((prevIndex) => (prevIndex + 1) % images.length);\r\n };\r\n\r\n const handlePrevImage = () => {\r\n setCurrentImageIndex(\r\n (prevIndex) => (prevIndex - 1 + images.length) % images.length\r\n );\r\n };\r\n\r\n if (isMobile) {\r\n return (\r\n {}}\r\n onPrev={handlePrevImage}\r\n onNext={handleNextImage}\r\n onThumbnailClick={setCurrentImageIndex}\r\n />\r\n );\r\n }\r\n\r\n const gridClassName = grid === \"v2\" ? \"grid-version2\" : \"grid-version1\";\r\n\r\n return (\r\n \r\n
\r\n {images.slice(0, 10).map((image, index) => (\r\n openAlbumModal(index)}\r\n className=\"img-box\"\r\n >\r\n {image}\r\n\r\n {images.length > 10 && index === 9 && (\r\n
+{images.length - 10} Photos
\r\n )}\r\n
\r\n ))}\r\n \r\n\r\n {showAlbumModal && (\r\n \r\n )}\r\n\r\n {showSingleImageModal && (\r\n \r\n setSelectedImageIndex(\r\n (prev) => (prev - 1 + images.length) % images.length\r\n )\r\n }\r\n onNext={() =>\r\n setSelectedImageIndex((prev) => (prev + 1) % images.length)\r\n }\r\n onThumbnailClick={handleThumbnailClick}\r\n />\r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default ImageGallery;\r\n","import React from \"react\";\n\nimport OverlayGallery from \"./components/ImageGallery\";\n\nfunction App() {\n const imagesList = [\n \"https://images.pexels.com/photos/22807107/pexels-photo-22807107/free-photo-of-a-dog-in-a-car.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAQEBAPEBAQEBUVFRUQFQ8VEBAQFhUPFRUWFhcVFRUYHSggGBolGxUVITEhJSkrLi4uFx8zODMsNygtLisBCgoKDg0OGhAQGy0lHyAtKy0tKy0tLS0tLS0tLS0tLS0tLS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8RmFQ9T8SikuX1d7R2egnl63hlomnYfkHJeqxRufb7IpLg4fZXpcvvjaysf7bFpMRSXr8Xsj571H/pT1nY7dFJasVRJJJQkkkkkACKSSApJJIP/2Q==\",\n \"https://images.pexels.com/photos/1741205/pexels-photo-1741205.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/699739/pexels-photo-699739.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/13130413/pexels-photo-13130413.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/15447232/pexels-photo-15447232/free-photo-of-building-with-a-blue-door.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/1851164/pexels-photo-1851164.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/160729/wall-fox-lasiommata-megera-butterfly-hand-160729.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/209415/pexels-photo-209415.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/5709945/pexels-photo-5709945.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/3155894/pexels-photo-3155894.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/160846/french-bulldog-summer-smile-joy-160846.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/58997/pexels-photo-58997.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/1458916/pexels-photo-1458916.jpeg?auto=compress&cs=tinysrgb&w=600\",\n ];\n\n return (\n \n \n \n );\n}\n\nexport default App;\n","import React from \"react\";\nimport ReactDOM from \"react-dom/client\";\nimport App from \"./App\";\nimport \"./styles/Global.css\";\n\nReactDOM.createRoot(document.getElementById(\"root\")!).render(\n \n \n \n);\n"],"names":["useRef","useEffect","useState","OverlayGallery"],"mappings":";;;EAAA,SAAS,WAAW,CAAC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x_google_ignoreList":[0]} \ No newline at end of file +{"version":3,"file":"main.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/components/AlbumModal.tsx","../src/components/SingleImageModal.tsx","../src/components/ImageGallery.tsx","../src/App.tsx","../src/main.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React, { useRef, useEffect } from \"react\";\r\nimport { AlbumModalProps } from \"../types\";\r\nimport \"../styles/AlbumModal.css\";\r\n\r\nconst getRandomHeight = () => {\r\n const min = 6;\r\n const max = 20;\r\n const height = Math.random() * (max - min) + min;\r\n return `${height}rem`;\r\n};\r\n\r\nconst AlbumModal = (props: AlbumModalProps) => {\r\n const { images, onClose, onImageClick, selectedImageIndex } = props;\r\n const selectedImageRef = useRef(null);\r\n\r\n useEffect(() => {\r\n if (selectedImageRef.current) {\r\n setTimeout(() => {\r\n selectedImageRef.current?.scrollIntoView({\r\n behavior: \"smooth\",\r\n block: \"center\",\r\n });\r\n }, 150);\r\n selectedImageRef.current.classList.add(\"winking-effect\");\r\n setTimeout(() => {\r\n if (selectedImageRef.current) {\r\n selectedImageRef.current.classList.remove(\"winking-effect\");\r\n }\r\n }, 2200);\r\n }\r\n }, [selectedImageIndex]);\r\n\r\n return (\r\n
\r\n \r\n
\r\n {images.map((image, index) => (\r\n
\r\n onImageClick(index)}\r\n style={{ height: getRandomHeight() }}\r\n ref={index === selectedImageIndex ? selectedImageRef : null}\r\n />\r\n
\r\n ))}\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default AlbumModal;\r\n","import React from \"react\";\r\n\r\nimport { useRef, useEffect, useState } from \"react\";\r\nimport { SingleImageModalProps } from \"../types\";\r\nimport \"../styles/SingleImageModal.css\";\r\n\r\nconst SingleImageModal = (props: SingleImageModalProps) => {\r\n const { images, currentIndex, onClose, onPrev, onNext, onThumbnailClick } =\r\n props;\r\n const currentImage = images[currentIndex];\r\n const thumbnailStripRef = useRef(null);\r\n const [direction, setDirection] = useState<\"next\" | \"prev\" | null>(null);\r\n\r\n useEffect(() => {\r\n if (thumbnailStripRef.current) {\r\n const activeThumb = thumbnailStripRef.current.querySelector(\".active\");\r\n if (activeThumb) {\r\n activeThumb.scrollIntoView({\r\n behavior: \"smooth\",\r\n inline: \"center\",\r\n block: \"nearest\",\r\n });\r\n }\r\n }\r\n }, [currentIndex]);\r\n\r\n const handleNext = () => {\r\n setDirection(\"next\");\r\n onNext();\r\n };\r\n\r\n const handlePrev = () => {\r\n setDirection(\"prev\");\r\n onPrev();\r\n };\r\n\r\n return (\r\n
\r\n \r\n
\r\n setDirection(null)}\r\n />\r\n
\r\n {currentIndex + 1}/{images.length}\r\n
\r\n
\r\n \r\n \r\n
\r\n {images.map((image, index) => (\r\n
\r\n onThumbnailClick(index)}\r\n />\r\n
\r\n ))}\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default SingleImageModal;\r\n","import React from \"react\";\r\nimport { ImageGalleryProps } from \"../types\";\r\n\r\nimport { useEffect, useState } from \"react\";\r\n\r\nimport AlbumModal from \"./AlbumModal\";\r\nimport SingleImageModal from \"./SingleImageModal\";\r\n\r\nimport \"../styles/ImageGallery.css\";\r\n\r\nconst ImageGallery = (props: ImageGalleryProps) => {\r\n const { images, width, height, grid, fullScreen } = props;\r\n\r\n const [showAlbumModal, setShowAlbumModal] = useState(false);\r\n const [showSingleImageModal, setShowSingleImageModal] = useState(false);\r\n const [currentImageIndex, setCurrentImageIndex] = useState(0);\r\n const [selectedImageIndex, setSelectedImageIndex] = useState(0);\r\n const [isMobile, setIsMobile] = useState(false);\r\n\r\n useEffect(() => {\r\n const checkMobile = () => {\r\n setIsMobile(window.innerWidth <= 468);\r\n };\r\n\r\n checkMobile();\r\n window.addEventListener(\"resize\", checkMobile);\r\n return () => window.removeEventListener(\"resize\", checkMobile);\r\n }, []);\r\n\r\n const openAlbumModal = (index: number) => {\r\n setSelectedImageIndex(index);\r\n setShowAlbumModal(true);\r\n };\r\n\r\n const closeAlbumModal = () => setShowAlbumModal(false);\r\n const openSingleImageModal = (index: number) => {\r\n setSelectedImageIndex(index);\r\n setShowSingleImageModal(true);\r\n };\r\n const closeSingleImageModal = () => setShowSingleImageModal(false);\r\n\r\n const handleThumbnailClick = (index: number) => {\r\n setSelectedImageIndex(index);\r\n };\r\n\r\n const handleNextImage = () => {\r\n setCurrentImageIndex((prevIndex) => (prevIndex + 1) % images.length);\r\n };\r\n\r\n const handlePrevImage = () => {\r\n setCurrentImageIndex(\r\n (prevIndex) => (prevIndex - 1 + images.length) % images.length\r\n );\r\n };\r\n\r\n if (isMobile) {\r\n return (\r\n {}}\r\n onPrev={handlePrevImage}\r\n onNext={handleNextImage}\r\n onThumbnailClick={setCurrentImageIndex}\r\n />\r\n );\r\n }\r\n\r\n const gridClassName = grid === \"v2\" ? \"grid-version2\" : \"grid-version1\";\r\n\r\n return (\r\n \r\n
\r\n {images.slice(0, 10).map((image, index) => (\r\n openAlbumModal(index)}\r\n className=\"img-box\"\r\n >\r\n {image}\r\n\r\n {images.length > 10 && index === 9 && (\r\n
+{images.length - 10} Photos
\r\n )}\r\n
\r\n ))}\r\n \r\n\r\n {showAlbumModal && (\r\n \r\n )}\r\n\r\n {showSingleImageModal && (\r\n \r\n setSelectedImageIndex(\r\n (prev) => (prev - 1 + images.length) % images.length\r\n )\r\n }\r\n onNext={() =>\r\n setSelectedImageIndex((prev) => (prev + 1) % images.length)\r\n }\r\n onThumbnailClick={handleThumbnailClick}\r\n />\r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default ImageGallery;\r\n","import React from \"react\";\n\nimport OverlayGallery from \"./components/ImageGallery\";\n\nfunction App() {\n const imagesList = [\n \"https://images.pexels.com/photos/22807107/pexels-photo-22807107/free-photo-of-a-dog-in-a-car.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAQEBAPEBAQEBUVFRUQFQ8VEBAQFhUPFRUWFhcVFRUYHSggGBolGxUVITEhJSkrLi4uFx8zODMsNygtLisBCgoKDg0OGhAQGy0lHyAtKy0tKy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0rLS0tLS0tLS0tLf/AABEIAMIBAwMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAABAAIDBAUHBgj/xAA5EAABAwIEBAQEBQMEAwEAAAABAAIRAyEEBRIxBkFRYRMicYGRobHBBzJC0fBS4fEVIzNiJHKyFP/EABoBAQADAQEBAAAAAAAAAAAAAAABAgMEBQb/xAAlEQEBAAIBAwQDAQEBAAAAAAAAAQIRAxIhMQQyQVETInFhsTP/2gAMAwEAAhEDEQA/AOqJIwg9wAJJgC5PQKGgQgVl1uIcO0wC5/drSR8VbwuY0qgkEj1BCznNhbqVreHkk3YnKDk5pB2cD7oupnotJZWWrPKApIlBQkgigEVKAhJOCUIC1OCaE4IiikUklKDSq+YuhrQdt1ZKOJwuoSFnn4a8dm+7zWPoQDG0SvG5/A/LZdKxGFMaeohc249piiDEwLF3V5/SFhyY2zs7OHObeWxVcyQD7qmNRnfuqAxhlb2XhvhuLiLri5t8cdXHeuo+H8SWVQBtsSu38P1w/Ds5co9FxDLqY1nT1iV1vgiTTe3+k/Za8WX7yxnzY747t6ZieEwFSBem8iiEUAnIggU4JpCIQOTgmJwQOSQSQV1XzJpNGqAJJY6B1MFWAkQq5Tqxs+18cunKX6eGylhdTGoCfSJTq73MnTY82m09x3Wg8ClWfR0wB527XY79jKqZrBBAPL4rh4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rlKm3zOEAkE9FEibna1aWKggOIH3VjG49rAKYI1usB68143FZ+yq+aLfE0+bV37dVq5LhzqOIqmSdgdwufl55L04+f+Orh9Lufkz7T4n3XpKDfyhX2bKhhXg3F1fYVrx+HLzXvpFiG2Wa9bD2yFlV2wVoxRhGU1JEnIIJIHJSmyigKSCKBxQKSSBpQSSQApqSSAIJJKQCgkkoFzC7I4jZJJL4TPLneX02/6nXECJ2gdF5LjCgzxq7dDYBsNIgeySSz4fZP46PUe/L+vM4xgGkAAW5CFJhXkAwSPdJJaueDllQmqJJN+ZJXvsncRVNz/ISSVI3vta+JqEa4JHuei8RmFQ9T8SikuX1d7R2egnl63hlomnYfkHJeqxRufb7IpLg4fZXpcvvjaysf7bFpMRSXr8Xsj571H/pT1nY7dFJasVRJJJQkkkkkACKSSApJJIP/2Q==\",\n \"https://images.pexels.com/photos/1741205/pexels-photo-1741205.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/699739/pexels-photo-699739.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/13130413/pexels-photo-13130413.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/15447232/pexels-photo-15447232/free-photo-of-building-with-a-blue-door.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/1851164/pexels-photo-1851164.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/160729/wall-fox-lasiommata-megera-butterfly-hand-160729.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/209415/pexels-photo-209415.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/5709945/pexels-photo-5709945.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/3155894/pexels-photo-3155894.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/160846/french-bulldog-summer-smile-joy-160846.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/58997/pexels-photo-58997.jpeg?auto=compress&cs=tinysrgb&w=600\",\n \"https://images.pexels.com/photos/1458916/pexels-photo-1458916.jpeg?auto=compress&cs=tinysrgb&w=600\",\n ];\n\n return (\n \n \n \n );\n}\n\nexport default App;\n","import React from \"react\";\nimport ReactDOM from \"react-dom/client\";\nimport App from \"./App\";\nimport \"./styles/Global.css\";\n\nconst root = ReactDOM.createRoot(\n document.getElementById(\"root\") as HTMLElement\n);\nroot.render(\n \n \n \n);\n"],"names":["useRef","useEffect","useState","OverlayGallery"],"mappings":";;;EAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;EAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;EACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;EACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;EACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;EACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;EAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;EACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;EAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;EACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;EAChD,KAAK,MAAM;EACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;EAC9B,KAAK;EACL,GAAG,MAAM;EACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;EAC5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