diff --git a/src/components/pdf-menu.tsx b/src/components/pdf-menu.tsx index c21d36b..1f653df 100644 --- a/src/components/pdf-menu.tsx +++ b/src/components/pdf-menu.tsx @@ -3,11 +3,14 @@ import type { PDFDocumentProxy, RenderTask } from 'pdfjs-dist' type Props = { src: string + background?: string + spinnerTrackColor?: string + spinnerAccentColor?: string } // pdfjs-dist touches the DOM/Canvas at import time, so it's loaded lazily inside // the effect below instead of at module scope — this file also runs during SSR. -export function PdfMenu({ src }: Props) { +export function PdfMenu({ src, background, spinnerTrackColor, spinnerAccentColor }: Props) { const containerRef = useRef(null) const canvasRef = useRef(null) const pdfRef = useRef(null) @@ -148,11 +151,19 @@ export function PdfMenu({ src }: Props) { return (
-
+
{numPages === 0 && (
- diff --git a/src/styles.css b/src/styles.css index dccd49f..92eb447 100644 --- a/src/styles.css +++ b/src/styles.css @@ -911,7 +911,7 @@ a { animation: none; } - .reservation-confirmed-flame { + .reservation-confirmed-sparkle { animation: none; } } @@ -1796,15 +1796,15 @@ a { text-align: center; } -.reservation-confirmed-flame { +.reservation-confirmed-sparkle { width: 3.25rem; height: 3.25rem; margin: 0 auto 1rem; color: var(--ember); - animation: reservation-confirmed-flicker 2.2s ease-in-out infinite; + animation: reservation-confirmed-twinkle 2.2s ease-in-out infinite; } -@keyframes reservation-confirmed-flicker { +@keyframes reservation-confirmed-twinkle { 0%, 100% { transform: rotate(0deg) scale(1);