Skip to content

Commit

Permalink
Merge 1-qr-code-qualification
Browse files Browse the repository at this point in the history
🩹 QR Qualification
  • Loading branch information
PressJump authored Oct 25, 2022
2 parents e963530 + 13f2aeb commit 6bdde88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/css/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#qrcode {
padding: 18px;
background-color: white;
display: flex;
justify-content: center;
align-items: center;
}

/* if prefers-color-scheme theme body have dark background white text */
@media (prefers-color-scheme: dark) {
body {
Expand Down
4 changes: 2 additions & 2 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ async function generateQRCode() {

var qrcode = new QRCode(document.getElementById("qrcode"), {
text: url,
width: 205,
height: 205,
width: 150,
height: 150,
colorDark: "#000000",
colorLight: "#ffffff",
correctLevel: QRCode.CorrectLevel.H,
Expand Down

0 comments on commit 6bdde88

Please sign in to comment.