Skip to main content
Slik Dev generates a complete set of starter pages — Landing, Auth, Dashboard, and Admin — but your product will inevitably need more. Because Slik Dev builds on Next.js App Router, adding a new route is as simple as creating a folder and a file. This guide explains how routing works in your generated app and walks you through building a fully styled Pricing page from scratch using Slik Dev’s existing components and conventions.

How Next.js App Router file-based routing works

In your generated project, every route is defined by the folder structure under app/. A folder named pricing inside app/ creates the route /pricing. The page rendered at that route is the page.tsx file inside that folder.
Each page.tsx must export a default React component. Layout files (layout.tsx) let you wrap multiple routes with shared UI like a Navbar or sidebar. If you want the Pricing page to share the same Navbar and Footer as the Landing page, you can either import them directly into page.tsx or add a layout.tsx at the app/ level.
Next.js App Router uses React Server Components by default. If your page needs client-side interactivity (state, event handlers, animations), add "use client" as the first line of the file.

Step-by-step: creating a Pricing page

1

Create the route folder and page file

Inside your project, create the directory and file:
Open app/pricing/page.tsx in your editor. Because this page will use Framer Motion animations, start with the "use client" directive:
2

Scaffold the page component with Navbar and Footer

Import the shared layout components that Slik Dev already generated for you, then build the basic page wrapper:
The pt-24 on <main> accounts for the fixed Navbar height (64px) plus extra breathing room. All Slik Dev pages use this pattern — keep it consistent on your new pages.
3

Add the page header section

Following Slik Dev’s section pattern — centered header, short label, large heading, subtext — add a hero header inside <main>:
4

Build the pricing card grid

Add a three-column card grid below the header. Each card follows the same glass-card styling pattern Slik Dev uses in FeaturesSection.tsx:
Define the plans data array above the component:
5

Add a navigation link in the Navbar

Open components/layout/Navbar.tsx and add a link to /pricing in both the desktop nav and the mobile menu:
Add the same link inside the mobile menu block (the md:hidden div) so it appears consistently across all screen sizes.

Creating a new UI component in Slik’s style

When you need a reusable component that does not yet exist in your components/ folder, follow Slik Dev’s conventions: TypeScript props interface, Tailwind for styling, Framer Motion for animation, and Lucide React for icons. Here is a minimal example — a Badge component that signals plan status:
Place new components in components/ui/ for generic elements (buttons, badges, modals) and in components/layout/ for structural elements (Navbar, Footer, Sidebar). This matches the folder convention Slik Dev generates.