💄 QR-Code for Vote-ID

This commit is contained in:
Brian Wiborg 2024-05-28 20:38:20 +02:00
parent 1c9937197f
commit 3d14d361c4
No known key found for this signature in database
GPG key ID: BE53FA9286B719D6
5 changed files with 57 additions and 6 deletions

View file

@ -16,9 +16,12 @@
{{ .Id }}
</p>
<hr class="m-4">
<form action="/v/{{ .Vid }}" method="GET">
<button type="submit" class="w-full hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center bg-purple-600 hover:bg-purple-700 focus:ring-blue-800 text-white hover:text-yellow-200 text-xl">Go back</button>
</form>
<div class="w-full flex justify-center">
<img src="data:image/png;base64,{{ .QRCode }}" alt="QR-Code" class="center pb-4">
</div>
<a href="/v/{{ .Vid }}" class="w-full block hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center bg-purple-600 hover:bg-purple-700 focus:ring-blue-800 text-white hover:text-yellow-200 text-xl">
Go back
</a>
</div>
</div>
</div>