Now let me set up the task list and generate design inspiration, then build this comprehensive agricultural intelligence platform.
Let me now build the entire application. I'll start with the theme, data files, locale files, and shared context.
Now let me update the tailwind config to add custom colors, then create all the data/locale/context files in parallel:
Now let me create the app context and add framer-motion to the project:
Now let me update the layout and move to building the role selection page:
Now let me build the role selection page, the language toggle component, and the main page:
Now let me build the Farmer Dashboard and its sub-components:
Now let me create the Farmer Dashboard page and the Market Official Dashboard:
Now let me wire everything up in the main page.tsx:
KISAN-DRISHTI is now fully built. Here's what was created across 15 files:
Foundation: Custom green agricultural theme in globals.css and tailwind.config.ts, shared AppContext for cross-dashboard state (crop prices, language, role), English + Hindi locale files, and sample crop data with weekly price history for 6 crops.
Role Selection: A clean landing page with animated brand logo, two large accessible role buttons (Farmer / Market Official), and a language toggle -- all with smooth Framer Motion transitions.
Farmer Dashboard: High-contrast, accessibility-first layout with (A) color-coded crop price cards (green glow for price up, red for down), (B) a profit calculator with animated earnings counter, (C) a floating voice assistant simulation with pulse animations and simulated responses, (D) a weekly price trend line chart plus recommendation/volatility insight cards, and (E) a shared English/Hindi language toggle.
Market Official Dashboard: Professional admin interface with an editable price management table (inline editing with toast notifications that sync to the farmer view), a multi-crop trend overview chart showing all 6 crops, and a weekly summary panel with total updates, most changed crop, and stability index stats.
You can send messages while the preview loads