Skip to content

Modern admin dashboard template built with Next.js 15, React, TypeScript, Tailwind CSS, shadcn/ui, React Query, Recharts, RTL & i18n support. Includes analytics, users, orders, reports, settings, notifications, profile and components showcase pages.

Notifications You must be signed in to change notification settings

darvix-ir/admin-dashboad-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Modern Admin Dashboard Template

A beautiful, modern admin dashboard built with Next.js 15, TypeScript, Tailwind CSS, and shadcn/ui. Features a clean design with dark/light mode support, responsive layout, and comprehensive dashboard components.

This template is designed and developed under the Darvix brand.
Website: https://darvix.ir/

πŸ–ΌοΈ Demo Preview

🌐 Live Demo: https://admin.darvix.ir/login

Admin Dashboard Demo

The demo screenshot showcases the main dashboard, analytics, notifications, profile, and components showcase pages.

πŸš€ Features

  • βœ… Next.js 15 with App Router
  • βœ… TypeScript for type safety
  • βœ… Tailwind CSS for styling
  • βœ… shadcn/ui components
  • βœ… Dark/Light mode with theme toggle
  • βœ… React Query for data fetching
  • βœ… Responsive design (mobile-friendly)
  • βœ… Authentication pages (Login & Register)
  • βœ… Dashboard with analytics
  • βœ… Users data table with sorting, filtering, and pagination
  • βœ… Charts powered by Recharts
  • βœ… Settings page with form inputs
  • βœ… Built‑in i18n with Persian (fa) and English (en) translations
  • βœ… RTL/LTR layout support driven by a LanguageProvider
  • βœ… Language toggle in both auth pages and the main navbar
  • βœ… ESLint & Prettier configured
  • βœ… Mock data for development

πŸ“¦ Tech Stack

  • Framework: Next.js 15
  • Language: TypeScript
  • Styling: Tailwind CSS
  • UI Components: shadcn/ui
  • Icons: Lucide React
  • Charts: Recharts
  • Data Fetching: TanStack Query (React Query)
  • Theme Management: next-themes
  • Code Quality: ESLint + Prettier

πŸ—‚οΈ Project Structure

admin-dashboard-next/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ (auth)/
β”‚   β”‚   β”‚   β”œβ”€β”€ login/
β”‚   β”‚   β”‚   β”‚   └── page.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ register/
β”‚   β”‚   β”‚   β”‚   └── page.tsx
β”‚   β”‚   β”‚   └── layout.tsx
β”‚   β”‚   β”œβ”€β”€ (dashboard)/
β”‚   β”‚   β”‚   β”œβ”€β”€ dashboard/
β”‚   β”‚   β”‚   β”‚   └── page.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ users/
β”‚   β”‚   β”‚   β”‚   └── page.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ orders/
β”‚   β”‚   β”‚   β”‚   └── page.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ reports/
β”‚   β”‚   β”‚   β”‚   └── page.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ settings/
β”‚   β”‚   β”‚   β”‚   └── page.tsx
β”‚   β”‚   β”‚   └── layout.tsx
β”‚   β”‚   β”œβ”€β”€ globals.css
β”‚   β”‚   β”œβ”€β”€ layout.tsx
β”‚   β”‚   └── page.tsx
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ ui/
β”‚   β”‚   β”‚   β”œβ”€β”€ button.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ card.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ input.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ table.tsx
β”‚   β”‚   β”‚   └── ... (more UI components)
β”‚   β”‚   β”œβ”€β”€ layout/
β”‚   β”‚   β”‚   β”œβ”€β”€ sidebar.tsx
β”‚   β”‚   β”‚   └── navbar.tsx
β”‚   β”‚   └── dashboard/
β”‚   β”‚       β”œβ”€β”€ stat-card.tsx
β”‚   β”‚       β”œβ”€β”€ overview-chart.tsx
β”‚   β”‚       └── recent-orders.tsx
β”‚   β”œβ”€β”€ lib/
β”‚   β”‚   β”œβ”€β”€ utils.ts
β”‚   β”‚   β”œβ”€β”€ api.ts
β”‚   β”‚   └── auth.ts
β”‚   β”œβ”€β”€ hooks/
β”‚   β”‚   └── use-theme.tsx
β”‚   β”œβ”€β”€ providers/
β”‚   β”‚   β”œβ”€β”€ query-provider.tsx
β”‚   β”‚   └── theme-provider.tsx
β”‚   β”œβ”€β”€ types/
β”‚   β”‚   └── index.ts
β”‚   └── data/
β”‚       β”œβ”€β”€ mock-users.json
β”‚       β”œβ”€β”€ mock-orders.json
β”‚       β”œβ”€β”€ mock-stats.json
β”‚       └── mock-chart.json
β”œβ”€β”€ public/
β”œβ”€β”€ tailwind.config.ts
β”œβ”€β”€ tsconfig.json
β”œβ”€β”€ next.config.ts
β”œβ”€β”€ components.json
β”œβ”€β”€ .prettierrc.json
└── package.json

