From 46e8de0ba9031d17250c24d51c2d89b1af61e858 Mon Sep 17 00:00:00 2001 From: imhson Date: Wed, 30 Oct 2024 11:20:09 +0700 Subject: [PATCH] update bubble --- src/pages/events/ava-2024/map/page.tsx | 266 +++++++++++++++++++------ 1 file changed, 209 insertions(+), 57 deletions(-) diff --git a/src/pages/events/ava-2024/map/page.tsx b/src/pages/events/ava-2024/map/page.tsx index b714a266..92b0f54d 100644 --- a/src/pages/events/ava-2024/map/page.tsx +++ b/src/pages/events/ava-2024/map/page.tsx @@ -168,6 +168,7 @@ function Event() { if (artRoomStep == 4) { setShowGuide(false) setArtDone(true) + router.push(`/events/ava-2024/map/artwork-room`) } }, [artRoomStep]) useEffect(() => { @@ -283,21 +284,34 @@ function Event() { setCampainRoomStep(-1) setCharacterRoomStep(-1) } else { - router.push(`/events/ava-2024/map/manga-room`) + router.push(`/events/ava-2024/map/artwork-room`) } } else { setActive(2) } }} - className={`absolute top-0 left-[36.6%] w-[48%] ${active == 2 ? 'opacity-100' : 'opacity-0'}`}> + className={`absolute top-0 left-[36.6%] w-[48%]`}> <> - -
- - - - {t('Artwork room')} +
+ +
+ + + + {t('Artwork room')} +
+ { + currentSetStep.current = setArtRoomStep + setArtRoomStep(0) + setMangaRoomStep(-1) + setCampainRoomStep(-1) + setCharacterRoomStep(-1) + e.stopPropagation() + }} + /> + className='absolute top-[.7%] left-[34.6%] w-[33.75%]'> <> - -
- - - - {t('Artwork room')} +
+ +
+ + + + {t('Artwork room')} +
+ { + currentSetStep.current = setArtRoomStep + setArtRoomStep(0) + setMangaRoomStep(-1) + setCampainRoomStep(-1) + setCharacterRoomStep(-1) + e.stopPropagation() + }} + /> + + + +
@@ -634,3 +757,32 @@ function Event() { ) } +const HelpBubble = ({ className, onClick }) => { + return ( + + + + + + ) +}