From cb8e754c14e478dcb755a14a22f755cbb2963754 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Tue, 29 Aug 2023 14:48:22 +0300 Subject: [PATCH] Style confetti to fit the Shadow --- .../Activation/Activation.tsx | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/pages/ValidatorOnboarding/Activation/Activation.tsx b/src/pages/ValidatorOnboarding/Activation/Activation.tsx index 6427f5a5..6e18c714 100644 --- a/src/pages/ValidatorOnboarding/Activation/Activation.tsx +++ b/src/pages/ValidatorOnboarding/Activation/Activation.tsx @@ -8,11 +8,26 @@ import { ArrowLeftIcon } from '@status-im/icons' const Activation = () => { const [showConfetti, setShowConfetti] = useState(true) + const styles = { + confettiContainer: { + position: 'relative' as const, + width: '100%', + height: '100%', + }, + confettiCanvas: { + position: 'absolute' as const, + top: 0, + left: 0, + width: '100%', + height: '100%', + zIndex: 1, + }, + } useEffect(() => { const timer = setTimeout(() => { setShowConfetti(false) - }, 5000) + }, 10000) return () => { clearTimeout(timer) @@ -20,9 +35,9 @@ const Activation = () => { }, []) return ( - + + {showConfetti && } - {showConfetti && } Validator Setup @@ -57,7 +72,7 @@ const Activation = () => { - +