From b7c69fb781df73a8f79d41e50aa53bebce00634d Mon Sep 17 00:00:00 2001 From: nomi-nonsz Date: Sun, 12 Oct 2025 13:49:19 +0700 Subject: [PATCH] update 404 page performance --- src/components/wobbling-image.tsx | 48 ++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 13 deletions(-) diff --git a/src/components/wobbling-image.tsx b/src/components/wobbling-image.tsx index da91c67..95fba6c 100644 --- a/src/components/wobbling-image.tsx +++ b/src/components/wobbling-image.tsx @@ -13,6 +13,26 @@ interface WobblingImageInterface { } } +interface ImageClipInterface { + name: string; + src: string; + size: number; + visible?: boolean; +} + +const ImageClip: React.FC = ({ + name, src, size, visible +}) => ( + {name} +) + function WobblingImage ({ images }: WobblingImageInterface) { @@ -128,21 +148,23 @@ function WobblingImage ({ onMouseDown={(e) => e.preventDefault()} onPointerDown={(e) => e.preventDefault()} > - clip1 - clip2 +