Next JS 13 Intercepting + Parallel Routes Demo
This is a demo application built with Next.js 13 to showcase the usage of intercepting routes and parallel routes feature. The purpose of this application is to demonstrate how to load a route within the current layout while keeping the context for the current page.
Screen.Recording.2023-07-12.at.11.02.38.PM.mov
You can try it out here
Routing Paradigm
The routing paradigm used in this demo application allows for intercepting a certain route to show a different route while maintaining the context of the current page. Here we show a modal overlay with the image of the animal within the gallery page. The modal overlay is a separate route that is loaded within the gallery page. The gallery page is not reloaded when the modal overlay is shown.
Development
- Clone the repo
git clone https://github.com/JaleelB/wildpics.git
- Install packages
yarn
- Run the app
yarn dev