Adds QR-CODE API to request the latest Poll-URL via QR-Code #97
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
QR-CODE API
This adds a new route and functionality to the API
/qrcode
This will response with a page with a qr-code including the URL to the newest poll. In this way, viewers can simply scan the code to take part in the voting.
The qr-code page provides an forced transparent background, in this way it is perfect for use in OBS.
![QR Code API to newest Poll by Andreas Fuchs https://anfuchs.com](https://user-images.githubusercontent.com/18313993/118401424-f13a1600-b665-11eb-9c97-da88a5a3ce64.jpg)
For demo purposes, the QR code in the screenshot leads to my own website. In production it contains the url for the newest poll.RESPONSIVE DESIGN
I added a responsive design to the voting page. Users who have followed the qr-code get an optimized display for voting, with larger buttons and more space around / between them.
To prevent merge conflicts, all style changes are in PR #95
Greetings Andi