Skip to content

Commit c03280d

Browse files
author
Ema
committed
fix: resolve button interactivity issue in rocket transition
1 parent 49087ca commit c03280d

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

src/components/RocketTransition.tsx

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ export const RocketTransition = () => {
105105
position: 'fixed',
106106
top: 0, left: 0,
107107
width: '100%', height: '100%',
108-
pointerEvents: 'none',
108+
pointerEvents: 'auto',
109109
zIndex: 9999,
110-
background: 'rgba(46, 41, 78, 0.6)',
110+
background: 'rgba(46, 41, 78, 0.5)',
111111
backdropFilter: 'blur(3px)'
112112
}}
113113
>
@@ -278,28 +278,34 @@ export const RocketTransition = () => {
278278
transition={{ delay: 3.5, duration: 0.5 }}
279279
style={{
280280
position: 'absolute',
281-
bottom: '15%',
281+
bottom: '18%',
282282
left: '50%',
283283
zIndex: 20
284284
}}
285285
>
286-
<button
287-
onClick={handleEnterChat}
286+
<motion.button
287+
whileHover={{ scale: 1.05, boxShadow: '0 12px 40px rgba(217, 3, 104, 0.8)' }}
288+
whileTap={{ scale: 0.95 }}
289+
onClick={(e) => {
290+
e.stopPropagation();
291+
handleEnterChat();
292+
}}
288293
style={{
289-
pointerEvents: 'auto',
290294
background: 'linear-gradient(135deg, var(--color-primary), var(--color-secondary))',
291295
color: 'white',
292296
border: 'none',
293-
padding: '16px 36px',
297+
padding: '18px 48px',
294298
borderRadius: '40px',
295-
fontSize: '1.2rem',
296-
fontWeight: 'bold',
297-
boxShadow: '0 8px 30px rgba(217, 3, 104, 0.6)',
299+
fontSize: '1.3rem',
300+
letterSpacing: '1px',
301+
textTransform: 'uppercase',
302+
fontWeight: '900',
303+
boxShadow: '0 8px 30px rgba(217, 3, 104, 0.5)',
298304
cursor: 'pointer'
299305
}}
300306
>
301307
Open Transmission
302-
</button>
308+
</motion.button>
303309
</motion.div>
304310
</motion.div>
305311
)}

0 commit comments

Comments
 (0)