πŸ› οΈ Installation & Setup

Prerequisites

  • Node.js 18+ and npm/yarn/pnpm

Clone and Install

# Navigate to project directory
cd admin-dashboard-next

# Install dependencies
npm install

Run Development Server

npm run dev

Open http://localhost:3000 in your browser.

πŸ“± Pages Overview

Authentication

  • Login (/login): User authentication page
  • Register (/register): New user registration

Dashboard Pages

  • Dashboard (/dashboard): Main dashboard with stats, charts, and recent orders
  • Users (/users): User management with sortable, searchable, filterable data table and pagination
  • Orders (/orders): Simple orders table with status badges for each order
  • Reports (/reports): Analytics and detailed reports
  • Settings (/settings): User preferences and account settings
  • Analytics (/analytics): Detailed analytics with metrics cards, traffic sources, top pages, and overview/engagement/conversion tabs
  • Notifications (/notifications): Notification center with unread/read tabs, mark‑all‑as‑read, and inline actions
  • Profile (/profile): Profile page with avatar, profile form (name, email, phone, location), password change, and recent activity
  • Components Showcase (/components-demo): Full gallery of all UI components (buttons, badges, inputs, select, switch, alerts, progress, avatar, skeleton, cards, table, tabs, dialog, dropdown, combined example, color palette)

🎨 Features Breakdown

Dashboard Page

  • 4 statistic cards (Sales, Users, Orders, Revenue)
  • Interactive area chart showing trends
  • Recent orders table with search functionality

Users Page

  • Sortable data table
  • Search by name or email
  • Filter by role and status
  • Pagination

Settings Page

  • Profile information form
  • Theme selection (Light/Dark/System)
  • Notification preferences

🎯 Scripts

# Development
npm run dev

# Build for production
npm run build

# Start production server
npm start

# Lint code
npm run lint

# Format code with Prettier
npm run format

# Check formatting
npm run format:check

🌈 Theme Support

The dashboard supports three theme modes:

  • Light Mode
  • Dark Mode
  • System (follows OS preference)

Toggle theme using the button in the top navbar.

πŸ” Authentication

Currently uses mock authentication stored in localStorage:

  • Any email/password combination will work for login
  • After login, you'll be redirected to /dashboard
  • User data is stored in localStorage

For production: Replace mock auth in src/lib/auth.ts with real authentication (NextAuth.js, Auth0, etc.).

πŸ“Š Mock Data

Mock data is located in src/data/:

  • mock-users.json: User data
  • mock-orders.json: Order data
  • mock-stats.json: Dashboard statistics
  • mock-chart.json: Chart data

Replace with real API calls in src/lib/api.ts for production.

πŸš€ Deployment

Vercel (Recommended)

  1. Push your code to GitHub
  2. Import project in Vercel
  3. Deploy with one click

Build & Deploy Manually

npm run build
npm start

🎨 Customization

Colors

Edit src/app/globals.css to customize the color palette.

Components

All UI components are in src/components/ui/ and can be customized.

Navigation

Edit sidebar navigation in src/components/layout/sidebar.tsx.

πŸ“ Environment Variables

Create a .env.local file for environment variables:

# Add your environment variables here
NEXT_PUBLIC_API_URL=https://your-api.com

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

πŸ“„ License

This project is open source and available under the MIT License.

πŸ™ Acknowledgments


Built with ❀️ using Next.js 15 β€” by Darvix
Darvix: ΨͺΩˆΨ³ΨΉΩ‡ وب، طراحی UI/UX و Ω…Ψ­Ψ΅ΩˆΩ„Ψ§Ψͺ دیجیΨͺΨ§Ω„ Ω…Ψ―Ψ±Ω† Ψ¨Ψ§ ΨͺΪ©Ω†ΩˆΩ„ΩˆΪ˜ΫŒβ€ŒΩ‡Ψ§ΫŒ روز.
ΩˆΨ¨β€ŒΨ³Ψ§ΫŒΨͺ: https://darvix.ir/

About

Modern admin dashboard template built with Next.js 15, React, TypeScript, Tailwind CSS, shadcn/ui, React Query, Recharts, RTL & i18n support. Includes analytics, users, orders, reports, settings, notifications, profile and components showcase pages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages