Skip to content

Commit 33dde51

Browse files
committed
fix(ui): resolve browser crash when wallet connects to completed demo cards
- Remove floating-particle animations from demo cards causing performance issues - Comment out remaining badge particle animations - Add ESCROW ARSENAL section header for better visual hierarchy - Improve UI stability when wallet connects and demo cards update state
1 parent d00b6b0 commit 33dde51

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

app/globals.css

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -374,28 +374,24 @@ body {
374374
/* Demo Card Styles */
375375
.demo-card.earned-badge {
376376
animation:
377-
float 3s ease-in-out infinite,
378377
glow-pulse 2s ease-in-out infinite !important;
379378
}
380379

381380
.demo-card.earned-badge:hover {
382381
animation:
383-
float 1.5s ease-in-out infinite,
384382
glow-pulse 1s ease-in-out infinite !important;
385-
transform: scale(1.05) translateY(-5px) !important;
383+
transform: scale(1.05) !important;
386384
}
387385

388386
.demo-card.completed.earned-badge {
389387
animation:
390-
float 3s ease-in-out infinite,
391388
glow-pulse 2s ease-in-out infinite !important;
392389
}
393390

394391
.demo-card.completed.earned-badge:hover {
395392
animation:
396-
float 1.5s ease-in-out infinite,
397393
glow-pulse 1s ease-in-out infinite !important;
398-
transform: scale(1.05) translateY(-5px) !important;
394+
transform: scale(1.05) !important;
399395
}
400396

401397
.badge-shine {
@@ -425,7 +421,7 @@ body {
425421
}
426422

427423
.demo-card.completed:hover {
428-
transform: scale(1.05) translateY(-8px);
424+
transform: scale(1.05);
429425
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
430426
}
431427

app/home/page.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,16 +568,16 @@ const DemoSelector = ({
568568
{/* <div className='absolute top-8 right-8 floating-particle opacity-80' style={{ animationDelay: '0.5s' }}>
569569
<BadgeEmblem id={badgeId} size='sm' className='text-orange-400' />
570570
</div> */}
571-
<div
572-
className='absolute bottom-8 left-8 floating-particle opacity-60'
571+
{/* <div
572+
className='absolute bottom-8 left-8 opacity-60'
573573
style={{ animationDelay: '1s' }}
574574
>
575575
{getBadgeIcon(badgeId, BADGE_SIZES.sm) || (
576576
<BadgeEmblem id={badgeId} size='sm' className='text-yellow-300' />
577577
)}
578-
</div>
578+
</div> */}
579579
<div
580-
className='absolute bottom-4 right-4 floating-particle opacity-90'
580+
className='absolute bottom-4 right-4 opacity-90'
581581
style={{ animationDelay: '1.5s' }}
582582
>
583583
{getBadgeIcon(badgeId, BADGE_SIZES.sm) || (
@@ -1598,6 +1598,12 @@ export default function HomePageContent() {
15981598
</div>
15991599
</section>
16001600

1601+
1602+
<div className='text-center mb-12'>
1603+
<h3 className='text-4xl md:text-5xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-brand-400 to-accent-400 mb-6 drop-shadow-2xl'>
1604+
🧩 ESCROW ARSENAL
1605+
</h3>
1606+
</div>
16011607
{/* Demo Cards Section - with fade-in animation */}
16021608
<div className='text-center'>
16031609
<p className=' text-white/80 max-w-3xl mx-auto mb-6'>

0 commit comments

Comments
 (0)