inveniosoftware / invenio-communities

Invenio communities module.
https://invenio-communities.readthedocs.io
MIT License
5 stars 73 forks source link

Featured communities component #819

Closed jennur closed 1 year ago

jennur commented 1 year ago

Create a slideshow component for featured communities, similar to the one in Zenodo:

Screenshot 2022-10-17 at 16 13 18

Related to:

ntarocco commented 1 year ago

@jennur see comment from @slint here: does this follow his solution?

slint commented 1 year ago

In the RFC, I've mentioned e.g. passing id as a macro parameter to improve styling isolation, but I'm not super-familiar with how this affects styling (I saw somewhere a CSS rule on #community-carousel). It's probably not an issue of having multiple carousels on a page, but rather about what the styling overriding API is (i.e. using CSS classes vs. relying on id).

Regarding the dynamic component initialization, similar components in UI frameworks can also get "auto-initialized" by JavaScript when there's a specific attribute in an HTML element (e.g. see the Bootstrap 5 carousel usage), so there's no need to pass an id value explicitly to do the initialization.