A beautiful, modern, and responsive Flask web application for calculating student grades with advanced features and stunning UI.
- Tailwind CSS Integration - Beautiful gradient backgrounds and modern components
- Dark Mode - Toggle between light and dark themes with smooth transitions
- Responsive Design - Perfect on all devices (mobile, tablet, desktop)
- Smooth Animations - Engaging entrance animations and transitions
- Interactive Elements - Hover effects, ripple effects, and visual feedback
- Real-time Calculation - See your results as you type
- Live Preview Panel - Instant percentage, grade, and status updates
- Visual Progress Bar - Track your performance visually
- Grade Letter System - A+, A, B+, B, C+, C, D, F grading
- Pass/Fail Detection - Automatic status calculation (40% passing)
- Chart.js Integration - Beautiful bar charts for subject-wise performance
- Doughnut Charts - Grade distribution visualization
- Color-coded Subjects - Easy identification with distinct colors
- Interactive Charts - Hover to see detailed information
- Calculation History - Keep records of all calculations
- Detailed Breakdown - View past subject scores
- Timestamps - Track when each calculation was made
- Clear History - Option to remove all records
- Print Results - Generate printable report cards
- Confetti Animation - Celebration effect for passing grades
- Input Validation - Real-time color feedback for marks
- Keyboard Shortcuts - Ctrl+K to focus, Ctrl+Enter to submit
- Toast Notifications - User-friendly alert system
- Session Management - Secure data handling
- Flask - Python web framework
- Flask Sessions - For data persistence
- Python 3.x - Core programming language
- Tailwind CSS - Utility-first CSS framework
- Custom CSS - Enhanced animations and effects
- JavaScript (ES6+) - Interactive functionality
- Chart.js - Data visualization library
- Font Awesome - Icon library
- Google Fonts (Poppins) - Modern typography
Flask-revision-yashodeep/
βββ main.py # Flask application with enhanced routes
βββ templates/
β βββ welcome.html # Landing page with features
β βββ index.html # Form page with live preview
β βββ result.html # Results page with charts
β βββ history.html # History tracking page
βββ static/
β βββ style/
β β βββ welcome_style.css # Welcome page animations
β β βββ style.css # Form page styles
β β βββ result_style.css # Result page styles
β βββ scripts/
β βββ scripts.js # Enhanced JavaScript
βββ README.md
Python 3.7+
pip (Python package manager)- Clone the repository
cd Flask-revision-yashodeep- Install Flask
pip install Flask- Run the application
python main.py- Open in browser
http://127.0.0.1:5000
- Click "Get Started" to begin calculating
- Click "View History" to see past calculations
- Toggle dark mode with the moon/sun icon
- Enter marks for all 5 subjects (0-100)
- Watch the live preview update in real-time
- See color-coded input feedback
- Click "Calculate Grade" to see detailed results
- View your percentage, grade, and pass/fail status
- Analyze performance with interactive charts
- Check subject-wise breakdown
- Print results or calculate again
- Review all past calculations
- See timestamps for each entry
- Clear history when needed
- Purple (#9333ea) - Primary brand color
- Blue (#3b82f6) - Secondary accent
- Green (#10b981) - Success states
- Orange (#f59e0b) - Warning states
- Red (#ef4444) - Error/Fail states
| Percentage | Grade | Status |
|---|---|---|
| 90-100% | A+ | Pass |
| 80-89% | A | Pass |
| 70-79% | B+ | Pass |
| 60-69% | B | Pass |
| 50-59% | C+ | Pass |
| 40-49% | C | Pass |
| 30-39% | D | Fail |
| 0-29% | F | Fail |
Edit main.py and update the form processing:
# Add/remove subjects in the predict() functionChange the threshold in main.py:
result = "Success β
" if score >= 40 else "Fail β" # Change 40 to your valueUpdate Tailwind classes in HTML files or modify CSS files.
- β Modern UI with Tailwind CSS
- β Dark mode functionality
- β Responsive design for all devices
- β Real-time calculation preview
- β Interactive charts and visualizations
- β History tracking system
- β Grade letter system (A+, A, B+, etc.)
- β Smooth animations and transitions
- β Print functionality
- β Enhanced user experience
- β Input validation with visual feedback
- β Keyboard shortcuts
- β Session management
- β Toast notifications
- β Confetti celebration for passing
Port already in use?
python main.py --port 5001CSS not loading?
- Clear browser cache (Ctrl+Shift+R)
- Check console for errors
Dark mode not persisting?
- Enable browser localStorage
- Check browser privacy settings
- Export results to PDF
- Email results functionality
- Multiple student profiles
- Class/batch analysis
- Graphical trends over time
- Subject weight customization
- Multi-language support
- Authentication system
Created with β€οΈ by Yashodeep
This project is open source and available for educational purposes.
Feel free to fork, improve, and submit pull requests!
Happy Calculating! πβ¨