Commit ff2042d
Remix Jam 2025 photo gallery (#366)
* Add PhotoSchema and transformShopifyImageUrl function to handle image URL transformations. Implement getPhotos function to fetch and parse photo data from Shopify metaobjects, ensuring proper error handling and validation.
* Add gallery route and page for Remix Jam 2025
- Introduced a new route for the photo gallery at "2025/gallery".
- Created the GalleryPage component to display optimized photos fetched from Shopify.
- Implemented responsive image handling and metadata for SEO.
* Refactor GalleryPage component and enhance image handling
- Renamed the download icon in icons.svg for clarity.
- Updated the GalleryPage component to include new image handling features such as modal support, keyboard navigation, and download functionality.
- Improved photo optimization and added full resolution image URLs for better user experience.
- Implemented hydration checks to manage modal visibility and body scroll behavior.
- Enhanced accessibility with keyboard navigation and improved link handling for images.
* Refactor GalleryPage component to improve image rendering and data handling
- Updated the loader function to return all optimized photos instead of a limited set.
- Replaced direct image elements with a new Photo component for better code organization and reusability.
- Removed unnecessary comments and cleaned up the modal image handling for clarity.
- Enhanced the overall structure of the GalleryPage for improved maintainability.
* Enhance GalleryPage component and update styles
- Refactored modal handling to preserve scroll position when the dialog is open.
- Improved CSS styles for scrollbar appearance and stability.
* Refactor GalleryPage component to enhance modal functionality and accessibility
- Moved modal handling logic into a separate PhotoModal component for better organization.
- Implemented dialog accessibility features, including scroll locking and focus trapping.
- Updated keyboard navigation for improved user experience when interacting with the modal.
- Enhanced CSS styles for focus outlines and button interactions.
* Refactor image handling and optimize photo rendering in GalleryPage
- Moved the transformShopifyImageUrl function to utils.tsx for better organization and reusability.
- Updated GalleryPage to utilize the new image transformation function, enhancing photo optimization.
- Introduced a new og-gallery image for improved social sharing.
- Cleaned up the loader function to streamline photo data handling and removed redundant code related to image optimization.
* Fix React key prop to use unique photo URL instead of array index (#367)
* Initial plan
* Fix: use photo.url as key instead of array index
Co-authored-by: brookslybrand <12396812+brookslybrand@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: brookslybrand <12396812+brookslybrand@users.noreply.github.com>
* Cleanup code
* Enhance Navbar and GalleryPage components
- Added a "Gallery" link to the Navbar for improved navigation.
- Updated styles for responsive design in Navbar and TicketLogo.
- Cleaned up the GalleryPage loader function by removing redundant code and ensuring proper photo fetching.
* Remove the width and height of the image element
* Refactor PhotoModal and ModalImage components for improved image handling
- Added click event to backdrop for better user interaction.
- Introduced aspect ratio handling and conditional styling for images based on orientation.
- Updated image quality settings for enhanced rendering.
* Small style tweaks
* Remove rounded corners on full image display
* Make the focus state of icons a bit more visible
---------
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: brookslybrand <12396812+brookslybrand@users.noreply.github.com>1 parent 97dc3fa commit ff2042d
File tree
9 files changed
+556
-6
lines changed- app
- routes/jam
- images
- pages
9 files changed
+556
-6
lines changedLoading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | | - | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | | - | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| |||
120 | 126 | | |
121 | 127 | | |
122 | 128 | | |
123 | | - | |
| 129 | + | |
124 | 130 | | |
125 | 131 | | |
126 | 132 | | |
| |||
0 commit comments