Custom pagination portfolio project with Astra theme

Hello everyone, I am a beginner that is making a portfolio website and I am wondering how I can make a different pagination. This is the reference I have. I like it because the overlay shows an image of the project. I wonder if I should do it with a widget or create a template. Then my biggest question is how to link the projects to the previews and next.

Thank you very much to the person who helps me with this question.