This project is a Next.js application that demonstrates deep linking based on device type (Android/iOS/Desktop) and a Masonry Grid layout. The project fetches a redirect URL from an API and handles the redirection based on the device. Additionally, it includes a responsive Masonry Grid that dynamically arranges content.
-
Deep Linking
- Device-Specific Redirection
- Android: Attempts to open the link in the native app using
intent://
scheme. Falls back to the web version if the app is not installed. - iOS: Attempts to open the link in the native app using the regular URL scheme. Falls back to the web version if the app is not installed.
- Desktop: Opens the link in a new tab.
- Android: Attempts to open the link in the native app using
- Device-Specific Redirection
-
Masonry Grid Layout
- Dynamic Content Arrangement: The Masonry Grid layout allows for dynamically arranged cards with varying content types (image, text, link, etc.) and aspect ratios. The layout is fully responsive and adapts to different screen sizes.
- /app: Contains the main application components.
- /redirect: Handles the deep linking redirection logic.
- /components: Contains reusable components like the Masonry Grid.
- /public: Public assets like images, fonts, etc.
- Node.js: Ensure that you have Node.js installed on your machine. You can download it from nodejs.org.
-
Clone the Repository
git clone https://github.com/sincerelyyyash/DeepLink-Masonry
-
Navigate to the Project Directory
cd masonryUiApp
-
Install Dependencies
npm install
Start the Development Server
npm install