This is a simple QR Code Generator Web project.
- First enter any text or URL.
- It instantly generates a scannable QR code using an online API (https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=)
- The QR code can be scanned with a mobile device to open the text/URL and can be converted to a downloadable image.
- HTML -> for structure.
- CSS -> for styling and layout
- JavaScript -> for QR code generation logic
- QR Server API (api.qrserver.com) -> to create the QR code
- Download the files from repository: https://github.com/showmitg/qr-code-generator
- Open the project folder.
- Open index.html in browser.
- Enter text/URL in the input box. Click “Generate QR code” button or press enter.
- A QR code will appear instantly.
- Simple and clean.
- Works instantly without any backed integration.
- Error animation if no input is given.
- Uses free and reliable API.
- What happens if the user clicks "Generate QR code" with no text/URL.
- Separately integrating Enter key.
- Size of the box and text was a bit confusing for me.
- Creating animation.
- Image popup had to be smooth. But the QR was popping up suddenly.
- To ensure it works both in Mobile and Desktop I had to add “viewport”.
#Future Problems (Not solved yet)-
- Preventing download before a QR code is generated.
- Integrated API may have some limitations.
- Offline usage (current API requires internet).