JaleelB / wildpics

A simple implementation of intercepting & parallel routes in next 13

Home Page:https://wildpics.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Clone the repo
git clone https://github.com/JaleelB/wildpics.git
  1. Install packages
yarn
  1. Run the app
yarn dev

Deploy to vercel

Deploy with Vercel

About

A simple implementation of intercepting & parallel routes in next 13

https://wildpics.vercel.app


Languages

Language:TypeScript 80.8%Language:JavaScript 18.1%Language:CSS 1.1%