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

Make CH.Spotlight mobile responsive #387

Open
MorningLit opened this issue Jun 19, 2023 · 3 comments
Open

Make CH.Spotlight mobile responsive #387

MorningLit opened this issue Jun 19, 2023 · 3 comments

Comments

@MorningLit
Copy link

Hi! Thanks for creating this amazing library, I am really loving it so far.

I created this issue because I am wondering if it is possible to make the CH.Spotlight mobile responsive?
image
I've created an article with it and it doesn't look the best on mobile 🙁
Maybe one possible solution is to make the code appear below the sections when there is not enough space?

@pomber
Copy link
Contributor

pomber commented Jun 19, 2023

👍
we should do the same as with Scrollycoding and fallback to a static version of the component

@DanielFGray
Copy link

+1 we should do the same as with Scrollycoding and fallback to a static version of the component

I have a horizontal spotlight component that works great on mobile, about half-way down the page here: https://danielfgray.com/articles/ez-react-forms

Maybe the fallback behavior can be controlled somehow?

@pomber
Copy link
Contributor

pomber commented Jun 21, 2023

Ideally, all the components should have a static version, not only for mobile but also for print, and for readers that don't like the interactivity.

The idea is to use staticMediaQuery to control when to show the static version. It will be possible to set it at the component level. See this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants