A modern and responsive React-based application for generating professional student ID cards with real-time preview and downloadable high‑quality images.
This project is built entirely using React, with all design, styling, and layout preserved exactly as intended — ensuring a pixel‑perfect ID card output.
- Introduction
- Information Needed
- React Features
- Key Highlights
- Download ID Card as Image
- Technology Stack
- Preview
- Useful Links
The Student ID Card Creator (React) allows students to generate their own digital ID cards by entering details such as name, date of birth, branch, address, and more.
Once submitted, the app instantly displays a professional ID card that can be downloaded as a high‑quality image.
This version is built fully with React, offering better performance, maintainability, and smoother user interaction.
To generate the ID card, the user must provide:
- Full Name (SURNAME YOUR NAME)
- Date of Birth
- Blood Group
- Roll Number
- Branch / Department
- Year of Admission
- Email Address
- Residential Address
- Profile Photo (Passport-size image)
- Separate Form and ID Card pages for clean maintainable code.
- Ensures smooth page navigation on GitHub Pages.
- Prevents 404 errors on refresh or new tab (
#/idcardrouting).
- After form submission, all user inputs + photo are saved in localStorage.
- The ID Card page reads and renders the stored data reliably.
- Layout and styling preserved exactly as intended, scaled appropriately across devices.
- 🧾 Clean & Easy Form Input
- 📸 Photo Upload Support
- 🎓 Auto Batch Calculation (e.g., 2023–2027)
- ⚡ Instant ID Card Generation
- 🎨 Pixel‑Perfect Layout — positions, fonts, and styles exactly matched
- 🔽 Reliable PNG Download
This app uses html2canvas to capture the rendered ID card and download it as a PNG.
Process:
- User submits the form
- Data is stored in
localStorage - ID Card page loads automatically
- Once rendered, a Download button becomes available
- Clicking it downloads a pixel‑perfect PNG of the ID card
- ⚛️ React
- 🛣️ React Router DOM
- 🎨 CSS
- 🧠 JavaScript (ES6+)
- 🖼️ html2canvas
- 🌐 GitHub Pages (Deployment)
- 🌐 Live App: https://sasi-upparapalli.github.io/IDCard-Generator/
- 💻 Source Code: https://github.com/sasi-upparapalli/IDCard-Generator
- 🤝 Connect: https://www.linkedin.com/in/doondi
Feel free to share or improve this project. Contributions and suggestions are always welcome! 🎉

