From fb0c60a71e2cbe897cd9e8c37b8acaa86f49ab24 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Tue, 21 Jan 2025 01:37:20 +0800 Subject: [PATCH] add: blurred background in rewind page when ratio mismatch --- pages/rewind/index.tsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pages/rewind/index.tsx b/pages/rewind/index.tsx index cd3c689..687cb3f 100644 --- a/pages/rewind/index.tsx +++ b/pages/rewind/index.tsx @@ -34,7 +34,7 @@ function Image({ src }: { src: string }) { Current frame ); } @@ -181,8 +181,6 @@ export default function RewindPage() { const newIndex = Math.min(Math.max(currentIndex - delta, 0), timeline.length - 1); const newFrameId = timeline[newIndex].id; - console.log(currentFrameId, lastAvaliableFrameId); - if (newFrameId !== currentFrameId) { setCurrentFrameId(newFrameId); // Preload adjacent images @@ -212,9 +210,19 @@ export default function RewindPage() { return (
+ background + + {/* Current image */} + + {/* Time capsule */}