Use images for QR codes

These actually work
This commit is contained in:
Jake Howard 2024-06-01 17:23:34 +01:00
parent 4f4df8abe5
commit 5bc51d9a3b
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 4 additions and 47 deletions

25
package-lock.json generated
View file

@ -11,7 +11,6 @@
"@slidev/cli": "^0.48.8", "@slidev/cli": "^0.48.8",
"@slidev/theme-default": "latest", "@slidev/theme-default": "latest",
"playwright-chromium": "^1.44.0", "playwright-chromium": "^1.44.0",
"slidev-addon-qrcode": "^1.0.2",
"vue": "^3.4.21" "vue": "^3.4.21"
} }
}, },
@ -6825,19 +6824,6 @@
"node": ">=6" "node": ">=6"
} }
}, },
"node_modules/qr-code-styling": {
"version": "1.6.0-rc.1",
"resolved": "https://registry.npmjs.org/qr-code-styling/-/qr-code-styling-1.6.0-rc.1.tgz",
"integrity": "sha512-ModRIiW6oUnsP18QzrRYZSc/CFKFKIdj7pUs57AEVH20ajlglRpN3HukjHk0UbNMTlKGuaYl7Gt6/O5Gg2NU2Q==",
"dependencies": {
"qrcode-generator": "^1.4.3"
}
},
"node_modules/qrcode-generator": {
"version": "1.4.4",
"resolved": "https://registry.npmjs.org/qrcode-generator/-/qrcode-generator-1.4.4.tgz",
"integrity": "sha512-HM7yY8O2ilqhmULxGMpcHSF1EhJJ9yBj8gvDEuZ6M+KGJ0YY2hKpnXvRD+hZPLrDVck3ExIGhmPtSdcjC+guuw=="
},
"node_modules/queue-microtask": { "node_modules/queue-microtask": {
"version": "1.2.3", "version": "1.2.3",
"resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
@ -7216,17 +7202,6 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/slidev-addon-qrcode": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/slidev-addon-qrcode/-/slidev-addon-qrcode-1.0.2.tgz",
"integrity": "sha512-vYjfu8KHnOaiijWaQFc5LaaglDIISGZ5Bx4m0RbmDlPiIZDseEoJX6O3Lxh4LaaCdo5JpMK/3o6CcNZtcTqpLg==",
"dependencies": {
"qr-code-styling": "^1.6.0-rc.1"
},
"engines": {
"slidev": ">=0.32.1"
}
},
"node_modules/source-map-js": { "node_modules/source-map-js": {
"version": "1.2.0", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz",

View file

@ -12,7 +12,6 @@
"@slidev/cli": "^0.48.8", "@slidev/cli": "^0.48.8",
"@slidev/theme-default": "latest", "@slidev/theme-default": "latest",
"playwright-chromium": "^1.44.0", "playwright-chromium": "^1.44.0",
"slidev-addon-qrcode": "^1.0.2",
"vue": "^3.4.21" "vue": "^3.4.21"
} }
} }

BIN
public/dceu24-qrcode.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View file

@ -7,8 +7,6 @@ mdc: true
monaco: false monaco: false
themeConfig: themeConfig:
primary: '#0c4b33' primary: '#0c4b33'
addons:
- "slidev-addon-qrcode"
--- ---
# Empowering Django with Background Workers # Empowering Django with Background Workers
@ -28,12 +26,7 @@ addons:
</ul> </ul>
<div class="absolute right-0 bottom-4"> <div class="absolute right-0 bottom-4">
<QRCode <img src="/dceu24-qrcode.png" width="110px" />
:width="110"
:height="110"
data="https://0rng.one/dceu24"
:dotsOptions="{ color: 'white' }"
/>
</div> </div>
--- ---
@ -378,13 +371,8 @@ layout: fact
# `django.tasks` # `django.tasks`
<div class="absolute right-1/2 translate-x-1/2 mt-12"> <div class="absolute right-1/2 translate-x-1/2 mt-6">
<QRCode <img src="/django-tasks-qrcode.png" width="110px" />
:width="120"
:height="120"
data="https://pypi.org/project/django-tasks/"
:dotsOptions="{ color: 'white' }"
/>
</div> </div>
--- ---
@ -649,10 +637,5 @@ layout: end
END END
<div class="absolute right-1/2 bottom-4 translate-x-1/2"> <div class="absolute right-1/2 bottom-4 translate-x-1/2">
<QRCode <img src="/dceu24-qrcode.png" width="110px" />
:width="110"
:height="110"
data="https://0rng.one/dceu24"
:dotsOptions="{ color: 'white' }"
/>
</div> </div>