As I was brainstorming ideas for my website, I thought about the possibility of creating a small preview gallery for background images. The goal would be to allow users to hover over an image in the gallery and have the CSS background image of the site change on the fly. If they click on the desired image, it would permanently change the background. To achieve this, I might need to save the image URL in a database record.
So, how can I make this idea a reality? First, I would need to create the gallery. One approach could be to iterate through each image in a folder and display them as a stack panel in the gallery. This way, any new images added to the folder would automatically appear in the gallery.
Do you have any suggestions on how I should implement this feature? Should I build it from scratch or base it on an existing gallery plugin?