An admin dashboard application built with Next.js, TypeScript, shadcn/ui, and TailwindCSS. Features revenue analytics, transaction tracking, visitor charts, todo management, and a paginated payments table with filtering.
| Page | Route | What it shows |
|---|---|---|
| Dashboard | / |
Revenue cards, latest transactions, visitor charts, todo list, popular content |
| Payments | /payments |
Paginated data table with status filters, row selection, and action menus |
- Revenue Analytics — Total revenue card with summary metrics
- Transactions Feed — Latest transactions with user avatars, descriptions, and amounts
- Visitor Charts — Interactive charts showing traffic trends over 6 months with growth indicators
- Todo List — Date-based task management
- Popular Content — Content cards ranked by engagement with category labels
- Payments Table — Sortable, paginated data table (36 records, 4 pages) with status badges (success, pending, failed), row selection, and action menus
- Collapsible Sidebar — Toggle sidebar navigation for more screen space
- Dark / Light Mode — Theme toggle with persistent preference
- Responsive Design — Works on desktop, tablet, and mobile
- Image Optimization — Using
next/imagefor lazy loading and format conversion
| Technology | Purpose |
|---|---|
| Next.js | React framework with App Router and SSR |
| TypeScript | Type-safe development (96.6% of codebase) |
| shadcn/ui | Accessible, customizable component library |
| TailwindCSS | Utility-first styling |
| Geist Font | Vercel's modern typeface |
| pnpm | Fast, disk-efficient package manager |
| Vercel | Deployment and hosting |
Cards, Data Tables, Sidebar, Dropdown Menus, Avatars, Badges, Buttons, Charts, Pagination, Checkbox (row select), and Theme Toggle.
# Clone the repo
git clone https://github.com/gypsicoder/dashboard-nextjs-shadcn.git
cd dashboard-nextjs-shadcn
# Install dependencies
pnpm install
# Run development server
pnpm devOpen http://localhost:3000 to see the app.
dashboard-nextjs-shadcn/
├── src/
│ ├── app/ # Next.js App Router pages
│ └── components/ # shadcn/ui and custom components
├── public/ # Static assets
├── components.json # shadcn/ui configuration
├── next.config.ts # Next.js configuration
├── tailwind.config.js # TailwindCSS configuration
├── tsconfig.json # TypeScript configuration
└── package.json