Skip to content

Commit ed90810

Browse files
committed
refactor(ui): update Header and RewardsSidebar, remove UserDashboard
1 parent 41e93e7 commit ed90810

File tree

3 files changed

+5
-412
lines changed

3 files changed

+5
-412
lines changed

components/layout/Header.tsx

Lines changed: 4 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
import { useState, useEffect, useMemo } from 'react';
44
import { useGlobalWallet } from '@/contexts/wallet/WalletContext';
55
import { useFirebase } from '@/contexts/data/FirebaseContext';
6-
import { appConfig, stellarConfig } from '@/lib/stellar/wallet-config';
6+
import { appConfig } from '@/lib/stellar/wallet-config';
77
import { Tooltip } from '@/components/ui/Tooltip';
88
import { UserDropdown } from '@/components/ui/navigation/UserDropdown';
9-
import { NetworkIndicator } from '@/components/ui/wallet/NetworkIndicator';
109
import { RewardsSidebar } from '@/components/ui/RewardsSidebar';
11-
import { getAllBadges } from '@/lib/firebase/firebase-types';
1210
import Image from 'next/image';
1311

1412
export const Header = () => {
@@ -89,42 +87,6 @@ export const Header = () => {
8987

9088
{/* Desktop Navigation */}
9189
<nav className='hidden md:flex items-center space-x-6'>
92-
{/* <a
93-
target='_blank'
94-
href='/docs'
95-
className='text-white/80 hover:text-white transition-colors flex items-center space-x-2'
96-
>
97-
<span className='text-lg'>
98-
<Image
99-
src='/images/icons/docs.png'
100-
alt='Analytics'
101-
width={20}
102-
height={20}
103-
className='w-5 h-5'
104-
style={{ width: 'auto', height: 'auto' }}
105-
/>
106-
</span>
107-
<span>Starter Kits</span>
108-
<span className='text-xs text-white/40 ml-2 rounded-full bg-white/10 px-2 py-1'>WIP</span>
109-
</a>
110-
<a
111-
target='_blank'
112-
href='/docs'
113-
className='text-white/80 hover:text-white transition-colors flex items-center space-x-2'
114-
>
115-
<span className='text-lg'>
116-
<Image
117-
src='/images/icons/docs.png'
118-
alt='Analytics'
119-
width={20}
120-
height={20}
121-
className='w-5 h-5'
122-
style={{ width: 'auto', height: 'auto' }}
123-
/>
124-
</span>
125-
<span>Analytics</span>
126-
<span className='text-xs text-white/40 ml-2 rounded-full bg-white/10 px-2 py-1'>WIP</span>
127-
</a> */}
12890
{/* <a
12991
href='/'
13092
className='text-white/80 hover:text-white transition-colors flex items-center space-x-2'
@@ -255,18 +217,8 @@ export const Header = () => {
255217

256218
{/* Mobile Menu */}
257219
{isMenuOpen && (
258-
<div className='md:hidden absolute top-full left-0 right-0 bg-white/10 backdrop-blur-md border-t border-white/20 shadow-xl z-50'>
220+
<div className='md:hidden absolute top-full left-0 right-0 bg-black/80 backdrop-blur-md border-t border-white/20 shadow-xl z-50'>
259221
<div className='px-2 pt-2 pb-3 space-y-1'>
260-
<a
261-
href='/analytics'
262-
className='block px-3 py-2 text-white/80 hover:text-white hover:bg-white/10 rounded-md transition-colors'
263-
onClick={() => setIsMenuOpen(false)}
264-
>
265-
<div className='flex items-center space-x-2'>
266-
<span className='text-lg'>📊</span>
267-
<span>Analytics</span>
268-
</div>
269-
</a>
270222
<a
271223
href='/'
272224
className='block px-3 py-2 text-white/80 hover:text-white hover:bg-white/10 rounded-md transition-colors'
@@ -281,7 +233,7 @@ export const Header = () => {
281233
className='w-5 h-5'
282234
style={{ width: 'auto', height: 'auto' }}
283235
/>
284-
<span>Demos</span>
236+
<span>ESCROW ARSENAL</span>
285237
</div>
286238
</a>
287239
{/* Only show Nexus Web3 Playground in mobile menu when wallet is connected */}
@@ -338,7 +290,7 @@ export const Header = () => {
338290
height={20}
339291
className='w-5 h-5'
340292
/>
341-
<span>Docs</span>
293+
<span>Nexus Starter Kits</span>
342294
</div>
343295
</a>
344296
</div>

components/ui/RewardsSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ export const RewardsSidebar: React.FC<RewardsDropdownProps> = ({ isOpen, onClose
704704
<div
705705
ref={dropdownRef}
706706
onClick={e => e.stopPropagation()}
707-
className='absolute right-0 mt-2 w-80 bg-black/80 backdrop-blur-2xl border border-white/30 rounded-2xl shadow-2xl z-50 overflow-hidden max-h-[80vh]'
707+
className='absolute -right-20 mt-2 w-80 bg-black/80 backdrop-blur-2xl border border-white/30 rounded-2xl shadow-2xl z-50 overflow-hidden max-h-[80vh]'
708708
>
709709
{/* Enhanced background blur overlay */}
710710
<div className='absolute inset-0 bg-gradient-to-br from-white/5 via-white/10 to-white/5 backdrop-blur-3xl'></div>

0 commit comments

Comments
 (0)