An interactive, accessible, and gamified web application built to educate Indian citizens about the electoral process. Designed as a production-ready civic tech tool, it features deep accessibility integrations, an AI-powered assistant, and authentic voting simulations.
- 🤖 AI Election Assistant: Powered by Gemini 1.5 Flash. Features native Web Speech API integration for Voice Input (Mic) and Text-to-Speech (Read Aloud), with English/Hindi toggling.
- 🎰 Interactive EVM & VVPAT Simulator: A realistic Balloting Unit simulation complete with authentic beep sounds, LED indicators, Braille dot tooltips, NOTA support, and a sliding 7-second VVPAT paper trail.
- 🏆 Gamified Voter Quiz: A 5-question civic knowledge quiz. Scoring 100% triggers a confetti celebration and dynamically generates a personalized "Democracy Champion" certificate using the HTML5 Canvas API for download.
- 📍 Find My Polling Booth Locator: A mock utility where users enter their 6-digit Pincode to generate a beautiful Mock Voter Slip detailing their polling station and ward.
- 🪪 Polling Guide & Document Validator: Step-by-step timeline of booth procedures. Features an interactive ID Validator to check if documents (Aadhaar, PAN, Student ID) are valid for voting.
- ✅ Eligibility Checker: Interactive checklist confirming voting criteria, linking to the official ECI portal.
- Framework: React 18 with Vite (JavaScript/JSX)
- Styling: Vanilla CSS utilizing CSS Variables for a "Premium Glassmorphism" UI. Color palette based on the Indian National Flag (#FF9933, #FFFFFF, #138808) with Navy Blue (#000080) for contrast.
- Animations:
framer-motionfor fluid page transitions and interactions. - Icons:
lucide-react - Gamification:
canvas-confetti - AI Integration:
@google/generative-ai
- Clone the repository (if applicable) and navigate to the project directory:
cd prompt - Install dependencies:
npm install
- Start the development server:
npm run dev
- View the app:
Open your browser and navigate to
http://localhost:5173.
To use the AI Assistant:
- Navigate to the AI Assistant tab.
- Click the Key icon to open the settings.
- Paste your Google Gemini API Key.
- The assistant is now ready to answer real-time queries in English and Hindi!