Skip to content

TLRKiliann/nextjs-intercepting-routes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

nextjs-intercepting-routes

Route interception - slot - modal with images

I created 2 routes in images to handle 2 modals (reusable component) to intercept routes (..)city/ & (..)holliday/.

The aim was to intercept the image by its id before displaying the chosen image.

If you enter the number of image in the url, you can access directly to the image.

You can also click on one image and press tab, on keyboard, to get next image.

All explanations are included in the main page.tsx file.

Installation

$ git clone ...

$ cd my-app

$ pnpm install

Libraries installed

$ pnpm add next-themes

$ pnpm add -D tailwindcss-animate

$ pnpm add sharp

$ pnpm add react-icons

Enjoy it ! 🐨

About

Intercepting routes - slot - modal with images

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published