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

More flexible layout of gallery cards #161

Open
brian-rose opened this issue Jul 18, 2023 · 2 comments
Open

More flexible layout of gallery cards #161

brian-rose opened this issue Jul 18, 2023 · 2 comments
Labels
infrastructure Infrastructure related issue

Comments

@brian-rose
Copy link
Member

The current single-column layout of the Cookbook Gallery works well on mobile devices but not so great on larger screens. I think the gallery will look better and also be easier to navigate with a multi-column view of gallery cards that automatically collapses to single-column on smaller devices. Why not see all Cookbooks together on one screen if you're working on a larger display?

For comparison, take a look at the (mostly defunct) Pangeo gallery:
http://gallery.pangeo.io

That one defaults to a three-column layout on larger windows but seamlessly transitions to two- or one-column layouts in narrower windows.

The same comment applies to our single-column Resource Gallery. Both galleries are generated by very similar code, so there's scope to solve two problems simultaneously.

@brian-rose brian-rose added the infrastructure Infrastructure related issue label Jul 18, 2023
@ahuang11
Copy link
Contributor

Just wanted to throw in another example:
https://unidata.github.io/MetPy/latest/examples/index.html

@dcamron
Copy link
Contributor

dcamron commented Sep 18, 2023

sphinx-design has markdown and rst syntax for creating responsive grids and cards in sphinx-generated sites (eg jupyter books.) Could be a low-barrier solution for this.

MetPy uses sphinx-design for the home cards, but uses sphinx-gallery for the example gallery listed above (generated from a directory of python scripts, so somewhat different use-case.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Infrastructure related issue
Projects
Status: Backlog
Development

No branches or pull requests

4 participants