Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Editor: Media Gallery #56

Open
kellyhp opened this issue Apr 23, 2024 · 0 comments
Open

Content Editor: Media Gallery #56

kellyhp opened this issue Apr 23, 2024 · 0 comments
Assignees

Comments

@kellyhp
Copy link
Contributor

kellyhp commented Apr 23, 2024

Create a new component named PhotoGallery.tsx to display images in a gallery format.

  • Create in /(pages)/content/[collection]/edit/_components/PhotoGallery/PhotoGallery.tsx
  • Modify the PhotoGallery component to accept image data in JSON format as a prop named mediaGallery
  • Display relevant details for each image in the gallery, such as image name, file size, image, and index number.
  • Implement a SCSS module for styling the PhotoGallery component in the same folder
  • Develop a Replace.tsx component to replace images in the gallery in /(pages)/content/[collection]/edit/_components/PhotoGallery/Replace.tsx
  • Include functionality to select and upload a new image to replace the existing one
  • Develop a Delete.tsx component to delete individual images from the gallery and ensure proper confirmation or error handling when deleting images
@kellyhp kellyhp self-assigned this May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant