sveltefire
sveltefire copied to clipboard
Make Documentation Website Responsive
Currently, the documentation's side navbar does not collapse on small screens.
Let's add a hamburger icon and make it collapse on small screens.
Relevant files:
- docs/src/layouts/MainLayout.astro
- docs/src/components/SideNav.astro
Hey @codediodeio, I'd be glad to look into this!
Heya @codediodeio, you might wanna also look into https://starlight.astro.build/
@codediodeio Was working on this and I have added the hamburger icon for the side bar:
https://github.com/codediodeio/sveltefire/assets/89381263/670d2d97-647f-435f-9ffc-71e8475606c6
The animations are something I'm trying to get right along with the padding for the text, but I'd be glad to know your opinion!
@codediodeio Was working on this and I have added the hamburger icon for the side bar:
SideBar_Functioning.mov
The animations are something I'm trying to get right along with the padding for the text, but I'd be glad to know your opinion!
Update: Here's the final SideBar
https://github.com/codediodeio/sveltefire/assets/89381263/11450d71-aed5-4e81-bfca-efa364799801
Do confirm if this works. Would open a PR accordingly!