v6-docs icon indicating copy to clipboard operation
v6-docs copied to clipboard

feat: add pagination to doc

Open prisca-c opened this issue 1 year ago • 5 comments

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 ! 😄

prisca-c avatar Sep 30 '24 20:09 prisca-c

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

Julien-R44 avatar Sep 30 '24 21:09 Julien-R44

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

prisca-c avatar Oct 01 '24 18:10 prisca-c

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.

RomainLanz avatar Oct 02 '24 08:10 RomainLanz

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

prisca-c avatar Oct 02 '24 15:10 prisca-c

Style Update 🎨 :


prisca-c avatar Oct 03 '24 18:10 prisca-c

Thanks! 🔥

RomainLanz avatar Nov 28 '24 14:11 RomainLanz