From 9f55b88b501fb457fdb00a8111e0ff7f0cb98a1f Mon Sep 17 00:00:00 2001 From: Max Richter Date: Mon, 13 Nov 2023 12:20:10 +0100 Subject: [PATCH] feat: center gallery grid --- src/lib/components/Questions.svelte | 2 +- src/lib/components/confetti.js | 8 ++++++++ src/lib/components/confetti.svelte | 4 ++-- src/routes/gallery/+page.svelte | 11 +++++++++-- static/hang.png:Zone.Identifier | 3 --- 5 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 src/lib/components/confetti.js delete mode 100644 static/hang.png:Zone.Identifier diff --git a/src/lib/components/Questions.svelte b/src/lib/components/Questions.svelte index 35e5554..e85d319 100644 --- a/src/lib/components/Questions.svelte +++ b/src/lib/components/Questions.svelte @@ -278,7 +278,7 @@ {:else}
- +
{/if} {/if} diff --git a/src/lib/components/confetti.js b/src/lib/components/confetti.js new file mode 100644 index 0000000..f65f503 --- /dev/null +++ b/src/lib/components/confetti.js @@ -0,0 +1,8 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/canvas-confetti@1.9.0/dist/confetti.module.mjs + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +var t={};!function t(e,a,n,o){var r=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),i="function"==typeof Path2D&&"function"==typeof DOMMatrix;function l(){}function s(t){var n=a.exports.Promise,o=void 0!==n?n:e.Promise;return"function"==typeof o?new o(t):(t(l,l),null)}var c,h,f,u,d,m,p,g,b,M=(f=Math.floor(1e3/60),u={},d=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(c=function(t){var e=Math.random();return u[e]=requestAnimationFrame((function a(n){d===n||d+f-1 { - const confetti = (await import('https://esm.run/canvas-confetti')).default; + const confetti = (await import('./confetti')).default; confettiCanvas.width = window.innerWidth / 2; confettiCanvas.height = window.innerHeight / 2; @@ -54,7 +54,7 @@