Style confetti to fit the Shadow
This commit is contained in:
parent
c3978ca4b8
commit
cb8e754c14
|
@ -8,11 +8,26 @@ import { ArrowLeftIcon } from '@status-im/icons'
|
||||||
|
|
||||||
const Activation = () => {
|
const Activation = () => {
|
||||||
const [showConfetti, setShowConfetti] = useState(true)
|
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(() => {
|
useEffect(() => {
|
||||||
const timer = setTimeout(() => {
|
const timer = setTimeout(() => {
|
||||||
setShowConfetti(false)
|
setShowConfetti(false)
|
||||||
}, 5000)
|
}, 10000)
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
clearTimeout(timer)
|
clearTimeout(timer)
|
||||||
|
@ -20,9 +35,9 @@ const Activation = () => {
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack width={'100%'}>
|
<Stack style={styles.confettiContainer} width={'100%'}>
|
||||||
|
{showConfetti && <Confetti style={styles.confettiCanvas} />}
|
||||||
<YStack style={{ padding: '16px 32px' }}>
|
<YStack style={{ padding: '16px 32px' }}>
|
||||||
{showConfetti && <Confetti width={1540} height={800} style={{ zIndex: 0 }} />}
|
|
||||||
<YStack space={'$5'}>
|
<YStack space={'$5'}>
|
||||||
<Text size={27} weight={'semibold'}>
|
<Text size={27} weight={'semibold'}>
|
||||||
Validator Setup
|
Validator Setup
|
||||||
|
|
Loading…
Reference in New Issue