Dinamic Grid

Does anyone have an idea or example of how to replicate a gird getting information from the database, like img…

Screenshot_1
or

Screenshot_2

Create a query on serverside, then on the page, call it under a server connect action.
Create an element like a card, or a div, or what u want, and apply a repeat
Like:

thanks.