#Multi-Layout Page

3 messages · Page 1 of 1 (latest)

gilded oxide
#

Hello astronauts 😁

Is there any possibility to create a page (MDX) that normally displays as a "conventional" web page (vertical scroll), but with a button the page layout changes and displays as Slides?

Do you know any project that can do this Multi-Layout or something similar? What would be your recommendation to achieve this behaviour, I would like to know your astronomical ideas.

PD:
Sorry of the title is misleading or unclear, I just don't know how to put it in better words 😅.

pulsar matrix
#

There may be other ways, but here are some basic ideas.

  1. I think you could do this with pagination. The slides would be individual pages or entries of a collection. The conventional, scrollable page would include a list of them.

  2. Another approach would be similar to how you would create a blog with an archive, or a how based on the people.ts data file in my example over here multiple people profile pages are created as well as an overview of people.

GitHub

Contribute to kslstn/astro-i18n-blog-starter development by creating an account on GitHub.

#

Question is if each slide would need its own route. If not, it could be all client-side CSS + a little Javascript to change the view from a list to a slide show