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

feat: add pagination to doc #155

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

prisca-c
Copy link

Hello 👋

This is a PR to solve issue #34 .

I've added an edge global to handle the pagination called getPagination and called it inside docs.edge within the component pagination.

I'll share some screenshot of what it looks like.

Right now on desktop it looks like this :
image

When you hover a button it gets a little bit brighter.

The main "issue" here is when text takes a lot of place it looks really tight in mobile :

Eventually in mobile, text can be align left / right , i can edit it , here's how it looks like :

Tell me if you've got any suggestions ! 😄

@Julien-R44
Copy link
Member

Cool !!

On mobile, the two buttons can probably be stacked. Example on the nuxt doc: image

https://nuxt.com/docs/getting-started/configuration

I think there are a few styling tweaks to be made, but I'll let @thetutlage talk about that first since he designed the website

@prisca-c
Copy link
Author

prisca-c commented Oct 1, 2024

Oh it would look better like this, keeping it in mind, waiting for more info and i'll make the changes !

@RomainLanz
Copy link
Member

This is neat, great job @prisca-c!

I agree with Julien, stacking the block on mobile seems the way to go.

I am not sure if we should reverse the order on mobile; you are more likely to move forward than backward.

@prisca-c
Copy link
Author

prisca-c commented Oct 2, 2024

I'll update it later and then i'll share how it'll looks !

@prisca-c
Copy link
Author

prisca-c commented Oct 3, 2024

Style Update 🎨 :


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

Successfully merging this pull request may close these issues.

3 participants