A modern, responsive Next.js dashboard for managing franchise onboarding, tracking progress, and providing AI-powered support.
- Account Progress
Donut chart visualizing overall setup completion (85%), with detailed “Steps Completed” and “Steps Remaining” lists. - Pending Questions
Live list of user inquiries with avatars, usernames, timestamps, and question text. - Franchisee Overview
- Total Franchisees Onboard: Current count, growth percentage, avatar stack, and stage breakdown.
- Key Insights & Feedback: Sales growth metric and custom feedback notes.
- Financial Wellbeing
Targets vs. current values for franchisee financial metrics, with growth indicator. - Prospect Leads
List of new leads with avatar, name, and current inquiry stage. - AI Chat Assistant
Embedded chat widget for submitting questions to an AI backend, with a welcome header and send button.
- Next.js
- React
- Tailwind CSS
- react-icons
- Next/Image for optimized image handling
- Node.js ≥ 14.x
- npm or yarn
- Clone the repo
git clone https://github.com/your-username/franchise-dashboard.git cd franchise-dashboard
- Install dependencies
npm install # or yarn install
- Start development server
npm run dev # or yarn dev
- Open your browser to http://localhost:3000
This app is designed for seamless deployment on Vercel:
- Push your code to GitHub (or GitLab/Bitbucket).
- Sign in at vercel.com and import your project.
- Vercel will auto-detect Next.js—just click Deploy.
- Your dashboard will be live at https://dashboar-assignment.app.
- Watch the full video on Loom: https://www.loom.com/share/39bbca0cc556441983475679cacab976?sid=2e7e3af4-0468-4235-afe5-eb06bea8e551
Alternatively, use the Vercel CLI:
npm i -g vercel
vercel
# follow prompts, then:
vercel --prod
/
├── components/ # Reusable UI components (e.g., DashboardContent)
├── pages/ # Next.js pages (index.js → the main dashboard)
├── public/ # Static assets (avatars, icons, etc.)
├── styles/ # Global CSS / Tailwind config
├── .gitignore
├── README.md
└── package.json
- Colors & Spacing: Tweak
tailwind.config.js
to adjust theme colors, breakpoints, or spacing scale. - Data & API: Replace hard-coded data in
pages/index.js
(orPage.jsx
) with live API calls. - Environment Variables: Add any backend URLs or API keys in a
.env.local
file. - AI Chat: Wire up the input field’s submit handler to your AI or chat-bot service.
- Fork the repository.
- Create a feature branch (
git checkout -b feature/xyz
). - Commit your changes (
git commit -m "Add XYZ feature"
). - Push to your branch (
git push origin feature/xyz
). - Open a Pull Request and describe your changes.
Please follow our code style and commit message conventions. 9