diff --git a/.gitignore b/.gitignore index e40b2c6..6551b8e 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ .env.development.local .env.test.local .env.production.local +.metadata npm-debug.log* yarn-debug.log* diff --git a/package-lock.json b/package-lock.json index fbbcd97..4356a24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.1.0", "dependencies": { "@emotion/react": "^11.10.6", + "@mantine/carousel": "^6.0.1", "@mantine/core": "^6.0.1", "@mantine/hooks": "^6.0.1", "@types/jest": "^27.5.2", @@ -3130,6 +3131,20 @@ "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" }, + "node_modules/@mantine/carousel": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@mantine/carousel/-/carousel-6.0.1.tgz", + "integrity": "sha512-ARwb/Ov4I7zH+3NA42YjSNnv+Tt9dX2BPsmbXaZXhwVTRi2eJZUyLQNsMh8FutlGXbrjtoWrf1DnI96v9CBkpg==", + "dependencies": { + "@mantine/utils": "6.0.1" + }, + "peerDependencies": { + "@mantine/core": "6.0.1", + "@mantine/hooks": "6.0.1", + "embla-carousel-react": "^7.0.0", + "react": ">=16.8.0" + } + }, "node_modules/@mantine/core": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/@mantine/core/-/core-6.0.1.tgz", @@ -6624,6 +6639,24 @@ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.320.tgz", "integrity": "sha512-h70iRscrNluMZPVICXYl5SSB+rBKo22XfuIS1ER0OQxQZpKTnFpuS6coj7wY9M/3trv7OR88rRMOlKmRvDty7Q==" }, + "node_modules/embla-carousel": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/embla-carousel/-/embla-carousel-7.1.0.tgz", + "integrity": "sha512-Bh8Pa8NWzgugLkf8sAGexQlBCNDFaej5BXiKgQdRJ1mUC9NWBrw9Z23YVPVGkguWoz5LMjZXXFVGCobl3UPt/Q==", + "peer": true + }, + "node_modules/embla-carousel-react": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/embla-carousel-react/-/embla-carousel-react-7.1.0.tgz", + "integrity": "sha512-tbYRPRZSDNd2QLNqYDcArAakGIxtUbhS7tkP0dGXktXHGgcX+3ji3VrOUTOftBiujZrMV8kRxtrRUe/1soloIQ==", + "peer": true, + "dependencies": { + "embla-carousel": "7.1.0" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.1 || ^18.0.0" + } + }, "node_modules/emittery": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", @@ -19332,6 +19365,14 @@ "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" }, + "@mantine/carousel": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@mantine/carousel/-/carousel-6.0.1.tgz", + "integrity": "sha512-ARwb/Ov4I7zH+3NA42YjSNnv+Tt9dX2BPsmbXaZXhwVTRi2eJZUyLQNsMh8FutlGXbrjtoWrf1DnI96v9CBkpg==", + "requires": { + "@mantine/utils": "6.0.1" + } + }, "@mantine/core": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/@mantine/core/-/core-6.0.1.tgz", @@ -21910,6 +21951,21 @@ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.320.tgz", "integrity": "sha512-h70iRscrNluMZPVICXYl5SSB+rBKo22XfuIS1ER0OQxQZpKTnFpuS6coj7wY9M/3trv7OR88rRMOlKmRvDty7Q==" }, + "embla-carousel": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/embla-carousel/-/embla-carousel-7.1.0.tgz", + "integrity": "sha512-Bh8Pa8NWzgugLkf8sAGexQlBCNDFaej5BXiKgQdRJ1mUC9NWBrw9Z23YVPVGkguWoz5LMjZXXFVGCobl3UPt/Q==", + "peer": true + }, + "embla-carousel-react": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/embla-carousel-react/-/embla-carousel-react-7.1.0.tgz", + "integrity": "sha512-tbYRPRZSDNd2QLNqYDcArAakGIxtUbhS7tkP0dGXktXHGgcX+3ji3VrOUTOftBiujZrMV8kRxtrRUe/1soloIQ==", + "peer": true, + "requires": { + "embla-carousel": "7.1.0" + } + }, "emittery": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", diff --git a/package.json b/package.json index f8328d8..655b1a2 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "private": true, "dependencies": { "@emotion/react": "^11.10.6", + "@mantine/carousel": "^6.0.1", "@mantine/core": "^6.0.1", "@mantine/hooks": "^6.0.1", "@types/jest": "^27.5.2", diff --git a/public/settings.js b/public/settings.js index c7f48c3..ef6029b 100644 --- a/public/settings.js +++ b/public/settings.js @@ -41,5 +41,27 @@ window.globalThis= { "original": "IMG_20230305_164923_912.jpg", "thumbnail": "thumb-IMG_20230305_164923_912.jpg" } - ] + ], + "gallery2": + { + "photos": + [ + "IMG_20230217_161150_331.jpg", + "IMG_20230218_182608_079.jpg", + "IMG_20230218_182625_867.jpg", + "IMG_20230218_184359_940.jpg", + "IMG_20230218_184429_386.jpg", + "IMG_20230305_164907_552.jpg", + "IMG_20230305_164913_285.jpg", + "IMG_20230305_164919_797.jpg", + "IMG_20230305_164921_376.jpg", + "IMG_20230305_164923_912.jpg" + ], + "videos": + [ + "VID_20230226_000317.mp4", + "VID_20230303_182143.mp4", + "VID_20230305_230139.mp4" + ] + } }; \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index 001bbb4..3dcd1f1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,14 +1,23 @@ import React from 'react'; -import ImageGalleryX from './components/ImageGallery'; +import ImageGalleryX from './components/ImageGalleryX'; import './App.css'; import { AppShell } from '@mantine/core'; import HeaderX from './components/HeaderX'; +import {photos, videos} from './state'; +import GalleryCarousel from './components/GalleryCarousel'; + +function App() +{ + const root: string = process.env.REACT_APP_WWW_ROOT!; + const uploads: string = root + 'uploads/'; -function App() { return (