GET /api/qrcodeFollowing the specification from official documentation - NavodilaZaProgramerjeUPNQR.pdf, section 4. Vsebina kode QR.
image/png image if successful (OK 200), else returns the following JSON { ok: false, errors: String[] } where errors is an array of descriptive strings.
+ +<!-- Meant to be used as direct image source, for example --> +<img src="https://upn-qr.gitapp.si/api/qrcode?client_name=Šolski center Nova Gorica&client_address=Cankarjeva ulica 8a&client_city=5000 Nova Gorica&amount=00000001000&payment_purpose=placilo&iban=SI56020170014356205&reference=SI121234567890120&issuer_name=Hitre Spletne Strani Na 123&issuer_address=Namisljena ulica 1a&issuer_city=1000 Ljubljana"> ++
Following the specification from official documentation - NavodilaZaProgramerjeUPNQR.pdf, section 4. Vsebina kode QR.
client_name^[a-zA-Z0-9ČŠŽĐ](?:[A-Z0-9 ČŠŽĐ]{0,31}[A-Z0-9ČŠŽĐ])?$/i
diff --git a/src/style.css b/src/style.css
index 40f0488..8e7795d 100644
--- a/src/style.css
+++ b/src/style.css
@@ -14,7 +14,7 @@ html {
padding: 0 0;
width: 100vw;
display: grid;
- grid-template-columns: auto minmax(50vw, 550px) auto;
+ grid-template-columns: auto minmax(50vw, 650px) auto;
background-color: var(--c-dark);
}
@@ -35,19 +35,25 @@ body {
font-family: monospace;
font-size: 16px;
line-height: 1.6em;
+ word-break: normal;
}
a {
color: var(--c-accent);
text-decoration: none;
}
-code {
+code,
+pre {
background-color: var(--c-dark);
padding: 6px 4px 2px 4px;
word-break: break-all;
}
+pre {
+ overflow-x: scroll;
+}
section div {
padding-left: 25px;
+ display: grid;
}
.credits {