Dear community, I learned about Anvil via the Talk Python podcast & also followed the Anvil tutorial from Talk Python Training. I am currently evaluating if Anvil is suitable for the project I am currently working on – building an Art Gallery kind of website for my wife. I am proficient in Python and also familiar with Web Development Basics.
I am currently struggling with getting a collection of images + text to display the way I would wish them to. Maybe someone here could help me out or point me in the right direction?
What I’m trying to do:
I wish to display a gallery of images, with each “component” of the gallery consisting of an image and a title and keyword directly below it. What I would like to accomplish is having 2-3 images (+ title below) show up in one row on the page and then wrap over to the next line.
The images are stored as Media files in a data table along with the titles and other information.
What I’ve tried and what’s not working:
I created the data tables, have a Form to add images to the database, and I managed to have all the images display with the Help of a RepeatingPanel and linked item_template form. However I only manage to display one image + description per row and not multiple images per row as I desire.
I tried with multiple of the available container types - ColumnPanel, FlowPanel, and also the Grid, but no luck so far.
What I’ve tried and what’s not working:
Sketch of desired outcome:
Image_1 Image_2 Image_3
title, info title, info title, info
Image_4 Image_5 Image_6
title, info title, info title, info
Ideally it would automatically adjust to only two image per row, if the screen size gets too small and maybe one on a mobile device.
Is what I am trying to achieve feasible with Anvil?
Many thanks in advance,
Arno