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

Splash template on mobile unable to access social/theme/language menu #977

Open
1 task
magicDGS opened this issue Oct 24, 2023 · 6 comments
Open
1 task

Comments

@magicDGS
Copy link
Contributor

What version of starlight are you using?

0.11.1

What version of astro are you using?

3.2.3

What package manager are you using?

npm

What operating system are you using?

Windows

What browser are you using?

Firefox/Chrome

Describe the Bug

In the basic example directly, there is no way to change on mobile on a landing page (splash template) the theme, as th emenu is not there. The same happen with the social icons and languages in case that there is i18n, that are not present. Thus in mobile the experience of the landing page is poor and not sure if it is intentional.

I haven't mark checkbox to participate with a PR, but I am willing to do so if I have some guidance as I am not familiar with the codebase (nor too much with javascript yet, although I have experience on other programming languages and software development in general).

Link to Minimal Reproducible Example

https://stackblitz.com/github/withastro/starlight/tree/main/examples/basics

Participation

  • I am willing to submit a pull request for this issue.
@delucis
Copy link
Member

delucis commented Oct 24, 2023

Thanks for the issue @magicDGS!

What do people think a possible solution would be here?

  • Should landing pages always show the mobile menu?
  • If so, should they include full navigation (even though they don't on larger screens) or would the menu just include the links and language/theme selectors?

@magicDGS
Copy link
Contributor Author

My 2 cents here (only for the second bullet point): I don't think that they should include the full-navigation even in the case that the menu is present. Maybe the idea then should go more on the direction of showing those components somewhere else instead, to enable the final user on mobile to access them. But as I said on a different discussion, I would not be too strong on my opinion as I am new into UI/UX.

@MrAlex94
Copy link

MrAlex94 commented Oct 26, 2023

If I may chip in:

Should landing pages always show the mobile menu?

That seems reasonable to me, at least from a feature parity standpoint. Having to go to the docs to change language then return back to the splash, seems a bit cumbersome, for example.

If so, should they include full navigation (even though they don't on larger screens) or would the menu just include the links and language/theme selectors?

What does this mean exactly? E.g. on mobile current the splash displays logo + search icon. And on desktop (larger screens?), you can see logo + search + social + theme + language.

For a more selfish reason, we currently use the <Header> component to also shove in our navigation links, since we have multiple docs on one site. So having the button show on splash makes our lives easier :-)

@rgilsimoes
Copy link
Contributor

Please disregard my design abilities, but why not just include the icons on the header?
image

@at-the-vr
Copy link
Contributor

Please disregard my design abilities, but why not just include the icons on the header? image

valid point but when you start adding social links and larger titles this becomes difficult to handle even with flexbox

@rgilsimoes
Copy link
Contributor

Perhaps Social Links aren't as important as the language switch dropdown.
So, it all comes to settle on a compromise.

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

5 participants