I'll build a comprehensive tech job pay analytics dashboard. Let me start by exploring the project structure and then create the application.
Now let me install the required packages and set up the project.
Now let me create all the files. I'll start with the data generation, then components, then the main app.
Now let me create the dark mode hook and the components:
Now let me create the chart components:
Let me fix the unused imports and create the remaining components:
Now let me create the main App.tsx that ties everything together:
I need to export those functions from sampleData.ts:
Now let me update the CSS file for dark mode and custom styling:
Let me now build the project to check for errors:
The build is successful. Let me verify the key files are correct and do a final review:
The project is built successfully. Let me do a final build to confirm everything is working:
The dashboard is built successfully. Here's a summary of what was created:
TechPulse — Tech Job Pay Analytics Dashboard
🏗️ Architecture (12 files)
Data Layer:
src/data/sampleData.ts — Generates 200 realistic job postings with seeded random data, 12-month salary trends, 12 role salary ranges, segment distributions, and experience brackets
Components:
src/components/KPICard.tsx — Animated KPI cards with trend indicators (up/down arrows, percentage changes)
src/components/SalaryTrendChart.tsx — Area/line chart showing 12-month average & median salary trends with gradient fills and hover tooltips
src/components/SalaryByRoleChart.tsx — Horizontal bar chart showing min/median/max salary by role with custom tooltips
src/components/SegmentDonutChart.tsx — Donut chart for job distribution by segment with interactive legend
src/components/ExperienceChart.tsx — Grouped bar chart showing salary ranges by experience level (Entry → Staff+)
src/components/JobDataTable.tsx — Full sortable/filterable data table with search, pagination, color-coded badges for segment/experience/work type
src/components/Filters.tsx — Sidebar with date range picker, segment toggles, experience level filters, and work type filters with reset button
Hooks:
src/hooks/useDarkMode.ts — Dark mode state with localStorage persistence and HTML class toggling
Styles:
src/index.css — Custom scrollbar, dark mode variant, Recharts overrides, animations
✨ Key Features
- Live filtering — All filters (date range, segment, experience, work type) update KPIs, charts, and table simultaneously
- Dark mode toggle — Smooth animated sun/moon icon transition with full dark theme
- Responsive layout — Mobile-friendly with collapsible filter sidebar on small screens
- Smooth animations — Framer Motion entrance animations, Recharts chart animations
- Realistic data — 34 companies, 12 locations, 7 segments, 5 experience levels, salary ranges from 70K–400K
Files built: index.html, src/data/sampleData.ts, src/hooks/useDarkMode.ts, src/components/KPICard.tsx, src/components/SalaryTrendChart.tsx, src/components/SalaryByRoleChart.tsx, src/components/SegmentDonutChart.tsx, src/components/ExperienceChart.tsx, src/components/JobDataTable.tsx, src/components/Filters.tsx, src/App.tsx, src/index.css